Files
codeql/swift/ql/test/extractor-tests/generated/KeyPathComponent/KeyPathComponent_getSubscriptArgument.ql
Alexandre Boulgakov 35a2d55d18 Swift: Extract structured keypath components.
Changes in swift/ql/lib are generated by swift/codegen without manual intervention.
2023-04-11 13:34:17 +01:00

8 lines
206 B
Plaintext

// generated by codegen/codegen.py
import codeql.swift.elements
import TestUtils
from KeyPathComponent x, int index
where toBeTested(x) and not x.isUnknown()
select x, index, x.getSubscriptArgument(index)