Files
codeql/python/ql/test/library-tests/PointsTo/lookup/Lookup.ql
2018-11-19 15:15:54 +00:00

13 lines
272 B
Plaintext

import python
from string l, NameNode n
where n.getLocation().getFile().getName().matches("%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