Updated data ToString
This commit is contained in:
parent
7731fa86a1
commit
031907a6e0
@ -73,15 +73,17 @@ func (what Type) ToString () (output string) {
|
|||||||
output += "{"
|
output += "{"
|
||||||
output += what.points.ToString()
|
output += what.points.ToString()
|
||||||
|
|
||||||
if what.kind == TypeKindArray {
|
if what.kind == TypeKindVariableArray {
|
||||||
output += fmt.Sprint(" ", what.length)
|
|
||||||
} else if what.kind == TypeKindVariableArray {
|
|
||||||
output += " .."
|
output += " .."
|
||||||
}
|
}
|
||||||
|
|
||||||
output += "}"
|
output += "}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if what.kind == TypeKindArray {
|
||||||
|
output += fmt.Sprint(":", what.length)
|
||||||
|
}
|
||||||
|
|
||||||
if what.mutable {
|
if what.mutable {
|
||||||
output += ":mut"
|
output += ":mut"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user