Files
codeql/python/ql/test/library-tests/PointsTo/new/SourceNodeDefinitions.ql
2025-11-26 12:30:31 +00:00

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