From 031907a6e02fc8d02d16698a9626174a33885c00 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 5 Sep 2022 11:13:16 -0400 Subject: [PATCH] Updated data ToString --- parser/tree-tostring.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/parser/tree-tostring.go b/parser/tree-tostring.go index 78dd94c..77068cb 100644 --- a/parser/tree-tostring.go +++ b/parser/tree-tostring.go @@ -73,15 +73,17 @@ func (what Type) ToString () (output string) { output += "{" output += what.points.ToString() - if what.kind == TypeKindArray { - output += fmt.Sprint(" ", what.length) - } else if what.kind == TypeKindVariableArray { + if what.kind == TypeKindVariableArray { output += " .." } output += "}" } + if what.kind == TypeKindArray { + output += fmt.Sprint(":", what.length) + } + if what.mutable { output += ":mut" }