Files
codeql/swift/ql/test/extractor-tests/generated/decl/MacroDecl/MacroRole.ql
2025-06-25 12:02:13 +02:00

23 lines
722 B
Plaintext
Generated

// generated by codegen/codegen.py, do not edit
import codeql.swift.elements
import TestUtils
query predicate instances(
MacroRole x, string getKind__label, int getKind, string getMacroSyntax__label, int getMacroSyntax
) {
toBeTested(x) and
not x.isUnknown() and
getKind__label = "getKind:" and
getKind = x.getKind() and
getMacroSyntax__label = "getMacroSyntax:" and
getMacroSyntax = x.getMacroSyntax()
}
query predicate getConformance(MacroRole x, int index, Expr getConformance) {
toBeTested(x) and not x.isUnknown() and getConformance = x.getConformance(index)
}
query predicate getName(MacroRole x, int index, string getName) {
toBeTested(x) and not x.isUnknown() and getName = x.getName(index)
}