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

36 lines
1.2 KiB
Plaintext
Generated

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