We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f1db57 commit 3f054abCopy full SHA for 3f054ab
pkg/parsing/parser.go
@@ -75,6 +75,7 @@ func (node ASTNode) PrettyPrint(indent int) string {
75
for _, elem := range node.Children {
76
output += elem.PrettyPrint(childIndent)
77
}
78
+ output += fmt.Sprintf("%s}\n", strings.Repeat(" ", nextIndent))
79
80
output += fmt.Sprintf("%s}\n", spaces)
81
return output
pkg/parsing/parser_test.go
@@ -50,11 +50,14 @@ var prettyPrinted = `ASTProjection {
50
ASTField {
51
value: "baz"
52
53
+ }
54
55
56
value: "qux"
57
58
59
60
61
62
`
63
@@ -74,7 +77,9 @@ var prettyPrintedCompNode = `ASTFilterProjection {
74
value: "c"
82
83
84
85
0 commit comments