Collect Flow bindings in a given scope
import type foo from "mod";
type baz<bar> = {};
import {getFlowBindingsInScope} from 'babel-flow-scope';
getFlowBindingsInScope(path);
// {
// foo: {
// kind: 'import',
// path: (Identifier)
// },
// bar: {
// kind: 'param',
// path: (TypeParameter)
// },
// baz: {
// kind: 'declaration',
// path: (Identifier)
// }
// }
Find the closest path to a Flow scope.
Retreive all the Flow bindings in the local Flow scope.
Search for a binding in the current scope and parent scopes.