We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MethodApplyExpr
1 parent 6706ba6 commit 66459b8Copy full SHA for 66459b8
swift/ql/lib/codeql/swift/elements/expr/ApplyExpr.qll
@@ -30,9 +30,11 @@ class ApplyExpr extends ApplyExprBase {
30
}
31
32
class MethodApplyExpr extends ApplyExpr {
33
- MethodApplyExpr() { this.getFunction() instanceof MethodRefExpr }
+ private MethodRefExpr method;
34
35
- AbstractFunctionDecl getMethod() { result = this.getFunction().(MethodRefExpr).getMethod() }
+ MethodApplyExpr() { method = this.getFunction() }
36
37
- override Expr getQualifier() { result = this.getFunction().(MethodRefExpr).getBase() }
+ AbstractFunctionDecl getMethodDeclaration() { result = method.getMethod() }
38
+
39
+ override Expr getQualifier() { result = method.getBase() }
40
0 commit comments