SyntaxKind 枚举

定义

public enum class SyntaxKind
public enum SyntaxKind
type SyntaxKind = 
Public Enum SyntaxKind
继承
SyntaxKind

字段

AbstractKeyword 8356

表示 abstract

AccessorList 8895
AddAccessorDeclaration 8898
AddAssignmentExpression 8715
AddExpression 8668
AddKeyword 8419

表示 add

AddressOfExpression 8737
AliasKeyword 8407

表示 alias

AliasQualifiedName 8620
AmpersandAmpersandToken 8261

表示 && 标记。

AmpersandEqualsToken 8279

表示 &= 标记。

AmpersandToken 8198

表示 & 标记。

AndAssignmentExpression 8720
AndKeyword 8439

表示 and

AndPattern 9032
AnnotationsKeyword 8489

表示 annotations

AnonymousMethodExpression 8641
AnonymousObjectCreationExpression 8650
AnonymousObjectMemberDeclarator 8647
ArgListExpression 8748
ArgListKeyword 8366

表示 __arglist

Argument 8638
ArgumentList 8636
ArrayCreationExpression 8651
ArrayInitializerExpression 8646
ArrayRankSpecifier 8623
ArrayType 8622
ArrowExpressionClause 8917
AscendingKeyword 8432

表示 ascending

AscendingOrdering 8782
AsExpression 8687
AsKeyword 8364

表示 as

AssemblyKeyword 8409

表示 assembly

AsteriskEqualsToken 8277

表示 *= 标记。

AsteriskToken 8199

表示 * 标记。

AsyncKeyword 8435

表示 async

Attribute 8849
AttributeArgument 8851
AttributeArgumentList 8850
AttributeList 8847
AttributeTargetSpecifier 8848
AwaitExpression 8740
AwaitKeyword 8436

表示 await

BackslashToken 8210

表示 </code> 标记。

BadDirectiveTrivia 8562
BadToken 8507
BarBarToken 8260

表示 || 标记。

BarEqualsToken 8278

表示 |= 标记。

BarToken 8209

表示 | 标记。

BaseConstructorInitializer 8889
BaseExpression 8747
BaseExpressionTypeClause 8659
BaseKeyword 8371

表示 base

BaseList 8864
BitwiseAndExpression 8678
BitwiseNotExpression 8732
BitwiseOrExpression 8677
Block 8792
BoolKeyword 8304

表示 bool

BracketedArgumentList 8637
BracketedParameterList 8907
BreakKeyword 8339

表示 break

BreakStatement 8803
ByKeyword 8427

表示 by

ByteKeyword 8305

表示 byte

CaretEqualsToken 8282

表示 ^= 标记。

CaretToken 8197

表示 ^ 标记。

CaseKeyword 8332

表示 case

CasePatternSwitchLabel 9009
CaseSwitchLabel 8823
CastExpression 8640
CatchClause 8826
CatchDeclaration 8827
CatchFilterClause 8828
CatchKeyword 8335

表示 catch

CharacterLiteralExpression 8751
CharacterLiteralToken 8510
CharKeyword 8317

表示 char

CheckedExpression 8762
CheckedKeyword 8379

表示 checked

CheckedStatement 8815
ChecksumKeyword 8478

表示 checksum

ClassConstraint 8868
ClassDeclaration 8855
ClassKeyword 8374

表示 class

CloseBraceToken 8206

表示 } 标记。

CloseBracketToken 8208

表示 ] 标记。

CloseParenToken 8201

表示 ) 标记。

CoalesceAssignmentExpression 8725
CoalesceExpression 8688
CollectionExpression 9076
CollectionInitializerExpression 8645
ColonColonToken 8264

表示 :: 标记。

ColonToken 8211

表示 : 标记。

CommaToken 8216

表示 , 标记。

CompilationUnit 8840
ComplexElementInitializerExpression 8648
ConditionalAccessExpression 8691
ConditionalExpression 8633
ConflictMarkerTrivia 8564
ConstantPattern 9002
ConstKeyword 8350

表示 const

ConstructorConstraint 8867
ConstructorDeclaration 8878
ContinueKeyword 8340

表示 continue

ContinueStatement 8804
ConversionOperatorDeclaration 8877
ConversionOperatorMemberCref 8602
CrefBracketedParameterList 8604
CrefParameter 8605
CrefParameterList 8603
DataKeyword 8441

表示 data

DecimalKeyword 8315

表示 decimal

DeclarationExpression 9040
DeclarationPattern 9000
DefaultConstraint 9064
DefaultExpression 8764
DefaultKeyword 8333

