Swift: MethodLookupExpr.getMethodRef() [hand-written]

This refactors SelfApplyExpr.getFunction() as MethodLookupExpr().getMethodRef().

This is simpler, because we are not hiding DeclRefExprs or reinventing hidden AST resolution.
This commit is contained in:
Nora Dimitrijević
2022-12-20 23:08:32 -05:00
parent 1c64bf4bbc
commit 4900e4030a
6 changed files with 15 additions and 29 deletions

View File

@@ -677,7 +677,7 @@ class DotSyntaxCallExpr(SelfApplyExpr):
@synth.from_class(SelfApplyExpr)
class MethodLookupExpr(LookupExpr):
pass
method_ref: Expr | child | doc("the underlying method declaration reference expression")
class DynamicMemberRefExpr(DynamicLookupExpr):
pass