update scope to use new traversal api
This commit is contained in:
parent
fac4a61245
commit
9a633ebd9c
@ -93,7 +93,7 @@ Scope.prototype.getInfo = function () {
|
|||||||
|
|
||||||
// this block is a function so we'll stop since none of the variables
|
// this block is a function so we'll stop since none of the variables
|
||||||
// declared within are accessible
|
// declared within are accessible
|
||||||
if (t.isFunction(node)) return false;
|
if (t.isFunction(node)) return this.stop();
|
||||||
|
|
||||||
// function identifier doesn't belong to this scope
|
// function identifier doesn't belong to this scope
|
||||||
if (block.id && node === block.id) return;
|
if (block.id && node === block.id) return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user