mirror of
https://github.com/github/codeql.git
synced 2026-03-23 16:06:47 +01:00
13 lines
269 B
Plaintext
13 lines
269 B
Plaintext
import python
|
|
|
|
from string l, NameNode n
|
|
where n.getLocation().getFile().getShortName() = "test.py" and
|
|
(
|
|
n.isGlobal() and l = "global"
|
|
or
|
|
n.isLocal() and l = "local"
|
|
or
|
|
n.isNonLocal() and l = "non-local"
|
|
)
|
|
select n.getLocation().getStartLine(), n.getId(), l
|