Skip to content

Commit 3b9151c

Browse files
committed
Swift: Restore UnknownLocation.toString(), it seems helpful.
1 parent 9c8bbe3 commit 3b9151c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

swift/ql/lib/codeql/swift/elements/UnknownLocation.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ class UnknownLocation extends UnknownLocationBase {
1212
override int getEndLine() { result = 0 }
1313

1414
override int getEndColumn() { result = 0 }
15+
16+
override string toString() { result = "UnknownLocation" }
1517
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
| file://:0:0:0:0 | file://:0:0:0:0 |
1+
| file://:0:0:0:0 | UnknownLocation |
22
| location.swift:2:1:3:1 | location.swift:2:1:3:1 |
33
| location.swift:2:11:2:14 | location.swift:2:11:2:14 |
44
| location.swift:2:19:3:1 | location.swift:2:19:3:1 |

0 commit comments

Comments
 (0)