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

32 lines
1.1 KiB
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
query predicate instances(Use x) { toBeTested(x) and not x.isUnknown() }
query predicate getExtendedCanonicalPath(Use x, string getExtendedCanonicalPath) {
toBeTested(x) and not x.isUnknown() and getExtendedCanonicalPath = x.getExtendedCanonicalPath()
}
query predicate getCrateOrigin(Use x, string getCrateOrigin) {
toBeTested(x) and not x.isUnknown() and getCrateOrigin = x.getCrateOrigin()
}
query predicate getAttributeMacroExpansion(Use x, MacroItems getAttributeMacroExpansion) {
toBeTested(x) and
not x.isUnknown() and
getAttributeMacroExpansion = x.getAttributeMacroExpansion()
}
query predicate getAttr(Use x, int index, Attr getAttr) {
toBeTested(x) and not x.isUnknown() and getAttr = x.getAttr(index)
}
query predicate getUseTree(Use x, UseTree getUseTree) {
toBeTested(x) and not x.isUnknown() and getUseTree = x.getUseTree()
}
query predicate getVisibility(Use x, Visibility getVisibility) {
toBeTested(x) and not x.isUnknown() and getVisibility = x.getVisibility()
}