fix visitor/dumper_test.go

This commit is contained in:
z7zmey 2018-03-18 16:05:06 +02:00
parent 4c5803798b
commit 7e6f7e7267

View File

@ -3,6 +3,7 @@ package visitor_test
import ( import (
"bytes" "bytes"
"os"
"github.com/z7zmey/php-parser/php7" "github.com/z7zmey/php-parser/php7"
"github.com/z7zmey/php-parser/visitor" "github.com/z7zmey/php-parser/visitor"
@ -27,6 +28,7 @@ func ExampleDumper() {
nodes.Walk(nsResolver) nodes.Walk(nsResolver)
dumper := visitor.Dumper{ dumper := visitor.Dumper{
Writer: os.Stdout,
Indent: "| ", Indent: "| ",
Comments: comments, Comments: comments,
Positions: positions, Positions: positions,