Expr embeds Typer and ast implements it
This commit is contained in:
		
							parent
							
								
									176969c956
								
							
						
					
					
						commit
						7459057df9
					
				
							
								
								
									
										4
									
								
								ast.go
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								ast.go
									
									
									
									
									
								
							@ -19,6 +19,10 @@ func NewAst() *ast {
 | 
				
			|||||||
	return &ast{}
 | 
						return &ast{}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (expr *ast) TypeName() string {
 | 
				
			||||||
 | 
						return "Expression"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (expr *ast) ToForest() {
 | 
					func (expr *ast) ToForest() {
 | 
				
			||||||
	if expr.root != nil {
 | 
						if expr.root != nil {
 | 
				
			||||||
		if expr.forest == nil {
 | 
							if expr.forest == nil {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user