mirror of
https://github.com/github/codeql.git
synced 2026-08-03 17:03:02 +02:00
26 lines
862 B
Plaintext
Generated
26 lines
862 B
Plaintext
Generated
// generated by codegen/codegen.py, do not edit
|
|
import codeql.swift.elements
|
|
import TestUtils
|
|
|
|
query predicate instances(
|
|
EnumElementDecl 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 getMember(EnumElementDecl x, int index, Decl getMember) {
|
|
toBeTested(x) and not x.isUnknown() and getMember = x.getMember(index)
|
|
}
|
|
|
|
query predicate getParam(EnumElementDecl x, int index, ParamDecl getParam) {
|
|
toBeTested(x) and not x.isUnknown() and getParam = x.getParam(index)
|
|
}
|