export Trees directly instead of wrapping it on an anonymous object
This commit is contained in:
parent
a3d2ca7ef5
commit
96c2eb6a51
|
@ -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
|
||||
|
|
|
@ -136,4 +136,4 @@ const Trees = {
|
|||
}
|
||||
}
|
||||
|
||||
module.exports = {Trees};
|
||||
module.exports = Trees;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue