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

Member predicate Generated::KeyPathComponent::getKind

Gets the kind of key path component.

INTERNAL: Do not use.

This is 4 for method or initializer application, 5 for members, 6 for array and dictionary subscripts, 7 for optional forcing (!), 8 for optional chaining (?), 9 for implicit optional wrapping, 10 for self, and 11 for tuple element indexing.

The following values should not appear: 0 for invalid components, 1 for unresolved method or initializer applications, 2 for unresolved members, 3 for unresolved subscripts, 12 for #keyPath dictionary keys, and 13 for implicit IDE code completion data.

int getKind()