(nodeType ASTNodeType, text string)
| 41 | ) |
| 42 | |
| 43 | func NewASTNode(nodeType ASTNodeType, text string) *ASTNode { |
| 44 | return &ASTNode{nodeType: nodeType, text: text} |
| 45 | } |
| 46 | |
| 47 | func (a *ASTNode) AddChild(child *ASTNode) { |
| 48 | a.children = append(a.children, child) |
no outgoing calls
no test coverage detected