Files
codeql/rust/ql/test/extractor-tests/generated/UseTree/UseTree.ql
Josh Brown f39c1141d8 Revert "Merge pull request #257 from microsoft/jb1/reapply-22.1-tmp"
This reverts commit 6d496ee073, reversing
changes made to 866977b6c5.
2025-08-11 12:45:01 -07: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()
}