Files
codeql/python/ql/test/library-tests/locations/implicit_concatenation/test.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

14 lines
439 B
Plaintext

import python
class ImplicitConcat extends StringLiteral {
ImplicitConcat() { exists(this.getAnImplicitlyConcatenatedPart()) }
}
from StringLiteral s, boolean isConcat
where
s instanceof ImplicitConcat and isConcat = true
or
not s instanceof ImplicitConcat and isConcat = false
select s.getLocation().getStartLine(), s.getText(), isConcat, s.getText().length(),
s.getLocation().getStartColumn(), s.getLocation().getEndColumn()