mirror of
https://github.com/github/codeql.git
synced 2026-01-07 03:30:24 +01:00
16 lines
410 B
Plaintext
16 lines
410 B
Plaintext
|
|
import python
|
|
import semmle.dataflow.SSA
|
|
import semmle.python.pointsto.PointsTo
|
|
|
|
import Util
|
|
|
|
from SsaSourceVariable var, ControlFlowNode defn, string kind
|
|
where not var instanceof SpecialSsaSourceVariable and
|
|
(
|
|
var.hasDefiningNode(defn) and kind = "definition"
|
|
or
|
|
var.hasRefinement(_, defn) and kind = "refinement"
|
|
)
|
|
select locate(defn.getLocation(), "ab"), var.(Variable), defn.toString(), kind
|