#[repr(u16)]pub enum CSharpElementType {
Show 282 variants
Whitespace = 0,
Newline = 1,
Comment = 2,
Identifier = 3,
Number = 4,
String = 5,
Character = 6,
VerbatimString = 7,
InterpolatedString = 8,
NumberLiteral = 9,
StringLiteral = 10,
CharLiteral = 11,
Abstract = 12,
As = 13,
Base = 14,
Bool = 15,
Break = 16,
Byte = 17,
Case = 18,
Catch = 19,
Char = 20,
Checked = 21,
Class = 22,
Const = 23,
Continue = 24,
Decimal = 25,
Default = 26,
Delegate = 27,
Do = 28,
Double = 29,
Else = 30,
Enum = 31,
Event = 32,
Explicit = 33,
Extern = 34,
False = 35,
Finally = 36,
Fixed = 37,
Float = 38,
For = 39,
Foreach = 40,
Goto = 41,
If = 42,
Implicit = 43,
In = 44,
Int = 45,
Interface = 46,
Internal = 47,
Is = 48,
Lock = 49,
Long = 50,
Namespace = 51,
New = 52,
Null = 53,
Object = 54,
Operator = 55,
Out = 56,
Override = 57,
Params = 58,
Private = 59,
Protected = 60,
Public = 61,
Readonly = 62,
Record = 63,
Ref = 64,
Return = 65,
Sbyte = 66,
Sealed = 67,
Short = 68,
Sizeof = 69,
Stackalloc = 70,
Static = 71,
Struct = 72,
Switch = 73,
This = 74,
Throw = 75,
True = 76,
Try = 77,
Typeof = 78,
Uint = 79,
Ulong = 80,
Unchecked = 81,
Unsafe = 82,
Ushort = 83,
Using = 84,
Virtual = 85,
Void = 86,
Volatile = 87,
While = 88,
AbstractKeyword = 89,
AsKeyword = 90,
BaseKeyword = 91,
BoolKeyword = 92,
BreakKeyword = 93,
ByteKeyword = 94,
CaseKeyword = 95,
CatchKeyword = 96,
CharKeyword = 97,
CheckedKeyword = 98,
ClassKeyword = 99,
ConstKeyword = 100,
ContinueKeyword = 101,
DecimalKeyword = 102,
DefaultKeyword = 103,
DelegateKeyword = 104,
DoKeyword = 105,
DoubleKeyword = 106,
ElseKeyword = 107,
EnumKeyword = 108,
EventKeyword = 109,
ExplicitKeyword = 110,
ExternKeyword = 111,
FalseKeyword = 112,
FinallyKeyword = 113,
FixedKeyword = 114,
FloatKeyword = 115,
ForKeyword = 116,
ForeachKeyword = 117,
GotoKeyword = 118,
IfKeyword = 119,
ImplicitKeyword = 120,
InKeyword = 121,
IntKeyword = 122,
InterfaceKeyword = 123,
InternalKeyword = 124,
IsKeyword = 125,
LockKeyword = 126,
LongKeyword = 127,
NamespaceKeyword = 128,
NewKeyword = 129,
NullKeyword = 130,
ObjectKeyword = 131,
OperatorKeyword = 132,
OutKeyword = 133,
OverrideKeyword = 134,
ParamsKeyword = 135,
PrivateKeyword = 136,
ProtectedKeyword = 137,
PublicKeyword = 138,
ReadonlyKeyword = 139,
RefKeyword = 140,
ReturnKeyword = 141,
SbyteKeyword = 142,
SealedKeyword = 143,
ShortKeyword = 144,
SizeofKeyword = 145,
StackallocKeyword = 146,
StaticKeyword = 147,
StringKeyword = 148,
StructKeyword = 149,
SwitchKeyword = 150,
ThisKeyword = 151,
ThrowKeyword = 152,
TrueKeyword = 153,
TryKeyword = 154,
TypeofKeyword = 155,
UintKeyword = 156,
UlongKeyword = 157,
UncheckedKeyword = 158,
UnsafeKeyword = 159,
UshortKeyword = 160,
UsingKeyword = 161,
VirtualKeyword = 162,
VoidKeyword = 163,
VolatileKeyword = 164,
WhileKeyword = 165,
AddKeyword = 166,
AliasKeyword = 167,
AscendingKeyword = 168,
ByKeyword = 169,
DescendingKeyword = 170,
FromKeyword = 171,
GetKeyword = 172,
GlobalKeyword = 173,
GroupKeyword = 174,
IntoKeyword = 175,
JoinKeyword = 176,
LetKeyword = 177,
OrderbyKeyword = 178,
PartialKeyword = 179,
RemoveKeyword = 180,
SelectKeyword = 181,
SetKeyword = 182,
ValueKeyword = 183,
VarKeyword = 184,
WhereKeyword = 185,
YieldKeyword = 186,
Plus = 187,
Minus = 188,
Star = 189,
Slash = 190,
Percent = 191,
Ampersand = 192,
Pipe = 193,
Caret = 194,
Tilde = 195,
BitAnd = 196,
BitOr = 197,
BitXor = 198,
BitNot = 199,
LeftShift = 200,
RightShift = 201,
Equal = 202,
NotEqual = 203,
Less = 204,
LessEqual = 205,
Greater = 206,
GreaterEqual = 207,
LogicalAnd = 208,
LogicalOr = 209,
LogicalNot = 210,
Question = 211,
QuestionQuestion = 212,
Increment = 213,
Decrement = 214,
Arrow = 215,
Lambda = 216,
Assign = 217,
PlusAssign = 218,
MinusAssign = 219,
StarAssign = 220,
SlashAssign = 221,
PercentAssign = 222,
AmpersandAssign = 223,
PipeAssign = 224,
CaretAssign = 225,
LeftShiftAssign = 226,
RightShiftAssign = 227,
QuestionQuestionAssign = 228,
AndAssign = 229,
OrAssign = 230,
XorAssign = 231,
LeftParen = 232,
RightParen = 233,
LeftBracket = 234,
RightBracket = 235,
LeftBrace = 236,
RightBrace = 237,
Comma = 238,
Semicolon = 239,
Colon = 240,
ColonColon = 241,
Dot = 242,
QuestionDot = 243,
At = 244,
Hash = 245,
Dollar = 246,
Eof = 247,
Error = 248,
IfStatement = 249,
WhileStatement = 250,
ForStatement = 251,
Block = 252,
ReturnStatement = 253,
MethodDeclaration = 254,
PropertyDeclaration = 255,
FieldDeclaration = 256,
IndexerDeclaration = 257,
IdentifierName = 258,
LiteralExpression = 259,
BinaryExpression = 260,
InvocationExpression = 261,
ElementAccessExpression = 262,
MemberAccessExpression = 263,
AssignmentExpression = 264,
BreakStatement = 265,
ContinueStatement = 266,
ExpressionStatement = 267,
ForeachStatement = 268,
NamespaceDeclaration = 269,
UsingDirective = 270,
ClassDeclaration = 271,
InterfaceDeclaration = 272,
StructDeclaration = 273,
EnumDeclaration = 274,
RecordDeclaration = 275,
DelegateDeclaration = 276,
EventDeclaration = 277,
AwaitExpression = 278,
AttributeList = 279,
Attribute = 280,
Root = 281,
}Expand description
Element types for the C# parser.
Variants§
Whitespace = 0
Whitespace characters.
Newline = 1
Line breaks.
Comment = 2
Comments.
Identifier = 3
An identifier.
Number = 4
A numeric literal.
String = 5
A string literal.
Character = 6
A character literal.
VerbatimString = 7
A verbatim string literal (e.g., @"...").
InterpolatedString = 8
An interpolated string literal (e.g., $"...").
NumberLiteral = 9
A number literal (generic).
StringLiteral = 10
A string literal (generic).
CharLiteral = 11
A character literal (generic).
Abstract = 12
The abstract keyword.
As = 13
The as keyword.
Base = 14
The base keyword.
Bool = 15
The bool keyword.
Break = 16
The break keyword.
Byte = 17
The byte keyword.
Case = 18
The case keyword.
Catch = 19
The catch keyword.
Char = 20
The char keyword.
Checked = 21
The checked keyword.
Class = 22
The class keyword.
Const = 23
The const keyword.
Continue = 24
The continue keyword.
Decimal = 25
The decimal keyword.
Default = 26
The default keyword.
Delegate = 27
The delegate keyword.
Do = 28
The do keyword.
Double = 29
The double keyword.
Else = 30
The else keyword.
Enum = 31
The enum keyword.
Event = 32
The event keyword.
Explicit = 33
The explicit keyword.
Extern = 34
The extern keyword.
False = 35
The false keyword.
Finally = 36
The finally keyword.
Fixed = 37
The fixed keyword.
Float = 38
The float keyword.
For = 39
The for keyword.
Foreach = 40
The foreach keyword.
Goto = 41
The goto keyword.
If = 42
The if keyword.
Implicit = 43
The implicit keyword.
In = 44
The in keyword.
Int = 45
The int keyword.
Interface = 46
The interface keyword.
Internal = 47
The internal keyword.
Is = 48
The is keyword.
Lock = 49
The lock keyword.
Long = 50
The long keyword.
Namespace = 51
The namespace keyword.
New = 52
The new keyword.
Null = 53
The null keyword.
Object = 54
The object keyword.
Operator = 55
The operator keyword.
Out = 56
The out keyword.
Override = 57
The override keyword.
Params = 58
The params keyword.
Private = 59
The private keyword.
Protected = 60
The protected keyword.
Public = 61
The public keyword.
Readonly = 62
The readonly keyword.
Record = 63
The record keyword.
Ref = 64
The ref keyword.
Return = 65
The return keyword.
Sbyte = 66
The sbyte keyword.
Sealed = 67
The sealed keyword.
Short = 68
The short keyword.
Sizeof = 69
The sizeof keyword.
Stackalloc = 70
The stackalloc keyword.
Static = 71
The static keyword.
Struct = 72
The struct keyword.
Switch = 73
The switch keyword.
This = 74
The this keyword.
Throw = 75
The throw keyword.
True = 76
The true keyword.
Try = 77
The try keyword.
Typeof = 78
The typeof keyword.
Uint = 79
The uint keyword.
Ulong = 80
The ulong keyword.
Unchecked = 81
The unchecked keyword.
Unsafe = 82
The unsafe keyword.
Ushort = 83
The ushort keyword.
Using = 84
The using keyword.
Virtual = 85
The virtual keyword.
Void = 86
The void keyword.
Volatile = 87
The volatile keyword.
While = 88
The while keyword.
AbstractKeyword = 89
Variant of abstract keyword.
AsKeyword = 90
Variant of as keyword.
BaseKeyword = 91
Variant of base keyword.
BoolKeyword = 92
Variant of bool keyword.
BreakKeyword = 93
Variant of break keyword.
ByteKeyword = 94
Variant of byte keyword.
CaseKeyword = 95
Variant of case keyword.
CatchKeyword = 96
Variant of catch keyword.
CharKeyword = 97
Variant of char keyword.
CheckedKeyword = 98
Variant of checked keyword.
ClassKeyword = 99
Variant of class keyword.
ConstKeyword = 100
Variant of const keyword.
ContinueKeyword = 101
Variant of continue keyword.
DecimalKeyword = 102
Variant of decimal keyword.
DefaultKeyword = 103
Variant of default keyword.
DelegateKeyword = 104
Variant of delegate keyword.
DoKeyword = 105
Variant of do keyword.
DoubleKeyword = 106
Variant of double keyword.
ElseKeyword = 107
Variant of else keyword.
EnumKeyword = 108
Variant of enum keyword.
EventKeyword = 109
Variant of event keyword.
ExplicitKeyword = 110
Variant of explicit keyword.
ExternKeyword = 111
Variant of extern keyword.
FalseKeyword = 112
Variant of false keyword.
FinallyKeyword = 113
Variant of finally keyword.
FixedKeyword = 114
Variant of fixed keyword.
FloatKeyword = 115
Variant of float keyword.
ForKeyword = 116
Variant of for keyword.
ForeachKeyword = 117
Variant of foreach keyword.
GotoKeyword = 118
Variant of goto keyword.
IfKeyword = 119
Variant of if keyword.
ImplicitKeyword = 120
Variant of implicit keyword.
InKeyword = 121
Variant of in keyword.
IntKeyword = 122
Variant of int keyword.
InterfaceKeyword = 123
Variant of interface keyword.
InternalKeyword = 124
Variant of internal keyword.
IsKeyword = 125
Variant of is keyword.
LockKeyword = 126
Variant of lock keyword.
LongKeyword = 127
Variant of long keyword.
NamespaceKeyword = 128
Variant of namespace keyword.
NewKeyword = 129
Variant of new keyword.
NullKeyword = 130
Variant of null keyword.
ObjectKeyword = 131
Variant of object keyword.
OperatorKeyword = 132
Variant of operator keyword.
OutKeyword = 133
Variant of out keyword.
OverrideKeyword = 134
Variant of override keyword.
ParamsKeyword = 135
Variant of params keyword.
PrivateKeyword = 136
Variant of private keyword.
ProtectedKeyword = 137
Variant of protected keyword.
PublicKeyword = 138
Variant of public keyword.
ReadonlyKeyword = 139
Variant of readonly keyword.
RefKeyword = 140
Variant of ref keyword.
ReturnKeyword = 141
Variant of return keyword.
SbyteKeyword = 142
Variant of sbyte keyword.
SealedKeyword = 143
Variant of sealed keyword.
ShortKeyword = 144
Variant of short keyword.
SizeofKeyword = 145
Variant of sizeof keyword.
StackallocKeyword = 146
Variant of stackalloc keyword.
StaticKeyword = 147
Variant of static keyword.
StringKeyword = 148
Variant of string keyword.
StructKeyword = 149
Variant of struct keyword.
SwitchKeyword = 150
Variant of switch keyword.
ThisKeyword = 151
Variant of this keyword.
ThrowKeyword = 152
Variant of throw keyword.
TrueKeyword = 153
Variant of true keyword.
TryKeyword = 154
Variant of try keyword.
TypeofKeyword = 155
Variant of typeof keyword.
UintKeyword = 156
Variant of uint keyword.
UlongKeyword = 157
Variant of ulong keyword.
UncheckedKeyword = 158
Variant of unchecked keyword.
UnsafeKeyword = 159
Variant of unsafe keyword.
UshortKeyword = 160
Variant of ushort keyword.
UsingKeyword = 161
Variant of using keyword.
VirtualKeyword = 162
Variant of virtual keyword.
VoidKeyword = 163
Variant of void keyword.
VolatileKeyword = 164
Variant of volatile keyword.
WhileKeyword = 165
Variant of while keyword.
AddKeyword = 166
The add keyword (contextual).
AliasKeyword = 167
The alias keyword (contextual).
AscendingKeyword = 168
The ascending keyword (contextual).
ByKeyword = 169
The by keyword (contextual).
DescendingKeyword = 170
The descending keyword (contextual).
FromKeyword = 171
The from keyword (contextual).
GetKeyword = 172
The get keyword (contextual).
GlobalKeyword = 173
The global keyword (contextual).
GroupKeyword = 174
The group keyword (contextual).
IntoKeyword = 175
The into keyword (contextual).
JoinKeyword = 176
The join keyword (contextual).
LetKeyword = 177
The let keyword (contextual).
OrderbyKeyword = 178
The orderby keyword (contextual).
PartialKeyword = 179
The partial keyword (contextual).
RemoveKeyword = 180
The remove keyword (contextual).
SelectKeyword = 181
The select keyword (contextual).
SetKeyword = 182
The set keyword (contextual).
ValueKeyword = 183
The value keyword (contextual).
VarKeyword = 184
The var keyword (contextual).
WhereKeyword = 185
The where keyword (contextual).
YieldKeyword = 186
The yield keyword (contextual).
Plus = 187
The + operator.
Minus = 188
The - operator.
Star = 189
The * operator.
Slash = 190
The / operator.
Percent = 191
The % operator.
Ampersand = 192
The & operator.
Pipe = 193
The | operator.
Caret = 194
The ^ operator.
Tilde = 195
The ~ operator.
BitAnd = 196
Bitwise AND operator.
BitOr = 197
Bitwise OR operator.
BitXor = 198
Bitwise XOR operator.
BitNot = 199
Bitwise NOT operator.
LeftShift = 200
Left shift operator (<<).
RightShift = 201
Right shift operator (>>).
Equal = 202
Equality operator (==).
NotEqual = 203
Inequality operator (!=).
Less = 204
Less than operator (<).
LessEqual = 205
Less than or equal operator (<=).
Greater = 206
Greater than operator (>).
GreaterEqual = 207
Greater than or equal operator (>=).
LogicalAnd = 208
Logical AND operator (&&).
LogicalOr = 209
Logical OR operator (||).
LogicalNot = 210
Logical NOT operator (!).
Question = 211
Question mark (?).
QuestionQuestion = 212
Null-coalescing operator (??).
Increment = 213
Increment operator (++).
Decrement = 214
Decrement operator (--).
Arrow = 215
Arrow operator (->).
Lambda = 216
Lambda operator (=>).
Assign = 217
Simple assignment operator (=).
PlusAssign = 218
Addition assignment operator (+=).
MinusAssign = 219
Subtraction assignment operator (-=).
StarAssign = 220
Multiplication assignment operator (*=).
SlashAssign = 221
Division assignment operator (/=).
PercentAssign = 222
Modulo assignment operator (%=).
AmpersandAssign = 223
Bitwise AND assignment operator (&=).
PipeAssign = 224
Bitwise OR assignment operator (|=).
CaretAssign = 225
Bitwise XOR assignment operator (^=).
LeftShiftAssign = 226
Left shift assignment operator (<<=).
RightShiftAssign = 227
Right shift assignment operator (>>=).
QuestionQuestionAssign = 228
Null-coalescing assignment operator (??=).
AndAssign = 229
Logical AND assignment operator (&&=).
OrAssign = 230
Logical OR assignment operator (||=).
XorAssign = 231
Logical XOR assignment operator (^=).
LeftParen = 232
Opening parenthesis (().
RightParen = 233
Closing parenthesis ()).
LeftBracket = 234
Opening bracket ([).
RightBracket = 235
Closing bracket (]).
LeftBrace = 236
Opening brace ({).
RightBrace = 237
Closing brace (}).
Comma = 238
Comma (,).
Semicolon = 239
Semicolon (;).
Colon = 240
Colon (:).
ColonColon = 241
Double colon (::).
Dot = 242
Dot (.).
QuestionDot = 243
Null-conditional operator (?.).
At = 244
At sign (@).
Hash = 245
Hash sign (#).
Dollar = 246
Dollar sign ($).
Eof = 247
End of file.
Error = 248
An error token.
IfStatement = 249
An if statement.
WhileStatement = 250
A while statement.
ForStatement = 251
A for statement.
Block = 252
A block of statements.
ReturnStatement = 253
A return statement.
MethodDeclaration = 254
A method declaration.
PropertyDeclaration = 255
A property declaration.
FieldDeclaration = 256
A field declaration.
IndexerDeclaration = 257
An indexer declaration.
IdentifierName = 258
An identifier name.
LiteralExpression = 259
A literal expression.
BinaryExpression = 260
A binary expression.
InvocationExpression = 261
An invocation expression.
ElementAccessExpression = 262
An element access expression.
MemberAccessExpression = 263
A member access expression.
AssignmentExpression = 264
An assignment expression.
BreakStatement = 265
A break statement.
ContinueStatement = 266
A continue statement.
ExpressionStatement = 267
An expression statement.
ForeachStatement = 268
A foreach statement.
NamespaceDeclaration = 269
A namespace declaration.
UsingDirective = 270
A using directive.
ClassDeclaration = 271
A class declaration.
InterfaceDeclaration = 272
An interface declaration.
StructDeclaration = 273
A struct declaration.
EnumDeclaration = 274
An enum declaration.
RecordDeclaration = 275
A record declaration.
DelegateDeclaration = 276
A delegate declaration.
EventDeclaration = 277
An event declaration.
AwaitExpression = 278
An await expression.
AttributeList = 279
An attribute list.
Attribute = 280
An attribute.
Root = 281
The root of the document.
Implementations§
Source§impl CSharpElementType
impl CSharpElementType
Sourcepub fn is_keyword(&self) -> bool
pub fn is_keyword(&self) -> bool
Returns true if the element type is a keyword.
Trait Implementations§
Source§impl Clone for CSharpElementType
impl Clone for CSharpElementType
Source§fn clone(&self) -> CSharpElementType
fn clone(&self) -> CSharpElementType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more