We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1fa424 commit 4ee6ae6Copy full SHA for 4ee6ae6
swift/ql/lib/codeql/swift/elements/Diagnostics.qll
@@ -1,16 +1,16 @@
1
private import codeql.swift.generated.Diagnostics
2
3
class Diagnostics extends Generated::Diagnostics {
4
- override string toString() { result = getSeverity() + ": " + getText() }
+ override string toString() { result = this.getSeverity() + ": " + this.getText() }
5
6
string getSeverity() {
7
- getKind() = 1 and result = "error"
+ this.getKind() = 1 and result = "error"
8
or
9
- getKind() = 2 and result = "warning"
+ this.getKind() = 2 and result = "warning"
10
11
- getKind() = 3 and result = "note"
+ this.getKind() = 3 and result = "note"
12
13
- getKind() = 4 and result = "remark"
+ this.getKind() = 4 and result = "remark"
14
}
15
16
0 commit comments