mirror of
https://github.com/github/codeql.git
synced 2026-08-03 17:03:02 +02:00
77 lines
2.6 KiB
Plaintext
Generated
77 lines
2.6 KiB
Plaintext
Generated
// generated by codegen/codegen.py, do not edit
|
|
import codeql.swift.elements
|
|
import TestUtils
|
|
|
|
query predicate instances(
|
|
ConcreteVarDecl x, string getModule__label, ModuleDecl getModule, string getInterfaceType__label,
|
|
Type getInterfaceType, string getName__label, string getName, string getType__label, Type getType,
|
|
string getIntroducerInt__label, int getIntroducerInt
|
|
) {
|
|
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() and
|
|
getType__label = "getType:" and
|
|
getType = x.getType() and
|
|
getIntroducerInt__label = "getIntroducerInt:" and
|
|
getIntroducerInt = x.getIntroducerInt()
|
|
}
|
|
|
|
query predicate getMember(ConcreteVarDecl x, int index, Decl getMember) {
|
|
toBeTested(x) and not x.isUnknown() and getMember = x.getMember(index)
|
|
}
|
|
|
|
query predicate getAccessor(ConcreteVarDecl x, int index, Accessor getAccessor) {
|
|
toBeTested(x) and not x.isUnknown() and getAccessor = x.getAccessor(index)
|
|
}
|
|
|
|
query predicate getAttachedPropertyWrapperType(
|
|
ConcreteVarDecl x, Type getAttachedPropertyWrapperType
|
|
) {
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getAttachedPropertyWrapperType = x.getAttachedPropertyWrapperType()
|
|
}
|
|
|
|
query predicate getParentPattern(ConcreteVarDecl x, Pattern getParentPattern) {
|
|
toBeTested(x) and not x.isUnknown() and getParentPattern = x.getParentPattern()
|
|
}
|
|
|
|
query predicate getParentInitializer(ConcreteVarDecl x, Expr getParentInitializer) {
|
|
toBeTested(x) and not x.isUnknown() and getParentInitializer = x.getParentInitializer()
|
|
}
|
|
|
|
query predicate getPropertyWrapperBackingVarBinding(
|
|
ConcreteVarDecl x, PatternBindingDecl getPropertyWrapperBackingVarBinding
|
|
) {
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getPropertyWrapperBackingVarBinding = x.getPropertyWrapperBackingVarBinding()
|
|
}
|
|
|
|
query predicate getPropertyWrapperBackingVar(ConcreteVarDecl x, VarDecl getPropertyWrapperBackingVar) {
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getPropertyWrapperBackingVar = x.getPropertyWrapperBackingVar()
|
|
}
|
|
|
|
query predicate getPropertyWrapperProjectionVarBinding(
|
|
ConcreteVarDecl x, PatternBindingDecl getPropertyWrapperProjectionVarBinding
|
|
) {
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getPropertyWrapperProjectionVarBinding = x.getPropertyWrapperProjectionVarBinding()
|
|
}
|
|
|
|
query predicate getPropertyWrapperProjectionVar(
|
|
ConcreteVarDecl x, VarDecl getPropertyWrapperProjectionVar
|
|
) {
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getPropertyWrapperProjectionVar = x.getPropertyWrapperProjectionVar()
|
|
}
|