mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user