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

36 lines
1.3 KiB
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
query predicate instances(MacroCall x) { toBeTested(x) and not x.isUnknown() }
query predicate getExtendedCanonicalPath(MacroCall x, string getExtendedCanonicalPath) {
toBeTested(x) and not x.isUnknown() and getExtendedCanonicalPath = x.getExtendedCanonicalPath()
}
query predicate getCrateOrigin(MacroCall x, string getCrateOrigin) {
toBeTested(x) and not x.isUnknown() and getCrateOrigin = x.getCrateOrigin()
}
query predicate getAttributeMacroExpansion(MacroCall x, MacroItems getAttributeMacroExpansion) {
toBeTested(x) and
not x.isUnknown() and
getAttributeMacroExpansion = x.getAttributeMacroExpansion()
}
query predicate getAttr(MacroCall x, int index, Attr getAttr) {
toBeTested(x) and not x.isUnknown() and getAttr = x.getAttr(index)
}
query predicate getPath(MacroCall x, Path getPath) {
toBeTested(x) and not x.isUnknown() and getPath = x.getPath()
}
query predicate getTokenTree(MacroCall x, TokenTree getTokenTree) {
toBeTested(x) and not x.isUnknown() and getTokenTree = x.getTokenTree()
}
query predicate getMacroCallExpansion(MacroCall x, AstNode getMacroCallExpansion) {
toBeTested(x) and not x.isUnknown() and getMacroCallExpansion = x.getMacroCallExpansion()
}