Skip to main content

Module node

Module node 

Source
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§

AnyTypeAnnotation
The AnyTypeAnnotation AST node.
ArrayExpression
The ArrayExpression AST node.
ArrayPattern
The ArrayPattern AST node.
ArrayTypeAnnotation
The ArrayTypeAnnotation AST node.
ArrowFunctionExpression
The ArrowFunctionExpression AST node.
AsConstExpression
The AsConstExpression AST node.
AsExpression
The AsExpression AST node.
AssignmentExpression
The AssignmentExpression AST node.
AssignmentPattern
The AssignmentPattern AST node.
AwaitExpression
The AwaitExpression AST node.
BigIntLiteral
The BigIntLiteral AST node.
BigIntLiteralTypeAnnotation
The BigIntLiteralTypeAnnotation AST node.
BigIntTypeAnnotation
The BigIntTypeAnnotation AST node.
BinaryExpression
The BinaryExpression AST node.
BlockStatement
The BlockStatement AST node.
BooleanLiteral
The BooleanLiteral AST node.
BooleanLiteralTypeAnnotation
The BooleanLiteralTypeAnnotation AST node.
BooleanTypeAnnotation
The BooleanTypeAnnotation AST node.
BreakStatement
The BreakStatement AST node.
CallExpression
The CallExpression AST node.
CatchClause
The CatchClause AST node.
ClassBody
The ClassBody AST node.
ClassDeclaration
The ClassDeclaration AST node.
ClassExpression
The ClassExpression AST node.
ClassImplements
The ClassImplements AST node.
ClassPrivateProperty
The ClassPrivateProperty AST node.
ClassProperty
The ClassProperty AST node.
ComponentDeclaration
The ComponentDeclaration AST node.
ComponentParameter
The ComponentParameter AST node.
ComponentTypeAnnotation
The ComponentTypeAnnotation AST node.
ComponentTypeParameter
The ComponentTypeParameter AST node.
ConditionalExpression
The ConditionalExpression AST node.
ConditionalTypeAnnotation
The ConditionalTypeAnnotation AST node.
ContinueStatement
The ContinueStatement AST node.
CoverEmptyArgs
The CoverEmptyArgs AST node.
CoverInitializer
The CoverInitializer AST node.
CoverRestElement
The CoverRestElement AST node.
CoverTrailingComma
The CoverTrailingComma AST node.
CoverTypedIdentifier
The CoverTypedIdentifier AST node.
DebuggerStatement
The DebuggerStatement AST node.
DeclareClass
The DeclareClass AST node.
DeclareComponent
The DeclareComponent AST node.
DeclareEnum
The DeclareEnum AST node.
DeclareExportAllDeclaration
The DeclareExportAllDeclaration AST node.
DeclareExportDeclaration
The DeclareExportDeclaration AST node.
DeclareFunction
The DeclareFunction AST node.
DeclareHook
The DeclareHook AST node.
DeclareInterface
The DeclareInterface AST node.
DeclareModule
The DeclareModule AST node.
DeclareModuleExports
The DeclareModuleExports AST node.
DeclareNamespace
The DeclareNamespace AST node.
DeclareOpaqueType
The DeclareOpaqueType AST node.
DeclareTypeAlias
The DeclareTypeAlias AST node.
DeclareVariable
The DeclareVariable AST node.
DeclaredPredicate
The DeclaredPredicate AST node.
Decorator
The Decorator AST node.
Directive
The Directive AST node.
DirectiveLiteral
The DirectiveLiteral AST node.
DoWhileStatement
The DoWhileStatement AST node.
Empty
The Empty AST node.
EmptyStatement
The EmptyStatement AST node.
EmptyTypeAnnotation
The EmptyTypeAnnotation AST node.
EnumBigIntBody
The EnumBigIntBody AST node.
EnumBigIntMember
The EnumBigIntMember AST node.
EnumBooleanBody
The EnumBooleanBody AST node.
EnumBooleanMember
The EnumBooleanMember AST node.
EnumDeclaration
The EnumDeclaration AST node.
EnumDefaultedMember
The EnumDefaultedMember AST node.
EnumNumberBody
The EnumNumberBody AST node.
EnumNumberMember
The EnumNumberMember AST node.
EnumStringBody
The EnumStringBody AST node.
EnumStringMember
The EnumStringMember AST node.
EnumSymbolBody
The EnumSymbolBody AST node.
ExistsTypeAnnotation
The ExistsTypeAnnotation AST node.
ExportAllDeclaration
The ExportAllDeclaration AST node.
ExportDefaultDeclaration
The ExportDefaultDeclaration AST node.
ExportNamedDeclaration
The ExportNamedDeclaration AST node.
ExportNamespaceSpecifier
The ExportNamespaceSpecifier AST node.
ExportSpecifier
The ExportSpecifier AST node.
ExpressionStatement
The ExpressionStatement AST node.
ForInStatement
The ForInStatement AST node.
ForOfStatement
The ForOfStatement AST node.
ForStatement
The ForStatement AST node.
FunctionDeclaration
The FunctionDeclaration AST node.
FunctionExpression
The FunctionExpression AST node.
FunctionTypeAnnotation
The FunctionTypeAnnotation AST node.
FunctionTypeParam
The FunctionTypeParam AST node.
GenericTypeAnnotation
The GenericTypeAnnotation AST node.
HookDeclaration
The HookDeclaration AST node.
HookTypeAnnotation
The HookTypeAnnotation AST node.
Identifier
The Identifier AST node.
IfStatement
The IfStatement AST node.
ImplicitCheckedCast
The ImplicitCheckedCast AST node.
ImportAttribute
The ImportAttribute AST node.
ImportDeclaration
The ImportDeclaration AST node.
ImportDefaultSpecifier
The ImportDefaultSpecifier AST node.
ImportExpression
The ImportExpression AST node.
ImportNamespaceSpecifier
The ImportNamespaceSpecifier AST node.
ImportSpecifier
The ImportSpecifier AST node.
IndexedAccessType
The IndexedAccessType AST node.
InferTypeAnnotation
The InferTypeAnnotation AST node.
InferredPredicate
The InferredPredicate AST node.
InterfaceDeclaration
The InterfaceDeclaration AST node.
InterfaceExtends
The InterfaceExtends AST node.
InterfaceTypeAnnotation
The InterfaceTypeAnnotation AST node.
IntersectionTypeAnnotation
The IntersectionTypeAnnotation AST node.
JSXAttribute
The JSXAttribute AST node.
JSXClosingElement
The JSXClosingElement AST node.
JSXClosingFragment
The JSXClosingFragment AST node.
JSXElement
The JSXElement AST node.
JSXEmptyExpression
The JSXEmptyExpression AST node.
JSXExpressionContainer
The JSXExpressionContainer AST node.
JSXFragment
The JSXFragment AST node.
JSXIdentifier
The JSXIdentifier AST node.
JSXMemberExpression
The JSXMemberExpression AST node.
JSXNamespacedName
The JSXNamespacedName AST node.
JSXOpeningElement
The JSXOpeningElement AST node.
JSXOpeningFragment
The JSXOpeningFragment AST node.
JSXSpreadAttribute
The JSXSpreadAttribute AST node.
JSXSpreadChild
The JSXSpreadChild AST node.
JSXStringLiteral
The JSXStringLiteral AST node.
JSXText
The JSXText AST node.
KeyofTypeAnnotation
The KeyofTypeAnnotation AST node.
LabeledStatement
The LabeledStatement AST node.
LogicalExpression
The LogicalExpression AST node.
MatchArrayPattern
The MatchArrayPattern AST node.
MatchAsPattern
The MatchAsPattern AST node.
MatchBindingPattern
The MatchBindingPattern AST node.
MatchExpression
The MatchExpression AST node.
MatchExpressionCase
The MatchExpressionCase AST node.
MatchIdentifierPattern
The MatchIdentifierPattern AST node.
MatchInstanceObjectPattern
The MatchInstanceObjectPattern AST node.
MatchInstancePattern
The MatchInstancePattern AST node.
MatchLiteralPattern
The MatchLiteralPattern AST node.
MatchMemberPattern
The MatchMemberPattern AST node.
MatchObjectPattern
The MatchObjectPattern AST node.
MatchObjectPatternProperty
The MatchObjectPatternProperty AST node.
MatchOrPattern
The MatchOrPattern AST node.
MatchRestPattern
The MatchRestPattern AST node.
MatchStatement
The MatchStatement AST node.
MatchStatementCase
The MatchStatementCase AST node.
MatchUnaryPattern
The MatchUnaryPattern AST node.
MatchWildcardPattern
The MatchWildcardPattern AST node.
MemberExpression
The MemberExpression AST node.
MetaProperty
The MetaProperty AST node.
Metadata
The Metadata AST node.
MethodDefinition
The MethodDefinition AST node.
MixedTypeAnnotation
The MixedTypeAnnotation AST node.
NeverTypeAnnotation
The NeverTypeAnnotation AST node.
NewExpression
The NewExpression AST node.
NullLiteral
The NullLiteral AST node.
NullLiteralTypeAnnotation
The NullLiteralTypeAnnotation AST node.
NullableTypeAnnotation
The NullableTypeAnnotation AST node.
NumberLiteralTypeAnnotation
The NumberLiteralTypeAnnotation AST node.
NumberTypeAnnotation
The NumberTypeAnnotation AST node.
NumericLiteral
The NumericLiteral AST node.
ObjectExpression
The ObjectExpression AST node.
ObjectPattern
The ObjectPattern AST node.
ObjectTypeAnnotation
The ObjectTypeAnnotation AST node.
ObjectTypeCallProperty
The ObjectTypeCallProperty AST node.
ObjectTypeIndexer
The ObjectTypeIndexer AST node.
ObjectTypeInternalSlot
The ObjectTypeInternalSlot AST node.
ObjectTypeMappedTypeProperty
The ObjectTypeMappedTypeProperty AST node.
ObjectTypeProperty
The ObjectTypeProperty AST node.
ObjectTypeSpreadProperty
The ObjectTypeSpreadProperty AST node.
OpaqueType
The OpaqueType AST node.
OptionalCallExpression
The OptionalCallExpression AST node.
OptionalIndexedAccessType
The OptionalIndexedAccessType AST node.
OptionalMemberExpression
The OptionalMemberExpression AST node.
PrivateName
The PrivateName AST node.
Program
The Program AST node.
Property
The Property AST node.
QualifiedTypeIdentifier
The QualifiedTypeIdentifier AST node.
QualifiedTypeofIdentifier
The QualifiedTypeofIdentifier AST node.
RecordDeclaration
The RecordDeclaration AST node.
RecordDeclarationBody
The RecordDeclarationBody AST node.
RecordDeclarationImplements
The RecordDeclarationImplements AST node.
RecordDeclarationProperty
The RecordDeclarationProperty AST node.
RecordDeclarationStaticProperty
The RecordDeclarationStaticProperty AST node.
RecordExpression
The RecordExpression AST node.
RecordExpressionProperties
The RecordExpressionProperties AST node.
RegExpLiteral
The RegExpLiteral AST node.
RestElement
The RestElement AST node.
ReturnStatement
The ReturnStatement AST node.
SHBuiltin
The SHBuiltin AST node.
SequenceExpression
The SequenceExpression AST node.
SpreadElement
The SpreadElement AST node.
StaticBlock
The StaticBlock AST node.
StringLiteral
The StringLiteral AST node.
StringLiteralTypeAnnotation
The StringLiteralTypeAnnotation AST node.
StringTypeAnnotation
The StringTypeAnnotation AST node.
Super
The Super AST node.
SwitchCase
The SwitchCase AST node.
SwitchStatement
The SwitchStatement AST node.
SymbolTypeAnnotation
The SymbolTypeAnnotation AST node.
TSAnyKeyword
The TSAnyKeyword AST node.
TSArrayType
The TSArrayType AST node.
TSAsExpression
The TSAsExpression AST node.
TSBigIntKeyword
The TSBigIntKeyword AST node.
TSBooleanKeyword
The TSBooleanKeyword AST node.
TSCallSignatureDeclaration
The TSCallSignatureDeclaration AST node.
TSConditionalType
The TSConditionalType AST node.
TSConstructorType
The TSConstructorType AST node.
TSEnumDeclaration
The TSEnumDeclaration AST node.
TSEnumMember
The TSEnumMember AST node.
TSFunctionType
The TSFunctionType AST node.
TSIndexSignature
The TSIndexSignature AST node.
TSIndexedAccessType
The TSIndexedAccessType AST node.
TSInterfaceBody
The TSInterfaceBody AST node.
TSInterfaceDeclaration
The TSInterfaceDeclaration AST node.
TSInterfaceHeritage
The TSInterfaceHeritage AST node.
TSIntersectionType
The TSIntersectionType AST node.
TSLiteralType
The TSLiteralType AST node.
TSMethodSignature
The TSMethodSignature AST node.
TSModifiers
The TSModifiers AST node.
TSModuleBlock
The TSModuleBlock AST node.
TSModuleDeclaration
The TSModuleDeclaration AST node.
TSModuleMember
The TSModuleMember AST node.
TSNeverKeyword
The TSNeverKeyword AST node.
TSNumberKeyword
The TSNumberKeyword AST node.
TSParameterProperty
The TSParameterProperty AST node.
TSPropertySignature
The TSPropertySignature AST node.
TSQualifiedName
The TSQualifiedName AST node.
TSStringKeyword
The TSStringKeyword AST node.
TSSymbolKeyword
The TSSymbolKeyword AST node.
TSThisType
The TSThisType AST node.
TSTupleType
The TSTupleType AST node.
TSTypeAliasDeclaration
The TSTypeAliasDeclaration AST node.
TSTypeAnnotation
The TSTypeAnnotation AST node.
TSTypeAssertion
The TSTypeAssertion AST node.
TSTypeLiteral
The TSTypeLiteral AST node.
TSTypeParameter
The TSTypeParameter AST node.
TSTypeParameterDeclaration
The TSTypeParameterDeclaration AST node.
TSTypeParameterInstantiation
The TSTypeParameterInstantiation AST node.
TSTypePredicate
The TSTypePredicate AST node.
TSTypeQuery
The TSTypeQuery AST node.
TSTypeReference
The TSTypeReference AST node.
TSUndefinedKeyword
The TSUndefinedKeyword AST node.
TSUnionType
The TSUnionType AST node.
TSUnknownKeyword
The TSUnknownKeyword AST node.
TSVoidKeyword
The TSVoidKeyword AST node.
TaggedTemplateExpression
The TaggedTemplateExpression AST node.
TemplateElement
The TemplateElement AST node.
TemplateLiteral
The TemplateLiteral AST node.
ThisExpression
The ThisExpression AST node.
ThrowStatement
The ThrowStatement AST node.
TryStatement
The TryStatement AST node.
TupleTypeAnnotation
The TupleTypeAnnotation AST node.
TupleTypeLabeledElement
The TupleTypeLabeledElement AST node.
TupleTypeSpreadElement
The TupleTypeSpreadElement AST node.
TypeAlias
The TypeAlias AST node.
TypeAnnotation
The TypeAnnotation AST node.
TypeCastExpression
The TypeCastExpression AST node.
TypeOperator
The TypeOperator AST node.
TypeParameter
The TypeParameter AST node.
TypeParameterDeclaration
The TypeParameterDeclaration AST node.
TypeParameterInstantiation
The TypeParameterInstantiation AST node.
TypePredicate
The TypePredicate AST node.
TypeofTypeAnnotation
The TypeofTypeAnnotation AST node.
UnaryExpression
The UnaryExpression AST node.
UndefinedTypeAnnotation
The UndefinedTypeAnnotation AST node.
UnionTypeAnnotation
The UnionTypeAnnotation AST node.
UnknownTypeAnnotation
The UnknownTypeAnnotation AST node.
UpdateExpression
The UpdateExpression AST node.
VariableDeclaration
The VariableDeclaration AST node.
VariableDeclarator
The VariableDeclarator AST node.
Variance
The Variance AST node.
VoidTypeAnnotation
The VoidTypeAnnotation AST node.
WhileStatement
The WhileStatement AST node.
WithStatement
The WithStatement AST node.
YieldExpression
The YieldExpression AST node.

Enums§

Node
An AST node: one arm per ESTree.def node kind.
NodeField
The name of a structural child field of an AST node (used in Path).
NodeKind
The kind discriminant of an AST node.