Python: correct doc for toString

This commit is contained in:
Rasmus Lerchedahl Petersen 2020-07-03 15:04:54 +02:00
Родитель 33cf96ccb8
Коммит fe9520b50b
2 изменённых файлов: 4 добавлений и 10 удалений

Просмотреть файл

@ -134,7 +134,7 @@ private newtype TReturnKind = TNormalReturnKind()
* from a callable. For Python, this is simply a method return.
*/
class ReturnKind extends TReturnKind {
/** Gets a textual representation of this return kind. */
/** Gets a textual representation of this element. */
string toString() { result = "return" }
}
@ -173,9 +173,7 @@ OutNode getAnOutNode(DataFlowCall call, ReturnKind kind) {
newtype TDataFlowType = TAnyFlow()
class DataFlowType extends TDataFlowType {
/**
* Gets a string representation of the data flow type.
*/
/** Gets a textual representation of this element. */
string toString() { result = "DataFlowType" }
}

Просмотреть файл

@ -60,9 +60,7 @@ class EssaNode extends Node, TEssaNode {
EssaVariable getVar() { result = var }
/**
* Get a string representation of this data flow node.
*/
/** Gets a textual representation of this element. */
override string toString() { result = var.toString() }
override Scope getScope() { result = var.getScope() }
@ -77,9 +75,7 @@ class CfgNode extends Node, TCfgNode {
ControlFlowNode getNode() { result = node }
/**
* Get a string representation of this data flow node.
*/
/** Gets a textual representation of this element. */
override string toString() { result = node.toString() }
override Scope getScope() { result = node.getScope() }