Files
codeql/java/ql/test/library-tests/structure/EnclosingCallables.ql
Anders Schack-Mulligen ae44b90456 Java: Normalize parentheses.
2018-11-28 15:01:25 +01:00

12 lines
264 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)