Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6103dbc

Browse files
committed
Python: QL doc for Node
1 parent 2bb1917 commit 6103dbc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

python/ql/src/semmle/python/dataflow/new/internal/DataFlowPublic.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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. */
121122
class 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. */
138141
class 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 }

0 commit comments

Comments
 (0)