mirror of
https://github.com/github/codeql.git
synced 2026-02-24 10:53:49 +01:00
14 lines
270 B
Plaintext
14 lines
270 B
Plaintext
import default
|
|
|
|
string printableEnclosingCallable(Expr e) {
|
|
result = e.getEnclosingCallable().getName()
|
|
or
|
|
(not exists(e.getEnclosingCallable()) and result = "--none--")
|
|
}
|
|
|
|
from Expr e
|
|
where e.getFile().toString() = "A"
|
|
select
|
|
e,
|
|
printableEnclosingCallable(e)
|