Skip to main content

NodeKind

Enum NodeKind 

Source
#[repr(u32)]
pub enum NodeKind {
Show 295 variants Empty = 0, Metadata = 1, _FunctionLike_First = 2, Program = 3, FunctionExpression = 4, ArrowFunctionExpression = 5, FunctionDeclaration = 6, ComponentDeclaration = 7, HookDeclaration = 8, _FunctionLike_Last = 9, _Statement_First = 10, MatchStatement = 11, _LoopStatement_First = 12, WhileStatement = 13, DoWhileStatement = 14, ForInStatement = 15, ForOfStatement = 16, ForStatement = 17, _LoopStatement_Last = 18, DebuggerStatement = 19, EmptyStatement = 20, BlockStatement = 21, StaticBlock = 22, BreakStatement = 23, ContinueStatement = 24, ThrowStatement = 25, ReturnStatement = 26, WithStatement = 27, SwitchStatement = 28, LabeledStatement = 29, ExpressionStatement = 30, TryStatement = 31, IfStatement = 32, _Statement_Last = 33, NullLiteral = 34, BooleanLiteral = 35, StringLiteral = 36, NumericLiteral = 37, RegExpLiteral = 38, BigIntLiteral = 39, ThisExpression = 40, Super = 41, SequenceExpression = 42, ObjectExpression = 43, ArrayExpression = 44, SpreadElement = 45, NewExpression = 46, YieldExpression = 47, AwaitExpression = 48, ImportExpression = 49, _CallExpressionLike_First = 50, CallExpression = 51, OptionalCallExpression = 52, _CallExpressionLike_Last = 53, AssignmentExpression = 54, UnaryExpression = 55, UpdateExpression = 56, _MemberExpressionLike_First = 57, MemberExpression = 58, OptionalMemberExpression = 59, _MemberExpressionLike_Last = 60, LogicalExpression = 61, ConditionalExpression = 62, BinaryExpression = 63, Directive = 64, DirectiveLiteral = 65, Identifier = 66, PrivateName = 67, MetaProperty = 68, SwitchCase = 69, CatchClause = 70, VariableDeclarator = 71, VariableDeclaration = 72, TemplateLiteral = 73, TaggedTemplateExpression = 74, TemplateElement = 75, Property = 76, Decorator = 77, _ClassLike_First = 78, ClassDeclaration = 79, ClassExpression = 80, _ClassLike_Last = 81, ClassBody = 82, ClassProperty = 83, ClassPrivateProperty = 84, MethodDefinition = 85, ImportDeclaration = 86, ImportSpecifier = 87, ImportDefaultSpecifier = 88, ImportNamespaceSpecifier = 89, ImportAttribute = 90, ExportNamedDeclaration = 91, ExportSpecifier = 92, ExportNamespaceSpecifier = 93, ExportDefaultDeclaration = 94, ExportAllDeclaration = 95, _Pattern_First = 96, ObjectPattern = 97, ArrayPattern = 98, RestElement = 99, AssignmentPattern = 100, _Pattern_Last = 101, MatchStatementCase = 102, MatchExpression = 103, MatchExpressionCase = 104, _MatchPattern_First = 105, MatchWildcardPattern = 106, MatchLiteralPattern = 107, MatchUnaryPattern = 108, MatchIdentifierPattern = 109, MatchBindingPattern = 110, MatchObjectPattern = 111, MatchArrayPattern = 112, MatchOrPattern = 113, MatchAsPattern = 114, MatchMemberPattern = 115, MatchInstancePattern = 116, _MatchPattern_Last = 117, MatchObjectPatternProperty = 118, MatchInstanceObjectPattern = 119, MatchRestPattern = 120, _JSX_First = 121, JSXIdentifier = 122, JSXMemberExpression = 123, JSXNamespacedName = 124, JSXEmptyExpression = 125, JSXExpressionContainer = 126, JSXSpreadChild = 127, JSXOpeningElement = 128, JSXClosingElement = 129, JSXAttribute = 130, JSXSpreadAttribute = 131, JSXStringLiteral = 132, JSXText = 133, JSXElement = 134, JSXFragment = 135, JSXOpeningFragment = 136, JSXClosingFragment = 137, _JSX_Last = 138, _Flow_First = 139, ExistsTypeAnnotation = 140, EmptyTypeAnnotation = 141, StringTypeAnnotation = 142, NumberTypeAnnotation = 143, StringLiteralTypeAnnotation = 144, NumberLiteralTypeAnnotation = 145, BigIntLiteralTypeAnnotation = 146, BooleanTypeAnnotation = 147, BooleanLiteralTypeAnnotation = 148, NullLiteralTypeAnnotation = 149, SymbolTypeAnnotation = 150, AnyTypeAnnotation = 151, MixedTypeAnnotation = 152, BigIntTypeAnnotation = 153, VoidTypeAnnotation = 154, NeverTypeAnnotation = 155, UnknownTypeAnnotation = 156, UndefinedTypeAnnotation = 157, FunctionTypeAnnotation = 158, HookTypeAnnotation = 159, FunctionTypeParam = 160, ComponentTypeAnnotation = 161, ComponentTypeParameter = 162, NullableTypeAnnotation = 163, QualifiedTypeIdentifier = 164, TypeofTypeAnnotation = 165, KeyofTypeAnnotation = 166, TypeOperator = 167, QualifiedTypeofIdentifier = 168, TupleTypeAnnotation = 169, TupleTypeSpreadElement = 170, TupleTypeLabeledElement = 171, ArrayTypeAnnotation = 172, InferTypeAnnotation = 173, UnionTypeAnnotation = 174, IntersectionTypeAnnotation = 175, GenericTypeAnnotation = 176, IndexedAccessType = 177, OptionalIndexedAccessType = 178, ConditionalTypeAnnotation = 179, TypePredicate = 180, InterfaceTypeAnnotation = 181, TypeAlias = 182, OpaqueType = 183, InterfaceDeclaration = 184, DeclareTypeAlias = 185, DeclareOpaqueType = 186, DeclareInterface = 187, DeclareClass = 188, DeclareFunction = 189, DeclareHook = 190, DeclareComponent = 191, DeclareVariable = 192, DeclareEnum = 193, DeclareExportDeclaration = 194, DeclareExportAllDeclaration = 195, DeclareModule = 196, DeclareNamespace = 197, DeclareModuleExports = 198, InterfaceExtends = 199, ClassImplements = 200, TypeAnnotation = 201, ObjectTypeAnnotation = 202, ObjectTypeProperty = 203, ObjectTypeSpreadProperty = 204, ObjectTypeInternalSlot = 205, ObjectTypeCallProperty = 206, ObjectTypeIndexer = 207, ObjectTypeMappedTypeProperty = 208, Variance = 209, TypeParameterDeclaration = 210, TypeParameter = 211, TypeParameterInstantiation = 212, TypeCastExpression = 213, AsExpression = 214, AsConstExpression = 215, InferredPredicate = 216, DeclaredPredicate = 217, EnumDeclaration = 218, EnumStringBody = 219, EnumNumberBody = 220, EnumBigIntBody = 221, EnumBooleanBody = 222, EnumSymbolBody = 223, EnumDefaultedMember = 224, EnumStringMember = 225, EnumNumberMember = 226, EnumBigIntMember = 227, EnumBooleanMember = 228, ComponentParameter = 229, RecordDeclaration = 230, RecordDeclarationImplements = 231, RecordDeclarationBody = 232, RecordDeclarationProperty = 233, RecordDeclarationStaticProperty = 234, RecordExpression = 235, RecordExpressionProperties = 236, _Flow_Last = 237, _TS_First = 238, TSTypeAnnotation = 239, TSAnyKeyword = 240, TSNumberKeyword = 241, TSBooleanKeyword = 242, TSStringKeyword = 243, TSSymbolKeyword = 244, TSVoidKeyword = 245, TSUndefinedKeyword = 246, TSUnknownKeyword = 247, TSNeverKeyword = 248, TSBigIntKeyword = 249, TSThisType = 250, TSLiteralType = 251, TSIndexedAccessType = 252, TSArrayType = 253, TSTypeReference = 254, TSQualifiedName = 255, TSFunctionType = 256, TSConstructorType = 257, TSTypePredicate = 258, TSTupleType = 259, TSTypeAssertion = 260, TSAsExpression = 261, TSParameterProperty = 262, TSTypeAliasDeclaration = 263, TSInterfaceDeclaration = 264, TSInterfaceHeritage = 265, TSInterfaceBody = 266, TSEnumDeclaration = 267, TSEnumMember = 268, TSModuleDeclaration = 269, TSModuleBlock = 270, TSModuleMember = 271, TSTypeParameterDeclaration = 272, TSTypeParameter = 273, TSTypeParameterInstantiation = 274, TSUnionType = 275, TSIntersectionType = 276, TSTypeQuery = 277, TSConditionalType = 278, TSTypeLiteral = 279, TSPropertySignature = 280, TSMethodSignature = 281, TSIndexSignature = 282, TSCallSignatureDeclaration = 283, TSModifiers = 284, _TS_Last = 285, _Cover_First = 286, CoverEmptyArgs = 287, CoverTrailingComma = 288, CoverInitializer = 289, CoverRestElement = 290, CoverTypedIdentifier = 291, _Cover_Last = 292, SHBuiltin = 293, ImplicitCheckedCast = 294,
}
Expand description

