Files
codeql/rust/ql/test/extractor-tests/generated/Use/Use.ql
Geoffrey White 152ae1d29b Rust: Codegen.
2025-08-27 10:42:42 +01:00

24 lines
759 B
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 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()
}