clean up parameter names in Scope constructor

This commit is contained in:
Sebastian McKenzie 2015-11-06 20:42:16 -05:00
parent 8dd292075a
commit 63cd3008d2

View File

@ -157,15 +157,15 @@ export default class Scope {
* within. * within.
*/ */
constructor(path: NodePath, parent?: Scope) { constructor(path: NodePath, parentScope?: Scope) {
if (parent && parent.block === path.node) { if (parentScope && parent.block === path.node) {
return parent; return parentScope;
} }
let cached = getCache(path.node, parent); let cached = getCache(path.node, parentScope, this);
if (cached) return cached; if (cached) return cached;
this.parent = parent; this.parent = parentScope;
this.hub = path.hub; this.hub = path.hub;
this.parentBlock = path.parent; this.parentBlock = path.parent;