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

Member predicate Raw::KeyPathComponent::getKind

Gets the kind of key path component.

INTERNAL: Do not use.

This is 3 for properties, 4 for array and dictionary subscripts, 5 for optional forcing (!), 6 for optional chaining (?), 7 for implicit optional wrapping, 8 for self, and 9 for tuple element indexing.

The following values should not appear: 0 for invalid components, 1 for unresolved properties, 2 for unresolved subscripts, 10 for #keyPath dictionary keys, and 11 for implicit IDE code completion data.

int getKind()