Class Raw::AvailabilityInfo
INTERNAL: Do not use.
An availability condition of an if, while, or guard statements.
Examples:
if #available(iOS 12, *) {
// Runs on iOS 12 and above
} else {
// Runs only anything below iOS 12
}
if #unavailable(macOS 10.14, *) {
// Runs only on macOS 10 and below
}
Import path
import codeql.swift.generated.RawDirect supertypes
Indirect supertypes
Predicates
| getSpec | Gets the |
| isUnavailable | Holds if it is #unavailable as opposed to #available. |
| toString |
Inherited predicates
| getLocation | Gets the location associated with this element in the code, if it exists. | from Locatable |
| isUnknown | Holds if this element is unknown. | from Element |