hcl/json
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
..
parser ast: change signature of Walk() to allow rewriting AST 2015-11-14 21:58:31 +02:00
scanner json/scanner: beef up tests with real example 2015-11-08 14:39:43 -08:00
test-fixtures json: true, false, null lex [GH-22] 2014-11-21 10:59:12 -08:00
token json/token: fix issues with unquoting sttrings from JSON 2015-11-08 16:08:36 -08:00