表示 default

DefaultLiteralExpression 8755
DefaultSwitchLabel 8824
DefineDirectiveTrivia 8554
DefineKeyword 8471

表示 define

DelegateDeclaration 8859
DelegateKeyword 8378

表示 delegate

DescendingKeyword 8433

表示 descending

DescendingOrdering 8783
DestructorDeclaration 8891
DisabledTextTrivia 8546
DisableKeyword 8479

表示 disable

DiscardDesignation 9014
DiscardPattern 9024
DivideAssignmentExpression 8718
DivideExpression 8671
DocumentationCommentExteriorTrivia 8543
DoKeyword 8330

表示 do

DollarToken 8195

表示 $ 标记。

这是调试器的特殊标点,与字符串内插无关。

DoStatement 8810
DotDotToken 8222

表示 .. 标记。

DotToken 8218

表示 . 标记。

DoubleKeyword 8313

表示 double

DoubleQuoteToken 8213

表示 " 标记。

ElementAccessExpression 8635
ElementBindingExpression 8708
ElifDirectiveTrivia 8549
ElifKeyword 8467

表示 elif

ElseClause 8820
ElseDirectiveTrivia 8550
ElseKeyword 8326

表示 else

EmptyStatement 8798
EnableKeyword 8487

表示 enable

EndIfDirectiveTrivia 8551
EndIfKeyword 8468

表示 endif

EndOfDirectiveToken 8494

表示指令(例如 ) #endif末尾之后的标记。

EndOfDocumentationCommentToken 8495

表示三斜杠文档注释的末尾。

EndOfFileToken 8496

表示文件的末尾。

EndOfLineTrivia 8539
EndRegionDirectiveTrivia 8553
EndRegionKeyword 8470

表示 endregion

EnumDeclaration 8858
EnumKeyword 8377

表示 enum

EnumMemberDeclaration 8872
EqualsEqualsToken 8268

表示 == 标记。

EqualsExpression 8680
EqualsGreaterThanToken 8269

表示 => 标记。

EqualsKeyword 8431

表示 equals

EqualsToken 8204

表示 = 标记。

EqualsValueClause 8796
ErrorDirectiveTrivia 8556
ErrorKeyword 8474

表示 error

EventDeclaration 8893
EventFieldDeclaration 8874
EventKeyword 8358

表示 event

ExclamationEqualsToken 8267

表示 != 标记。

ExclamationExclamationToken 8285

表示 !! 标记。

ExclamationToken 8194

表示 ! 标记。

ExclusiveOrAssignmentExpression 8721
ExclusiveOrExpression 8679
ExplicitInterfaceSpecifier 8871
ExplicitKeyword 8383

表示 explicit

ExpressionColon 9069
ExpressionElement 9077
ExpressionStatement 8797
ExternAliasDirective 8844
ExternKeyword 8359

表示 extern

FalseKeyword 8324

表示 false

FalseLiteralExpression 8753
FieldDeclaration 8873
FieldKeyword 8412

表示 field

FileKeyword 8449

表示 file

FileScopedNamespaceDeclaration 8845
FinallyClause 8829
FinallyKeyword 8336

表示 finally

FixedKeyword 8351

表示 fixed

FixedStatement 8814
FloatKeyword 8314

表示 float

ForEachKeyword 8329

表示 foreach

ForEachStatement 8812
ForEachVariableStatement 8929
ForKeyword 8328

表示 for

ForStatement 8811
FromClause 8776
FromKeyword 8422

表示 from

FunctionPointerCallingConvention 9059
FunctionPointerParameter 9057
FunctionPointerParameterList 9058
FunctionPointerType 9056
FunctionPointerUnmanagedCallingConvention 9067
FunctionPointerUnmanagedCallingConventionList 9066
GenericName 8618
GetAccessorDeclaration 8896
GetKeyword 8417

表示 get

GlobalKeyword 8408

表示 global

GlobalStatement 8841
GotoCaseStatement 8801
GotoDefaultStatement 8802
GotoKeyword 8338

表示 goto

GotoStatement 8800
GreaterThanEqualsToken 8273

表示 >= 标记。

GreaterThanExpression 8684
GreaterThanGreaterThanEqualsToken 8275

表示 >>= 标记。

GreaterThanGreaterThanGreaterThanEqualsToken 8287

表示 >>>= 标记。

GreaterThanGreaterThanGreaterThanToken 8286

表示 >>> 标记。

GreaterThanGreaterThanToken 8274

表示 >> 标记。

GreaterThanOrEqualExpression 8685
GreaterThanToken 8217

