[refactoring] rename dumper

This commit is contained in:
Vadym Slizov 2020-12-12 12:09:39 +02:00
parent c32f5bd29b
commit 6941f0f51b
No known key found for this signature in database
GPG Key ID: AEA2A9388EF42A4A
3 changed files with 174 additions and 174 deletions

View File

@ -182,7 +182,7 @@ func printerWorker(r <-chan result) {
}
if *dump == true {
visitor.NewDump(os.Stdout).WithPositions().WithTokens().Dump(res.rootNode)
visitor.NewDumper(os.Stdout).WithPositions().WithTokens().Dump(res.rootNode)
}
wg.Done()

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,7 @@ import (
func TestDumper_root(t *testing.T) {
o := bytes.NewBufferString("")
p := visitor.NewDump(o).WithTokens().WithPositions()
p := visitor.NewDumper(o).WithTokens().WithPositions()
n := &ast.Root{
Position: &position.Position{
StartLine: 1,