Finished migrating parser to be object orientation free. All tests pass
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
const error = {
|
||||
create({node, error}) {
|
||||
return {
|
||||
type: 'error',
|
||||
parseType: 'error',
|
||||
node,
|
||||
error,
|
||||
}
|
||||
},
|
||||
compile(node){
|
||||
return node;
|
||||
compile(node, scope, context){
|
||||
return {result: node, context};
|
||||
},
|
||||
toString(node){
|
||||
return node.error.toString();
|
||||
|
||||
Reference in New Issue
Block a user