pub enum Javascript {
Show 266 variants
End = 0,
Identifier = 1,
HashBangLine = 2,
Export = 3,
STAR = 4,
Default = 5,
As = 6,
LBRACE = 7,
COMMA = 8,
RBRACE = 9,
Import2 = 10,
From = 11,
With = 12,
Var = 13,
Let = 14,
Const = 15,
Using = 16,
Await = 17,
Of = 18,
Else = 19,
If = 20,
Switch = 21,
For = 22,
LPAREN = 23,
SEMI = 24,
RPAREN = 25,
In = 26,
While = 27,
Do = 28,
Try = 29,
Break = 30,
Continue = 31,
Debugger = 32,
Return = 33,
Throw = 34,
COLON = 35,
Case = 36,
Catch = 37,
Finally = 38,
Yield = 39,
EQ = 40,
LBRACK = 41,
RBRACK = 42,
HtmlCharacterReference = 43,
LT = 44,
GT = 45,
Identifier2 = 46,
DOT = 47,
LTSLASH = 48,
SLASHGT = 49,
DQUOTE = 50,
SQUOTE = 51,
StringFragment = 52,
StringFragment2 = 53,
Class2 = 54,
Extends = 55,
Async = 56,
Function = 57,
EQGT = 58,
OptionalChain = 59,
New = 60,
PLUSEQ = 61,
DASHEQ = 62,
STAREQ = 63,
SLASHEQ = 64,
PERCENTEQ = 65,
CARETEQ = 66,
AMPEQ = 67,
PIPEEQ = 68,
GTGTEQ = 69,
GTGTGTEQ = 70,
LTLTEQ = 71,
STARSTAREQ = 72,
AMPAMPEQ = 73,
PIPEPIPEEQ = 74,
QMARKQMARKEQ = 75,
DOTDOTDOT = 76,
AMPAMP = 77,
PIPEPIPE = 78,
GTGT = 79,
GTGTGT = 80,
LTLT = 81,
AMP = 82,
CARET = 83,
PIPE = 84,
PLUS = 85,
DASH = 86,
SLASH = 87,
PERCENT = 88,
STARSTAR = 89,
LTEQ = 90,
EQEQ = 91,
EQEQEQ = 92,
BANGEQ = 93,
BANGEQEQ = 94,
GTEQ = 95,
QMARKQMARK = 96,
Instanceof = 97,
BANG = 98,
TILDE = 99,
Typeof = 100,
Void = 101,
Delete = 102,
PLUSPLUS = 103,
DASHDASH = 104,
StringFragment3 = 105,
StringFragment4 = 106,
EscapeSequence = 107,
Comment = 108,
BQUOTE = 109,
DOLLARLBRACE = 110,
SLASH2 = 111,
RegexPattern = 112,
RegexFlags = 113,
Number = 114,
PrivatePropertyIdentifier = 115,
Target = 116,
Meta = 117,
This = 118,
Super = 119,
True = 120,
False = 121,
Null = 122,
Undefined = 123,
AT = 124,
Static = 125,
Staticget = 126,
Get = 127,
Set = 128,
AutomaticSemicolon = 129,
StringFragment5 = 130,
QMARK = 131,
HtmlComment = 132,
JsxText = 133,
Program = 134,
ExportStatement = 135,
NamespaceExport = 136,
ExportClause = 137,
ExportSpecifier = 138,
ModuleExportName = 139,
Declaration = 140,
Import = 141,
ImportStatement = 142,
ImportClause = 143,
FromClause = 144,
NamespaceImport = 145,
NamedImports = 146,
ImportSpecifier = 147,
ImportAttribute = 148,
Statement = 149,
ExpressionStatement = 150,
VariableDeclaration = 151,
LexicalDeclaration = 152,
UsingDeclaration = 153,
VariableDeclarator = 154,
StatementBlock = 155,
ElseClause = 156,
IfStatement = 157,
SwitchStatement = 158,
ForStatement = 159,
ForInStatement = 160,
ForHeader = 161,
WhileStatement = 162,
DoStatement = 163,
TryStatement = 164,
WithStatement = 165,
BreakStatement = 166,
ContinueStatement = 167,
DebuggerStatement = 168,
ReturnStatement = 169,
ThrowStatement = 170,
EmptyStatement = 171,
LabeledStatement = 172,
SwitchBody = 173,
SwitchCase = 174,
SwitchDefault = 175,
CatchClause = 176,
FinallyClause = 177,
ParenthesizedExpression = 178,
Expression = 179,
PrimaryExpression = 180,
YieldExpression = 181,
Object = 182,
ObjectPattern = 183,
AssignmentPattern = 184,
ObjectAssignmentPattern = 185,
Array = 186,
ArrayPattern = 187,
JsxElement = 188,
JsxExpression = 189,
JsxOpeningElement = 190,
MemberExpression = 191,
JsxNamespaceName = 192,
JsxClosingElement = 193,
JsxSelfClosingElement = 194,
JsxAttribute = 195,
String = 196,
Class = 197,
ClassDeclaration = 198,
ClassHeritage = 199,
FunctionExpression = 200,
FunctionDeclaration = 201,
GeneratorFunction = 202,
GeneratorFunctionDeclaration = 203,
ArrowFunction = 204,
CallExpression = 205,
NewExpression = 206,
AwaitExpression = 207,
MemberExpression2 = 208,
SubscriptExpression = 209,
AssignmentExpression = 210,
AugmentedAssignmentLhs = 211,
AugmentedAssignmentExpression = 212,
Initializer = 213,
DestructuringPattern = 214,
SpreadElement = 215,
TernaryExpression = 216,
BinaryExpression = 217,
UnaryExpression = 218,
UpdateExpression = 219,
SequenceExpression = 220,
String2 = 221,
TemplateString = 222,
TemplateSubstitution = 223,
Regex = 224,
MetaProperty = 225,
Arguments = 226,
Decorator = 227,
MemberExpression3 = 228,
CallExpression2 = 229,
ClassBody = 230,
FieldDefinition = 231,
FormalParameters = 232,
ClassStaticBlock = 233,
Pattern = 234,
RestPattern = 235,
MethodDefinition = 236,
Pair = 237,
PairPattern = 238,
PropertyName = 239,
ComputedPropertyName = 240,
ProgramRepeat1 = 241,
ExportStatementRepeat1 = 242,
ExportClauseRepeat1 = 243,
NamedImportsRepeat1 = 244,
VariableDeclarationRepeat1 = 245,
SwitchBodyRepeat1 = 246,
ObjectRepeat1 = 247,
ObjectPatternRepeat1 = 248,
ArrayRepeat1 = 249,
ArrayPatternRepeat1 = 250,
JsxElementRepeat1 = 251,
JsxOpeningElementRepeat1 = 252,
JsxStringRepeat1 = 253,
JsxStringRepeat2 = 254,
SequenceExpressionRepeat1 = 255,
StringRepeat1 = 256,
StringRepeat2 = 257,
TemplateStringRepeat1 = 258,
ClassBodyRepeat1 = 259,
FormalParametersRepeat1 = 260,
PropertyIdentifier = 261,
ShorthandPropertyIdentifier = 262,
ShorthandPropertyIdentifierPattern = 263,
StatementIdentifier = 264,
Error = 265,
}Variants§
End = 0
Identifier = 1
HashBangLine = 2
Export = 3
STAR = 4
Default = 5
As = 6
LBRACE = 7
COMMA = 8
RBRACE = 9
Import2 = 10
From = 11
With = 12
Var = 13
Let = 14
Const = 15
Using = 16
Await = 17
Of = 18
Else = 19
If = 20
Switch = 21
For = 22
LPAREN = 23
SEMI = 24
RPAREN = 25
In = 26
While = 27
Do = 28
Try = 29
Break = 30
Continue = 31
Debugger = 32
Return = 33
Throw = 34
COLON = 35
Case = 36
Catch = 37
Finally = 38
Yield = 39
EQ = 40
LBRACK = 41
RBRACK = 42
HtmlCharacterReference = 43
LT = 44
GT = 45
Identifier2 = 46
DOT = 47
LTSLASH = 48
SLASHGT = 49
DQUOTE = 50
SQUOTE = 51
StringFragment = 52
StringFragment2 = 53
Class2 = 54
Extends = 55
Async = 56
Function = 57
EQGT = 58
OptionalChain = 59
New = 60
PLUSEQ = 61
DASHEQ = 62
STAREQ = 63
SLASHEQ = 64
PERCENTEQ = 65
CARETEQ = 66
AMPEQ = 67
PIPEEQ = 68
GTGTEQ = 69
GTGTGTEQ = 70
LTLTEQ = 71
STARSTAREQ = 72
AMPAMPEQ = 73
PIPEPIPEEQ = 74
QMARKQMARKEQ = 75
DOTDOTDOT = 76
AMPAMP = 77
PIPEPIPE = 78
GTGT = 79
GTGTGT = 80
LTLT = 81
AMP = 82
CARET = 83
PIPE = 84
PLUS = 85
DASH = 86
SLASH = 87
PERCENT = 88
STARSTAR = 89
LTEQ = 90
EQEQ = 91
EQEQEQ = 92
BANGEQ = 93
BANGEQEQ = 94
GTEQ = 95
QMARKQMARK = 96
Instanceof = 97
BANG = 98
TILDE = 99
Typeof = 100
Void = 101
Delete = 102
PLUSPLUS = 103
DASHDASH = 104
StringFragment3 = 105
StringFragment4 = 106
EscapeSequence = 107
Comment = 108
BQUOTE = 109
DOLLARLBRACE = 110
SLASH2 = 111
RegexPattern = 112
RegexFlags = 113
Number = 114
PrivatePropertyIdentifier = 115
Target = 116
Meta = 117
This = 118
Super = 119
True = 120
False = 121
Null = 122
Undefined = 123
AT = 124
Static = 125
Staticget = 126
Get = 127
Set = 128
AutomaticSemicolon = 129
StringFragment5 = 130
QMARK = 131
HtmlComment = 132
JsxText = 133
Program = 134
ExportStatement = 135
NamespaceExport = 136
ExportClause = 137
ExportSpecifier = 138
ModuleExportName = 139
Declaration = 140
Import = 141
ImportStatement = 142
ImportClause = 143
FromClause = 144
NamespaceImport = 145
NamedImports = 146
ImportSpecifier = 147
ImportAttribute = 148
Statement = 149
ExpressionStatement = 150
VariableDeclaration = 151
LexicalDeclaration = 152
UsingDeclaration = 153
VariableDeclarator = 154
StatementBlock = 155
ElseClause = 156
IfStatement = 157
SwitchStatement = 158
ForStatement = 159
ForInStatement = 160
ForHeader = 161
WhileStatement = 162
DoStatement = 163
TryStatement = 164
WithStatement = 165
BreakStatement = 166
ContinueStatement = 167
DebuggerStatement = 168
ReturnStatement = 169
ThrowStatement = 170
EmptyStatement = 171
LabeledStatement = 172
SwitchBody = 173
SwitchCase = 174
SwitchDefault = 175
CatchClause = 176
FinallyClause = 177
ParenthesizedExpression = 178
Expression = 179
PrimaryExpression = 180
YieldExpression = 181
Object = 182
ObjectPattern = 183
AssignmentPattern = 184
ObjectAssignmentPattern = 185
Array = 186
ArrayPattern = 187
JsxElement = 188
JsxExpression = 189
JsxOpeningElement = 190
MemberExpression = 191
JsxNamespaceName = 192
JsxClosingElement = 193
JsxSelfClosingElement = 194
JsxAttribute = 195
String = 196
Class = 197
ClassDeclaration = 198
ClassHeritage = 199
FunctionExpression = 200
FunctionDeclaration = 201
GeneratorFunction = 202
GeneratorFunctionDeclaration = 203
ArrowFunction = 204
CallExpression = 205
NewExpression = 206
AwaitExpression = 207
MemberExpression2 = 208
SubscriptExpression = 209
AssignmentExpression = 210
AugmentedAssignmentLhs = 211
AugmentedAssignmentExpression = 212
Initializer = 213
DestructuringPattern = 214
SpreadElement = 215
TernaryExpression = 216
BinaryExpression = 217
UnaryExpression = 218
UpdateExpression = 219
SequenceExpression = 220
String2 = 221
TemplateString = 222
TemplateSubstitution = 223
Regex = 224
MetaProperty = 225
Arguments = 226
Decorator = 227
MemberExpression3 = 228
CallExpression2 = 229
ClassBody = 230
FieldDefinition = 231
FormalParameters = 232
ClassStaticBlock = 233
Pattern = 234
RestPattern = 235
MethodDefinition = 236
Pair = 237
PairPattern = 238
PropertyName = 239
ComputedPropertyName = 240
ProgramRepeat1 = 241
ExportStatementRepeat1 = 242
ExportClauseRepeat1 = 243
NamedImportsRepeat1 = 244
VariableDeclarationRepeat1 = 245
SwitchBodyRepeat1 = 246
ObjectRepeat1 = 247
ObjectPatternRepeat1 = 248
ArrayRepeat1 = 249
ArrayPatternRepeat1 = 250
JsxElementRepeat1 = 251
JsxOpeningElementRepeat1 = 252
JsxStringRepeat1 = 253
JsxStringRepeat2 = 254
SequenceExpressionRepeat1 = 255
StringRepeat1 = 256
StringRepeat2 = 257
TemplateStringRepeat1 = 258
ClassBodyRepeat1 = 259
FormalParametersRepeat1 = 260
PropertyIdentifier = 261
ShorthandPropertyIdentifier = 262
ShorthandPropertyIdentifierPattern = 263
StatementIdentifier = 264
Error = 265
Trait Implementations§
Source§impl Clone for Javascript
impl Clone for Javascript
Source§impl Debug for Javascript
impl Debug for Javascript
impl Eq for Javascript
Source§impl From<Javascript> for &'static str
impl From<Javascript> for &'static str
Source§fn from(tok: Javascript) -> Self
fn from(tok: Javascript) -> Self
Converts to this type from the input type.
Source§impl From<u16> for Javascript
impl From<u16> for Javascript
Source§impl FromPrimitive for Javascript
impl FromPrimitive for Javascript
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 moreSource§impl PartialEq for Javascript
impl PartialEq for Javascript
Source§impl PartialEq<Javascript> for u16
impl PartialEq<Javascript> for u16
Source§impl PartialEq<u16> for Javascript
impl PartialEq<u16> for Javascript
impl StructuralPartialEq for Javascript
Auto Trait Implementations§
impl Freeze for Javascript
impl RefUnwindSafe for Javascript
impl Send for Javascript
impl Sync for Javascript
impl Unpin for Javascript
impl UnsafeUnpin for Javascript
impl UnwindSafe for Javascript
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.