From df1636e8fad5e1d25588636321b218aeb9b5fa30 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 15 Sep 2022 14:58:50 -0400 Subject: [PATCH] tree-tostring.go compiles --- parser/tree-tostring.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parser/tree-tostring.go b/parser/tree-tostring.go index 6fa93b9..63e20a0 100644 --- a/parser/tree-tostring.go +++ b/parser/tree-tostring.go @@ -103,8 +103,8 @@ func (attributes ObjectDefaultValues) ToString ( ) ( output string, ) { - for _, name := range sortMapKeysAlphabetically(attributes.attributes) { - value := attributes.attributes[name] + for _, name := range sortMapKeysAlphabetically(attributes) { + value := attributes[name] output += doIndent(indent, ".", name) if value.kind == ArgumentKindObjectDefaultValues { @@ -123,7 +123,7 @@ func (values ArrayDefaultValues) ToString ( ) ( output string, ) { - for _, value := range values.values { + for _, value := range values { output += value.ToString(indent, true) }