Files
codeql/java/ql/test/library-tests/structure/EnclosingCallables.ql
2018-10-11 11:31:37 +02:00

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)