Files
codeql/swift/ql/test/extractor-tests/generated/expr/KeyPathExpr/KeyPathExpr.ql
2025-06-25 12:02:13 +02:00

18 lines
594 B
Plaintext
Generated

// generated by codegen/codegen.py, do not edit
import codeql.swift.elements
import TestUtils
query predicate instances(KeyPathExpr x) { toBeTested(x) and not x.isUnknown() }
query predicate getType(KeyPathExpr x, Type getType) {
toBeTested(x) and not x.isUnknown() and getType = x.getType()
}
query predicate getRoot(KeyPathExpr x, TypeRepr getRoot) {
toBeTested(x) and not x.isUnknown() and getRoot = x.getRoot()
}
query predicate getComponent(KeyPathExpr x, int index, KeyPathComponent getComponent) {
toBeTested(x) and not x.isUnknown() and getComponent = x.getComponent(index)
}