rename Scope.init to Scope.crawl

This commit is contained in:
Sebastian McKenzie 2015-02-03 22:22:36 +11:00
parent 389914c427
commit f06535e915

View File

@ -30,7 +30,7 @@ function Scope(block, parentBlock, parent, file) {
this.parentBlock = parentBlock;
this.block = block;
this.init();
this.crawl();
}
Scope.defaultDeclarations = flatten([globals.builtin, globals.browser, globals.node].map(Object.keys));
@ -246,7 +246,7 @@ var blockVariableVisitor = {
}
};
Scope.prototype.init = function () {
Scope.prototype.crawl = function () {
var parent = this.parent;
var block = this.block;
var i;