mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
18 lines
594 B
Plaintext
Generated
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)
|
|
}
|