export Trees directly instead of wrapping it on an anonymous object

This commit is contained in:
Camilo Roca 2020-02-16 19:16:33 +01:00
parent a3d2ca7ef5
commit 96c2eb6a51
3 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ RuleContext.prototype.accept = function(visitor) {
//need to manage circular dependencies, so export now
exports.RuleContext = RuleContext;
var Trees = require('./tree/Trees').Trees;
var Trees = require('./tree/Trees');
// Print out a whole tree, not just a node, in LISP format

View File

@ -136,4 +136,4 @@ const Trees = {
}
}
module.exports = {Trees};
module.exports = Trees;

View File

@ -4,7 +4,7 @@
*/
var Tree = require('./Tree');
exports.Trees = require('./Trees').Trees;
exports.Trees = require('./Trees');
exports.RuleNode = Tree.RuleNode;
exports.ParseTreeListener = Tree.ParseTreeListener;
exports.ParseTreeVisitor = Tree.ParseTreeVisitor;