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.
getMethodDeclaration
1 parent 66459b8 commit f0ec43bCopy full SHA for f0ec43b
swift/ql/lib/codeql/swift/elements/expr/ApplyExpr.qll
@@ -11,8 +11,6 @@ class ApplyExpr extends ApplyExprBase {
11
(
12
result = f.(DeclRefExpr).getDecl()
13
or
14
- result = f.(MethodRefExpr).getMethod()
15
- or
16
result = f.(ConstructorRefCallExpr).getFunction().(DeclRefExpr).getDecl()
17
)
18
@@ -34,7 +32,7 @@ class MethodApplyExpr extends ApplyExpr {
34
32
35
33
MethodApplyExpr() { method = this.getFunction() }
36
37
- AbstractFunctionDecl getMethodDeclaration() { result = method.getMethod() }
+ override AbstractFunctionDecl getStaticTarget() { result = method.getMethod() }
38
39
override Expr getQualifier() { result = method.getBase() }
40
}
0 commit comments