mirror of
https://github.com/github/codeql.git
synced 2026-05-20 14:17:11 +02:00
13 lines
268 B
Plaintext
13 lines
268 B
Plaintext
import python
|
|
|
|
from Expr e
|
|
where
|
|
e.getLocation().getFile().getShortName() = "test.py" and
|
|
(
|
|
e instanceof ListComp or
|
|
e instanceof SetComp or
|
|
e instanceof DictComp or
|
|
e instanceof GeneratorExp
|
|
)
|
|
select e.getLocation().getStartLine(), e.toString()
|