Swift: synthesize CaptureListExpr::getVariable in QL instead of extracting it

This commit is contained in:
Paolo Tranquilli
2023-10-31 10:43:14 +01:00
parent 7bae2d9192
commit ffff10a7e8
7 changed files with 14 additions and 22 deletions

View File

@@ -411,7 +411,9 @@ class CapturedDecl(Decl):
class CaptureListExpr(Expr):
binding_decls: list[PatternBindingDecl] | child
variables: list[VarDecl] | child
variables: list[VarDecl] | child | synth | desc("""
These are the variables introduced by this capture in the closure's scope, not the captured ones.
""")
closure_body: "ClosureExpr" | child
class CollectionExpr(Expr):