Regen ebnf.go to fix builds
@@ -70,7 +70,7 @@ func (c WrapreNode) String() string {
if c.Node == nil {
return ""
}
- return ast.First(c.Node, "").Scanner().String()
+ return c.Node.Scanner().String()
}
func WalkWrapreNode(node WrapreNode, ops WalkerOps) Stopper {
if fn := ops.EnterWrapreNode; fn != nil {
@@ -98,7 +98,7 @@ func (c CommentNode) String() string {
if c.Node == nil {
return ""
}
- return ast.First(c.Node, "").Scanner().String()
+ return c.Node.Scanner().String()
}
func WalkCommentNode(node CommentNode, ops WalkerOps) Stopper {
if fn := ops.EnterCommentNode; fn != nil {
@@ -126,7 +126,7 @@ func (c IdentNode) String() string {
if c.Node == nil {
return ""
}
- return ast.First(c.Node, "").Scanner().String()
+ return c.Node.Scanner().String()
}
func WalkIdentNode(node IdentNode, ops WalkerOps) Stopper {
if fn := ops.EnterIdentNode; fn != nil {
@@ -154,7 +154,7 @@ func (c StringNode) String() string {
if c.Node == nil {
return ""
}
- return ast.First(c.Node, "").Scanner().String()
+ return c.Node.Scanner().String()
}
func WalkStringNode(node StringNode, ops WalkerOps) Stopper {
if fn := ops.EnterStringNode; fn != nil {
