[refactoring] remove ParserSeparatedList from visitor

This commit is contained in:
Vadym Slizov 2020-12-11 17:17:13 +02:00
parent 632146f98e
commit 45ded326d0
No known key found for this signature in database
GPG Key ID: AEA2A9388EF42A4A
5 changed files with 1 additions and 14 deletions

View File

@ -187,5 +187,4 @@ type NodeVisitor interface {
NameNamePart(n *NameNamePart)
ParserBrackets(n *ParserBrackets)
ParserSeparatedList(n *ParserSeparatedList)
}

View File

@ -2700,7 +2700,7 @@ type ParserSeparatedList struct {
}
func (n *ParserSeparatedList) Accept(v NodeVisitor) {
v.ParserSeparatedList(n)
// do nothing
}
func (n *ParserSeparatedList) GetPosition() *position.Position {

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}