[refactoring] remove ParserSeparatedList from visitor
This commit is contained in:
		
							parent
							
								
									632146f98e
								
							
						
					
					
						commit
						45ded326d0
					
				| @ -187,5 +187,4 @@ type NodeVisitor interface { | ||||
| 	NameNamePart(n *NameNamePart) | ||||
| 
 | ||||
| 	ParserBrackets(n *ParserBrackets) | ||||
| 	ParserSeparatedList(n *ParserSeparatedList) | ||||
| } | ||||
|  | ||||
| @ -2700,7 +2700,7 @@ type ParserSeparatedList struct { | ||||
| } | ||||
| 
 | ||||
| func (n *ParserSeparatedList) Accept(v NodeVisitor) { | ||||
| 	v.ParserSeparatedList(n) | ||||
| 	// do nothing | ||||
| } | ||||
| 
 | ||||
| func (n *ParserSeparatedList) GetPosition() *position.Position { | ||||
|  | ||||
| @ -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 | ||||
| } | ||||
|  | ||||
| @ -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 | ||||
| } | ||||
|  | ||||
| @ -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 | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user