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 11private import codeql.swift.generated.expr.OtherConstructorDeclRefExpr
22
33class 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 ( ) }
75}
Original file line number Diff line number Diff line change 160160| expressions.swift:79:5:79:11 | call to ... |
161161| expressions.swift:79:5:79:21 | call to ... |
162162| expressions.swift:79:5:79:21 | self = ... |
163- | expressions.swift:79:11:79:11 | call to ... |
163+ | expressions.swift:79:11:79:11 | init |
164164| expressions.swift:79:19:79:19 | 22 |
165165| expressions.swift:83:15:83:15 | Derived.Type |
166166| expressions.swift:83:15:83:15 | call to ... |
Original file line number Diff line number Diff line change @@ -4895,7 +4895,7 @@ cfg.swift:
48954895#-----| -> exit init
48964896
48974897# 378| init
4898- #-----| -> call to ...
4898+ #-----| -> init
48994899
49004900# 379| super
49014901#-----| -> call to ...
@@ -4909,7 +4909,7 @@ cfg.swift:
49094909# 379| self = ...
49104910#-----| -> return
49114911
4912- # 379| call to ...
4912+ # 379| init
49134913#-----| -> super
49144914
49154915# 379| 0
Original file line number Diff line number Diff line change 567567| expressions.swift:78:3:80:3 | init | ConstructorDecl | expressions.swift:78:10:80:3 | { ... } | BraceStmt |
568568| expressions.swift:78:10:80:3 | { ... } | BraceStmt | expressions.swift:79:5:79:21 | self = ... | RebindSelfInConstructorExpr |
569569| 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 |
571571| expressions.swift:79:5:79:21 | call to ... | CallExpr | expressions.swift:79:5:79:11 | call to ... | DotSyntaxCallExpr |
572572| expressions.swift:79:5:79:21 | self = ... | RebindSelfInConstructorExpr | expressions.swift:78:3:78:3 | self | ParamDecl |
573573| 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