Expand description
@generated by gen_nodes.py from include/hermes/AST/ESTree.def — DO NOT EDIT.
Run python3 rust/crates/ast/gen_nodes.py to regenerate.
Modules§
- builder
- Per-kind node builders: clone a node with (optionally) one
structural-child field changed. The rebuild primitive used by
Node::visit_children_mut.
Structs§
- AnyType
Annotation - The
AnyTypeAnnotationAST node. - Array
Expression - The
ArrayExpressionAST node. - Array
Pattern - The
ArrayPatternAST node. - Array
Type Annotation - The
ArrayTypeAnnotationAST node. - Arrow
Function Expression - The
ArrowFunctionExpressionAST node. - AsConst
Expression - The
AsConstExpressionAST node. - AsExpression
- The
AsExpressionAST node. - Assignment
Expression - The
AssignmentExpressionAST node. - Assignment
Pattern - The
AssignmentPatternAST node. - Await
Expression - The
AwaitExpressionAST node. - BigInt
Literal - The
BigIntLiteralAST node. - BigInt
Literal Type Annotation - The
BigIntLiteralTypeAnnotationAST node. - BigInt
Type Annotation - The
BigIntTypeAnnotationAST node. - Binary
Expression - The
BinaryExpressionAST node. - Block
Statement - The
BlockStatementAST node. - Boolean
Literal - The
BooleanLiteralAST node. - Boolean
Literal Type Annotation - The
BooleanLiteralTypeAnnotationAST node. - Boolean
Type Annotation - The
BooleanTypeAnnotationAST node. - Break
Statement - The
BreakStatementAST node. - Call
Expression - The
CallExpressionAST node. - Catch
Clause - The
CatchClauseAST node. - Class
Body - The
ClassBodyAST node. - Class
Declaration - The
ClassDeclarationAST node. - Class
Expression - The
ClassExpressionAST node. - Class
Implements - The
ClassImplementsAST node. - Class
Private Property - The
ClassPrivatePropertyAST node. - Class
Property - The
ClassPropertyAST node. - Component
Declaration - The
ComponentDeclarationAST node. - Component
Parameter - The
ComponentParameterAST node. - Component
Type Annotation - The
ComponentTypeAnnotationAST node. - Component
Type Parameter - The
ComponentTypeParameterAST node. - Conditional
Expression - The
ConditionalExpressionAST node. - Conditional
Type Annotation - The
ConditionalTypeAnnotationAST node. - Continue
Statement - The
ContinueStatementAST node. - Cover
Empty Args - The
CoverEmptyArgsAST node. - Cover
Initializer - The
CoverInitializerAST node. - Cover
Rest Element - The
CoverRestElementAST node. - Cover
Trailing Comma - The
CoverTrailingCommaAST node. - Cover
Typed Identifier - The
CoverTypedIdentifierAST node. - Debugger
Statement - The
DebuggerStatementAST node. - Declare
Class - The
DeclareClassAST node. - Declare
Component - The
DeclareComponentAST node. - Declare
Enum - The
DeclareEnumAST node. - Declare
Export AllDeclaration - The
DeclareExportAllDeclarationAST node. - Declare
Export Declaration - The
DeclareExportDeclarationAST node. - Declare
Function - The
DeclareFunctionAST node. - Declare
Hook - The
DeclareHookAST node. - Declare
Interface - The
DeclareInterfaceAST node. - Declare
Module - The
DeclareModuleAST node. - Declare
Module Exports - The
DeclareModuleExportsAST node. - Declare
Namespace - The
DeclareNamespaceAST node. - Declare
Opaque Type - The
DeclareOpaqueTypeAST node. - Declare
Type Alias - The
DeclareTypeAliasAST node. - Declare
Variable - The
DeclareVariableAST node. - Declared
Predicate - The
DeclaredPredicateAST node. - Decorator
- The
DecoratorAST node. - Directive
- The
DirectiveAST node. - Directive
Literal - The
DirectiveLiteralAST node. - DoWhile
Statement - The
DoWhileStatementAST node. - Empty
- The
EmptyAST node. - Empty
Statement - The
EmptyStatementAST node. - Empty
Type Annotation - The
EmptyTypeAnnotationAST node. - Enum
BigInt Body - The
EnumBigIntBodyAST node. - Enum
BigInt Member - The
EnumBigIntMemberAST node. - Enum
Boolean Body - The
EnumBooleanBodyAST node. - Enum
Boolean Member - The
EnumBooleanMemberAST node. - Enum
Declaration - The
EnumDeclarationAST node. - Enum
Defaulted Member - The
EnumDefaultedMemberAST node. - Enum
Number Body - The
EnumNumberBodyAST node. - Enum
Number Member - The
EnumNumberMemberAST node. - Enum
String Body - The
EnumStringBodyAST node. - Enum
String Member - The
EnumStringMemberAST node. - Enum
Symbol Body - The
EnumSymbolBodyAST node. - Exists
Type Annotation - The
ExistsTypeAnnotationAST node. - Export
AllDeclaration - The
ExportAllDeclarationAST node. - Export
Default Declaration - The
ExportDefaultDeclarationAST node. - Export
Named Declaration - The
ExportNamedDeclarationAST node. - Export
Namespace Specifier - The
ExportNamespaceSpecifierAST node. - Export
Specifier - The
ExportSpecifierAST node. - Expression
Statement - The
ExpressionStatementAST node. - ForIn
Statement - The
ForInStatementAST node. - ForOf
Statement - The
ForOfStatementAST node. - ForStatement
- The
ForStatementAST node. - Function
Declaration - The
FunctionDeclarationAST node. - Function
Expression - The
FunctionExpressionAST node. - Function
Type Annotation - The
FunctionTypeAnnotationAST node. - Function
Type Param - The
FunctionTypeParamAST node. - Generic
Type Annotation - The
GenericTypeAnnotationAST node. - Hook
Declaration - The
HookDeclarationAST node. - Hook
Type Annotation - The
HookTypeAnnotationAST node. - Identifier
- The
IdentifierAST node. - IfStatement
- The
IfStatementAST node. - Implicit
Checked Cast - The
ImplicitCheckedCastAST node. - Import
Attribute - The
ImportAttributeAST node. - Import
Declaration - The
ImportDeclarationAST node. - Import
Default Specifier - The
ImportDefaultSpecifierAST node. - Import
Expression - The
ImportExpressionAST node. - Import
Namespace Specifier - The
ImportNamespaceSpecifierAST node. - Import
Specifier - The
ImportSpecifierAST node. - Indexed
Access Type - The
IndexedAccessTypeAST node. - Infer
Type Annotation - The
InferTypeAnnotationAST node. - Inferred
Predicate - The
InferredPredicateAST node. - Interface
Declaration - The
InterfaceDeclarationAST node. - Interface
Extends - The
InterfaceExtendsAST node. - Interface
Type Annotation - The
InterfaceTypeAnnotationAST node. - Intersection
Type Annotation - The
IntersectionTypeAnnotationAST node. - JSXAttribute
- The
JSXAttributeAST node. - JSXClosing
Element - The
JSXClosingElementAST node. - JSXClosing
Fragment - The
JSXClosingFragmentAST node. - JSXElement
- The
JSXElementAST node. - JSXEmpty
Expression - The
JSXEmptyExpressionAST node. - JSXExpression
Container - The
JSXExpressionContainerAST node. - JSXFragment
- The
JSXFragmentAST node. - JSXIdentifier
- The
JSXIdentifierAST node. - JSXMember
Expression - The
JSXMemberExpressionAST node. - JSXNamespaced
Name - The
JSXNamespacedNameAST node. - JSXOpening
Element - The
JSXOpeningElementAST node. - JSXOpening
Fragment - The
JSXOpeningFragmentAST node. - JSXSpread
Attribute - The
JSXSpreadAttributeAST node. - JSXSpread
Child - The
JSXSpreadChildAST node. - JSXString
Literal - The
JSXStringLiteralAST node. - JSXText
- The
JSXTextAST node. - Keyof
Type Annotation - The
KeyofTypeAnnotationAST node. - Labeled
Statement - The
LabeledStatementAST node. - Logical
Expression - The
LogicalExpressionAST node. - Match
Array Pattern - The
MatchArrayPatternAST node. - Match
AsPattern - The
MatchAsPatternAST node. - Match
Binding Pattern - The
MatchBindingPatternAST node. - Match
Expression - The
MatchExpressionAST node. - Match
Expression Case - The
MatchExpressionCaseAST node. - Match
Identifier Pattern - The
MatchIdentifierPatternAST node. - Match
Instance Object Pattern - The
MatchInstanceObjectPatternAST node. - Match
Instance Pattern - The
MatchInstancePatternAST node. - Match
Literal Pattern - The
MatchLiteralPatternAST node. - Match
Member Pattern - The
MatchMemberPatternAST node. - Match
Object Pattern - The
MatchObjectPatternAST node. - Match
Object Pattern Property - The
MatchObjectPatternPropertyAST node. - Match
OrPattern - The
MatchOrPatternAST node. - Match
Rest Pattern - The
MatchRestPatternAST node. - Match
Statement - The
MatchStatementAST node. - Match
Statement Case - The
MatchStatementCaseAST node. - Match
Unary Pattern - The
MatchUnaryPatternAST node. - Match
Wildcard Pattern - The
MatchWildcardPatternAST node. - Member
Expression - The
MemberExpressionAST node. - Meta
Property - The
MetaPropertyAST node. - Metadata
- The
MetadataAST node. - Method
Definition - The
MethodDefinitionAST node. - Mixed
Type Annotation - The
MixedTypeAnnotationAST node. - Never
Type Annotation - The
NeverTypeAnnotationAST node. - NewExpression
- The
NewExpressionAST node. - Null
Literal - The
NullLiteralAST node. - Null
Literal Type Annotation - The
NullLiteralTypeAnnotationAST node. - Nullable
Type Annotation - The
NullableTypeAnnotationAST node. - Number
Literal Type Annotation - The
NumberLiteralTypeAnnotationAST node. - Number
Type Annotation - The
NumberTypeAnnotationAST node. - Numeric
Literal - The
NumericLiteralAST node. - Object
Expression - The
ObjectExpressionAST node. - Object
Pattern - The
ObjectPatternAST node. - Object
Type Annotation - The
ObjectTypeAnnotationAST node. - Object
Type Call Property - The
ObjectTypeCallPropertyAST node. - Object
Type Indexer - The
ObjectTypeIndexerAST node. - Object
Type Internal Slot - The
ObjectTypeInternalSlotAST node. - Object
Type Mapped Type Property - The
ObjectTypeMappedTypePropertyAST node. - Object
Type Property - The
ObjectTypePropertyAST node. - Object
Type Spread Property - The
ObjectTypeSpreadPropertyAST node. - Opaque
Type - The
OpaqueTypeAST node. - Optional
Call Expression - The
OptionalCallExpressionAST node. - Optional
Indexed Access Type - The
OptionalIndexedAccessTypeAST node. - Optional
Member Expression - The
OptionalMemberExpressionAST node. - Private
Name - The
PrivateNameAST node. - Program
- The
ProgramAST node. - Property
- The
PropertyAST node. - Qualified
Type Identifier - The
QualifiedTypeIdentifierAST node. - Qualified
Typeof Identifier - The
QualifiedTypeofIdentifierAST node. - Record
Declaration - The
RecordDeclarationAST node. - Record
Declaration Body - The
RecordDeclarationBodyAST node. - Record
Declaration Implements - The
RecordDeclarationImplementsAST node. - Record
Declaration Property - The
RecordDeclarationPropertyAST node. - Record
Declaration Static Property - The
RecordDeclarationStaticPropertyAST node. - Record
Expression - The
RecordExpressionAST node. - Record
Expression Properties - The
RecordExpressionPropertiesAST node. - RegExp
Literal - The
RegExpLiteralAST node. - Rest
Element - The
RestElementAST node. - Return
Statement - The
ReturnStatementAST node. - SHBuiltin
- The
SHBuiltinAST node. - Sequence
Expression - The
SequenceExpressionAST node. - Spread
Element - The
SpreadElementAST node. - Static
Block - The
StaticBlockAST node. - String
Literal - The
StringLiteralAST node. - String
Literal Type Annotation - The
StringLiteralTypeAnnotationAST node. - String
Type Annotation - The
StringTypeAnnotationAST node. - Super
- The
SuperAST node. - Switch
Case - The
SwitchCaseAST node. - Switch
Statement - The
SwitchStatementAST node. - Symbol
Type Annotation - The
SymbolTypeAnnotationAST node. - TSAny
Keyword - The
TSAnyKeywordAST node. - TSArray
Type - The
TSArrayTypeAST node. - TSAs
Expression - The
TSAsExpressionAST node. - TSBig
IntKeyword - The
TSBigIntKeywordAST node. - TSBoolean
Keyword - The
TSBooleanKeywordAST node. - TSCall
Signature Declaration - The
TSCallSignatureDeclarationAST node. - TSConditional
Type - The
TSConditionalTypeAST node. - TSConstructor
Type - The
TSConstructorTypeAST node. - TSEnum
Declaration - The
TSEnumDeclarationAST node. - TSEnum
Member - The
TSEnumMemberAST node. - TSFunction
Type - The
TSFunctionTypeAST node. - TSIndex
Signature - The
TSIndexSignatureAST node. - TSIndexed
Access Type - The
TSIndexedAccessTypeAST node. - TSInterface
Body - The
TSInterfaceBodyAST node. - TSInterface
Declaration - The
TSInterfaceDeclarationAST node. - TSInterface
Heritage - The
TSInterfaceHeritageAST node. - TSIntersection
Type - The
TSIntersectionTypeAST node. - TSLiteral
Type - The
TSLiteralTypeAST node. - TSMethod
Signature - The
TSMethodSignatureAST node. - TSModifiers
- The
TSModifiersAST node. - TSModule
Block - The
TSModuleBlockAST node. - TSModule
Declaration - The
TSModuleDeclarationAST node. - TSModule
Member - The
TSModuleMemberAST node. - TSNever
Keyword - The
TSNeverKeywordAST node. - TSNumber
Keyword - The
TSNumberKeywordAST node. - TSParameter
Property - The
TSParameterPropertyAST node. - TSProperty
Signature - The
TSPropertySignatureAST node. - TSQualified
Name - The
TSQualifiedNameAST node. - TSString
Keyword - The
TSStringKeywordAST node. - TSSymbol
Keyword - The
TSSymbolKeywordAST node. - TSThis
Type - The
TSThisTypeAST node. - TSTuple
Type - The
TSTupleTypeAST node. - TSType
Alias Declaration - The
TSTypeAliasDeclarationAST node. - TSType
Annotation - The
TSTypeAnnotationAST node. - TSType
Assertion - The
TSTypeAssertionAST node. - TSType
Literal - The
TSTypeLiteralAST node. - TSType
Parameter - The
TSTypeParameterAST node. - TSType
Parameter Declaration - The
TSTypeParameterDeclarationAST node. - TSType
Parameter Instantiation - The
TSTypeParameterInstantiationAST node. - TSType
Predicate - The
TSTypePredicateAST node. - TSType
Query - The
TSTypeQueryAST node. - TSType
Reference - The
TSTypeReferenceAST node. - TSUndefined
Keyword - The
TSUndefinedKeywordAST node. - TSUnion
Type - The
TSUnionTypeAST node. - TSUnknown
Keyword - The
TSUnknownKeywordAST node. - TSVoid
Keyword - The
TSVoidKeywordAST node. - Tagged
Template Expression - The
TaggedTemplateExpressionAST node. - Template
Element - The
TemplateElementAST node. - Template
Literal - The
TemplateLiteralAST node. - This
Expression - The
ThisExpressionAST node. - Throw
Statement - The
ThrowStatementAST node. - TryStatement
- The
TryStatementAST node. - Tuple
Type Annotation - The
TupleTypeAnnotationAST node. - Tuple
Type Labeled Element - The
TupleTypeLabeledElementAST node. - Tuple
Type Spread Element - The
TupleTypeSpreadElementAST node. - Type
Alias - The
TypeAliasAST node. - Type
Annotation - The
TypeAnnotationAST node. - Type
Cast Expression - The
TypeCastExpressionAST node. - Type
Operator - The
TypeOperatorAST node. - Type
Parameter - The
TypeParameterAST node. - Type
Parameter Declaration - The
TypeParameterDeclarationAST node. - Type
Parameter Instantiation - The
TypeParameterInstantiationAST node. - Type
Predicate - The
TypePredicateAST node. - Typeof
Type Annotation - The
TypeofTypeAnnotationAST node. - Unary
Expression - The
UnaryExpressionAST node. - Undefined
Type Annotation - The
UndefinedTypeAnnotationAST node. - Union
Type Annotation - The
UnionTypeAnnotationAST node. - Unknown
Type Annotation - The
UnknownTypeAnnotationAST node. - Update
Expression - The
UpdateExpressionAST node. - Variable
Declaration - The
VariableDeclarationAST node. - Variable
Declarator - The
VariableDeclaratorAST node. - Variance
- The
VarianceAST node. - Void
Type Annotation - The
VoidTypeAnnotationAST node. - While
Statement - The
WhileStatementAST node. - With
Statement - The
WithStatementAST node. - Yield
Expression - The
YieldExpressionAST node.