#[repr(u16)]pub enum TypeScriptElementType {
Show 247 variants
NamedImports = 0,
Decorator = 1,
ArrowFunction = 2,
PredefinedType = 3,
Abstract = 4,
Any = 5,
As = 6,
Asserts = 7,
Async = 8,
Await = 9,
Boolean = 10,
Break = 11,
Case = 12,
Catch = 13,
Class = 14,
Const = 15,
Constructor = 16,
Continue = 17,
Debugger = 18,
Declare = 19,
Default = 20,
Delete = 21,
Do = 22,
Else = 23,
Enum = 24,
Export = 25,
Extends = 26,
False = 27,
Finally = 28,
For = 29,
From = 30,
Function = 31,
Get = 32,
Global = 33,
If = 34,
Implements = 35,
Import = 36,
In = 37,
Infer = 38,
Instanceof = 39,
Interface = 40,
Is = 41,
Keyof = 42,
Let = 43,
Namespace = 44,
Never = 45,
New = 46,
Null = 47,
Number = 48,
Object = 49,
Of = 50,
Override = 51,
Package = 52,
Private = 53,
Protected = 54,
Public = 55,
Readonly = 56,
Require = 57,
Return = 58,
Set = 59,
Static = 60,
String = 61,
Super = 62,
Switch = 63,
Symbol = 64,
This = 65,
Throw = 66,
True = 67,
Try = 68,
Type = 69,
Typeof = 70,
Undefined = 71,
Unique = 72,
Unknown = 73,
Var = 74,
Void = 75,
While = 76,
With = 77,
Yield = 78,
Plus = 79,
Minus = 80,
Star = 81,
Slash = 82,
Percent = 83,
StarStar = 84,
Question = 85,
DotDotDot = 86,
Less = 87,
Greater = 88,
LessEqual = 89,
GreaterEqual = 90,
EqualEqual = 91,
NotEqual = 92,
EqualEqualEqual = 93,
NotEqualEqual = 94,
AmpersandAmpersand = 95,
PipePipe = 96,
Exclamation = 97,
Ampersand = 98,
Pipe = 99,
Caret = 100,
Tilde = 101,
LeftShift = 102,
RightShift = 103,
UnsignedRightShift = 104,
Equal = 105,
PlusEqual = 106,
MinusEqual = 107,
StarEqual = 108,
SlashEqual = 109,
PercentEqual = 110,
StarStarEqual = 111,
LeftShiftEqual = 112,
RightShiftEqual = 113,
UnsignedRightShiftEqual = 114,
AmpersandEqual = 115,
PipeEqual = 116,
CaretEqual = 117,
AmpersandAmpersandEqual = 118,
PipePipeEqual = 119,
QuestionQuestionEqual = 120,
PlusPlus = 121,
MinusMinus = 122,
QuestionQuestion = 123,
QuestionDot = 124,
Arrow = 125,
LeftParen = 126,
RightParen = 127,
LeftBrace = 128,
RightBrace = 129,
LeftBracket = 130,
RightBracket = 131,
Semicolon = 132,
Comma = 133,
Dot = 134,
Colon = 135,
At = 136,
StringLiteral = 137,
NumericLiteral = 138,
BigIntLiteral = 139,
BooleanLiteral = 140,
TemplateString = 141,
RegexLiteral = 142,
IdentifierName = 143,
LineComment = 144,
BlockComment = 145,
Whitespace = 146,
Newline = 147,
Eof = 148,
Root = 149,
SourceFile = 150,
Module = 151,
VariableDeclaration = 152,
FunctionDeclaration = 153,
ClassDeclaration = 154,
InterfaceDeclaration = 155,
TypeAliasDeclaration = 156,
EnumDeclaration = 157,
NamespaceDeclaration = 158,
ClassBody = 159,
ImportDeclaration = 160,
ExportDeclaration = 161,
ImportClause = 162,
ImportSpecifier = 163,
NamespaceImport = 164,
NamedExports = 165,
ExportSpecifier = 166,
Parameter = 167,
CallArgument = 168,
PropertyDeclaration = 169,
MethodDeclaration = 170,
ConstructorDeclaration = 171,
PropertyAssignment = 172,
ShorthandPropertyAssignment = 173,
SpreadElement = 174,
Error = 175,
JsxElement = 176,
JsxSelfClosingElement = 177,
JsxOpeningElement = 178,
JsxClosingElement = 179,
JsxFragment = 180,
JsxOpeningFragment = 181,
JsxClosingFragment = 182,
JsxAttribute = 183,
JsxAttributes = 184,
JsxExpressionContainer = 185,
JsxSpreadAttribute = 186,
JsxText = 187,
BinaryExpression = 188,
UnaryExpression = 189,
ConditionalExpression = 190,
CallExpression = 191,
NewExpression = 192,
MemberExpression = 193,
ArrayExpression = 194,
ObjectExpression = 195,
FunctionExpression = 196,
TemplateExpression = 197,
TaggedTemplateExpression = 198,
AsExpression = 199,
TypeAssertionExpression = 200,
NonNullExpression = 201,
UpdateExpression = 202,
ExpressionStatement = 203,
BlockStatement = 204,
IfStatement = 205,
WhileStatement = 206,
ForStatement = 207,
ForInStatement = 208,
ForOfStatement = 209,
DoWhileStatement = 210,
SwitchStatement = 211,
CaseClause = 212,
DefaultClause = 213,
TryStatement = 214,
CatchClause = 215,
FinallyClause = 216,
ThrowStatement = 217,
ReturnStatement = 218,
BreakStatement = 219,
ContinueStatement = 220,
DebuggerStatement = 221,
WithStatement = 222,
BindingPattern = 223,
ArrayBindingPattern = 224,
ObjectBindingPattern = 225,
BindingElement = 226,
TypeReference = 227,
TypeLiteral = 228,
FunctionType = 229,
ConstructorType = 230,
ArrayType = 231,
TupleType = 232,
UnionType = 233,
IntersectionType = 234,
ConditionalType = 235,
MappedType = 236,
IndexedAccessType = 237,
PropertySignature = 238,
MethodSignature = 239,
LiteralType = 240,
TypeQuery = 241,
TypePredicate = 242,
TypeAnnotation = 243,
TypeParameter = 244,
HeritageClause = 245,
EnumMember = 246,
}Variants§
NamedImports = 0
Decorator = 1
ArrowFunction = 2
PredefinedType = 3
Abstract = 4
Any = 5
As = 6
Asserts = 7
Async = 8
Await = 9
Boolean = 10
Break = 11
Case = 12
Catch = 13
Class = 14
Const = 15
Constructor = 16
Continue = 17
Debugger = 18
Declare = 19
Default = 20
Delete = 21
Do = 22
Else = 23
Enum = 24
Export = 25
Extends = 26
False = 27
Finally = 28
For = 29
From = 30
Function = 31
Get = 32
Global = 33
If = 34
Implements = 35
Import = 36
In = 37
Infer = 38
Instanceof = 39
Interface = 40
Is = 41
Keyof = 42
Let = 43
Namespace = 44
Never = 45
New = 46
Null = 47
Number = 48
Object = 49
Of = 50
Override = 51
Package = 52
Private = 53
Protected = 54
Public = 55
Readonly = 56
Require = 57
Return = 58
Set = 59
Static = 60
String = 61
Super = 62
Switch = 63
Symbol = 64
This = 65
Throw = 66
True = 67
Try = 68
Type = 69
Typeof = 70
Undefined = 71
Unique = 72
Unknown = 73
Var = 74
Void = 75
While = 76
With = 77
Yield = 78
Plus = 79
Minus = 80
Star = 81
Slash = 82
Percent = 83
StarStar = 84
Question = 85
DotDotDot = 86
Less = 87
Greater = 88
LessEqual = 89
GreaterEqual = 90
EqualEqual = 91
NotEqual = 92
EqualEqualEqual = 93
NotEqualEqual = 94
AmpersandAmpersand = 95
PipePipe = 96
Exclamation = 97
Ampersand = 98
Pipe = 99
Caret = 100
Tilde = 101
LeftShift = 102
RightShift = 103
UnsignedRightShift = 104
Equal = 105
PlusEqual = 106
MinusEqual = 107
StarEqual = 108
SlashEqual = 109
PercentEqual = 110
StarStarEqual = 111
LeftShiftEqual = 112
RightShiftEqual = 113
UnsignedRightShiftEqual = 114
AmpersandEqual = 115
PipeEqual = 116
CaretEqual = 117
AmpersandAmpersandEqual = 118
PipePipeEqual = 119
QuestionQuestionEqual = 120
PlusPlus = 121
MinusMinus = 122
QuestionQuestion = 123
QuestionDot = 124
Arrow = 125
LeftParen = 126
RightParen = 127
LeftBrace = 128
RightBrace = 129
LeftBracket = 130
RightBracket = 131
Semicolon = 132
Comma = 133
Dot = 134
Colon = 135
At = 136
StringLiteral = 137
NumericLiteral = 138
BigIntLiteral = 139
BooleanLiteral = 140
TemplateString = 141
RegexLiteral = 142
IdentifierName = 143
LineComment = 144
BlockComment = 145
Whitespace = 146
Newline = 147
Eof = 148
Root = 149
SourceFile = 150
Module = 151
VariableDeclaration = 152
FunctionDeclaration = 153
ClassDeclaration = 154
InterfaceDeclaration = 155
TypeAliasDeclaration = 156
EnumDeclaration = 157
NamespaceDeclaration = 158
ClassBody = 159
ImportDeclaration = 160
ExportDeclaration = 161
ImportClause = 162
ImportSpecifier = 163
NamespaceImport = 164
NamedExports = 165
ExportSpecifier = 166
Parameter = 167
CallArgument = 168
PropertyDeclaration = 169
MethodDeclaration = 170
ConstructorDeclaration = 171
PropertyAssignment = 172
ShorthandPropertyAssignment = 173
SpreadElement = 174
Error = 175
JsxElement = 176
JsxSelfClosingElement = 177
JsxOpeningElement = 178
JsxClosingElement = 179
JsxFragment = 180
JsxOpeningFragment = 181
JsxClosingFragment = 182
JsxAttribute = 183
JsxAttributes = 184
JsxExpressionContainer = 185
JsxSpreadAttribute = 186
JsxText = 187
BinaryExpression = 188
UnaryExpression = 189
ConditionalExpression = 190
CallExpression = 191
NewExpression = 192
MemberExpression = 193
ArrayExpression = 194
ObjectExpression = 195
FunctionExpression = 196
TemplateExpression = 197
TaggedTemplateExpression = 198
AsExpression = 199
TypeAssertionExpression = 200
NonNullExpression = 201
UpdateExpression = 202
ExpressionStatement = 203
BlockStatement = 204
IfStatement = 205
WhileStatement = 206
ForStatement = 207
ForInStatement = 208
ForOfStatement = 209
DoWhileStatement = 210
SwitchStatement = 211
CaseClause = 212
DefaultClause = 213
TryStatement = 214
CatchClause = 215
FinallyClause = 216
ThrowStatement = 217
ReturnStatement = 218
BreakStatement = 219
ContinueStatement = 220
DebuggerStatement = 221
WithStatement = 222
BindingPattern = 223
ArrayBindingPattern = 224
ObjectBindingPattern = 225
BindingElement = 226
TypeReference = 227
TypeLiteral = 228
FunctionType = 229
ConstructorType = 230
ArrayType = 231
TupleType = 232
UnionType = 233
IntersectionType = 234
ConditionalType = 235
MappedType = 236
IndexedAccessType = 237
PropertySignature = 238
MethodSignature = 239
LiteralType = 240
TypeQuery = 241
TypePredicate = 242
TypeAnnotation = 243
TypeParameter = 244
HeritageClause = 245
EnumMember = 246
Implementations§
Source§impl TypeScriptElementType
impl TypeScriptElementType
pub fn from_keyword(text: &str) -> Option<Self>
Trait Implementations§
Source§impl Clone for TypeScriptElementType
impl Clone for TypeScriptElementType
Source§fn clone(&self) -> TypeScriptElementType
fn clone(&self) -> TypeScriptElementType
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 TypeScriptElementType
impl Debug for TypeScriptElementType
Source§impl<'de> Deserialize<'de> for TypeScriptElementType
impl<'de> Deserialize<'de> for TypeScriptElementType
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 ElementType for TypeScriptElementType
impl ElementType for TypeScriptElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<TypeScriptTokenType> for TypeScriptElementType
impl From<TypeScriptTokenType> for TypeScriptElementType
Source§fn from(token: TypeScriptTokenType) -> Self
fn from(token: TypeScriptTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for TypeScriptElementType
impl Hash for TypeScriptElementType
Source§impl PartialEq for TypeScriptElementType
impl PartialEq for TypeScriptElementType
Source§impl Serialize for TypeScriptElementType
impl Serialize for TypeScriptElementType
impl Copy for TypeScriptElementType
impl Eq for TypeScriptElementType
impl StructuralPartialEq for TypeScriptElementType
Auto Trait Implementations§
impl Freeze for TypeScriptElementType
impl RefUnwindSafe for TypeScriptElementType
impl Send for TypeScriptElementType
impl Sync for TypeScriptElementType
impl Unpin for TypeScriptElementType
impl UnwindSafe for TypeScriptElementType
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