Skip to content

Commit 8dad622

Browse files
committed
Swift: Fix some inconsistencies.
1 parent fc7fef3 commit 8dad622

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

swift/ql/lib/codeql/swift/elements/expr/BooleanLiteralExpr.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
private import codeql.swift.generated.expr.BooleanLiteralExpr
22

33
/**
4-
* An integer literal. For example `true` in:
4+
* A boolean literal. For example `true` in:
55
* ```
66
* let x = true
77
* ```

swift/ql/lib/codeql/swift/elements/expr/FloatLiteralExpr.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ private import codeql.swift.generated.expr.FloatLiteralExpr
22

33
class FloatLiteralExpr extends Generated::FloatLiteralExpr {
44
override string toString() { result = this.getStringValue() }
5+
6+
override string getValueString() { result = this.getStringValue() }
57
}

0 commit comments

Comments
 (0)