mirror of
https://github.com/github/codeql.git
synced 2026-03-05 07:06:47 +01:00
34 lines
1.2 KiB
Plaintext
Generated
34 lines
1.2 KiB
Plaintext
Generated
// generated by codegen/codegen.py, do not edit
|
|
import codeql.swift.elements
|
|
import TestUtils
|
|
|
|
query predicate instances(
|
|
MacroDecl x, string getModule__label, ModuleDecl getModule, string getInterfaceType__label,
|
|
Type getInterfaceType, string getName__label, string getName
|
|
) {
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getModule__label = "getModule:" and
|
|
getModule = x.getModule() and
|
|
getInterfaceType__label = "getInterfaceType:" and
|
|
getInterfaceType = x.getInterfaceType() and
|
|
getName__label = "getName:" and
|
|
getName = x.getName()
|
|
}
|
|
|
|
query predicate getGenericTypeParam(MacroDecl x, int index, GenericTypeParamDecl getGenericTypeParam) {
|
|
toBeTested(x) and not x.isUnknown() and getGenericTypeParam = x.getGenericTypeParam(index)
|
|
}
|
|
|
|
query predicate getMember(MacroDecl x, int index, Decl getMember) {
|
|
toBeTested(x) and not x.isUnknown() and getMember = x.getMember(index)
|
|
}
|
|
|
|
query predicate getParameter(MacroDecl x, int index, ParamDecl getParameter) {
|
|
toBeTested(x) and not x.isUnknown() and getParameter = x.getParameter(index)
|
|
}
|
|
|
|
query predicate getRole(MacroDecl x, int index, MacroRole getRole) {
|
|
toBeTested(x) and not x.isUnknown() and getRole = x.getRole(index)
|
|
}
|