Files
codeql/swift/ql/test/extractor-tests/statements/ConditionElements.ql
Paolo Tranquilli 553930d9e3 Swift: type visitor
This transfers the current state of `TypeVisitor` from the
proof-of-concept.
2022-05-20 15:42:20 +02:00

12 lines
268 B
Plaintext

import swift
from ConditionElement e, AstNode underlying
where
e.getLocation().getFile().getName().matches("%swift/ql/test%") and
(
underlying = e.getBoolean() or
underlying = e.getPattern() or
underlying = e.getInitializer()
)
select e, underlying