mirror of
https://github.com/github/codeql.git
synced 2026-01-04 02:00:18 +01:00
12 lines
332 B
Plaintext
12 lines
332 B
Plaintext
import python
|
|
|
|
string repr(AstNode a) {
|
|
not a instanceof StringLiteral and result = a.toString()
|
|
or
|
|
result = "\"" + a.(StringLiteral).getText() + "\""
|
|
}
|
|
|
|
from ControlFlowNode p, ControlFlowNode s, BasicBlock b, int n
|
|
where p.getASuccessor() = s and p = b.getNode(n)
|
|
select n, p.getLocation().getStartLine(), repr(p.getNode())
|