File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
lib/codeql/swift/elements/stmt Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -6,5 +6,7 @@ class ConditionElement extends Generated::ConditionElement {
6
6
result = this .getBoolean ( ) .toString ( )
7
7
or
8
8
result = this .getPattern ( ) .toString ( ) + " = ... "
9
+ or
10
+ result = this .getAvailability ( ) .toString ( )
9
11
}
10
12
}
Original file line number Diff line number Diff line change @@ -5898,7 +5898,7 @@ statements.swift:
5898
5898
# 87| getBody(): [BraceStmt] { ... }
5899
5899
# 87| getElement(0): [IfStmt] if ... then { ... }
5900
5900
# 87| getCondition(): [StmtCondition] StmtCondition
5901
- # 87| getElement(0): (no string representation)
5901
+ # 87| getElement(0): [ConditionElement] #available
5902
5902
# 87| getAvailability(): [AvailabilityInfo] #available
5903
5903
# 87| getSpec(0): [PlatformVersionAvailabilitySpec] macOS 155
5904
5904
# 87| getSpec(1): [OtherAvailabilitySpec] *
@@ -5918,7 +5918,7 @@ statements.swift:
5918
5918
# 91| getBody(): [BraceStmt] { ... }
5919
5919
# 91| getElement(0): [IfStmt] if ... then { ... }
5920
5920
# 91| getCondition(): [StmtCondition] StmtCondition
5921
- # 91| getElement(0): (no string representation)
5921
+ # 91| getElement(0): [ConditionElement] #unavailable
5922
5922
# 91| getAvailability(): [AvailabilityInfo] #unavailable
5923
5923
# 91| getSpec(0): [PlatformVersionAvailabilitySpec] macOS 42
5924
5924
# 91| getThen(): [BraceStmt] { ... }
You can’t perform that action at this time.
0 commit comments