Constructors
constructor
Defined in node_modules/@types/babel__traverse/index.d.ts:35
Parameters
Optional parentScope: Scope
Properties
bindings
bindings: {}
Defined in node_modules/@types/babel__traverse/index.d.ts:42
block
Defined in node_modules/@types/babel__traverse/index.d.ts:38
hub
Defined in node_modules/@types/babel__traverse/index.d.ts:41
parent
Defined in node_modules/@types/babel__traverse/index.d.ts:40
parentBlock
Defined in node_modules/@types/babel__traverse/index.d.ts:39
path
Defined in node_modules/@types/babel__traverse/index.d.ts:37
Methods
addGlobal
addGlobal( node: Node ) : void
Defined in node_modules/@types/babel__traverse/index.d.ts:90
Parameters
Returns void
bindingIdentifierEquals
bindingIdentifierEquals( name: string , node: Node ) : boolean
Defined in node_modules/@types/babel__traverse/index.d.ts:122
Parameters
Returns boolean
buildUndefinedNode
buildUndefinedNode( ) : Node
Defined in node_modules/@types/babel__traverse/index.d.ts:84
checkBlockScopedCollisions
checkBlockScopedCollisions( local: Node , kind: string , name: string , id: object ) : void
Defined in node_modules/@types/babel__traverse/index.d.ts:74
Parameters
kind: string
name: string
id: object
Returns void
dump
Defined in node_modules/@types/babel__traverse/index.d.ts:78
Returns void
generateDeclaredUidIdentifier
generateDeclaredUidIdentifier( name?: undefined | string ) : Identifier
Defined in node_modules/@types/babel__traverse/index.d.ts:49
Parameters
Optional name: undefined | string
generateUid
generateUid( name?: undefined | string ) : string
Defined in node_modules/@types/babel__traverse/index.d.ts:55
Parameters
Optional name: undefined | string
Returns string
generateUidIdentifier
generateUidIdentifier( name?: undefined | string ) : Identifier
Defined in node_modules/@types/babel__traverse/index.d.ts:52
Parameters
Optional name: undefined | string
generateUidIdentifierBasedOnNode
generateUidIdentifierBasedOnNode( parent: Node , defaultName?: undefined | string ) : Identifier
Defined in node_modules/@types/babel__traverse/index.d.ts:58
Parameters
Optional defaultName: undefined | string
getAllBindings
getAllBindings( ... kinds: string [] ) : object
Defined in node_modules/@types/babel__traverse/index.d.ts:120
Parameters
Returns object
getBinding
getBinding( name: string ) : Binding | undefined
Defined in node_modules/@types/babel__traverse/index.d.ts:124
Parameters
Returns Binding | undefined
getBindingIdentifier
Defined in node_modules/@types/babel__traverse/index.d.ts:128
Parameters
getBlockParent
Defined in node_modules/@types/babel__traverse/index.d.ts:117
getData
getData( key: string ) : any
Defined in node_modules/@types/babel__traverse/index.d.ts:102
Parameters
Returns any
getFunctionParent
getFunctionParent( ) : Scope | null
Defined in node_modules/@types/babel__traverse/index.d.ts:115
Returns Scope | null
getOwnBinding
getOwnBinding( name: string ) : Binding | undefined
Defined in node_modules/@types/babel__traverse/index.d.ts:126
Parameters
Returns Binding | undefined
getOwnBindingIdentifier
Defined in node_modules/@types/babel__traverse/index.d.ts:130
Parameters
getProgramParent
getProgramParent( ) : Scope
Defined in node_modules/@types/babel__traverse/index.d.ts:113
hasBinding
hasBinding( name: string , noGlobals?: undefined | false | true ) : boolean
Defined in node_modules/@types/babel__traverse/index.d.ts:134
Parameters
name: string
Optional noGlobals: undefined | false | true
Returns boolean
hasGlobal
hasGlobal( name: string ) : boolean
Defined in node_modules/@types/babel__traverse/index.d.ts:94
Parameters
Returns boolean
hasOwnBinding
hasOwnBinding( name: string ) : boolean
Defined in node_modules/@types/babel__traverse/index.d.ts:132
Parameters
Returns boolean
hasReference
hasReference( name: string ) : boolean
Defined in node_modules/@types/babel__traverse/index.d.ts:96
Parameters
Returns boolean
hasUid
hasUid( name: string ) : boolean
Defined in node_modules/@types/babel__traverse/index.d.ts:92
Parameters
Returns boolean
isPure
isPure( node: Node , constantsOnly?: undefined | false | true ) : boolean
Defined in node_modules/@types/babel__traverse/index.d.ts:98
Parameters
Optional constantsOnly: undefined | false | true
Returns boolean
isStatic
isStatic( node: Node ) : boolean
Defined in node_modules/@types/babel__traverse/index.d.ts:69
Parameters
Returns boolean
maybeGenerateMemoised
maybeGenerateMemoised( node: Node , dontPush?: undefined | false | true ) : Identifier
Defined in node_modules/@types/babel__traverse/index.d.ts:72
Parameters
Optional dontPush: undefined | false | true
moveBindingTo
moveBindingTo( name: string , scope: Scope ) : void
Defined in node_modules/@types/babel__traverse/index.d.ts:139
Parameters
Returns void
parentHasBinding
parentHasBinding( name: string , noGlobals?: undefined | false | true ) : boolean
Defined in node_modules/@types/babel__traverse/index.d.ts:136
Parameters
name: string
Optional noGlobals: undefined | false | true
Returns boolean
push
push( opts: { id: t.LVal ; init?: t.Expression ; kind?: "var" | "let" | "const" ; unique?: undefined | false | true } ) : void
Defined in node_modules/@types/babel__traverse/index.d.ts:106
Parameters
opts: { id: t.LVal ; init?: t.Expression ; kind?: "var" | "let" | "const" ; unique?: undefined | false | true }
id: t.LVal
Optional init?: t.Expression
Optional kind?: "var" | "let" | "const"
Optional unique?: undefined | false | true
Returns void
registerBinding
Defined in node_modules/@types/babel__traverse/index.d.ts:88
Parameters
kind: string
Optional bindingPath: NodePath
Returns void
registerConstantViolation
registerConstantViolation( path: NodePath ) : void
Defined in node_modules/@types/babel__traverse/index.d.ts:86
Parameters
Returns void
registerDeclaration
registerDeclaration( path: NodePath ) : void
Defined in node_modules/@types/babel__traverse/index.d.ts:82
Parameters
Returns void
removeBinding
removeBinding( name: string ) : void
Defined in node_modules/@types/babel__traverse/index.d.ts:143
Parameters
Returns void
removeData
removeData( key: string ) : void
Defined in node_modules/@types/babel__traverse/index.d.ts:104
Parameters
Returns void
removeOwnBinding
removeOwnBinding( name: string ) : void
Defined in node_modules/@types/babel__traverse/index.d.ts:141
Parameters
Returns void
rename
rename( oldName: string , newName?: undefined | string , block?: Node ) : void
Defined in node_modules/@types/babel__traverse/index.d.ts:76
Parameters
oldName: string
Optional newName: undefined | string
Optional block: Node
Returns void
setData
setData( key: string , val: any ) : any
Defined in node_modules/@types/babel__traverse/index.d.ts:100
Parameters
Returns any
toArray
toArray( node: Node , i?: undefined | number ) : Node
Defined in node_modules/@types/babel__traverse/index.d.ts:80
Parameters
Optional i: undefined | number
traverse
Defined in node_modules/@types/babel__traverse/index.d.ts:45
Type parameters
Parameters
Returns void
Defined in node_modules/@types/babel__traverse/index.d.ts:46
Parameters
Returns void
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Generate a unique identifier and add it to the current scope.