qtil
advanced-security/qtil-swift 0.0.3
Search

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.Raw

Direct supertypes

Indirect supertypes

Predicates

getSpec

Gets the indexth spec of this availability info (0-based).

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