Removed bad spacing in ObjectInitializationValues.ToString
If a value had more initialzation values inside of it, it would leave a space before the newline. This was causing the parser test to believe the parser to be failing. The parser now passes the test.
This commit is contained in:
parent
6a5851c9eb
commit
63110d9a32
@ -104,12 +104,12 @@ func (attributes *ObjectInitializationValues) ToString (
|
|||||||
for _, name := range sortMapKeysAlphabetically(attributes.attributes) {
|
for _, name := range sortMapKeysAlphabetically(attributes.attributes) {
|
||||||
value := attributes.attributes[name]
|
value := attributes.attributes[name]
|
||||||
|
|
||||||
output += doIndent(indent, ".", name, " ")
|
output += doIndent(indent, ".", name)
|
||||||
if value.kind == ArgumentKindObjectInitializationValues {
|
if value.kind == ArgumentKindObjectInitializationValues {
|
||||||
output += "\n"
|
output += "\n"
|
||||||
output += value.ToString(indent + 1, true)
|
output += value.ToString(indent + 1, true)
|
||||||
} else {
|
} else {
|
||||||
output += value.ToString(0, false) + "\n"
|
output += " " + value.ToString(0, false) + "\n"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user