mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
18 lines
454 B
Plaintext
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)
|
|
)
|
|
}
|