The kind discriminant of an AST node.

Mirrors the C++ NodeKind enum: #[repr(u32)], ESTree.def order, with _Name_First/_Last sentinels interleaved so the Node::is_* range predicates are two integer comparisons.

Variants§

§

Empty = 0

The kind of Empty.

§

Metadata = 1

The kind of Metadata.

§

_FunctionLike_First = 2

Exclusive lower bound of the FunctionLike range.

§

Program = 3

The kind of Program.

§

FunctionExpression = 4

The kind of FunctionExpression.

§

ArrowFunctionExpression = 5

§

FunctionDeclaration = 6

The kind of FunctionDeclaration.

§

ComponentDeclaration = 7

The kind of ComponentDeclaration.

§

HookDeclaration = 8

The kind of HookDeclaration.

§

_FunctionLike_Last = 9

Exclusive upper bound of the FunctionLike range.

§

_Statement_First = 10

Exclusive lower bound of the Statement range.

§

MatchStatement = 11

The kind of MatchStatement.

§

_LoopStatement_First = 12

Exclusive lower bound of the LoopStatement range.

§

WhileStatement = 13

The kind of WhileStatement.

§

DoWhileStatement = 14

The kind of DoWhileStatement.

§

ForInStatement = 15

The kind of ForInStatement.

§

