diff --git a/pkg/ast/ast.go b/pkg/ast/ast.go index c689909..fad100c 100644 --- a/pkg/ast/ast.go +++ b/pkg/ast/ast.go @@ -187,5 +187,4 @@ type NodeVisitor interface { NameNamePart(n *NameNamePart) ParserBrackets(n *ParserBrackets) - ParserSeparatedList(n *ParserSeparatedList) } diff --git a/pkg/ast/node.go b/pkg/ast/node.go index 4089027..4108daa 100644 --- a/pkg/ast/node.go +++ b/pkg/ast/node.go @@ -2700,7 +2700,7 @@ type ParserSeparatedList struct { } func (n *ParserSeparatedList) Accept(v NodeVisitor) { - v.ParserSeparatedList(n) + // do nothing } func (n *ParserSeparatedList) GetPosition() *position.Position { diff --git a/pkg/ast/visitor/dump.go b/pkg/ast/visitor/dump.go index 7ea2622..5ddc306 100644 --- a/pkg/ast/visitor/dump.go +++ b/pkg/ast/visitor/dump.go @@ -2369,7 +2369,3 @@ func (v *Dump) ParserBrackets(n *ast.ParserBrackets) { v.indent-- v.print(v.indent, "},\n") } - -func (v *Dump) ParserSeparatedList(n *ast.ParserSeparatedList) { - // do nothing -} diff --git a/pkg/ast/visitor/null.go b/pkg/ast/visitor/null.go index 92b9b55..bba280c 100644 --- a/pkg/ast/visitor/null.go +++ b/pkg/ast/visitor/null.go @@ -657,7 +657,3 @@ func (v *Null) NameNamePart(_ *ast.NameNamePart) { func (v *Null) ParserBrackets(_ *ast.ParserBrackets) { // do nothing } - -func (v *Null) ParserSeparatedList(_ *ast.ParserSeparatedList) { - // do nothing -} diff --git a/pkg/ast/visitor/printer.go b/pkg/ast/visitor/printer.go index 5d49077..3388399 100644 --- a/pkg/ast/visitor/printer.go +++ b/pkg/ast/visitor/printer.go @@ -1233,7 +1233,3 @@ func (p *printer) ParserBrackets(n *ast.ParserBrackets) { p.printNode(n.Child) p.printToken(n.CloseBracketTkn, nil) } - -func (p *printer) ParserSeparatedList(n *ast.ParserSeparatedList) { - // do nothing -}