Files
codeql/python/ql/test/library-tests/PointsTo/lookup/Lookup.ql
2020-03-30 11:59:10 +02:00

14 lines
311 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