ForOfStatement = 16

The kind of ForOfStatement.

§

ForStatement = 17

The kind of ForStatement.

§

_LoopStatement_Last = 18

Exclusive upper bound of the LoopStatement range.

§

DebuggerStatement = 19

The kind of DebuggerStatement.

§

EmptyStatement = 20

The kind of EmptyStatement.

§

BlockStatement = 21

The kind of BlockStatement.

§

StaticBlock = 22

The kind of StaticBlock.

§

BreakStatement = 23

The kind of BreakStatement.

§

ContinueStatement = 24

The kind of ContinueStatement.

§

ThrowStatement = 25

The kind of ThrowStatement.

§

ReturnStatement = 26

The kind of ReturnStatement.

§

WithStatement = 27

The kind of WithStatement.

§

SwitchStatement = 28

The kind of SwitchStatement.

§

LabeledStatement = 29

The kind of LabeledStatement.

§

ExpressionStatement = 30

The kind of ExpressionStatement.

§

TryStatement = 31

The kind of TryStatement.

§

IfStatement = 32

The kind of IfStatement.

§

_Statement_Last = 33

Exclusive upper bound of the Statement range.

§

NullLiteral = 34

The kind of NullLiteral.

§

BooleanLiteral = 35

The kind of BooleanLiteral.

§

StringLiteral = 36

The kind of StringLiteral.

§

NumericLiteral = 37

The kind of NumericLiteral.

§

RegExpLiteral = 38

The kind of RegExpLiteral.

§

BigIntLiteral = 39

The kind of BigIntLiteral.

§

ThisExpression = 40

The kind of ThisExpression.

§

Super = 41

The kind of Super.

§

SequenceExpression = 42

The kind of SequenceExpression.

§

ObjectExpression = 43

The kind of ObjectExpression.

§

ArrayExpression = 44

The kind of ArrayExpression.

§

SpreadElement = 45

The kind of SpreadElement.

§

NewExpression = 46

The kind of NewExpression.

