File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
lib/codeql/swift/elements/expr
test/library-tests/elements/expr/methodlookup Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,4 @@ private class FullDotSyntaxBaseIgnoredApplyExpr extends ApplyExpr {
56
56
FullDotSyntaxBaseIgnoredApplyExpr ( ) { expr = this .getFunction ( ) }
57
57
58
58
override AutoClosureExpr getStaticTarget ( ) { result = expr .getStaticTarget ( ) .getExpr ( ) }
59
-
60
- override string toString ( ) { result = "call to " + expr }
61
59
}
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ methodlookup.swift:
117
117
# 26| getElement(3): [CallExpr] call to instanceMethod()
118
118
# 26| getFunction(): [MethodLookupExpr] .instanceMethod()
119
119
# 26| getBase(): [DeclRefExpr] foo
120
- # 27| getElement(4): [CallExpr] call to call to Foo.instanceMethod()
120
+ # 27| getElement(4): [CallExpr] call to { ... }
121
121
# 27| getFunction(): [CallExpr] call to Foo.instanceMethod()
122
122
# 27| getFunction(): [DotSyntaxBaseIgnoredExpr] Foo.instanceMethod()
123
123
# 27| getQualifier(): [TypeExpr] Foo.Type
@@ -210,7 +210,7 @@ methodlookup.swift:
210
210
# 47| getFunction(): [MethodLookupExpr] .instanceMethod()
211
211
# 47| getBase(): [DeclRefExpr] baz
212
212
# 47| getElement(3).getFullyConverted(): [AwaitExpr] await ...
213
- # 48| getElement(4): [CallExpr] call to call to Baz.instanceMethod()
213
+ # 48| getElement(4): [CallExpr] call to { ... }
214
214
# 48| getFunction(): [CallExpr] call to Baz.instanceMethod()
215
215
# 48| getFunction(): [DotSyntaxBaseIgnoredExpr] Baz.instanceMethod()
216
216
# 48| getQualifier(): [TypeExpr] Baz.Type
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ noStaticTarget
23
23
| methodlookup.swift:24:9:24:18 | call to Foo.init() | true | Foo.init() |
24
24
| methodlookup.swift:26:5:26:24 | call to instanceMethod() | true | instanceMethod() |
25
25
| methodlookup.swift:27:5:27:27 | call to Foo.instanceMethod() | true | { ... } |
26
- | methodlookup.swift:27:5:27:29 | call to call to Foo.instanceMethod() | true | { ... } |
26
+ | methodlookup.swift:27:5:27:29 | call to { ... } | true | { ... } |
27
27
| methodlookup.swift:27:9:27:9 | call to instanceMethod() | true | instanceMethod() |
28
28
| methodlookup.swift:29:5:29:21 | call to classMethod() | true | classMethod() |
29
29
| methodlookup.swift:30:5:30:22 | call to staticMethod() | true | staticMethod() |
@@ -37,7 +37,7 @@ noStaticTarget
37
37
| methodlookup.swift:45:15:45:24 | call to Baz.init() | true | Baz.init() |
38
38
| methodlookup.swift:47:11:47:30 | call to instanceMethod() | true | instanceMethod() |
39
39
| methodlookup.swift:48:11:48:33 | call to Baz.instanceMethod() | true | { ... } |
40
- | methodlookup.swift:48:11:48:35 | call to call to Baz.instanceMethod() | true | { ... } |
40
+ | methodlookup.swift:48:11:48:35 | call to { ... } | true | { ... } |
41
41
| methodlookup.swift:48:15:48:15 | call to instanceMethod() | true | instanceMethod() |
42
42
| methodlookup.swift:50:11:50:27 | call to classMethod() | true | classMethod() |
43
43
| methodlookup.swift:51:11:51:28 | call to staticMethod() | true | staticMethod() |
You can’t perform that action at this time.
0 commit comments