[AST] Support @preconcurrency attribute on test/extension inheritance entries

This commit is contained in:
Pavel Yaskevich
2024-01-05 13:45:28 -08:00
committed by Pavel Yaskevich
parent 574aee0113
commit 233d279a5c
10 changed files with 75 additions and 14 deletions

View File

@@ -746,7 +746,8 @@ public:
ASTContext &ctx = M->getASTContext();
auto inherits = ctx.AllocateCopy(llvm::makeArrayRef(InheritedEntry(
TypeLoc::withoutLoc(proto->getDeclaredInterfaceType()), isUnchecked,
/*isRetroactive=*/false)));
/*isRetroactive=*/false,
/*isPreconcurrency=*/false)));
auto extension =
ExtensionDecl::create(ctx, SourceLoc(), nullptr, inherits,
nominal->getModuleScopeContext(), nullptr);