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.
MethodLookupExpr.getMethod()
1 parent c1e746a commit 89bfad0Copy full SHA for 89bfad0
swift/ql/lib/codeql/swift/elements/expr/MethodLookupExpr.qll
@@ -14,7 +14,16 @@ class MethodLookupExpr extends Generated::MethodLookupExpr {
14
15
override Decl getImmediateMember() {
16
result =
17
- Synth::convertDeclFromRaw(this.getUnderlying().getFunction().(Raw::DeclRefExpr).getDecl()) // TODO: FIX THIS
+ Synth::convertDeclFromRaw([
18
+ this.getUnderlying().getFunction().(Raw::DeclRefExpr).getDecl(),
19
+ this.getUnderlying()
20
+ .getFunction()
21
+ .(Raw::FunctionConversionExpr)
22
+ .getSubExpr()
23
+ .(Raw::DeclRefExpr)
24
+ .getDecl(),
25
+ this.getUnderlying().getFunction().(Raw::OtherConstructorDeclRefExpr).getConstructorDecl()
26
+ ])
27
}
28
29
MethodDecl getMethod() { result = this.getMember() }
0 commit comments