mirror of
https://github.com/github/codeql.git
synced 2026-03-27 01:38:22 +01:00
16 lines
436 B
Plaintext
16 lines
436 B
Plaintext
import python
|
|
|
|
class ImplicitConcat extends StrConst {
|
|
ImplicitConcat() {
|
|
exists(this.getAnImplicitlyConcatenatedPart())
|
|
}
|
|
}
|
|
|
|
from StrConst 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() |