§

YieldExpression = 47

The kind of YieldExpression.

§

AwaitExpression = 48

The kind of AwaitExpression.

§

ImportExpression = 49

The kind of ImportExpression.

§

_CallExpressionLike_First = 50

Exclusive lower bound of the CallExpressionLike range.

§

CallExpression = 51

The kind of CallExpression.

§

OptionalCallExpression = 52

§

_CallExpressionLike_Last = 53

Exclusive upper bound of the CallExpressionLike range.

§

AssignmentExpression = 54

The kind of AssignmentExpression.

§

UnaryExpression = 55

The kind of UnaryExpression.

§

UpdateExpression = 56

The kind of UpdateExpression.

§

_MemberExpressionLike_First = 57

Exclusive lower bound of the MemberExpressionLike range.

§

MemberExpression = 58

The kind of MemberExpression.

§

OptionalMemberExpression = 59

§

_MemberExpressionLike_Last = 60

Exclusive upper bound of the MemberExpressionLike range.

§

LogicalExpression = 61

The kind of LogicalExpression.

§

ConditionalExpression = 62

The kind of ConditionalExpression.

§

BinaryExpression = 63

The kind of BinaryExpression.

§

Directive = 64

The kind of Directive.

§

DirectiveLiteral = 65

The kind of DirectiveLiteral.

§

Identifier = 66

The kind of Identifier.

§

PrivateName = 67

The kind of PrivateName.

§

MetaProperty = 68

The kind of MetaProperty.

§

SwitchCase = 69

The kind of SwitchCase.

§

CatchClause = 70

The kind of CatchClause.

§

VariableDeclarator = 71

The kind of VariableDeclarator.

§

VariableDeclaration = 72

The kind of VariableDeclaration.

§

TemplateLiteral = 73

The kind of TemplateLiteral.

§

TaggedTemplateExpression = 74

§

TemplateElement = 75

The kind of TemplateElement.

§

Property = 76

The kind of Property.

§

Decorator = 77

The kind of Decorator.

§

_ClassLike_First = 78

Exclusive lower bound of the ClassLike range.

§

ClassDeclaration = 79

The kind of ClassDeclaration.

§

ClassExpression = 80

The kind of ClassExpression.

§

_ClassLike_Last = 81

Exclusive upper bound of the ClassLike range.

§

ClassBody = 82

The kind of ClassBody.

§

ClassProperty = 83

The kind of ClassProperty.

§

ClassPrivateProperty = 84

The kind of ClassPrivateProperty.

§

MethodDefinition = 85

The kind of MethodDefinition.

§

ImportDeclaration = 86

The kind of ImportDeclaration.

§

ImportSpecifier = 87

The kind of ImportSpecifier.

§

ImportDefaultSpecifier = 88

§

ImportNamespaceSpecifier = 89

§

ImportAttribute = 90

The kind of ImportAttribute.

§

ExportNamedDeclaration = 91

§

ExportSpecifier = 92

The kind of ExportSpecifier.

§

ExportNamespaceSpecifier = 93

§

ExportDefaultDeclaration = 94

§

ExportAllDeclaration = 95

The kind of ExportAllDeclaration.

§

_Pattern_First = 96

Exclusive lower bound of the Pattern range.

§

ObjectPattern = 97

The kind of ObjectPattern.

§

ArrayPattern = 98

The kind of ArrayPattern.

§

RestElement = 99

The kind of RestElement.

§

AssignmentPattern = 100

The kind of AssignmentPattern.

§

_Pattern_Last = 101

Exclusive upper bound of the Pattern range.

§

MatchStatementCase = 102

The kind of MatchStatementCase.

§

MatchExpression = 103

The kind of MatchExpression.

§

MatchExpressionCase = 104

The kind of MatchExpressionCase.

§

_MatchPattern_First = 105

Exclusive lower bound of the MatchPattern range.

§

MatchWildcardPattern = 106

The kind of MatchWildcardPattern.

§

MatchLiteralPattern = 107

The kind of MatchLiteralPattern.

§

MatchUnaryPattern = 108

The kind of MatchUnaryPattern.

§

MatchIdentifierPattern = 109

§

MatchBindingPattern = 110

The kind of MatchBindingPattern.

§

MatchObjectPattern = 111

