Refactored dependency handling

Now each class of dependency can be tracked individually
This commit is contained in:
Jeremy Ruston
2012-02-07 19:03:59 +00:00
parent 10774a724f
commit 95ab295fbb
11 changed files with 111 additions and 64 deletions

View File

@@ -29,7 +29,7 @@ JSONRenderer.prototype.toString = function(type) {
// The parse tree is degenerate
var JSONParseTree = function(tree) {
this.tree = tree;
this.dependencies = [];
this.dependencies = {};
};
JSONParseTree.prototype.compile = function(type) {