mirror of
https://github.com/github/codeql.git
synced 2026-04-20 06:24:03 +02:00
Swift: fix MethodLookupExpr.getMethod()
By adding a couple missing cases.
This commit is contained in:
@@ -14,7 +14,16 @@ class MethodLookupExpr extends Generated::MethodLookupExpr {
|
||||
|
||||
override Decl getImmediateMember() {
|
||||
result =
|
||||
Synth::convertDeclFromRaw(this.getUnderlying().getFunction().(Raw::DeclRefExpr).getDecl()) // TODO: FIX THIS
|
||||
Synth::convertDeclFromRaw([
|
||||
this.getUnderlying().getFunction().(Raw::DeclRefExpr).getDecl(),
|
||||
this.getUnderlying()
|
||||
.getFunction()
|
||||
.(Raw::FunctionConversionExpr)
|
||||
.getSubExpr()
|
||||
.(Raw::DeclRefExpr)
|
||||
.getDecl(),
|
||||
this.getUnderlying().getFunction().(Raw::OtherConstructorDeclRefExpr).getConstructorDecl()
|
||||
])
|
||||
}
|
||||
|
||||
MethodDecl getMethod() { result = this.getMember() }
|
||||
|
||||
Reference in New Issue
Block a user