The kind of MatchObjectPattern.

§

MatchArrayPattern = 112

The kind of MatchArrayPattern.

§

MatchOrPattern = 113

The kind of MatchOrPattern.

§

MatchAsPattern = 114

The kind of MatchAsPattern.

§

MatchMemberPattern = 115

The kind of MatchMemberPattern.

§

MatchInstancePattern = 116

The kind of MatchInstancePattern.

§

_MatchPattern_Last = 117

Exclusive upper bound of the MatchPattern range.

§

MatchObjectPatternProperty = 118

§

MatchInstanceObjectPattern = 119

§

MatchRestPattern = 120

The kind of MatchRestPattern.

§

_JSX_First = 121

Exclusive lower bound of the JSX range.

§

JSXIdentifier = 122

The kind of JSXIdentifier.

§

JSXMemberExpression = 123

The kind of JSXMemberExpression.

§

JSXNamespacedName = 124

The kind of JSXNamespacedName.

§

JSXEmptyExpression = 125

The kind of JSXEmptyExpression.

§

JSXExpressionContainer = 126

§

JSXSpreadChild = 127

The kind of JSXSpreadChild.

§

JSXOpeningElement = 128

The kind of JSXOpeningElement.

§

JSXClosingElement = 129

The kind of JSXClosingElement.

§

JSXAttribute = 130

The kind of JSXAttribute.

§

JSXSpreadAttribute = 131

The kind of JSXSpreadAttribute.

§

JSXStringLiteral = 132

The kind of JSXStringLiteral.

§

JSXText = 133

The kind of JSXText.

§

JSXElement = 134

The kind of JSXElement.

§

JSXFragment = 135

The kind of JSXFragment.

§

JSXOpeningFragment = 136

The kind of JSXOpeningFragment.

§

JSXClosingFragment = 137

The kind of JSXClosingFragment.

§

_JSX_Last = 138

Exclusive upper bound of the JSX range.

§

_Flow_First = 139

Exclusive lower bound of the Flow range.

§

ExistsTypeAnnotation = 140

The kind of ExistsTypeAnnotation.

§

EmptyTypeAnnotation = 141

The kind of EmptyTypeAnnotation.

§

StringTypeAnnotation = 142

The kind of StringTypeAnnotation.

§

NumberTypeAnnotation = 143

The kind of NumberTypeAnnotation.

§

StringLiteralTypeAnnotation = 144

§

NumberLiteralTypeAnnotation = 145

§

BigIntLiteralTypeAnnotation = 146

§

BooleanTypeAnnotation = 147

The kind of BooleanTypeAnnotation.

§

BooleanLiteralTypeAnnotation = 148

§

NullLiteralTypeAnnotation = 149

§

SymbolTypeAnnotation = 150

The kind of SymbolTypeAnnotation.

§

AnyTypeAnnotation = 151

The kind of AnyTypeAnnotation.

§

MixedTypeAnnotation = 152

The kind of MixedTypeAnnotation.

§

BigIntTypeAnnotation = 153

The kind of BigIntTypeAnnotation.

§

VoidTypeAnnotation = 154

The kind of VoidTypeAnnotation.

§

NeverTypeAnnotation = 155

The kind of NeverTypeAnnotation.

§

UnknownTypeAnnotation = 156

The kind of UnknownTypeAnnotation.

§

UndefinedTypeAnnotation = 157

§

FunctionTypeAnnotation = 158

§

HookTypeAnnotation = 159

The kind of HookTypeAnnotation.

§

FunctionTypeParam = 160

The kind of FunctionTypeParam.

§

ComponentTypeAnnotation = 161

§

ComponentTypeParameter = 162

§

NullableTypeAnnotation = 163

§

QualifiedTypeIdentifier = 164

§

TypeofTypeAnnotation = 165

The kind of TypeofTypeAnnotation.

§

KeyofTypeAnnotation = 166

The kind of KeyofTypeAnnotation.

§

TypeOperator = 167

The kind of TypeOperator.

§

QualifiedTypeofIdentifier = 168

§

TupleTypeAnnotation = 169

The kind of TupleTypeAnnotation.

§

TupleTypeSpreadElement = 170

§

TupleTypeLabeledElement = 171

§

ArrayTypeAnnotation = 172

The kind of ArrayTypeAnnotation.

