Don't consider flow types as bindings

This commit is contained in:
Amjad Masad
2016-03-10 11:47:33 -08:00
parent 986ac9950a
commit 342f9d5eb5
4 changed files with 9 additions and 0 deletions

View File

@@ -48,6 +48,9 @@ let collectorVisitor = {
// this will be hit again once we traverse into it after this iteration
if (path.isExportDeclaration() && path.get("declaration").isDeclaration()) return;
// Skip flow declarations
if (path.isFlow()) return;
// we've ran into a declaration!
path.scope.getFunctionParent().registerDeclaration(path);
},