mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add support for attributes on closures.
This commit is contained in:
@@ -226,7 +226,8 @@ private:
|
||||
// Create the closure.
|
||||
auto *Params = ParameterList::createEmpty(Ctx);
|
||||
auto *Closure = new (Ctx)
|
||||
ClosureExpr(SourceRange(), nullptr, Params, SourceLoc(), SourceLoc(),
|
||||
ClosureExpr(DeclAttributes(), SourceRange(), nullptr, Params,
|
||||
SourceLoc(), SourceLoc(),
|
||||
SourceLoc(), SourceLoc(), nullptr,
|
||||
DF.getNextDiscriminator(), getCurrentDeclContext());
|
||||
Closure->setImplicit(true);
|
||||
|
||||
Reference in New Issue
Block a user