Files
codeql/rust/ql/test/extractor-tests/generated/MacroDef/MacroDef.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

40 lines
1.3 KiB
Plaintext
Generated

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