Files
codeql/swift/ql/test/extractor-tests/generated/KeyPathComponent/KeyPathComponent.ql
2024-09-16 13:40:02 +02:00

18 lines
778 B
Plaintext
Generated

// generated by codegen/codegen.py, do not edit
import codeql.swift.elements
import TestUtils
from
KeyPathComponent x, int getKind, int getNumberOfSubscriptArguments, string hasTupleIndex,
string hasDeclRef, Type getComponentType
where
toBeTested(x) and
not x.isUnknown() and
getKind = x.getKind() and
getNumberOfSubscriptArguments = x.getNumberOfSubscriptArguments() and
(if x.hasTupleIndex() then hasTupleIndex = "yes" else hasTupleIndex = "no") and
(if x.hasDeclRef() then hasDeclRef = "yes" else hasDeclRef = "no") and
getComponentType = x.getComponentType()
select x, "getKind:", getKind, "getNumberOfSubscriptArguments:", getNumberOfSubscriptArguments,
"hasTupleIndex:", hasTupleIndex, "hasDeclRef:", hasDeclRef, "getComponentType:", getComponentType