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

Class OptionWithLocationInfo::Option

An option type. This is either a singleton None or a Some wrapping the given type.

Import path

import codeql.util.Option

Direct supertypes

Indirect supertypes

Predicates

hasLocationInfo

Holds if this element is at the specified location. The location spans column startColumn of line startLine to column endColumn of line endLine in file filepath. For more information, see Providing locations in CodeQL queries.

Inherited predicates

asSome

Gets the wrapped element, if any.

from Option
isNone

Holds if this option is the singleton None.

from Option
toString

Gets a textual representation of this element.

from Option