表示 > 标记。

GroupClause 8785
GroupKeyword 8423

表示 group

HashToken 8220

表示 # 标记。

HiddenKeyword 8477

表示 hidden

IdentifierName 8616
IdentifierToken 8508
IfDirectiveTrivia 8548
IfKeyword 8325

表示 if

IfStatement 8819
ImplicitArrayCreationExpression 8652
ImplicitElementAccess 8656
ImplicitKeyword 8384

表示 implicit

ImplicitObjectCreationExpression 8659
ImplicitStackAllocArrayCreationExpression 9053
IncompleteMember 8916
IndexerDeclaration 8894
IndexerMemberCref 8600
IndexExpression 8741
InitAccessorDeclaration 9060
InitKeyword 8443

表示 init

InKeyword 8362

表示 in

InterfaceDeclaration 8857
InterfaceKeyword 8376

表示 interface

InternalKeyword 8345

表示 internal

InterpolatedMultiLineRawStringStartToken 9073
InterpolatedRawStringEndToken 9074
InterpolatedSingleLineRawStringStartToken 9072
InterpolatedStringEndToken 8483

表示 " 正在关闭 $"的标记。

InterpolatedStringExpression 8655
InterpolatedStringStartToken 8482

表示 $" 标记。

InterpolatedStringText 8919
InterpolatedStringTextToken 8517
InterpolatedStringToken 8515

整个内插字符串 $""" ... { expr } ..."""的标记。 这仅在分析期间以暂时性形式存在。

InterpolatedVerbatimStringStartToken 8484

表示 $@@$ 标记。

Interpolation 8918
InterpolationAlignmentClause 8920
InterpolationFormatClause 8921
IntKeyword 8309

表示 int

IntoKeyword 8425

表示 into

InvocationExpression 8634
IsExpression 8686
IsKeyword 8363

表示 is

IsPatternExpression 8657
JoinClause 8778
JoinIntoClause 8779
JoinKeyword 8424

表示 join

LabeledStatement 8799
LeftShiftAssignmentExpression 8723
LeftShiftExpression 8673
LessThanEqualsToken 8270

表示 <= 标记。

LessThanExpression 8682
LessThanLessThanEqualsToken 8272

表示 <<= 标记。

LessThanLessThanToken 8271

表示 << 标记。

LessThanOrEqualExpression 8683
LessThanSlashToken 8233

表示 </ 标记。

LessThanToken 8215

表示 < 标记。

LetClause 8777
LetKeyword 8426

表示 let

LineDirectivePosition 9070
LineDirectiveTrivia 8558
LineKeyword 8475

表示 line

LineSpanDirectiveTrivia 9071
List 1
ListPattern 9035
LoadDirectiveTrivia 8923
LoadKeyword 8485

表示 load

LocalDeclarationStatement 8793
LocalFunctionStatement 8830
LockKeyword 8337

表示 lock

LockStatement 8818
LogicalAndExpression 8676
LogicalNotExpression 8733
LogicalOrExpression 8675
LongKeyword 8311

表示 long

MakeRefExpression 8765
MakeRefKeyword 8367

表示 __makeref

ManagedKeyword 8445

表示 managed

MemberBindingExpression 8707
MethodDeclaration 8875
MethodKeyword 8413

表示 method

MinusEqualsToken 8281

表示 -= 标记。

MinusGreaterThanToken 8266

表示 -> 标记。

MinusMinusToken 8262

表示 -- 标记。

MinusToken 8202

表示 - 标记。

ModuleKeyword 8410

表示 module

ModuloAssignmentExpression 8719
ModuloExpression 8672
MultiLineCommentTrivia 8542
MultiLineDocumentationCommentTrivia 8545
MultiLineRawStringLiteralToken 8519
MultiplyAssignmentExpression 8717
MultiplyExpression 8670
NameColon 8639
NameEquals 8852
NameMemberCref 8599
NameOfKeyword 8434

表示 nameof

NamespaceDeclaration 8842
NamespaceKeyword 8372

表示 namespace

NewKeyword 8354

表示 new

None 0
NotEqualsExpression 8681
NotKeyword 8440

表示 not

NotPattern 9033
NullableDirectiveTrivia 9055
NullableKeyword 8486

表示 nullable

NullableType 8625
NullKeyword 8322

表示 null

NullLiteralExpression 8754
NumericLiteralExpression 8749
NumericLiteralToken 8509
ObjectCreationExpression 8649
ObjectInitializerExpression 8644
ObjectKeyword 8319

表示 object

