2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +03:00

feat(core): raw tree property support

This commit is contained in:
Nikolay Kostyurin
2018-10-07 22:37:20 +02:00
parent fe9454c8a2
commit bdfd3f6e93
+4
View File
@@ -27,6 +27,9 @@ export default function bbob(plugs) {
? input || []
: parseFn(input, options);
// raw tree before modification with plugins
const raw = tree;
tree.walk = walk;
tree.match = match;
@@ -47,6 +50,7 @@ export default function bbob(plugs) {
return renderFn(tree, tree.options);
},
tree,
raw,
messages: tree.messages,
};
},