mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
improve the source location information for { and } in a ClosureExpr, by
actually tracking it. NFC. Swift SVN r28801
This commit is contained in:
@@ -1064,9 +1064,11 @@ static Expr *buildMaterializeForSetCallback(ASTContext &ctx,
|
||||
args->setImplicit();
|
||||
|
||||
// Create the closure expression itself.
|
||||
auto closure = new (ctx) ClosureExpr(args, SourceLoc(), SourceLoc(),
|
||||
auto closure = new (ctx) ClosureExpr(SourceLoc(),
|
||||
args, SourceLoc(), SourceLoc(),
|
||||
SourceLoc(), TypeLoc(),
|
||||
/*discriminator*/ 0, materializeForSet);
|
||||
/*discriminator*/ 0, SourceLoc(),
|
||||
materializeForSet);
|
||||
|
||||
// Generate the body of the closure.
|
||||
SmallVector<ASTNode, 4> body;
|
||||
|
||||
Reference in New Issue
Block a user