mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
24 lines
721 B
Plaintext
Generated
24 lines
721 B
Plaintext
Generated
// generated by codegen/codegen.py, do not edit
|
|
import codeql.swift.elements
|
|
import TestUtils
|
|
|
|
query predicate instances(
|
|
InitializerRefCallExpr x, string getFunction__label, Expr getFunction, string getBase__label,
|
|
Expr getBase
|
|
) {
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getFunction__label = "getFunction:" and
|
|
getFunction = x.getFunction() and
|
|
getBase__label = "getBase:" and
|
|
getBase = x.getBase()
|
|
}
|
|
|
|
query predicate getType(InitializerRefCallExpr x, Type getType) {
|
|
toBeTested(x) and not x.isUnknown() and getType = x.getType()
|
|
}
|
|
|
|
query predicate getArgument(InitializerRefCallExpr x, int index, Argument getArgument) {
|
|
toBeTested(x) and not x.isUnknown() and getArgument = x.getArgument(index)
|
|
}
|