pub enum Tsx {
Show 401 variants
End = 0,
Identifier = 1,
HashBangLine = 2,
Export = 3,
STAR = 4,
Default = 5,
Type = 6,
EQ = 7,
As = 8,
Namespace = 9,
LBRACE = 10,
COMMA = 11,
RBRACE = 12,
Typeof = 13,
Import2 = 14,
From = 15,
With = 16,
Assert = 17,
Var = 18,
Let = 19,
Const = 20,
BANG = 21,
Else = 22,
If = 23,
Switch = 24,
For = 25,
LPAREN = 26,
SEMI = 27,
RPAREN = 28,
Await = 29,
In = 30,
Of = 31,
While = 32,
Do = 33,
Try = 34,
Break = 35,
Continue = 36,
Debugger = 37,
Return = 38,
Throw = 39,
COLON = 40,
Case = 41,
Catch = 42,
Finally = 43,
Yield = 44,
LBRACK = 45,
RBRACK = 46,
HtmlCharacterReference = 47,
GT = 48,
Identifier2 = 49,
DOT = 50,
LTSLASH = 51,
SLASHGT = 52,
DQUOTE = 53,
SQUOTE = 54,
StringFragment = 55,
StringFragment2 = 56,
Class2 = 57,
Async = 58,
Function = 59,
EQGT = 60,
QMARKDOT = 61,
New = 62,
Using = 63,
PLUSEQ = 64,
DASHEQ = 65,
STAREQ = 66,
SLASHEQ = 67,
PERCENTEQ = 68,
CARETEQ = 69,
AMPEQ = 70,
PIPEEQ = 71,
GTGTEQ = 72,
GTGTGTEQ = 73,
LTLTEQ = 74,
STARSTAREQ = 75,
AMPAMPEQ = 76,
PIPEPIPEEQ = 77,
QMARKQMARKEQ = 78,
DOTDOTDOT = 79,
AMPAMP = 80,
PIPEPIPE = 81,
GTGT = 82,
GTGTGT = 83,
LTLT = 84,
AMP = 85,
CARET = 86,
PIPE = 87,
PLUS = 88,
DASH = 89,
SLASH = 90,
PERCENT = 91,
STARSTAR = 92,
LT = 93,
LTEQ = 94,
EQEQ = 95,
EQEQEQ = 96,
BANGEQ = 97,
BANGEQEQ = 98,
GTEQ = 99,
QMARKQMARK = 100,
Instanceof = 101,
TILDE = 102,
Void = 103,
Delete = 104,
PLUSPLUS = 105,
DASHDASH = 106,
StringFragment3 = 107,
StringFragment4 = 108,
EscapeSequence = 109,
Comment = 110,
BQUOTE = 111,
DOLLARLBRACE = 112,
SLASH2 = 113,
RegexPattern = 114,
RegexFlags = 115,
Number = 116,
PrivatePropertyIdentifier = 117,
Target = 118,
Meta = 119,
This = 120,
Super = 121,
True = 122,
False = 123,
Null = 124,
Undefined = 125,
AT = 126,
Static = 127,
Readonly = 128,
Get = 129,
Set = 130,
QMARK = 131,
Declare = 132,
Public = 133,
Private = 134,
Protected = 135,
Override = 136,
Module2 = 137,
Any = 138,
Number2 = 139,
Boolean = 140,
String3 = 141,
Symbol = 142,
Object2 = 143,
Abstract = 144,
Accessor = 145,
Satisfies = 146,
Require = 147,
Extends = 148,
Implements = 149,
Global = 150,
Interface = 151,
Enum = 152,
DASHQMARKCOLON = 153,
PLUSQMARKCOLON = 154,
QMARKCOLON = 155,
Asserts2 = 156,
Infer = 157,
Is = 158,
Keyof = 159,
Uniquesymbol = 160,
Unknown = 161,
Never = 162,
LBRACEPIPE = 163,
PIPERBRACE = 164,
AutomaticSemicolon = 165,
StringFragment5 = 166,
QMARK2 = 167,
HtmlComment = 168,
JsxText = 169,
FunctionSignatureAutomaticSemicolon = 170,
ErrorRecovery = 171,
Program = 172,
ExportStatement = 173,
NamespaceExport = 174,
ExportClause = 175,
ExportSpecifier = 176,
ModuleExportName = 177,
Declaration = 178,
Import = 179,
ImportStatement = 180,
ImportClause = 181,
FromClause = 182,
NamespaceImport = 183,
NamedImports = 184,
ImportSpecifier = 185,
ImportAttribute = 186,
Statement = 187,
ExpressionStatement = 188,
VariableDeclaration = 189,
LexicalDeclaration = 190,
VariableDeclarator = 191,
StatementBlock = 192,
ElseClause = 193,
IfStatement = 194,
SwitchStatement = 195,
ForStatement = 196,
ForInStatement = 197,
ForHeader = 198,
WhileStatement = 199,
DoStatement = 200,
TryStatement = 201,
WithStatement = 202,
BreakStatement = 203,
ContinueStatement = 204,
DebuggerStatement = 205,
ReturnStatement = 206,
ThrowStatement = 207,
EmptyStatement = 208,
LabeledStatement = 209,
SwitchBody = 210,
SwitchCase = 211,
SwitchDefault = 212,
CatchClause = 213,
FinallyClause = 214,
ParenthesizedExpression = 215,
Expression = 216,
PrimaryExpression = 217,
YieldExpression = 218,
Object = 219,
ObjectPattern = 220,
AssignmentPattern = 221,
ObjectAssignmentPattern = 222,
Array = 223,
ArrayPattern = 224,
JsxElement = 225,
JsxExpression = 226,
JsxOpeningElement = 227,
NestedIdentifier = 228,
JsxNamespaceName = 229,
JsxClosingElement = 230,
JsxSelfClosingElement = 231,
JsxAttribute = 232,
String = 233,
Class = 234,
ClassDeclaration = 235,
ClassHeritage = 236,
FunctionExpression = 237,
FunctionDeclaration = 238,
GeneratorFunction = 239,
GeneratorFunctionDeclaration = 240,
ArrowFunction = 241,
CallSignature2 = 242,
FormalParameter = 243,
OptionalChain = 244,
CallExpression = 245,
NewExpression = 246,
AwaitExpression = 247,
MemberExpression = 248,
SubscriptExpression = 249,
AssignmentExpression = 250,
AugmentedAssignmentLhs = 251,
AugmentedAssignmentExpression = 252,
Initializer = 253,
DestructuringPattern = 254,
SpreadElement = 255,
TernaryExpression = 256,
BinaryExpression = 257,
UnaryExpression = 258,
UpdateExpression = 259,
SequenceExpression = 260,
String2 = 261,
TemplateString = 262,
TemplateSubstitution = 263,
Regex = 264,
MetaProperty = 265,
Arguments = 266,
Decorator = 267,
MemberExpression2 = 268,
CallExpression2 = 269,
ClassBody = 270,
FormalParameters = 271,
ClassStaticBlock = 272,
Pattern = 273,
RestPattern = 274,
MethodDefinition = 275,
Pair = 276,
PairPattern = 277,
PropertyName = 278,
ComputedPropertyName = 279,
PublicFieldDefinition = 280,
ImportIdentifier = 281,
NonNullExpression = 282,
MethodSignature = 283,
AbstractMethodSignature = 284,
FunctionSignature = 285,
ParenthesizedExpression2 = 286,
AsExpression = 287,
SatisfiesExpression = 288,
InstantiationExpression = 289,
ImportRequireClause = 290,
ExtendsClause = 291,
ExtendsClauseSingle = 292,
ImplementsClause = 293,
AmbientDeclaration = 294,
AbstractClassDeclaration = 295,
Module = 296,
InternalModule = 297,
Module3 = 298,
ImportAlias = 299,
NestedTypeIdentifier = 300,
InterfaceDeclaration = 301,
ExtendsTypeClause = 302,
EnumDeclaration = 303,
EnumBody = 304,
EnumAssignment = 305,
TypeAliasDeclaration = 306,
AccessibilityModifier = 307,
OverrideModifier = 308,
RequiredParameter = 309,
OptionalParameter = 310,
ParameterName = 311,
OmittingTypeAnnotation = 312,
AddingTypeAnnotation = 313,
OptingTypeAnnotation = 314,
TypeAnnotation = 315,
MemberExpression3 = 316,
CallExpression3 = 317,
Asserts = 318,
AssertsAnnotation = 319,
Type2 = 320,
RequiredParameter2 = 321,
OptionalParameter2 = 322,
OptionalType = 323,
RestType = 324,
TupleTypeMember = 325,
ConstructorType = 326,
PrimaryType = 327,
TemplateType = 328,
TemplateLiteralType = 329,
InferType = 330,
ConditionalType = 331,
GenericType = 332,
TypePredicate = 333,
TypePredicateAnnotation = 334,
MemberExpression4 = 335,
SubscriptExpression2 = 336,
CallExpression4 = 337,
InstantiationExpression2 = 338,
TypeQuery = 339,
IndexTypeQuery = 340,
LookupType = 341,
MappedTypeClause = 342,
LiteralType = 343,
UnaryExpression2 = 344,
ExistentialType = 345,
FlowMaybeType = 346,
ParenthesizedType = 347,
PredefinedType = 348,
TypeArguments = 349,
ObjectType = 350,
CallSignature = 351,
PropertySignature = 352,
TypeParameters = 353,
TypeParameter = 354,
DefaultType = 355,
Constraint = 356,
ConstructSignature = 357,
IndexSignature = 358,
ArrayType = 359,
TupleType = 360,
ReadonlyType = 361,
UnionType = 362,
IntersectionType = 363,
FunctionType = 364,
ProgramRepeat1 = 365,
ExportStatementRepeat1 = 366,
ExportClauseRepeat1 = 367,
NamedImportsRepeat1 = 368,
VariableDeclarationRepeat1 = 369,
SwitchBodyRepeat1 = 370,
ObjectRepeat1 = 371,
ObjectPatternRepeat1 = 372,
ArrayRepeat1 = 373,
ArrayPatternRepeat1 = 374,
JsxElementRepeat1 = 375,
JsxStringRepeat1 = 376,
JsxStringRepeat2 = 377,
SequenceExpressionRepeat1 = 378,
StringRepeat1 = 379,
StringRepeat2 = 380,
TemplateStringRepeat1 = 381,
ClassBodyRepeat1 = 382,
FormalParametersRepeat1 = 383,
JsxStartOpeningElementRepeat1 = 384,
ExtendsClauseRepeat1 = 385,
ImplementsClauseRepeat1 = 386,
ExtendsTypeClauseRepeat1 = 387,
EnumBodyRepeat1 = 388,
TemplateLiteralTypeRepeat1 = 389,
ObjectTypeRepeat1 = 390,
TypeParametersRepeat1 = 391,
TupleTypeRepeat1 = 392,
InterfaceBody = 393,
PropertyIdentifier = 394,
ShorthandPropertyIdentifier = 395,
ShorthandPropertyIdentifierPattern = 396,
StatementIdentifier = 397,
ThisType = 398,
TypeIdentifier = 399,
Error = 400,
}Variants§
End = 0
Identifier = 1
HashBangLine = 2
Export = 3
STAR = 4
Default = 5
Type = 6
EQ = 7
As = 8
Namespace = 9
LBRACE = 10
COMMA = 11
RBRACE = 12
Typeof = 13
Import2 = 14
From = 15
With = 16
Assert = 17
Var = 18
Let = 19
Const = 20
BANG = 21
Else = 22
If = 23
Switch = 24
For = 25
LPAREN = 26
SEMI = 27
RPAREN = 28
Await = 29
In = 30
Of = 31
While = 32
Do = 33
Try = 34
Break = 35
Continue = 36
Debugger = 37
Return = 38
Throw = 39
COLON = 40
Case = 41
Catch = 42
Finally = 43
Yield = 44
LBRACK = 45
RBRACK = 46
HtmlCharacterReference = 47
GT = 48
Identifier2 = 49
DOT = 50
LTSLASH = 51
SLASHGT = 52
DQUOTE = 53
SQUOTE = 54
StringFragment = 55
StringFragment2 = 56
Class2 = 57
Async = 58
Function = 59
EQGT = 60
QMARKDOT = 61
New = 62
Using = 63
PLUSEQ = 64
DASHEQ = 65
STAREQ = 66
SLASHEQ = 67
PERCENTEQ = 68
CARETEQ = 69
AMPEQ = 70
PIPEEQ = 71
GTGTEQ = 72
GTGTGTEQ = 73
LTLTEQ = 74
STARSTAREQ = 75
AMPAMPEQ = 76
PIPEPIPEEQ = 77
QMARKQMARKEQ = 78
DOTDOTDOT = 79
AMPAMP = 80
PIPEPIPE = 81
GTGT = 82
GTGTGT = 83
LTLT = 84
AMP = 85
CARET = 86
PIPE = 87
PLUS = 88
DASH = 89
SLASH = 90
PERCENT = 91
STARSTAR = 92
LT = 93
LTEQ = 94
EQEQ = 95
EQEQEQ = 96
BANGEQ = 97
BANGEQEQ = 98
GTEQ = 99
QMARKQMARK = 100
Instanceof = 101
TILDE = 102
Void = 103
Delete = 104
PLUSPLUS = 105
DASHDASH = 106
StringFragment3 = 107
StringFragment4 = 108
EscapeSequence = 109
Comment = 110
BQUOTE = 111
DOLLARLBRACE = 112
SLASH2 = 113
RegexPattern = 114
RegexFlags = 115
Number = 116
PrivatePropertyIdentifier = 117
Target = 118
Meta = 119
This = 120
Super = 121
True = 122
False = 123
Null = 124
Undefined = 125
AT = 126
Static = 127
Readonly = 128
Get = 129
Set = 130
QMARK = 131
Declare = 132
Public = 133
Private = 134
Protected = 135
Override = 136
Module2 = 137
Any = 138
Number2 = 139
Boolean = 140
String3 = 141
Symbol = 142
Object2 = 143
Abstract = 144
Accessor = 145
Satisfies = 146
Require = 147
Extends = 148
Implements = 149
Global = 150
Interface = 151
Enum = 152
DASHQMARKCOLON = 153
PLUSQMARKCOLON = 154
QMARKCOLON = 155
Asserts2 = 156
Infer = 157
Is = 158
Keyof = 159
Uniquesymbol = 160
Unknown = 161
Never = 162
LBRACEPIPE = 163
PIPERBRACE = 164
AutomaticSemicolon = 165
StringFragment5 = 166
QMARK2 = 167
HtmlComment = 168
JsxText = 169
FunctionSignatureAutomaticSemicolon = 170
ErrorRecovery = 171
Program = 172
ExportStatement = 173
NamespaceExport = 174
ExportClause = 175
ExportSpecifier = 176
ModuleExportName = 177
Declaration = 178
Import = 179
ImportStatement = 180
ImportClause = 181
FromClause = 182
NamespaceImport = 183
NamedImports = 184
ImportSpecifier = 185
ImportAttribute = 186
Statement = 187
ExpressionStatement = 188
VariableDeclaration = 189
LexicalDeclaration = 190
VariableDeclarator = 191
StatementBlock = 192
ElseClause = 193
IfStatement = 194
SwitchStatement = 195
ForStatement = 196
ForInStatement = 197
ForHeader = 198
WhileStatement = 199
DoStatement = 200
TryStatement = 201
WithStatement = 202
BreakStatement = 203
ContinueStatement = 204
DebuggerStatement = 205
ReturnStatement = 206
ThrowStatement = 207
EmptyStatement = 208
LabeledStatement = 209
SwitchBody = 210
SwitchCase = 211
SwitchDefault = 212
CatchClause = 213
FinallyClause = 214
ParenthesizedExpression = 215
Expression = 216
PrimaryExpression = 217
YieldExpression = 218
Object = 219
ObjectPattern = 220
AssignmentPattern = 221
ObjectAssignmentPattern = 222
Array = 223
ArrayPattern = 224
JsxElement = 225
JsxExpression = 226
JsxOpeningElement = 227
NestedIdentifier = 228
JsxNamespaceName = 229
JsxClosingElement = 230
JsxSelfClosingElement = 231
JsxAttribute = 232
String = 233
Class = 234
ClassDeclaration = 235
ClassHeritage = 236
FunctionExpression = 237
FunctionDeclaration = 238
GeneratorFunction = 239
GeneratorFunctionDeclaration = 240
ArrowFunction = 241
CallSignature2 = 242
FormalParameter = 243
OptionalChain = 244
CallExpression = 245
NewExpression = 246
AwaitExpression = 247
MemberExpression = 248
SubscriptExpression = 249
AssignmentExpression = 250
AugmentedAssignmentLhs = 251
AugmentedAssignmentExpression = 252
Initializer = 253
DestructuringPattern = 254
SpreadElement = 255
TernaryExpression = 256
BinaryExpression = 257
UnaryExpression = 258
UpdateExpression = 259
SequenceExpression = 260
String2 = 261
TemplateString = 262
TemplateSubstitution = 263
Regex = 264
MetaProperty = 265
Arguments = 266
Decorator = 267
MemberExpression2 = 268
CallExpression2 = 269
ClassBody = 270
FormalParameters = 271
ClassStaticBlock = 272
Pattern = 273
RestPattern = 274
MethodDefinition = 275
Pair = 276
PairPattern = 277
PropertyName = 278
ComputedPropertyName = 279
PublicFieldDefinition = 280
ImportIdentifier = 281
NonNullExpression = 282
MethodSignature = 283
AbstractMethodSignature = 284
FunctionSignature = 285
ParenthesizedExpression2 = 286
AsExpression = 287
SatisfiesExpression = 288
InstantiationExpression = 289
ImportRequireClause = 290
ExtendsClause = 291
ExtendsClauseSingle = 292
ImplementsClause = 293
AmbientDeclaration = 294
AbstractClassDeclaration = 295
Module = 296
InternalModule = 297
Module3 = 298
ImportAlias = 299
NestedTypeIdentifier = 300
InterfaceDeclaration = 301
ExtendsTypeClause = 302
EnumDeclaration = 303
EnumBody = 304
EnumAssignment = 305
TypeAliasDeclaration = 306
AccessibilityModifier = 307
OverrideModifier = 308
RequiredParameter = 309
OptionalParameter = 310
ParameterName = 311
OmittingTypeAnnotation = 312
AddingTypeAnnotation = 313
OptingTypeAnnotation = 314
TypeAnnotation = 315
MemberExpression3 = 316
CallExpression3 = 317
Asserts = 318
AssertsAnnotation = 319
Type2 = 320
RequiredParameter2 = 321
OptionalParameter2 = 322
OptionalType = 323
RestType = 324
TupleTypeMember = 325
ConstructorType = 326
PrimaryType = 327
TemplateType = 328
TemplateLiteralType = 329
InferType = 330
ConditionalType = 331
GenericType = 332
TypePredicate = 333
TypePredicateAnnotation = 334
MemberExpression4 = 335
SubscriptExpression2 = 336
CallExpression4 = 337
InstantiationExpression2 = 338
TypeQuery = 339
IndexTypeQuery = 340
LookupType = 341
MappedTypeClause = 342
LiteralType = 343
UnaryExpression2 = 344
ExistentialType = 345
FlowMaybeType = 346
ParenthesizedType = 347
PredefinedType = 348
TypeArguments = 349
ObjectType = 350
CallSignature = 351
PropertySignature = 352
TypeParameters = 353
TypeParameter = 354
DefaultType = 355
Constraint = 356
ConstructSignature = 357
IndexSignature = 358
ArrayType = 359
TupleType = 360
ReadonlyType = 361
UnionType = 362
IntersectionType = 363
FunctionType = 364
ProgramRepeat1 = 365
ExportStatementRepeat1 = 366
ExportClauseRepeat1 = 367
NamedImportsRepeat1 = 368
VariableDeclarationRepeat1 = 369
SwitchBodyRepeat1 = 370
ObjectRepeat1 = 371
ObjectPatternRepeat1 = 372
ArrayRepeat1 = 373
ArrayPatternRepeat1 = 374
JsxElementRepeat1 = 375
JsxStringRepeat1 = 376
JsxStringRepeat2 = 377
SequenceExpressionRepeat1 = 378
StringRepeat1 = 379
StringRepeat2 = 380
TemplateStringRepeat1 = 381
ClassBodyRepeat1 = 382
FormalParametersRepeat1 = 383
JsxStartOpeningElementRepeat1 = 384
ExtendsClauseRepeat1 = 385
ImplementsClauseRepeat1 = 386
ExtendsTypeClauseRepeat1 = 387
EnumBodyRepeat1 = 388
TemplateLiteralTypeRepeat1 = 389
ObjectTypeRepeat1 = 390
TypeParametersRepeat1 = 391
TupleTypeRepeat1 = 392
InterfaceBody = 393
PropertyIdentifier = 394
ShorthandPropertyIdentifier = 395
ShorthandPropertyIdentifierPattern = 396
StatementIdentifier = 397
ThisType = 398
TypeIdentifier = 399
Error = 400
Trait Implementations§
impl Eq for Tsx
Source§impl FromPrimitive for Tsx
impl FromPrimitive for Tsx
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreimpl StructuralPartialEq for Tsx
Auto Trait Implementations§
impl Freeze for Tsx
impl RefUnwindSafe for Tsx
impl Send for Tsx
impl Sync for Tsx
impl Unpin for Tsx
impl UnsafeUnpin for Tsx
impl UnwindSafe for Tsx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.