mirror of
https://github.com/github/codeql.git
synced 2026-03-05 23:26:51 +01:00
17 lines
323 B
Plaintext
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()
|
|
|