register function declarations anyway as we may not have hit them
This commit is contained in:
parent
b6c35743e6
commit
556e58a4ab
@ -79,7 +79,6 @@ var collectorVisitor = {
|
||||
},
|
||||
|
||||
BlockScoped(node, parent, scope) {
|
||||
if (this.isFunctionDeclaration()) return;
|
||||
if (scope.path === this) scope = scope.parent;
|
||||
scope.getBlockParent().registerDeclaration(this);
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user