mirror of
https://github.com/github/codeql.git
synced 2026-02-15 06:23:42 +01:00
Turns out the `ImportTime` module (despite living in `semmle.python.types` does not actually depend on points-to, so some of the `LegacyPointsTo` imports could be replaced or removed.
12 lines
310 B
Plaintext
12 lines
310 B
Plaintext
import python
|
|
private import LegacyPointsTo
|
|
private import semmle.python.types.ImportTime
|
|
import interesting
|
|
|
|
from int line, ControlFlowNodeWithPointsTo f, Object o, ImportTimeScope n
|
|
where
|
|
of_interest(f, line) and
|
|
f.refersTo(o) and
|
|
f.getScope() = n
|
|
select n.toString(), line, f.toString(), o.toString()
|