mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Add CallExpr::createImplicitEmpty
Add a convenience constructor for an implicit nullary call. This will become more useful when the argument parameter starts taking an ArgumentList.
This commit is contained in:
@@ -239,7 +239,7 @@ private:
|
||||
Closure->setBody(ClosureBody, /*isSingleExpression=*/false);
|
||||
|
||||
// Call the closure.
|
||||
auto *ClosureCall = CallExpr::createImplicit(Ctx, Closure, {}, {});
|
||||
auto *ClosureCall = CallExpr::createImplicitEmpty(Ctx, Closure);
|
||||
ClosureCall->setThrows(false);
|
||||
|
||||
// TODO: typeCheckExpression() seems to assign types to everything here,
|
||||
|
||||
Reference in New Issue
Block a user