clean up parameter names in Scope constructor
This commit is contained in:
parent
8dd292075a
commit
63cd3008d2
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user