Replaced old parser with new parser
This commit is contained in:
@@ -12,4 +12,8 @@ export default class ArrayNode extends ParseNode {
|
||||
toString(){
|
||||
return `[${this.values.map(node => node.toString()).join(', ')}]`;
|
||||
}
|
||||
traverse(fn){
|
||||
fn(this);
|
||||
this.values.forEach(value => value.traverse(fn));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user