mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
18 lines
765 B
Plaintext
18 lines
765 B
Plaintext
// generated by codegen/codegen.py
|
|
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
|