§

InferTypeAnnotation = 173

The kind of InferTypeAnnotation.

§

UnionTypeAnnotation = 174

The kind of UnionTypeAnnotation.

§

IntersectionTypeAnnotation = 175

§

GenericTypeAnnotation = 176

The kind of GenericTypeAnnotation.

§

IndexedAccessType = 177

The kind of IndexedAccessType.

§

OptionalIndexedAccessType = 178

§

ConditionalTypeAnnotation = 179

§

TypePredicate = 180

The kind of TypePredicate.

§

InterfaceTypeAnnotation = 181

§

TypeAlias = 182

The kind of TypeAlias.

§

OpaqueType = 183

The kind of OpaqueType.

§

InterfaceDeclaration = 184

The kind of InterfaceDeclaration.

§

DeclareTypeAlias = 185

The kind of DeclareTypeAlias.

§

DeclareOpaqueType = 186

The kind of DeclareOpaqueType.

§

DeclareInterface = 187

The kind of DeclareInterface.

§

DeclareClass = 188

The kind of DeclareClass.

§

DeclareFunction = 189

The kind of DeclareFunction.

§

DeclareHook = 190

The kind of DeclareHook.

§

DeclareComponent = 191

The kind of DeclareComponent.

§

DeclareVariable = 192

The kind of DeclareVariable.

§

DeclareEnum = 193

The kind of DeclareEnum.

§

DeclareExportDeclaration = 194

§

DeclareExportAllDeclaration = 195

§

DeclareModule = 196

The kind of DeclareModule.

§

DeclareNamespace = 197

The kind of DeclareNamespace.

§

DeclareModuleExports = 198

The kind of DeclareModuleExports.

§

InterfaceExtends = 199

The kind of InterfaceExtends.

§

ClassImplements = 200

The kind of ClassImplements.

§

TypeAnnotation = 201

The kind of TypeAnnotation.

§

ObjectTypeAnnotation = 202

The kind of ObjectTypeAnnotation.

§

ObjectTypeProperty = 203

The kind of ObjectTypeProperty.

§

ObjectTypeSpreadProperty = 204

§

ObjectTypeInternalSlot = 205

§

ObjectTypeCallProperty = 206

§

ObjectTypeIndexer = 207

The kind of ObjectTypeIndexer.

§

ObjectTypeMappedTypeProperty = 208

§

Variance = 209

The kind of Variance.

§

TypeParameterDeclaration = 210

§

TypeParameter = 211

The kind of TypeParameter.

§

TypeParameterInstantiation = 212

§

TypeCastExpression = 213

The kind of TypeCastExpression.

§

AsExpression = 214

The kind of AsExpression.

§

AsConstExpression = 215

The kind of AsConstExpression.

§

InferredPredicate = 216

The kind of InferredPredicate.

§

DeclaredPredicate = 217

The kind of DeclaredPredicate.

§

EnumDeclaration = 218

The kind of EnumDeclaration.

§

EnumStringBody = 219

The kind of EnumStringBody.

§

EnumNumberBody = 220

The kind of EnumNumberBody.

§

EnumBigIntBody = 221

The kind of EnumBigIntBody.

§

EnumBooleanBody = 222

The kind of EnumBooleanBody.

§

EnumSymbolBody = 223

The kind of EnumSymbolBody.

§

EnumDefaultedMember = 224

The kind of EnumDefaultedMember.

§

EnumStringMember = 225

The kind of EnumStringMember.

§

EnumNumberMember = 226

The kind of EnumNumberMember.

§

EnumBigIntMember = 227

The kind of EnumBigIntMember.

§

EnumBooleanMember = 228

The kind of EnumBooleanMember.

§

ComponentParameter = 229

The kind of ComponentParameter.

§

RecordDeclaration = 230

The kind of RecordDeclaration.

§

RecordDeclarationImplements = 231

§

RecordDeclarationBody = 232

The kind of RecordDeclarationBody.

§

RecordDeclarationProperty = 233

§

RecordDeclarationStaticProperty = 234

§

RecordExpression = 235

The kind of RecordExpression.

§

RecordExpressionProperties = 236

§

_Flow_Last = 237

Exclusive upper bound of the Flow range.

§

_TS_First = 238

Exclusive lower bound of the TS range.

