Static contextVariables available in current context.
Static globalsGenerate a unique identifier and add it to the current scope.
Optional name: stringGenerate a unique identifier.
Optional name: stringGenerate a unique identifier based on a node.
Optional defaultName: stringOptional constantsOnly: booleanDetermine whether evaluating the specific input node is a consequenceless reference. ie.
evaluating it wont result in potentially arbitrary code from being ran. The following are
whitelisted and determined not to cause side effects:
this expressionssuper expressionsPossibly generate a memoised identifier if it is not static and has consequences.
Optional dontPush: booleanMove a binding of name to another scope.
Optional _blockOptional init?: ExpressionOptional kind?: "var" | "let" | "const"Optional unique?: booleanOptional bindingPath: NodePath<Node>Optional newName: stringOptional block: NodeOptional i: number | booleanOptional arrayLikeIsIterable: booleanTraverse node with current scope and path.
Optional opts: TraverseOptions<Node>Optional state: any
This searches the current "scope" and collects all references/bindings within.