Enum dprint_swc_ecma_ast_view::NodeKind[][src]

pub enum NodeKind {
Show 163 variants ArrayLit, ArrayPat, ArrowExpr, AssignExpr, AssignPat, AssignPatProp, AssignProp, AwaitExpr, BigInt, BinExpr, BindingIdent, BlockStmt, Bool, BreakStmt, CallExpr, CatchClause, Class, ClassDecl, ClassExpr, ClassMethod, ClassProp, ComputedPropName, CondExpr, Constructor, ContinueStmt, DebuggerStmt, Decorator, DoWhileStmt, EmptyStmt, ExportAll, ExportDecl, ExportDefaultDecl, ExportDefaultExpr, ExportDefaultSpecifier, ExportNamedSpecifier, ExportNamespaceSpecifier, ExprOrSpread, ExprStmt, FnDecl, FnExpr, ForInStmt, ForOfStmt, ForStmt, Function, GetterProp, Ident, IfStmt, ImportDecl, ImportDefaultSpecifier, ImportNamedSpecifier, ImportStarAsSpecifier, Invalid, JSXAttr, JSXClosingElement, JSXClosingFragment, JSXElement, JSXEmptyExpr, JSXExprContainer, JSXFragment, JSXMemberExpr, JSXNamespacedName, JSXOpeningElement, JSXOpeningFragment, JSXSpreadChild, JSXText, KeyValuePatProp, KeyValueProp, LabeledStmt, MemberExpr, MetaPropExpr, MethodProp, Module, NamedExport, NewExpr, Null, Number, ObjectLit, ObjectPat, OptChainExpr, Param, ParenExpr, PrivateMethod, PrivateName, PrivateProp, Regex, RestPat, ReturnStmt, Script, SeqExpr, SetterProp, SpreadElement, StaticBlock, Str, Super, SwitchCase, SwitchStmt, TaggedTpl, ThisExpr, ThrowStmt, Tpl, TplElement, TryStmt, TsArrayType, TsAsExpr, TsCallSignatureDecl, TsConditionalType, TsConstAssertion, TsConstructSignatureDecl, TsConstructorType, TsEnumDecl, TsEnumMember, TsExportAssignment, TsExprWithTypeArgs, TsExternalModuleRef, TsFnType, TsGetterSignature, TsImportEqualsDecl, TsImportType, TsIndexSignature, TsIndexedAccessType, TsInferType, TsInterfaceBody, TsInterfaceDecl, TsIntersectionType, TsKeywordType, TsLitType, TsMappedType, TsMethodSignature, TsModuleBlock, TsModuleDecl, TsNamespaceDecl, TsNamespaceExportDecl, TsNonNullExpr, TsOptionalType, TsParamProp, TsParenthesizedType, TsPropertySignature, TsQualifiedName, TsRestType, TsSetterSignature, TsThisType, TsTplLitType, TsTupleElement, TsTupleType, TsTypeAliasDecl, TsTypeAnn, TsTypeAssertion, TsTypeLit, TsTypeOperator, TsTypeParam, TsTypeParamDecl, TsTypeParamInstantiation, TsTypePredicate, TsTypeQuery, TsTypeRef, TsUnionType, UnaryExpr, UpdateExpr, VarDecl, VarDeclarator, WhileStmt, WithStmt, YieldExpr,
}

Variants

ArrayLit

ArrayPat

ArrowExpr

AssignExpr

AssignPat

AssignPatProp

AssignProp

AwaitExpr

BigInt

BinExpr

BindingIdent

BlockStmt

Bool

BreakStmt

CallExpr

CatchClause

Class

ClassDecl

ClassExpr

ClassMethod

ClassProp

ComputedPropName

CondExpr

Constructor

ContinueStmt

DebuggerStmt

Decorator

DoWhileStmt

EmptyStmt

ExportAll

ExportDecl

ExportDefaultDecl

ExportDefaultExpr

ExportDefaultSpecifier

ExportNamedSpecifier

ExportNamespaceSpecifier

ExprOrSpread

ExprStmt

FnDecl

FnExpr

ForInStmt

ForOfStmt

ForStmt

Function

GetterProp

Ident

IfStmt

ImportDecl

ImportDefaultSpecifier

ImportNamedSpecifier

ImportStarAsSpecifier

Invalid

JSXAttr

JSXClosingElement

JSXClosingFragment

JSXElement

JSXEmptyExpr

JSXExprContainer

JSXFragment

JSXMemberExpr

JSXNamespacedName

JSXOpeningElement

JSXOpeningFragment

JSXSpreadChild

JSXText

KeyValuePatProp

KeyValueProp

LabeledStmt

MemberExpr

MetaPropExpr

MethodProp

Module

NamedExport

NewExpr

Null

Number

ObjectLit

ObjectPat

OptChainExpr

Param

ParenExpr

PrivateMethod

PrivateName

PrivateProp

Regex

RestPat

ReturnStmt

Script

SeqExpr

SetterProp

SpreadElement

StaticBlock

Str

Super

SwitchCase

SwitchStmt

TaggedTpl

ThisExpr

ThrowStmt

Tpl

TplElement

TryStmt

TsArrayType

TsAsExpr

TsCallSignatureDecl

TsConditionalType

TsConstAssertion

TsConstructSignatureDecl

TsConstructorType

TsEnumDecl

TsEnumMember

TsExportAssignment

TsExprWithTypeArgs

TsExternalModuleRef

TsFnType

TsGetterSignature

TsImportEqualsDecl

TsImportType

TsIndexSignature

TsIndexedAccessType

TsInferType

TsInterfaceBody

TsInterfaceDecl

TsIntersectionType

TsKeywordType

TsLitType

TsMappedType

TsMethodSignature

TsModuleBlock

TsModuleDecl

TsNamespaceDecl

TsNamespaceExportDecl

TsNonNullExpr

TsOptionalType

TsParamProp

TsParenthesizedType

TsPropertySignature

TsQualifiedName

TsRestType

TsSetterSignature

TsThisType

TsTplLitType

TsTupleElement

TsTupleType

TsTypeAliasDecl

TsTypeAnn

TsTypeAssertion

TsTypeLit

TsTypeOperator

TsTypeParam

TsTypeParamDecl

TsTypeParamInstantiation

TsTypePredicate

TsTypeQuery

TsTypeRef

TsUnionType

UnaryExpr

UpdateExpr

VarDecl

VarDeclarator

WhileStmt

WithStmt

YieldExpr

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more