File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed
lib/codeql/swift/elements/expr Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
private import codeql.swift.generated.expr.OtherConstructorDeclRefExpr
2
2
3
3
class OtherConstructorDeclRefExpr extends OtherConstructorDeclRefExprBase {
4
- override string toString ( ) {
5
- result = "call to ..." // TODO: We can make this better once we extract the constructor call
6
- }
4
+ override string toString ( ) { result = this .getConstructorDecl ( ) .toString ( ) }
7
5
}
Original file line number Diff line number Diff line change 160
160
| expressions.swift:79:5:79:11 | call to ... |
161
161
| expressions.swift:79:5:79:21 | call to ... |
162
162
| expressions.swift:79:5:79:21 | self = ... |
163
- | expressions.swift:79:11:79:11 | call to ... |
163
+ | expressions.swift:79:11:79:11 | init |
164
164
| expressions.swift:79:19:79:19 | 22 |
165
165
| expressions.swift:83:15:83:15 | Derived.Type |
166
166
| expressions.swift:83:15:83:15 | call to ... |
Original file line number Diff line number Diff line change @@ -4895,7 +4895,7 @@ cfg.swift:
4895
4895
#-----| -> exit init
4896
4896
4897
4897
# 378| init
4898
- #-----| -> call to ...
4898
+ #-----| -> init
4899
4899
4900
4900
# 379| super
4901
4901
#-----| -> call to ...
@@ -4909,7 +4909,7 @@ cfg.swift:
4909
4909
# 379| self = ...
4910
4910
#-----| -> return
4911
4911
4912
- # 379| call to ...
4912
+ # 379| init
4913
4913
#-----| -> super
4914
4914
4915
4915
# 379| 0
Original file line number Diff line number Diff line change 567
567
| expressions.swift:78:3:80:3 | init | ConstructorDecl | expressions.swift:78:10:80:3 | { ... } | BraceStmt |
568
568
| expressions.swift:78:10:80:3 | { ... } | BraceStmt | expressions.swift:79:5:79:21 | self = ... | RebindSelfInConstructorExpr |
569
569
| expressions.swift:78:10:80:3 | { ... } | BraceStmt | expressions.swift:80:3:80:3 | return | ReturnStmt |
570
- | expressions.swift:79:5:79:11 | call to ... | DotSyntaxCallExpr | expressions.swift:79:11:79:11 | call to ... | OtherConstructorDeclRefExpr |
570
+ | expressions.swift:79:5:79:11 | call to ... | DotSyntaxCallExpr | expressions.swift:79:11:79:11 | init | OtherConstructorDeclRefExpr |
571
571
| expressions.swift:79:5:79:21 | call to ... | CallExpr | expressions.swift:79:5:79:11 | call to ... | DotSyntaxCallExpr |
572
572
| expressions.swift:79:5:79:21 | self = ... | RebindSelfInConstructorExpr | expressions.swift:78:3:78:3 | self | ParamDecl |
573
573
| expressions.swift:79:5:79:21 | self = ... | RebindSelfInConstructorExpr | expressions.swift:79:5:79:21 | call to ... | CallExpr |
You can’t perform that action at this time.
0 commit comments