Skip to content

Commit fe9520b

Browse files
committed
Python: correct doc for toString
1 parent 33cf96c commit fe9520b

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

python/ql/src/experimental/dataflow/internal/DataFlowPrivate.qll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private newtype TReturnKind = TNormalReturnKind()
134134
* from a callable. For Python, this is simply a method return.
135135
*/
136136
class ReturnKind extends TReturnKind {
137-
/** Gets a textual representation of this return kind. */
137+
/** Gets a textual representation of this element. */
138138
string toString() { result = "return" }
139139
}
140140

@@ -173,9 +173,7 @@ OutNode getAnOutNode(DataFlowCall call, ReturnKind kind) {
173173
newtype TDataFlowType = TAnyFlow()
174174

175175
class DataFlowType extends TDataFlowType {
176-
/**
177-
* Gets a string representation of the data flow type.
178-
*/
176+
/** Gets a textual representation of this element. */
179177
string toString() { result = "DataFlowType" }
180178
}
181179

python/ql/src/experimental/dataflow/internal/DataFlowPublic.qll

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ class EssaNode extends Node, TEssaNode {
6060

6161
EssaVariable getVar() { result = var }
6262

63-
/**
64-
* Get a string representation of this data flow node.
65-
*/
63+
/** Gets a textual representation of this element. */
6664
override string toString() { result = var.toString() }
6765

6866
override Scope getScope() { result = var.getScope() }
@@ -77,9 +75,7 @@ class CfgNode extends Node, TCfgNode {
7775

7876
ControlFlowNode getNode() { result = node }
7977

80-
/**
81-
* Get a string representation of this data flow node.
82-
*/
78+
/** Gets a textual representation of this element. */
8379
override string toString() { result = node.toString() }
8480

8581
override Scope getScope() { result = node.getScope() }

0 commit comments

Comments
 (0)