#[repr(u8)]pub enum ActionScriptTokenType {
Show 176 variants
Whitespace = 0,
Newline = 1,
Comment = 2,
Identifier = 3,
StringLiteral = 4,
CharLiteral = 5,
NumberLiteral = 6,
BooleanLiteral = 7,
NullLiteral = 8,
As = 9,
Break = 10,
Case = 11,
Catch = 12,
Class = 13,
Const = 14,
Continue = 15,
Default = 16,
Delete = 17,
Do = 18,
Else = 19,
Extends = 20,
False = 21,
Finally = 22,
For = 23,
Function = 24,
If = 25,
Implements = 26,
Import = 27,
In = 28,
Instanceof = 29,
Interface = 30,
Internal = 31,
Is = 32,
Native = 33,
New = 34,
Null = 35,
Package = 36,
Private = 37,
Protected = 38,
Public = 39,
Return = 40,
Static = 41,
Super = 42,
Switch = 43,
This = 44,
Throw = 45,
True = 46,
Try = 47,
Typeof = 48,
Use = 49,
Var = 50,
Void = 51,
While = 52,
With = 53,
Each = 54,
Get = 55,
Set = 56,
Namespace = 57,
Include = 58,
Dynamic = 59,
Final = 60,
Override = 61,
Array = 62,
Boolean = 63,
Date = 64,
Number = 65,
ObjectType = 66,
RegExp = 67,
StringType = 68,
Uint = 69,
Vector = 70,
VoidType = 71,
Xml = 72,
XmlList = 73,
Plus = 74,
Minus = 75,
Star = 76,
Slash = 77,
Percent = 78,
Equal = 79,
EqualEqual = 80,
EqualEqualEqual = 81,
NotEqual = 82,
NotEqualEqual = 83,
LessThan = 84,
LessEqual = 85,
GreaterThan = 86,
GreaterEqual = 87,
LogicalAnd = 88,
LogicalOr = 89,
LogicalNot = 90,
BitwiseAnd = 91,
BitwiseOr = 92,
BitwiseXor = 93,
BitwiseNot = 94,
LeftShift = 95,
RightShift = 96,
UnsignedRightShift = 97,
Increment = 98,
Decrement = 99,
PlusAssign = 100,
MinusAssign = 101,
StarAssign = 102,
SlashAssign = 103,
PercentAssign = 104,
LeftShiftAssign = 105,
RightShiftAssign = 106,
UnsignedRightShiftAssign = 107,
BitwiseAndAssign = 108,
BitwiseOrAssign = 109,
BitwiseXorAssign = 110,
Question = 111,
Colon = 112,
Dot = 113,
Arrow = 114,
LeftParen = 115,
RightParen = 116,
LeftBrace = 117,
RightBrace = 118,
LeftBracket = 119,
RightBracket = 120,
Semicolon = 121,
Comma = 122,
At = 123,
Hash = 124,
Dollar = 125,
Ampersand = 126,
Backslash = 127,
Quote = 128,
DoubleQuote = 129,
Backtick = 130,
Eof = 131,
Program = 132,
Block = 133,
Variable = 134,
FunctionCall = 135,
MethodCall = 136,
PropertyAccess = 137,
ArrayAccess = 138,
ParameterList = 139,
UseItem = 140,
ModuleItem = 141,
StructItem = 142,
EnumItem = 143,
FunctionType = 144,
Root = 145,
Statement = 146,
Expression = 147,
Assignment = 148,
ConditionalExpression = 149,
BinaryExpression = 150,
UnaryExpression = 151,
IfStatement = 152,
ForStatement = 153,
WhileStatement = 154,
DoWhileStatement = 155,
SwitchStatement = 156,
TryStatement = 157,
ThrowStatement = 158,
ReturnStatement = 159,
BreakStatement = 160,
ContinueStatement = 161,
Error = 162,
LiteralExpression = 163,
IdentifierExpression = 164,
ParenthesizedExpression = 165,
SourceFile = 166,
BlockExpression = 167,
LetStatement = 168,
IfExpression = 169,
WhileExpression = 170,
LoopExpression = 171,
ForExpression = 172,
CallExpression = 173,
IndexExpression = 174,
FieldExpression = 175,
}Variants§
Whitespace = 0
Newline = 1
Comment = 2
Identifier = 3
StringLiteral = 4
CharLiteral = 5
NumberLiteral = 6
BooleanLiteral = 7
NullLiteral = 8
As = 9
Break = 10
Case = 11
Catch = 12
Class = 13
Const = 14
Continue = 15
Default = 16
Delete = 17
Do = 18
Else = 19
Extends = 20
False = 21
Finally = 22
For = 23
Function = 24
If = 25
Implements = 26
Import = 27
In = 28
Instanceof = 29
Interface = 30
Internal = 31
Is = 32
Native = 33
New = 34
Null = 35
Package = 36
Private = 37
Protected = 38
Public = 39
Return = 40
Static = 41
Super = 42
Switch = 43
This = 44
Throw = 45
True = 46
Try = 47
Typeof = 48
Use = 49
Var = 50
Void = 51
While = 52
With = 53
Each = 54
Get = 55
Set = 56
Namespace = 57
Include = 58
Dynamic = 59
Final = 60
Override = 61
Array = 62
Boolean = 63
Date = 64
Number = 65
ObjectType = 66
RegExp = 67
StringType = 68
Uint = 69
Vector = 70
VoidType = 71
Xml = 72
XmlList = 73
Plus = 74
Minus = 75
Star = 76
Slash = 77
Percent = 78
Equal = 79
EqualEqual = 80
EqualEqualEqual = 81
NotEqual = 82
NotEqualEqual = 83
LessThan = 84
LessEqual = 85
GreaterThan = 86
GreaterEqual = 87
LogicalAnd = 88
LogicalOr = 89
LogicalNot = 90
BitwiseAnd = 91
BitwiseOr = 92
BitwiseXor = 93
BitwiseNot = 94
LeftShift = 95
RightShift = 96
UnsignedRightShift = 97
Increment = 98
Decrement = 99
PlusAssign = 100
MinusAssign = 101
StarAssign = 102
SlashAssign = 103
PercentAssign = 104
LeftShiftAssign = 105
RightShiftAssign = 106
UnsignedRightShiftAssign = 107
BitwiseAndAssign = 108
BitwiseOrAssign = 109
BitwiseXorAssign = 110
Question = 111
Colon = 112
Dot = 113
Arrow = 114
LeftParen = 115
RightParen = 116
LeftBrace = 117
RightBrace = 118
LeftBracket = 119
RightBracket = 120
Semicolon = 121
Comma = 122
At = 123
Hash = 124
Dollar = 125
Ampersand = 126
Backslash = 127
Quote = 128
DoubleQuote = 129
Backtick = 130
Eof = 131
Program = 132
Block = 133
Variable = 134
FunctionCall = 135
MethodCall = 136
PropertyAccess = 137
ArrayAccess = 138
ParameterList = 139
UseItem = 140
ModuleItem = 141
StructItem = 142
EnumItem = 143
FunctionType = 144
Root = 145
Statement = 146
Expression = 147
Assignment = 148
ConditionalExpression = 149
BinaryExpression = 150
UnaryExpression = 151
IfStatement = 152
ForStatement = 153
WhileStatement = 154
DoWhileStatement = 155
SwitchStatement = 156
TryStatement = 157
ThrowStatement = 158
ReturnStatement = 159
BreakStatement = 160
ContinueStatement = 161
Error = 162
LiteralExpression = 163
IdentifierExpression = 164
ParenthesizedExpression = 165
SourceFile = 166
BlockExpression = 167
LetStatement = 168
IfExpression = 169
WhileExpression = 170
LoopExpression = 171
ForExpression = 172
CallExpression = 173
IndexExpression = 174
FieldExpression = 175
Implementations§
Source§impl ActionScriptTokenType
impl ActionScriptTokenType
pub fn is_literal(&self) -> bool
pub fn is_keyword(&self) -> bool
pub fn is_operator(&self) -> bool
pub fn is_punctuation(&self) -> bool
Trait Implementations§
Source§impl Clone for ActionScriptTokenType
impl Clone for ActionScriptTokenType
Source§fn clone(&self) -> ActionScriptTokenType
fn clone(&self) -> ActionScriptTokenType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionScriptTokenType
impl Debug for ActionScriptTokenType
Source§impl<'de> Deserialize<'de> for ActionScriptTokenType
impl<'de> Deserialize<'de> for ActionScriptTokenType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ActionScriptTokenType> for ActionScriptElementType
impl From<ActionScriptTokenType> for ActionScriptElementType
Source§fn from(token: ActionScriptTokenType) -> Self
fn from(token: ActionScriptTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for ActionScriptTokenType
impl Hash for ActionScriptTokenType
Source§impl PartialEq for ActionScriptTokenType
impl PartialEq for ActionScriptTokenType
Source§impl Serialize for ActionScriptTokenType
impl Serialize for ActionScriptTokenType
Source§impl TokenType for ActionScriptTokenType
impl TokenType for ActionScriptTokenType
Source§const END_OF_STREAM: Self = Self::Eof
const END_OF_STREAM: Self = Self::Eof
A constant representing the end of the input stream. Read more
Source§type Role = UniversalTokenRole
type Role = UniversalTokenRole
The associated role type for this token kind.
Source§fn is_ignored(&self) -> bool
fn is_ignored(&self) -> bool
Returns true if this token represents trivia (whitespace, comments, etc.). Read more
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this token matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalTokenRole) -> bool
fn is_universal(&self, role: UniversalTokenRole) -> bool
Returns true if this token matches the specified universal role.
Source§fn is_comment(&self) -> bool
fn is_comment(&self) -> bool
Returns true if this token represents a comment. Read more
Source§fn is_whitespace(&self) -> bool
fn is_whitespace(&self) -> bool
Returns true if this token represents whitespace. Read more
Source§fn is_error(&self) -> bool
fn is_error(&self) -> bool
Returns true if this token represents an error condition. Read more
Source§fn is_end_of_stream(&self) -> bool
fn is_end_of_stream(&self) -> bool
Returns true if this token represents the end of the input stream. Read more
impl Copy for ActionScriptTokenType
impl Eq for ActionScriptTokenType
impl StructuralPartialEq for ActionScriptTokenType
Auto Trait Implementations§
impl Freeze for ActionScriptTokenType
impl RefUnwindSafe for ActionScriptTokenType
impl Send for ActionScriptTokenType
impl Sync for ActionScriptTokenType
impl Unpin for ActionScriptTokenType
impl UnsafeUnpin for ActionScriptTokenType
impl UnwindSafe for ActionScriptTokenType
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