mirror of
https://github.com/github/codeql.git
synced 2026-03-18 13:36:47 +01:00
12 lines
266 B
Plaintext
12 lines
266 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)
|