Files
codeql/python/ql/test/3/extractor-tests/fstrings3.6/Successors.ql
Taus 82057e2e46 Python: Autoformat tests
I guess these were never considered back when we switched to
autoformatting everything.
2024-04-15 15:27:21 +00:00

12 lines
322 B
Plaintext

import python
string repr(AstNode a) {
not a instanceof StrConst and result = a.toString()
or
result = "\"" + a.(StrConst).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())