Structs§
- Ancestor
Iterator - Array
Lit - Array literal.
- Array
Pat - Arrow
Expr - Assign
Expr - Assign
Pat - Assign
PatProp {key}
or{key = value}
- Assign
Prop - Auto
Accessor - Await
Expr - BigInt
- BinExpr
- Binding
Ident - Identifier used as a pattern.
- Block
Stmt - Use when only block statements are allowed.
- Bool
- A boolean literal.
- Break
Stmt - Call
Expr - Catch
Clause - Class
- Class
Decl - Class
Expr - Class expression.
- Class
Method - Class
Prop - Comments
- Computed
Prop Name - Cond
Expr - Constructor
- Continue
Stmt - Debugger
Stmt - Decorator
- DoWhile
Stmt - Empty
Stmt - Export
All export * from 'mod'
- Export
Decl - Export
Default Decl - Export
Default Expr - Default exports other than direct function expression or class expression.
- Export
Default Specifier - Export
Named Specifier - Export
Namespace Specifier export * as foo from 'src';
- Expr
OrSpread - Expr
Stmt - FnDecl
- FnExpr
- Function expression.
- ForIn
Stmt - ForOf
Stmt - ForStmt
- Function
- Common parts of function and method.
- Getter
Prop - Ident
- A complete identifier with span.
- Ident
Name - IfStmt
- Import
- Import
Decl - Import
Default Specifier - e.g.
import foo from 'mod.js'
- Import
Named Specifier - e.g. local = foo, imported = None
import { foo } from 'mod.js'
e.g. local = bar, imported = Some(foo) forimport { foo as bar } from 'mod.js'
- Import
Star AsSpecifier - e.g.
import * as foo from 'mod.js'
. - Invalid
- Represents a invalid node.
- JSXAttr
- JSXClosing
Element - JSXClosing
Fragment - JSXElement
- JSXEmpty
Expr - JSXExpr
Container - JSXFragment
- JSXMember
Expr - JSXNamespaced
Name - XML-based namespace syntax:
- JSXOpening
Element - JSXOpening
Fragment - JSXSpread
Child - JSXText
- KeyValue
PatProp {key: value}
- KeyValue
Prop - Labeled
Stmt - Member
Expr - Meta
Prop Expr - Method
Prop - Module
- Module
Info - Named
Export export { foo } from 'mod'
export { foo as bar } from 'mod'
- NewExpr
- Null
- Number
- A numeric literal.
- Object
Lit - Object literal.
- Object
Pat - OptCall
- OptChain
Expr - Param
- Paren
Expr - Private
Method - Private
Name - Private
Prop - Program
Info - Regex
- RestPat
- EsTree
RestElement
- Return
Stmt - Script
- Script
Info - SeqExpr
- Setter
Prop - Spread
Element - Static
Block - Str
- A string literal.
- Super
- Super
Prop Expr - Switch
Case - Switch
Stmt - Tagged
Tpl - This
Expr - Throw
Stmt - Tpl
- TplElement
- TryStmt
- TsArray
Type - TsAs
Expr - TsCall
Signature Decl - TsConditional
Type - TsConst
Assertion - TsConstruct
Signature Decl - TsConstructor
Type - TsEnum
Decl - TsEnum
Member - TsExport
Assignment - TypeScript’s own parser uses ExportAssignment for both
export default
andexport =
. But for @babel/parser,export default
is an ExportDefaultDecl, so a TsExportAssignment is alwaysexport =
. - TsExpr
With Type Args - TsExternal
Module Ref - TsFn
Type - TsGetter
Signature - TsImport
Equals Decl - TsImport
Type - TsIndex
Signature - TsIndexed
Access Type - TsInfer
Type - TsInstantiation
- TsInterface
Body - TsInterface
Decl - TsIntersection
Type - TsKeyword
Type - TsLit
Type - TsMapped
Type - TsMethod
Signature - TsModule
Block - TsModule
Decl - TsNamespace
Decl - TsNamespace
Export Decl - TsNon
Null Expr - TsOptional
Type - TsParam
Prop - TsParenthesized
Type - TsProperty
Signature - TsQualified
Name - TsRest
Type - TsSatisfies
Expr - TsSetter
Signature - TsThis
Type - TsTpl
LitType - TsTuple
Element - TsTuple
Type - TsType
Alias Decl - TsType
Ann - TsType
Assertion - TsType
Lit - TsType
Operator - TsType
Param - TsType
Param Decl - TsType
Param Instantiation - TsType
Predicate - TsType
Query typeof
operator- TsType
Ref - TsUnion
Type - Unary
Expr - Update
Expr - Using
Decl - VarDecl
- VarDeclarator
- While
Stmt - With
Stmt - Yield
Expr
Enums§
- Accessibility
- Assign
Op - Assign
Target - Assign
Target Pat - Binary
Op - Block
Stmt OrExpr - Callee
- Class
Member - Decl
- Default
Decl - EsVersion
- Note: This type implements
Serailize
andDeserialize
ifserde
is enabled, instead of requiringserde-impl
feature. - Export
Specifier - Expr
- ForHead
- A head for for-in and for-of loop.
- Import
Phase - Import
Specifier - JSXAttr
Name - JSXAttr
OrSpread - JSXAttr
Value - JSXElement
Child - JSXElement
Name - JSXExpr
- JSXObject
- Used for
obj
property ofJSXMemberExpr
. - Key
- Either a private name or a public name.
- Lit
- Member
Prop - Meta
Prop Kind - Method
Kind - Module
Decl - Module
Export Name - Module
Item - Node
- Node
Kind - Node
OrToken - Object
PatProp - OptChain
Base - Param
OrTs Param Prop - Pat
- Program
- A Module or Script node.
- Program
Ref - Prop
- Prop
Name - Prop
OrSpread - Simple
Assign Target - Stmt
- Super
Prop - True
Plus Minus - TsEntity
Name - TsEnum
Member Id - Invalid: Ident with empty symbol.
- TsFn
OrConstructor Type - TsFn
Param - TsKeyword
Type Kind - TsLit
- TsModule
Name - TsModule
Ref - TsNamespace
Body namespace A.B { }
is a namespace namedA
with another TsNamespaceDecl as its body.- TsParam
Prop Param - TsThis
Type OrIdent - TsType
- TsType
Element - TsType
Operator Op - TsType
Query Expr - TsUnion
OrIntersection Type - UnaryOp
- Update
Op - VarDecl
Kind - VarDecl
OrExpr