Files
codeql/java/ql/test-kotlin2/library-tests/generics-location/locations.ql
2023-11-17 14:07:13 +00:00

18 lines
454 B
Plaintext

import java
query predicate classLocations(string name, Location location) {
exists(Class type |
type.getQualifiedName() = name and
type.getSourceDeclaration().getName() in ["A", "B"] and
hasLocation(type, location)
)
}
query predicate callableLocations(string name, Location location) {
exists(Callable callable |
callable.getQualifiedName() = name and
callable.getName() = "fn" and
hasLocation(callable, location)
)
}