[refactoring] rename dumper
This commit is contained in:
		
							parent
							
								
									c32f5bd29b
								
							
						
					
					
						commit
						6941f0f51b
					
				| @ -182,7 +182,7 @@ func printerWorker(r <-chan result) { | ||||
| 		} | ||||
| 
 | ||||
| 		if *dump == true { | ||||
| 			visitor.NewDump(os.Stdout).WithPositions().WithTokens().Dump(res.rootNode) | ||||
| 			visitor.NewDumper(os.Stdout).WithPositions().WithTokens().Dump(res.rootNode) | ||||
| 		} | ||||
| 
 | ||||
| 		wg.Done() | ||||
|  | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -13,7 +13,7 @@ import ( | ||||
| func TestDumper_root(t *testing.T) { | ||||
| 	o := bytes.NewBufferString("") | ||||
| 
 | ||||
| 	p := visitor.NewDump(o).WithTokens().WithPositions() | ||||
| 	p := visitor.NewDumper(o).WithTokens().WithPositions() | ||||
| 	n := &ast.Root{ | ||||
| 		Position: &position.Position{ | ||||
| 			StartLine: 1, | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user