OmittedArraySizeExpression 8654
OmittedArraySizeExpressionToken 8493

表示未指定任何数组大小。

例如int[,],将 OmittedArraySizeExpressionToken 作为 前后的OmittedArraySizeExpressionSyntaxCommaToken子元素。

OmittedTypeArgument 8626
OmittedTypeArgumentToken 8492

表示未将任何指定为类型参数。

例如Dictionary<,>,将 OmittedTypeArgumentToken 作为 前后的OmittedTypeArgumentSyntaxCommaToken子元素。

OnKeyword 8430

表示 on

OpenBraceToken 8205

表示 { 标记。

OpenBracketToken 8207

表示 [ 标记。

OpenParenToken 8200

表示 ( 标记。

OperatorDeclaration 8876
OperatorKeyword 8382

表示 operator

OperatorMemberCref 8601
OrAssignmentExpression 8722
OrderByClause 8781
OrderByKeyword 8429

表示 orderby

OrKeyword 8438

表示 or

OrPattern 9031
OutKeyword 8361

表示 out

OverrideKeyword 8355

表示 override

Parameter 8908
ParameterList 8906
ParamKeyword 8414

表示 param

ParamsKeyword 8365

表示 params

ParenthesizedExpression 8632
ParenthesizedLambdaExpression 8643
ParenthesizedPattern 9028
ParenthesizedVariableDesignation 8928
PartialKeyword 8406

表示 partial

PercentEqualsToken 8283

表示 %= 标记。

PercentToken 8196

表示 % 标记。

PlusEqualsToken 8280

表示 += 标记。

PlusPlusToken 8263

表示 ++ 标记。

PlusToken 8203

表示 + 标记。

PointerIndirectionExpression 8736
PointerMemberAccessExpression 8690
PointerType 8624
PositionalPatternClause 9023
PostDecrementExpression 8739
PostIncrementExpression 8738
PragmaChecksumDirectiveTrivia 8560
PragmaKeyword 8476

表示 pragma

PragmaWarningDirectiveTrivia 8559
PreDecrementExpression 8735
PredefinedType 8621
PreIncrementExpression 8734
PreprocessingMessageTrivia 8547
PrimaryConstructorBaseType 9065
PrivateKeyword 8344

表示 private

PropertyDeclaration 8892
PropertyKeyword 8415

表示 property

PropertyPatternClause 9021
ProtectedKeyword 8346

表示 protected

PublicKeyword 8343

表示 public

QualifiedCref 8598
QualifiedName 8617
QueryBody 8775
QueryContinuation 8786
QueryExpression 8774
QuestionQuestionEqualsToken 8284

表示 ??= 标记。

QuestionQuestionToken 8265

表示 ?? 标记。

QuestionToken 8219

表示 ? 标记。

RangeExpression 8658
ReadOnlyKeyword 8348

表示 readonly

RecordDeclaration 9063
RecordKeyword 8444

表示 record

RecordStructDeclaration 9068
RecursivePattern 9020
ReferenceDirectiveTrivia 8561
ReferenceKeyword 8481

表示 r

RefExpression 9050
RefKeyword 8360

表示 ref

RefType 9051
RefTypeExpression 8767
RefTypeKeyword 8368

表示 __reftype

RefValueExpression 8766
RefValueKeyword 8369

表示 __refvalue

RegionDirectiveTrivia 8552
RegionKeyword 8469

表示 region

RelationalPattern 9029
RemoveAccessorDeclaration 8899
RemoveKeyword 8420

表示 remove

RequiredKeyword 8447

表示 required

RestoreKeyword 8480

表示 restore

ReturnKeyword 8341

表示 return

ReturnStatement 8805
RightShiftAssignmentExpression 8724
RightShiftExpression 8674
SafeOnlyKeyword 8488
SByteKeyword 8306

表示 sbyte

ScopedKeyword 8448

表示 scoped

ScopedType 9075
SealedKeyword 8349

表示 sealed

SelectClause 8784
SelectKeyword 8428

表示 select

SemicolonToken 8212

表示 ; 标记。

SetAccessorDeclaration 8897
SetKeyword 8418

表示 set

ShebangDirectiveTrivia 8922
ShortKeyword 8307

表示 short

SimpleAssignmentExpression 8714
SimpleBaseType 8865
SimpleLambdaExpression 8642
SimpleMemberAccessExpression 8689
SingleLineCommentTrivia 8541
SingleLineDocumentationCommentTrivia 8544
SingleLineRawStringLiteralToken 8518
SingleQuoteToken 8214

表示 ' 标记。

SingleVariableDesignation 8927
SizeOfExpression 8761
SizeOfKeyword 8321

表示 sizeof

SkippedTokensTrivia 8563
SlashEqualsToken 8276

表示 /= 标记。

SlashGreaterThanToken 8232

表示 /> 标记。

SlashToken 8221

表示 / 标记。

SlicePattern 9034
SpreadElement 9078
StackAllocArrayCreationExpression 8653
StackAllocKeyword 8352

表示 stackalloc

StaticKeyword 8347

表示 static

StringKeyword 8316

表示 string

StringLiteralExpression 8750
StringLiteralToken 8511
StructConstraint 8869
StructDeclaration 8856
StructKeyword 8375

表示 struct

Subpattern 9022
SubtractAssignmentExpression 8716
SubtractExpression 8669
SuppressNullableWarningExpression 9054
SwitchExpression 9025
SwitchExpressionArm 9026
SwitchKeyword 8331

表示 switch

SwitchSection 8822
SwitchStatement 8821
ThisConstructorInitializer 8890
ThisExpression 8746
ThisKeyword 8370

表示 this

ThrowExpression 9052
ThrowKeyword 8342

表示 throw

ThrowStatement 8808
TildeToken 8193

表示 ~ 标记。

TrueKeyword 8323

表示 true

TrueLiteralExpression 8752
TryKeyword 8334

表示 try

TryStatement 8825
TupleElement 8925
TupleExpression 8926
TupleType 8924
TypeArgumentList 8619
TypeConstraint 8870
TypeCref 8597
TypeKeyword 8411

表示 type

TypeOfExpression 8760
TypeOfKeyword 8320

表示 typeof

TypeParameter 8910
TypeParameterConstraintClause 8866
TypeParameterList 8909
TypePattern 9030
TypeVarKeyword 8416

表示 typevar

UIntKeyword 8310

表示 uint

ULongKeyword 8312

表示 ulong

UnaryMinusExpression 8731
UnaryPlusExpression 8730
UncheckedExpression 8763
UncheckedKeyword 8380

表示 unchecked

UncheckedStatement 8816
UndefDirectiveTrivia 8555
UndefKeyword 8472

表示 undef

UnderscoreToken 8491

表示 _ 标记。

UnknownAccessorDeclaration 8900
UnmanagedKeyword 8446

表示 unmanaged

UnsafeKeyword 8381

表示 unsafe

UnsafeStatement 8817
UnsignedRightShiftAssignmentExpression 8726
UnsignedRightShiftExpression 8692
UShortKeyword 8308

表示 ushort

UsingDirective 8843
UsingKeyword 8373

表示 using

UsingStatement 8813
Utf8MultiLineRawStringLiteralToken 8522
Utf8SingleLineRawStringLiteralToken 8521
Utf8StringLiteralExpression 8756
Utf8StringLiteralToken 8520
VariableDeclaration 8794
VariableDeclarator 8795
VarKeyword 8490

表示 var

VarPattern 9027
VirtualKeyword 8357

表示 virtual

VoidKeyword 8318

表示 void

VolatileKeyword 8353

表示 volatile

WarningDirectiveTrivia 8557
WarningKeyword 8473

表示 warning

WarningsKeyword 8488

表示 warnings

WhenClause 9013
WhenKeyword 8437

表示 when

WhereClause 8780
WhereKeyword 8421

表示 where

WhileKeyword 8327

表示 while

WhileStatement 8809
WhitespaceTrivia 8540
WithExpression 9061
WithInitializerExpression 9062
WithKeyword 8442

表示 with

XmlCDataEndToken 8237

表示 ]]> 标记。

XmlCDataSection 8584
XmlCDataStartToken 8236

表示 <![CDATA[ 标记。

XmlComment 8585
XmlCommentEndToken 8235

表示 --> 标记。

XmlCommentStartToken 8234

表示 <!-- 标记。

XmlCrefAttribute 8579
XmlElement 8574
XmlElementEndTag 8576
XmlElementStartTag 8575
XmlEmptyElement 8577
XmlEntityLiteralToken 8512
XmlName 8581
XmlNameAttribute 8580
XmlPrefix 8582
XmlProcessingInstruction 8586
XmlProcessingInstructionEndToken 8239

表示 ?> 标记。

XmlProcessingInstructionStartToken 8238

表示 <? 标记。

XmlText 8583
XmlTextAttribute 8578
XmlTextLiteralNewLineToken 8514
XmlTextLiteralToken 8513
YieldBreakStatement 8807
YieldKeyword 8405

表示 yield

YieldReturnStatement 8806

适用于