diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-01-10 16:13:34 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-01-11 11:45:35 +0100 |
| commit | 9dc808a65eb3f44d64e078b79bcac0f0510629f6 (patch) | |
| tree | f07b2a683fd60be7c401e4b22d1e3b106f81b3d7 /pkg/ast/parser_test.go | |
| parent | 7a4d53c30f5365112314a372b4ef6112b9e6b282 (diff) | |
pkg/ast: refactor Walk
Refactor Walk so that it's possible to abort or wrap walk of child nodes.
Will be needed for future changes.
Diffstat (limited to 'pkg/ast/parser_test.go')
| -rw-r--r-- | pkg/ast/parser_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/ast/parser_test.go b/pkg/ast/parser_test.go index c7018b243..f1458e3e7 100644 --- a/pkg/ast/parser_test.go +++ b/pkg/ast/parser_test.go @@ -48,7 +48,7 @@ func TestParseAll(t *testing.T) { t.Fatalf("formatting changed code:\n%#v\nvs:\n%#v", n1, n2) } } - data3 := Format(Clone(desc)) + data3 := Format(desc.Clone()) if !bytes.Equal(data, data3) { t.Fatalf("Clone lost data") } |
