Files
codeql/python/ql/test/3/library-tests/six/pointsto.ql
2019-02-08 14:39:27 +00:00

17 lines
323 B
Plaintext

import python
string longname(Expr e) {
result = e.(Name).getId()
or
exists(Attribute a |
a = e |
result = longname(a.getObject()) + "." + a.getName()
)
}
from Expr e, Object o
where e.refersTo(o) and e.getLocation().getFile().getShortName() = "test.py"
select longname(e), o.toString()