Files
codeql/rust/ql/test/extractor-tests/generated/UseTree/UseTree.ql
2025-06-25 12:02:13 +02:00

23 lines
691 B
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
query predicate instances(UseTree x, string isGlob__label, string isGlob) {
toBeTested(x) and
not x.isUnknown() and
isGlob__label = "isGlob:" and
if x.isGlob() then isGlob = "yes" else isGlob = "no"
}
query predicate getPath(UseTree x, Path getPath) {
toBeTested(x) and not x.isUnknown() and getPath = x.getPath()
}
query predicate getRename(UseTree x, Rename getRename) {
toBeTested(x) and not x.isUnknown() and getRename = x.getRename()
}
query predicate getUseTreeList(UseTree x, UseTreeList getUseTreeList) {
toBeTested(x) and not x.isUnknown() and getUseTreeList = x.getUseTreeList()
}