revert-complexity #7

Merged
sashakoshka merged 34 commits from revert-complexity into main 2022-09-29 20:06:54 +00:00
Showing only changes of commit 3a4ccdda10 - Show all commits

View File

@ -119,11 +119,12 @@ func (list List) ToString (indent int, breakline bool) (output string) {
output += doIndent(indent, "(")
if breakline { output += "\n" }
for _, argument := range list.arguments {
for index, argument := range list.arguments {
if !breakline && index > 0 { output += " "}
output += argument.ToString(indent, breakline)
}
output += doIndent(indent, "(")
output += doIndent(indent, ")")
if breakline { output += "\n" }
return
}