Files
codeql/java/ql/test/library-tests/structure/EnclosingCallables.ql
2018-08-30 10:48:05 +01:00

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)