mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
32 lines
1.1 KiB
Plaintext
Generated
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()
|
|
}
|