mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
13 lines
348 B
Plaintext
13 lines
348 B
Plaintext
import python
|
|
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
|