mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
12 lines
325 B
Plaintext
12 lines
325 B
Plaintext
import python
|
|
|
|
string lazy(Stmt s) {
|
|
if s.(Import).isLazy() or s.(ImportStar).isLazy() then result = "lazy" else result = "normal"
|
|
}
|
|
|
|
from Stmt s
|
|
where
|
|
s.getLocation().getFile().getShortName() = "test.py" and
|
|
(s instanceof Import or s instanceof ImportStar)
|
|
select s.getLocation().getStartLine(), s.toString(), lazy(s)
|