mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
12 lines
285 B
Plaintext
12 lines
285 B
Plaintext
import default
|
|
|
|
string printableEnclosingStmt(Expr e) {
|
|
result = "stmt on line " + e.getEnclosingStmt().getLocation().getStartLine()
|
|
or
|
|
not exists(e.getEnclosingStmt()) and result = "--none--"
|
|
}
|
|
|
|
from Expr e
|
|
where e.getFile().toString() = "A"
|
|
select e, printableEnclosingStmt(e)
|