hcl/json/parser
Fatih Arslan d45f5d133c ast: change signature of Walk() to allow rewriting AST
With the previous Walk function it's not easy to rewrite the node as we
don't have any kind of reference to the parent. If we want to rewrite a
given AST, we have to manually traverse it as Walk is not usable. To
allow us rewriting the AST we change the signature of the function
passed to Walk. It'll allow us to rewrite the AST and return back.
Internally Walk() overrides the returned AST.

This idea was also talked here:
https://groups.google.com/forum/#!topic/golang-nuts/cRZQV36IckM
extensively.
2015-11-14 21:58:31 +02:00
..
test-fixtures json/parser 2015-11-08 15:50:37 -08:00
flatten.go ast: change signature of Walk() to allow rewriting AST 2015-11-14 21:58:31 +02:00
parser_test.go json/parser: can parse lists of objects 2015-11-08 16:28:18 -08:00
parser.go json/parser: can parse lists of objects 2015-11-08 16:28:18 -08:00