Files
codeql/python/ql/test/3/extractor-tests/fstrings3.6/Successors.ql
Taus 1c68c987b0 Python: Change all remaining occurrences of StrConst
Done using
```
git grep StrConst | xargs sed -i 's/StrConst/StringLiteral/g'
```
2024-04-22 12:00:09 +00:00

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())