mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
18 lines
339 B
Plaintext
18 lines
339 B
Plaintext
private import codeql.swift.elements
|
|
|
|
cached
|
|
predicate toBeTested(Element e) {
|
|
e instanceof File
|
|
or
|
|
exists(Locatable loc |
|
|
loc.getLocation().getFile().getName().matches("%swift/ql/test%") and
|
|
(
|
|
e = loc
|
|
or
|
|
e = loc.(ValueDecl).getInterfaceType()
|
|
or
|
|
e = loc.(NominalTypeDecl).getType()
|
|
)
|
|
)
|
|
}
|