#[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,
}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
Implementations§
Source§impl CSharpElementType
impl CSharpElementType
pub fn is_keyword(&self) -> bool
Trait Implementations§
Source§impl Clone for CSharpElementType
impl Clone for CSharpElementType
Source§fn clone(&self) -> CSharpElementType
fn clone(&self) -> CSharpElementType
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 CSharpElementType
impl Debug for CSharpElementType
Source§impl<'de> Deserialize<'de> for CSharpElementType
impl<'de> Deserialize<'de> for CSharpElementType
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 CSharpElementType
impl ElementType for CSharpElementType
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<CSharpTokenType> for CSharpElementType
impl From<CSharpTokenType> for CSharpElementType
Source§fn from(token: CSharpTokenType) -> Self
fn from(token: CSharpTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for CSharpElementType
impl Hash for CSharpElementType
Source§impl PartialEq for CSharpElementType
impl PartialEq for CSharpElementType
Source§impl Serialize for CSharpElementType
impl Serialize for CSharpElementType
impl Copy for CSharpElementType
impl Eq for CSharpElementType
impl StructuralPartialEq for CSharpElementType
Auto Trait Implementations§
impl Freeze for CSharpElementType
impl RefUnwindSafe for CSharpElementType
impl Send for CSharpElementType
impl Sync for CSharpElementType
impl Unpin for CSharpElementType
impl UnwindSafe for CSharpElementType
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