CodeQL library for Swift
codeql/swift-all 6.2.2 (changelog, source)
Search

Class Raw::AvailabilitySpec

INTERNAL: Do not use. An availability spec, that is, part of an AvailabilityInfo condition. For example iOS 12 and * in:

if #available(iOS 12, *)

Import path

import codeql.swift.generated.Raw

Direct supertypes

Indirect supertypes

Predicates

getPlatform

Gets the platform of this availability spec, if it exists.

getVersion

Gets the version of this availability spec, if it exists.

isWildcard

Holds if this availability spec is wildcard.

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