fix visitor/dumper_test.go
This commit is contained in:
parent
4c5803798b
commit
7e6f7e7267
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user