Files
codeql/python/ql/test/2/library-tests/six/pointsto.ql
2025-10-30 13:58:59 +00:00

13 lines
335 B
Plaintext

import python
private import LegacyPointsTo
string longname(Expr e) {
result = e.(Name).getId()
or
exists(Attribute a | a = e | result = longname(a.getObject()) + "." + a.getName())
}
from ExprWithPointsTo e, Value v
where e.pointsTo(v) and e.getLocation().getFile().getShortName() = "test.py"
select longname(e), v.toString()