Skip to main content

Builder

Enum Builder 

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

One builder per node kind; clone-with-one-field-changed.

Variants§

§

Empty(Empty<'gc>)

Builder for super::Empty.

§

Metadata(Metadata<'gc>)

Builder for super::Metadata.

§

Program(Program<'gc>)

Builder for super::Program.

§

FunctionExpression(FunctionExpression<'gc>)

§

ArrowFunctionExpression(ArrowFunctionExpression<'gc>)

§

FunctionDeclaration(FunctionDeclaration<'gc>)

§

ComponentDeclaration(ComponentDeclaration<'gc>)

§

HookDeclaration(HookDeclaration<'gc>)

§

MatchStatement(MatchStatement<'gc>)

Builder for super::MatchStatement.

§

WhileStatement(WhileStatement<'gc>)

Builder for super::WhileStatement.

§

DoWhileStatement(DoWhileStatement<'gc>)

§

ForInStatement(ForInStatement<'gc>)

Builder for super::ForInStatement.

§

ForOfStatement(ForOfStatement<'gc>)

Builder for super::ForOfStatement.

§

ForStatement(ForStatement<'gc>)

Builder for super::ForStatement.

§

DebuggerStatement(DebuggerStatement<'gc>)

§

EmptyStatement(EmptyStatement<'gc>)

Builder for super::EmptyStatement.

§

BlockStatement(BlockStatement<'gc>)

Builder for super::BlockStatement.

§

StaticBlock(StaticBlock<'gc>)

Builder for super::StaticBlock.

§

BreakStatement(BreakStatement<'gc>)

Builder for super::BreakStatement.

§

ContinueStatement(ContinueStatement<'gc>)

§

ThrowStatement(ThrowStatement<'gc>)

Builder for super::ThrowStatement.

§

ReturnStatement(ReturnStatement<'gc>)

§

WithStatement(WithStatement<'gc>)

Builder for super::WithStatement.

§

SwitchStatement(SwitchStatement<'gc>)

§

LabeledStatement(LabeledStatement<'gc>)

§

ExpressionStatement(ExpressionStatement<'gc>)

§

TryStatement(TryStatement<'gc>)

Builder for super::TryStatement.

§

IfStatement(IfStatement<'gc>)

Builder for super::IfStatement.

§

NullLiteral(NullLiteral<'gc>)

Builder for super::NullLiteral.

§

BooleanLiteral(BooleanLiteral<'gc>)

Builder for super::BooleanLiteral.

§

StringLiteral(StringLiteral<'gc>)

Builder for super::StringLiteral.

§

NumericLiteral(NumericLiteral<'gc>)

Builder for super::NumericLiteral.

§

RegExpLiteral(RegExpLiteral<'gc>)

Builder for super::RegExpLiteral.

§

BigIntLiteral(BigIntLiteral<'gc>)

Builder for super::BigIntLiteral.

§

ThisExpression(ThisExpression<'gc>)

Builder for super::ThisExpression.

§

Super(Super<'gc>)

Builder for super::Super.

§

SequenceExpression(SequenceExpression<'gc>)

§

ObjectExpression(ObjectExpression<'gc>)

§

ArrayExpression(ArrayExpression<'gc>)

§

SpreadElement(SpreadElement<'gc>)

Builder for super::SpreadElement.

§

NewExpression(NewExpression<'gc>)

Builder for super::NewExpression.

§

YieldExpression(YieldExpression<'gc>)

§

AwaitExpression(AwaitExpression<'gc>)

§

ImportExpression(ImportExpression<'gc>)

§

CallExpression(CallExpression<'gc>)

Builder for super::CallExpression.

§

OptionalCallExpression(OptionalCallExpression<'gc>)

§

AssignmentExpression(AssignmentExpression<'gc>)

§

UnaryExpression(UnaryExpression<'gc>)

§

UpdateExpression(UpdateExpression<'gc>)

§

MemberExpression(MemberExpression<'gc>)

§

OptionalMemberExpression(OptionalMemberExpression<'gc>)

§

LogicalExpression(LogicalExpression<'gc>)

§

ConditionalExpression(ConditionalExpression<'gc>)

§

BinaryExpression(BinaryExpression<'gc>)

§

Directive(Directive<'gc>)

Builder for super::Directive.

§

DirectiveLiteral(DirectiveLiteral<'gc>)

§

Identifier(Identifier<'gc>)

Builder for super::Identifier.

§

PrivateName(PrivateName<'gc>)

Builder for super::PrivateName.

§

MetaProperty(MetaProperty<'gc>)

Builder for super::MetaProperty.

§

SwitchCase(SwitchCase<'gc>)

Builder for super::SwitchCase.

§

CatchClause(CatchClause<'gc>)

Builder for super::CatchClause.

§

VariableDeclarator(VariableDeclarator<'gc>)

§

VariableDeclaration(VariableDeclaration<'gc>)

§

TemplateLiteral(TemplateLiteral<'gc>)

§

TaggedTemplateExpression(TaggedTemplateExpression<'gc>)

§

TemplateElement(TemplateElement<'gc>)

§

Property(Property<'gc>)

Builder for super::Property.

§

Decorator(Decorator<'gc>)

Builder for super::Decorator.

§

ClassDeclaration(ClassDeclaration<'gc>)

§

ClassExpression(ClassExpression<'gc>)

§

ClassBody(ClassBody<'gc>)

Builder for super::ClassBody.

§

ClassProperty(ClassProperty<'gc>)

Builder for super::ClassProperty.

§

ClassPrivateProperty(ClassPrivateProperty<'gc>)

§

MethodDefinition(MethodDefinition<'gc>)

§

ImportDeclaration(ImportDeclaration<'gc>)

§

ImportSpecifier(ImportSpecifier<'gc>)

§

ImportDefaultSpecifier(ImportDefaultSpecifier<'gc>)

§

ImportNamespaceSpecifier(ImportNamespaceSpecifier<'gc>)

§

ImportAttribute(ImportAttribute<'gc>)

§

ExportNamedDeclaration(ExportNamedDeclaration<'gc>)

§

ExportSpecifier(ExportSpecifier<'gc>)

§

ExportNamespaceSpecifier(ExportNamespaceSpecifier<'gc>)

§

ExportDefaultDeclaration(ExportDefaultDeclaration<'gc>)

§

ExportAllDeclaration(ExportAllDeclaration<'gc>)

§

ObjectPattern(ObjectPattern<'gc>)

Builder for super::ObjectPattern.

§

ArrayPattern(ArrayPattern<'gc>)

Builder for super::ArrayPattern.

§

RestElement(RestElement<'gc>)

Builder for super::RestElement.

§

AssignmentPattern(AssignmentPattern<'gc>)

§

MatchStatementCase(MatchStatementCase<'gc>)

§

MatchExpression(MatchExpression<'gc>)

§

MatchExpressionCase(MatchExpressionCase<'gc>)

§

MatchWildcardPattern(MatchWildcardPattern<'gc>)

§

MatchLiteralPattern(MatchLiteralPattern<'gc>)

§

MatchUnaryPattern(MatchUnaryPattern<'gc>)

§

MatchIdentifierPattern(MatchIdentifierPattern<'gc>)

§

MatchBindingPattern(MatchBindingPattern<'gc>)

§

MatchObjectPattern(MatchObjectPattern<'gc>)

§

MatchArrayPattern(MatchArrayPattern<'gc>)

§

MatchOrPattern(MatchOrPattern<'gc>)

Builder for super::MatchOrPattern.

§

MatchAsPattern(MatchAsPattern<'gc>)

Builder for super::MatchAsPattern.

§

MatchMemberPattern(MatchMemberPattern<'gc>)

§

MatchInstancePattern(MatchInstancePattern<'gc>)

§

MatchObjectPatternProperty(MatchObjectPatternProperty<'gc>)

§

MatchInstanceObjectPattern(MatchInstanceObjectPattern<'gc>)

§

MatchRestPattern(MatchRestPattern<'gc>)

§

JSXIdentifier(JSXIdentifier<'gc>)

Builder for super::JSXIdentifier.

§

JSXMemberExpression(JSXMemberExpression<'gc>)

§

JSXNamespacedName(JSXNamespacedName<'gc>)

§

JSXEmptyExpression(JSXEmptyExpression<'gc>)

§

JSXExpressionContainer(JSXExpressionContainer<'gc>)

§

JSXSpreadChild(JSXSpreadChild<'gc>)

Builder for super::JSXSpreadChild.

§

JSXOpeningElement(JSXOpeningElement<'gc>)

§

JSXClosingElement(JSXClosingElement<'gc>)

§

JSXAttribute(JSXAttribute<'gc>)

Builder for super::JSXAttribute.

§

JSXSpreadAttribute(JSXSpreadAttribute<'gc>)

§

JSXStringLiteral(JSXStringLiteral<'gc>)

§

JSXText(JSXText<'gc>)

Builder for super::JSXText.

§

JSXElement(JSXElement<'gc>)

Builder for super::JSXElement.

§

JSXFragment(JSXFragment<'gc>)

Builder for super::JSXFragment.

§

JSXOpeningFragment(JSXOpeningFragment<'gc>)

§

JSXClosingFragment(JSXClosingFragment<'gc>)

§

ExistsTypeAnnotation(ExistsTypeAnnotation<'gc>)

§

EmptyTypeAnnotation(EmptyTypeAnnotation<'gc>)

§

StringTypeAnnotation(StringTypeAnnotation<'gc>)

§

NumberTypeAnnotation(NumberTypeAnnotation<'gc>)

§

StringLiteralTypeAnnotation(StringLiteralTypeAnnotation<'gc>)

§

NumberLiteralTypeAnnotation(NumberLiteralTypeAnnotation<'gc>)

§

BigIntLiteralTypeAnnotation(BigIntLiteralTypeAnnotation<'gc>)

§

BooleanTypeAnnotation(BooleanTypeAnnotation<'gc>)

§

BooleanLiteralTypeAnnotation(BooleanLiteralTypeAnnotation<'gc>)

§

NullLiteralTypeAnnotation(NullLiteralTypeAnnotation<'gc>)

§

SymbolTypeAnnotation(SymbolTypeAnnotation<'gc>)

§

AnyTypeAnnotation(AnyTypeAnnotation<'gc>)

§

MixedTypeAnnotation(MixedTypeAnnotation<'gc>)

§

BigIntTypeAnnotation(BigIntTypeAnnotation<'gc>)

§

VoidTypeAnnotation(VoidTypeAnnotation<'gc>)

§

NeverTypeAnnotation(NeverTypeAnnotation<'gc>)

§

UnknownTypeAnnotation(UnknownTypeAnnotation<'gc>)

§

UndefinedTypeAnnotation(UndefinedTypeAnnotation<'gc>)

§

FunctionTypeAnnotation(FunctionTypeAnnotation<'gc>)

§

HookTypeAnnotation(HookTypeAnnotation<'gc>)

§

FunctionTypeParam(FunctionTypeParam<'gc>)

§

ComponentTypeAnnotation(ComponentTypeAnnotation<'gc>)

§

ComponentTypeParameter(ComponentTypeParameter<'gc>)

§

NullableTypeAnnotation(NullableTypeAnnotation<'gc>)

§

QualifiedTypeIdentifier(QualifiedTypeIdentifier<'gc>)

§

TypeofTypeAnnotation(TypeofTypeAnnotation<'gc>)

§

KeyofTypeAnnotation(KeyofTypeAnnotation<'gc>)

§

TypeOperator(TypeOperator<'gc>)

Builder for super::TypeOperator.

§

QualifiedTypeofIdentifier(QualifiedTypeofIdentifier<'gc>)

§

TupleTypeAnnotation(TupleTypeAnnotation<'gc>)

§

TupleTypeSpreadElement(TupleTypeSpreadElement<'gc>)

§

TupleTypeLabeledElement(TupleTypeLabeledElement<'gc>)

§

ArrayTypeAnnotation(ArrayTypeAnnotation<'gc>)

§

InferTypeAnnotation(InferTypeAnnotation<'gc>)

§

UnionTypeAnnotation(UnionTypeAnnotation<'gc>)

§

IntersectionTypeAnnotation(IntersectionTypeAnnotation<'gc>)

§

GenericTypeAnnotation(GenericTypeAnnotation<'gc>)

§

IndexedAccessType(IndexedAccessType<'gc>)

§

OptionalIndexedAccessType(OptionalIndexedAccessType<'gc>)

§

ConditionalTypeAnnotation(ConditionalTypeAnnotation<'gc>)

§

TypePredicate(TypePredicate<'gc>)

Builder for super::TypePredicate.

§

InterfaceTypeAnnotation(InterfaceTypeAnnotation<'gc>)

§

TypeAlias(TypeAlias<'gc>)

Builder for super::TypeAlias.

§

OpaqueType(OpaqueType<'gc>)

Builder for super::OpaqueType.

§

InterfaceDeclaration(InterfaceDeclaration<'gc>)

§

DeclareTypeAlias(DeclareTypeAlias<'gc>)

§

DeclareOpaqueType(DeclareOpaqueType<'gc>)

§

DeclareInterface(DeclareInterface<'gc>)

§

DeclareClass(DeclareClass<'gc>)

Builder for super::DeclareClass.

§

DeclareFunction(DeclareFunction<'gc>)

§

DeclareHook(DeclareHook<'gc>)

Builder for super::DeclareHook.

§

DeclareComponent(DeclareComponent<'gc>)

§

DeclareVariable(DeclareVariable<'gc>)

§

DeclareEnum(DeclareEnum<'gc>)

Builder for super::DeclareEnum.

§

DeclareExportDeclaration(DeclareExportDeclaration<'gc>)

§

DeclareExportAllDeclaration(DeclareExportAllDeclaration<'gc>)

§

DeclareModule(DeclareModule<'gc>)

Builder for super::DeclareModule.

§

DeclareNamespace(DeclareNamespace<'gc>)

§

DeclareModuleExports(DeclareModuleExports<'gc>)

§

InterfaceExtends(InterfaceExtends<'gc>)

§

ClassImplements(ClassImplements<'gc>)

§

TypeAnnotation(TypeAnnotation<'gc>)

Builder for super::TypeAnnotation.

§

ObjectTypeAnnotation(ObjectTypeAnnotation<'gc>)

§

ObjectTypeProperty(ObjectTypeProperty<'gc>)

§

ObjectTypeSpreadProperty(ObjectTypeSpreadProperty<'gc>)

§

ObjectTypeInternalSlot(ObjectTypeInternalSlot<'gc>)

§

ObjectTypeCallProperty(ObjectTypeCallProperty<'gc>)

§

ObjectTypeIndexer(ObjectTypeIndexer<'gc>)

§

ObjectTypeMappedTypeProperty(ObjectTypeMappedTypeProperty<'gc>)

§

Variance(Variance<'gc>)

Builder for super::Variance.

§

TypeParameterDeclaration(TypeParameterDeclaration<'gc>)

§

TypeParameter(TypeParameter<'gc>)

Builder for super::TypeParameter.

§

TypeParameterInstantiation(TypeParameterInstantiation<'gc>)

§

TypeCastExpression(TypeCastExpression<'gc>)

§

AsExpression(AsExpression<'gc>)

Builder for super::AsExpression.

§

AsConstExpression(AsConstExpression<'gc>)

§

InferredPredicate(InferredPredicate<'gc>)

§

DeclaredPredicate(DeclaredPredicate<'gc>)

§

EnumDeclaration(EnumDeclaration<'gc>)

§

EnumStringBody(EnumStringBody<'gc>)

Builder for super::EnumStringBody.

§

EnumNumberBody(EnumNumberBody<'gc>)

Builder for super::EnumNumberBody.

§

EnumBigIntBody(EnumBigIntBody<'gc>)

Builder for super::EnumBigIntBody.

§

EnumBooleanBody(EnumBooleanBody<'gc>)

§

EnumSymbolBody(EnumSymbolBody<'gc>)

Builder for super::EnumSymbolBody.

§

EnumDefaultedMember(EnumDefaultedMember<'gc>)

§

EnumStringMember(EnumStringMember<'gc>)

§

EnumNumberMember(EnumNumberMember<'gc>)

§

EnumBigIntMember(EnumBigIntMember<'gc>)

§

EnumBooleanMember(EnumBooleanMember<'gc>)

§

ComponentParameter(ComponentParameter<'gc>)

§

RecordDeclaration(RecordDeclaration<'gc>)

§

RecordDeclarationImplements(RecordDeclarationImplements<'gc>)

§

RecordDeclarationBody(RecordDeclarationBody<'gc>)

§

RecordDeclarationProperty(RecordDeclarationProperty<'gc>)

§

RecordDeclarationStaticProperty(RecordDeclarationStaticProperty<'gc>)

§

RecordExpression(RecordExpression<'gc>)

§

RecordExpressionProperties(RecordExpressionProperties<'gc>)

§

TSTypeAnnotation(TSTypeAnnotation<'gc>)

§

TSAnyKeyword(TSAnyKeyword<'gc>)

Builder for super::TSAnyKeyword.

§

TSNumberKeyword(TSNumberKeyword<'gc>)

§

TSBooleanKeyword(TSBooleanKeyword<'gc>)

§

TSStringKeyword(TSStringKeyword<'gc>)

§

TSSymbolKeyword(TSSymbolKeyword<'gc>)

§

TSVoidKeyword(TSVoidKeyword<'gc>)

Builder for super::TSVoidKeyword.

§

TSUndefinedKeyword(TSUndefinedKeyword<'gc>)

§

TSUnknownKeyword(TSUnknownKeyword<'gc>)

§

TSNeverKeyword(TSNeverKeyword<'gc>)

Builder for super::TSNeverKeyword.

§

TSBigIntKeyword(TSBigIntKeyword<'gc>)

§

TSThisType(TSThisType<'gc>)

Builder for super::TSThisType.

§

TSLiteralType(TSLiteralType<'gc>)

Builder for super::TSLiteralType.

§

TSIndexedAccessType(TSIndexedAccessType<'gc>)

§

TSArrayType(TSArrayType<'gc>)

Builder for super::TSArrayType.

§

TSTypeReference(TSTypeReference<'gc>)

§

TSQualifiedName(TSQualifiedName<'gc>)

§

TSFunctionType(TSFunctionType<'gc>)

Builder for super::TSFunctionType.

§

TSConstructorType(TSConstructorType<'gc>)

§

TSTypePredicate(TSTypePredicate<'gc>)

§

TSTupleType(TSTupleType<'gc>)

Builder for super::TSTupleType.

§

TSTypeAssertion(TSTypeAssertion<'gc>)

§

TSAsExpression(TSAsExpression<'gc>)

Builder for super::TSAsExpression.

§

TSParameterProperty(TSParameterProperty<'gc>)

§

TSTypeAliasDeclaration(TSTypeAliasDeclaration<'gc>)

§

TSInterfaceDeclaration(TSInterfaceDeclaration<'gc>)

§

TSInterfaceHeritage(TSInterfaceHeritage<'gc>)

§

TSInterfaceBody(TSInterfaceBody<'gc>)

§

TSEnumDeclaration(TSEnumDeclaration<'gc>)

§

TSEnumMember(TSEnumMember<'gc>)

Builder for super::TSEnumMember.

§

TSModuleDeclaration(TSModuleDeclaration<'gc>)

§

TSModuleBlock(TSModuleBlock<'gc>)

Builder for super::TSModuleBlock.

§

TSModuleMember(TSModuleMember<'gc>)

Builder for super::TSModuleMember.

§

TSTypeParameterDeclaration(TSTypeParameterDeclaration<'gc>)

§

TSTypeParameter(TSTypeParameter<'gc>)

§

TSTypeParameterInstantiation(TSTypeParameterInstantiation<'gc>)

§

TSUnionType(TSUnionType<'gc>)

Builder for super::TSUnionType.

§

TSIntersectionType(TSIntersectionType<'gc>)

§

TSTypeQuery(TSTypeQuery<'gc>)

Builder for super::TSTypeQuery.

§

TSConditionalType(TSConditionalType<'gc>)

§

TSTypeLiteral(TSTypeLiteral<'gc>)

Builder for super::TSTypeLiteral.

§

TSPropertySignature(TSPropertySignature<'gc>)

§

TSMethodSignature(TSMethodSignature<'gc>)

§

TSIndexSignature(TSIndexSignature<'gc>)

§

TSCallSignatureDeclaration(TSCallSignatureDeclaration<'gc>)

§

TSModifiers(TSModifiers<'gc>)

Builder for super::TSModifiers.

§

CoverEmptyArgs(CoverEmptyArgs<'gc>)

Builder for super::CoverEmptyArgs.

§

CoverTrailingComma(CoverTrailingComma<'gc>)

§

CoverInitializer(CoverInitializer<'gc>)

§

CoverRestElement(CoverRestElement<'gc>)

§

CoverTypedIdentifier(CoverTypedIdentifier<'gc>)

§

SHBuiltin(SHBuiltin<'gc>)

Builder for super::SHBuiltin.

§

ImplicitCheckedCast(ImplicitCheckedCast<'gc>)

Implementations§

Source§

impl<'gc> Builder<'gc>

Source

pub fn from_node(node: &'gc Node<'gc>) -> Self

Start a builder for node, dispatching on its kind.

Trait Implementations§

Source§

impl<'gc> Debug for Builder<'gc>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'gc> !Freeze for Builder<'gc>

§

impl<'gc> !RefUnwindSafe for Builder<'gc>

§

impl<'gc> !Send for Builder<'gc>

§

impl<'gc> !Sync for Builder<'gc>

§

impl<'gc> !UnwindSafe for Builder<'gc>

§

impl<'gc> Unpin for Builder<'gc>

§

impl<'gc> UnsafeUnpin for Builder<'gc>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.