File tree Expand file tree Collapse file tree
python/ql/src/semmle/python/dataflow/new/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,11 +118,13 @@ class Node extends TNode {
118118 Node track ( TypeTracker t2 , TypeTracker t ) { t = t2 .step ( this , result ) }
119119}
120120
121+ /** A data-flow node corresponding to an SSA variable. */
121122class EssaNode extends Node , TEssaNode {
122123 EssaVariable var ;
123124
124125 EssaNode ( ) { this = TEssaNode ( var ) }
125126
127+ /** Gets the `EssaVariable` represented by this data-flow node. */
126128 EssaVariable getVar ( ) { result = var }
127129
128130 override EssaVariable asVar ( ) { result = var }
@@ -135,11 +137,13 @@ class EssaNode extends Node, TEssaNode {
135137 override Location getLocation ( ) { result = var .getDefinition ( ) .getLocation ( ) }
136138}
137139
140+ /** A data-flow node corresponding to a control-flow node. */
138141class CfgNode extends Node , TCfgNode {
139142 ControlFlowNode node ;
140143
141144 CfgNode ( ) { this = TCfgNode ( node ) }
142145
146+ /** Gets the `ControlFlowNode` represented by this data-flow node. */
143147 ControlFlowNode getNode ( ) { result = node }
144148
145149 override ControlFlowNode asCfgNode ( ) { result = node }
You can’t perform that action at this time.
0 commit comments