mirror of
https://github.com/github/codeql.git
synced 2026-02-24 10:53:49 +01:00
14 lines
291 B
Plaintext
14 lines
291 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)
|