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

Class Raw::KeyPathComponent

INTERNAL: Do not use. A component of a KeyPathExpr.

Import path

import codeql.swift.generated.Raw

Direct supertypes

Indirect supertypes

Predicates

getComponentType

Gets the return type of this component application.

getDeclRef

Gets the property or subscript operator, if it exists.

getKind

Gets the kind of key path component.

getNumberOfSubscriptArguments

Gets the number of arguments to an array or dictionary subscript expression.

getSubscriptArgument

Gets the indexth argument to an array or dictionary subscript expression (0-based).

getTupleIndex

Gets the tuple index of this key path component, if it exists.

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