mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST/ASTGen] Introduce @concurrent attribute to replace @execution(concurrent) spelling
This commit is contained in:
@@ -1414,8 +1414,10 @@ FunctionType::ExtInfo ClosureEffectsRequest::evaluate(
|
||||
bool async = expr->getAsyncLoc().isValid();
|
||||
bool sendable = expr->getAttrs().hasAttribute<SendableAttr>();
|
||||
|
||||
// `@execution(...)` attribute is only valid on asynchronous function types.
|
||||
if (expr->getAttrs().hasAttribute<ExecutionAttr>()) {
|
||||
// `@execution(...)` and `@concurrent` attributes are only
|
||||
// valid on asynchronous function types.
|
||||
if (expr->getAttrs().hasAttribute<ExecutionAttr>() ||
|
||||
expr->getAttrs().hasAttribute<ConcurrentAttr>()) {
|
||||
async = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user