§

TSTypeAnnotation = 239

The kind of TSTypeAnnotation.

§

TSAnyKeyword = 240

The kind of TSAnyKeyword.

§

TSNumberKeyword = 241

The kind of TSNumberKeyword.

§

TSBooleanKeyword = 242

The kind of TSBooleanKeyword.

§

TSStringKeyword = 243

The kind of TSStringKeyword.

§

TSSymbolKeyword = 244

The kind of TSSymbolKeyword.

§

TSVoidKeyword = 245

The kind of TSVoidKeyword.

§

TSUndefinedKeyword = 246

The kind of TSUndefinedKeyword.

§

TSUnknownKeyword = 247

The kind of TSUnknownKeyword.

§

TSNeverKeyword = 248

The kind of TSNeverKeyword.

§

TSBigIntKeyword = 249

The kind of TSBigIntKeyword.

§

TSThisType = 250

The kind of TSThisType.

§

TSLiteralType = 251

The kind of TSLiteralType.

§

TSIndexedAccessType = 252

The kind of TSIndexedAccessType.

§

TSArrayType = 253

The kind of TSArrayType.

§

TSTypeReference = 254

The kind of TSTypeReference.

§

TSQualifiedName = 255

The kind of TSQualifiedName.

§

TSFunctionType = 256

The kind of TSFunctionType.

§

TSConstructorType = 257

The kind of TSConstructorType.

§

TSTypePredicate = 258

The kind of TSTypePredicate.

§

TSTupleType = 259

The kind of TSTupleType.

§

TSTypeAssertion = 260

The kind of TSTypeAssertion.

§

TSAsExpression = 261

The kind of TSAsExpression.

§

TSParameterProperty = 262

The kind of TSParameterProperty.

§

TSTypeAliasDeclaration = 263

§

TSInterfaceDeclaration = 264

§

TSInterfaceHeritage = 265

The kind of TSInterfaceHeritage.

§

TSInterfaceBody = 266

The kind of TSInterfaceBody.

§

TSEnumDeclaration = 267

The kind of TSEnumDeclaration.

§

TSEnumMember = 268

The kind of TSEnumMember.

§

TSModuleDeclaration = 269

The kind of TSModuleDeclaration.

§

TSModuleBlock = 270

The kind of TSModuleBlock.

§

TSModuleMember = 271

The kind of TSModuleMember.

§

TSTypeParameterDeclaration = 272

§

TSTypeParameter = 273

The kind of TSTypeParameter.

§

TSTypeParameterInstantiation = 274

§

TSUnionType = 275

The kind of TSUnionType.

§

TSIntersectionType = 276

The kind of TSIntersectionType.

§

TSTypeQuery = 277

The kind of TSTypeQuery.

§

TSConditionalType = 278

The kind of TSConditionalType.

§

TSTypeLiteral = 279

The kind of TSTypeLiteral.

§

TSPropertySignature = 280

The kind of TSPropertySignature.

§

TSMethodSignature = 281

The kind of TSMethodSignature.

§

TSIndexSignature = 282

The kind of TSIndexSignature.

§

TSCallSignatureDeclaration = 283

§

TSModifiers = 284

The kind of TSModifiers.

§

_TS_Last = 285

Exclusive upper bound of the TS range.

§

_Cover_First = 286

Exclusive lower bound of the Cover range.

§

CoverEmptyArgs = 287

The kind of CoverEmptyArgs.

§

CoverTrailingComma = 288

The kind of CoverTrailingComma.

§

CoverInitializer = 289

The kind of CoverInitializer.

§

CoverRestElement = 290

The kind of CoverRestElement.

§

CoverTypedIdentifier = 291

The kind of CoverTypedIdentifier.

§

_Cover_Last = 292

Exclusive upper bound of the Cover range.

§

SHBuiltin = 293

The kind of SHBuiltin.

§

ImplicitCheckedCast = 294

The kind of ImplicitCheckedCast.

Trait Implementations§

Source§

impl Clone for NodeKind

Source§

fn clone(&self) -> NodeKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for NodeKind

Source§

impl Debug for NodeKind

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Eq for NodeKind

Source§

impl Hash for NodeKind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for NodeKind

Source§

fn eq(&self, other: &NodeKind) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for NodeKind

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.