mirror of
https://github.com/github/codeql.git
synced 2026-04-14 19:44:03 +02:00
23 lines
722 B
Plaintext
Generated
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)
|
|
}
|