Files
DiceCloud/app/imports/parser/parseTree/ErrorNode.js

16 lines
292 B
JavaScript

import ParseNode from '/imports/parser/parseTree/ParseNode.js';
export default class ErrorNode extends ParseNode {
constructor({node, error}) {
super(...arguments);
this.node = node;
this.error = error;
}
compile(){
return this;
}
toString(){
return '###';
}
}