SyntaxKind 列舉

定義

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

欄位

名稱 Description
None 0
List 1
TildeToken 8193

代表 ~ 代幣。

ExclamationToken 8194

代表 ! 代幣。

DollarToken 8195

代表 $ 代幣。

這是除錯器專用的特殊標點符號,與字串插值無關。

PercentToken 8196

代表 % 代幣。

CaretToken 8197

代表 ^ 代幣。

AmpersandToken 8198

代表 & 代幣。

AsteriskToken 8199

代表 * 代幣。

OpenParenToken 8200

代表 ( 代幣。

CloseParenToken 8201

代表 ) 代幣。

MinusToken 8202

代表 - 代幣。

PlusToken 8203

代表 + 代幣。

EqualsToken 8204

代表 = 代幣。

OpenBraceToken 8205

代表 { 代幣。

CloseBraceToken 8206

代表 } 代幣。

OpenBracketToken 8207

代表 [ 代幣。

CloseBracketToken 8208

代表 ] 代幣。

BarToken 8209

代表 | 代幣。

BackslashToken 8210

代表 </code> 標記。

ColonToken 8211

代表 : 代幣。

SemicolonToken 8212

代表 ; 代幣。

DoubleQuoteToken 8213

代表 " 代幣。

SingleQuoteToken 8214

代表 ' 代幣。

LessThanToken 8215

代表 < 代幣。

CommaToken 8216

代表 , 代幣。

GreaterThanToken 8217

代表 > 代幣。

DotToken 8218

代表 . 代幣。

QuestionToken 8219

代表 ? 代幣。

HashToken 8220

代表 # 代幣。

SlashToken 8221

代表 / 代幣。

DotDotToken 8222

代表 .. 代幣。

SlashGreaterThanToken 8232

代表 /> 代幣。

LessThanSlashToken 8233

代表 </ 代幣。

XmlCommentStartToken 8234

代表 <!-- 代幣。

XmlCommentEndToken 8235

代表 --> 代幣。

XmlCDataStartToken 8236

代表 <![CDATA[ 代幣。

XmlCDataEndToken 8237

代表 ]]> 代幣。

XmlProcessingInstructionStartToken 8238

代表 <? 代幣。

XmlProcessingInstructionEndToken 8239

代表 ?> 代幣。

BarBarToken 8260

代表 || 代幣。

AmpersandAmpersandToken 8261

代表 && 代幣。

MinusMinusToken 8262

代表 -- 代幣。

PlusPlusToken 8263

代表 ++ 代幣。

ColonColonToken 8264

代表 :: 代幣。

QuestionQuestionToken 8265

代表 ?? 代幣。

MinusGreaterThanToken 8266

代表 -> 代幣。

ExclamationEqualsToken 8267

代表 != 代幣。

EqualsEqualsToken 8268

代表 == 代幣。

EqualsGreaterThanToken 8269

代表 => 代幣。

LessThanEqualsToken 8270

代表 <= 代幣。

LessThanLessThanToken 8271

代表 << 代幣。

LessThanLessThanEqualsToken 8272

代表 <<= 代幣。

GreaterThanEqualsToken 8273

代表 >= 代幣。

GreaterThanGreaterThanToken 8274

代表 >> 代幣。

GreaterThanGreaterThanEqualsToken 8275

代表 >>= 代幣。

SlashEqualsToken 8276

代表 /= 代幣。

AsteriskEqualsToken 8277

代表 *= 代幣。

BarEqualsToken 8278

代表 |= 代幣。

AmpersandEqualsToken 8279

代表 &= 代幣。

PlusEqualsToken 8280

代表 += 代幣。

MinusEqualsToken 8281

代表 -= 代幣。

CaretEqualsToken 8282

代表 ^= 代幣。

PercentEqualsToken 8283

代表 %= 代幣。

QuestionQuestionEqualsToken 8284

代表 ??= 代幣。

ExclamationExclamationToken 8285

代表 !! 代幣。

GreaterThanGreaterThanGreaterThanToken 8286

代表 >>> 代幣。

GreaterThanGreaterThanGreaterThanEqualsToken 8287

代表 >>>= 代幣。

BoolKeyword 8304

代表 bool

ByteKeyword 8305

代表 byte

SByteKeyword 8306

代表 sbyte

ShortKeyword 8307

代表 short

UShortKeyword 8308

代表 ushort

IntKeyword 8309

代表 int

UIntKeyword 8310

代表 uint

LongKeyword 8311

代表 long

ULongKeyword 8312

代表 ulong

DoubleKeyword 8313

代表 double

FloatKeyword 8314

代表 float

DecimalKeyword 8315

代表 decimal

StringKeyword 8316

代表 string

CharKeyword 8317

代表 char

VoidKeyword 8318

代表 void

ObjectKeyword 8319

代表 object

TypeOfKeyword 8320

代表 typeof

SizeOfKeyword 8321

代表 sizeof

NullKeyword 8322

代表 null

TrueKeyword 8323

代表 true

FalseKeyword 8324

代表 false

IfKeyword 8325

代表 if

ElseKeyword 8326

代表 else

WhileKeyword 8327

代表 while

ForKeyword 8328

代表 for

ForEachKeyword 8329

代表 foreach

DoKeyword 8330

代表 do

SwitchKeyword 8331

代表 switch

CaseKeyword 8332

代表 case

DefaultKeyword 8333

代表 default

TryKeyword 8334

代表 try

CatchKeyword 8335

代表 catch

FinallyKeyword 8336

代表 finally

LockKeyword 8337

代表 lock

GotoKeyword 8338

代表 goto

BreakKeyword 8339

代表 break

ContinueKeyword 8340

代表 continue

ReturnKeyword 8341

代表 return

ThrowKeyword 8342

代表 throw

PublicKeyword 8343

代表 public

PrivateKeyword 8344

代表 private

InternalKeyword 8345

代表 internal

ProtectedKeyword 8346

代表 protected

StaticKeyword 8347

代表 static

ReadOnlyKeyword 8348

代表 readonly

SealedKeyword 8349

代表 sealed

ConstKeyword 8350

代表 const

FixedKeyword 8351

代表 fixed

StackAllocKeyword 8352

代表 stackalloc

VolatileKeyword 8353

代表 volatile

NewKeyword 8354

代表 new

OverrideKeyword 8355

代表 override

AbstractKeyword 8356

代表 abstract

VirtualKeyword 8357

代表 virtual

EventKeyword 8358

代表 event

ExternKeyword 8359

代表 extern

RefKeyword 8360

代表 ref

OutKeyword 8361

代表 out

InKeyword 8362

代表 in

IsKeyword 8363

代表 is

AsKeyword 8364

代表 as

ParamsKeyword 8365

代表 params

ArgListKeyword 8366

代表 __arglist

MakeRefKeyword 8367

代表 __makeref

RefTypeKeyword 8368

代表 __reftype

RefValueKeyword 8369

代表 __refvalue

ThisKeyword 8370

代表 this

BaseKeyword 8371

代表 base

NamespaceKeyword 8372

代表 namespace

UsingKeyword 8373

代表 using

ClassKeyword 8374

代表 class

StructKeyword 8375

代表 struct

InterfaceKeyword 8376

代表 interface

EnumKeyword 8377

代表 enum

DelegateKeyword 8378

代表 delegate

CheckedKeyword 8379

代表 checked

UncheckedKeyword 8380

代表 unchecked

UnsafeKeyword 8381

代表 unsafe

OperatorKeyword 8382

代表 operator

ExplicitKeyword 8383

代表 explicit

ImplicitKeyword 8384

代表 implicit

YieldKeyword 8405

代表 yield

PartialKeyword 8406

代表 partial

AliasKeyword 8407

代表 alias

GlobalKeyword 8408

代表 global

AssemblyKeyword 8409

代表 assembly

ModuleKeyword 8410

代表 module

TypeKeyword 8411

代表 type

FieldKeyword 8412

代表 field

MethodKeyword 8413

代表 method

ParamKeyword 8414

代表 param

PropertyKeyword 8415

代表 property

TypeVarKeyword 8416

代表 typevar

GetKeyword 8417

代表 get

SetKeyword 8418

代表 set

AddKeyword 8419

代表 add

RemoveKeyword 8420

代表 remove

WhereKeyword 8421

代表 where

FromKeyword 8422

代表 from

GroupKeyword 8423

代表 group

JoinKeyword 8424

代表 join

IntoKeyword 8425

代表 into

LetKeyword 8426

代表 let

ByKeyword 8427

代表 by

SelectKeyword 8428

代表 select

OrderByKeyword 8429

代表 orderby

OnKeyword 8430

代表 on

EqualsKeyword 8431

代表 equals

AscendingKeyword 8432

代表 ascending

DescendingKeyword 8433

代表 descending

NameOfKeyword 8434

代表 nameof

AsyncKeyword 8435

代表 async

AwaitKeyword 8436

代表 await

WhenKeyword 8437

代表 when

OrKeyword 8438

代表 or

AndKeyword 8439

代表 and

NotKeyword 8440

代表 not

DataKeyword 8441

代表 data

WithKeyword 8442

代表 with

InitKeyword 8443

代表 init

RecordKeyword 8444

代表 record

ManagedKeyword 8445

代表 managed

UnmanagedKeyword 8446

代表 unmanaged

RequiredKeyword 8447

代表 required

ScopedKeyword 8448

代表 scoped

FileKeyword 8449

代表 file

AllowsKeyword 8450

代表 allows

ExtensionKeyword 8451

代表 extension

UnionKeyword 8452

代表 union

ClosedKeyword 8453

代表 closed

SafeKeyword 8454

代表 safe

ElifKeyword 8467

代表 elif

EndIfKeyword 8468

代表 endif

RegionKeyword 8469

代表 region

EndRegionKeyword 8470

代表 endregion

DefineKeyword 8471

代表 define

UndefKeyword 8472

代表 undef

WarningKeyword 8473

代表 warning

ErrorKeyword 8474

代表 error

LineKeyword 8475

代表 line

PragmaKeyword 8476

代表 pragma

HiddenKeyword 8477

代表 hidden

ChecksumKeyword 8478

代表 checksum

DisableKeyword 8479

代表 disable

RestoreKeyword 8480

代表 restore

ReferenceKeyword 8481

代表 r

InterpolatedStringStartToken 8482

代表 $" 代幣。

InterpolatedStringEndToken 8483

代表 " 正在收尾 $"的代幣。

InterpolatedVerbatimStringStartToken 8484

代表 $@@$ 標記。

LoadKeyword 8485

代表 load

NullableKeyword 8486

代表 nullable

EnableKeyword 8487

代表 enable

SafeOnlyKeyword 8488
WarningsKeyword 8488

代表 warnings

AnnotationsKeyword 8489

代表 annotations

VarKeyword 8490

代表 var

UnderscoreToken 8491

代表 _ 代幣。

OmittedTypeArgumentToken 8492

表示沒有指定為型別參數。

例如Dictionary<,>,在 之前和之後 CommaToken的子OmittedTypeArgumentSyntax節點 都有OmittedTypeArgumentToken

OmittedArraySizeExpressionToken 8493

表示沒有任何陣列大小被指定。

例如int[,],在 之前和之後 CommaToken的子OmittedArraySizeExpressionSyntax節點 都有OmittedArraySizeExpressionToken

EndOfDirectiveToken 8494

代表指令結束後出現的標記,例如 #endif

EndOfDocumentationCommentToken 8495

代表三連線文件留言的結束。

EndOfFileToken 8496

代表檔案的結尾。

BadToken 8507
IdentifierToken 8508
NumericLiteralToken 8509
CharacterLiteralToken 8510
StringLiteralToken 8511
XmlEntityLiteralToken 8512
XmlTextLiteralToken 8513
XmlTextLiteralNewLineToken 8514
InterpolatedStringToken 8515

整串插值 $""" ... { expr } ..."""的標記。 這只會在解析過程中以暫態形式存在。

InterpolatedStringTextToken 8517
SingleLineRawStringLiteralToken 8518
MultiLineRawStringLiteralToken 8519
Utf8StringLiteralToken 8520
Utf8SingleLineRawStringLiteralToken 8521
Utf8MultiLineRawStringLiteralToken 8522
RazorContentToken 8523
EndOfLineTrivia 8539
WhitespaceTrivia 8540
SingleLineCommentTrivia 8541
MultiLineCommentTrivia 8542
DocumentationCommentExteriorTrivia 8543
SingleLineDocumentationCommentTrivia 8544
MultiLineDocumentationCommentTrivia 8545
DisabledTextTrivia 8546
PreprocessingMessageTrivia 8547
IfDirectiveTrivia 8548
ElifDirectiveTrivia 8549
ElseDirectiveTrivia 8550
EndIfDirectiveTrivia 8551
RegionDirectiveTrivia 8552
EndRegionDirectiveTrivia 8553
DefineDirectiveTrivia 8554
UndefDirectiveTrivia 8555
ErrorDirectiveTrivia 8556
WarningDirectiveTrivia 8557
LineDirectiveTrivia 8558
PragmaWarningDirectiveTrivia 8559
PragmaChecksumDirectiveTrivia 8560
ReferenceDirectiveTrivia 8561
BadDirectiveTrivia 8562
SkippedTokensTrivia 8563
ConflictMarkerTrivia 8564
XmlElement 8574
XmlElementStartTag 8575
XmlElementEndTag 8576
XmlEmptyElement 8577
XmlTextAttribute 8578
XmlCrefAttribute 8579
XmlNameAttribute 8580
XmlName 8581
XmlPrefix 8582
XmlText 8583
XmlCDataSection 8584
XmlComment 8585
XmlProcessingInstruction 8586
TypeCref 8597
QualifiedCref 8598
NameMemberCref 8599
IndexerMemberCref 8600
OperatorMemberCref 8601
ConversionOperatorMemberCref 8602
CrefParameterList 8603
CrefBracketedParameterList 8604
CrefParameter 8605
ExtensionMemberCref 8607
IdentifierName 8616
QualifiedName 8617
GenericName 8618
TypeArgumentList 8619
AliasQualifiedName 8620
PredefinedType 8621
ArrayType 8622
ArrayRankSpecifier 8623
PointerType 8624
NullableType 8625
OmittedTypeArgument 8626
ParenthesizedExpression 8632
ConditionalExpression 8633
InvocationExpression 8634
ElementAccessExpression 8635
ArgumentList 8636
BracketedArgumentList 8637
Argument 8638
NameColon 8639
CastExpression 8640
AnonymousMethodExpression 8641
SimpleLambdaExpression 8642
ParenthesizedLambdaExpression 8643
ObjectInitializerExpression 8644
CollectionInitializerExpression 8645
ArrayInitializerExpression 8646
AnonymousObjectMemberDeclarator 8647
ComplexElementInitializerExpression 8648
ObjectCreationExpression 8649
AnonymousObjectCreationExpression 8650
ArrayCreationExpression 8651
ImplicitArrayCreationExpression 8652
StackAllocArrayCreationExpression 8653
OmittedArraySizeExpression 8654
InterpolatedStringExpression 8655
ImplicitElementAccess 8656
IsPatternExpression 8657
RangeExpression 8658
BaseExpressionTypeClause 8659
ImplicitObjectCreationExpression 8659
AddExpression 8668
SubtractExpression 8669
MultiplyExpression 8670
DivideExpression 8671
ModuloExpression 8672
LeftShiftExpression 8673
RightShiftExpression 8674
LogicalOrExpression 8675
LogicalAndExpression 8676
BitwiseOrExpression 8677
BitwiseAndExpression 8678
ExclusiveOrExpression 8679
EqualsExpression 8680
NotEqualsExpression 8681
LessThanExpression 8682
LessThanOrEqualExpression 8683
GreaterThanExpression 8684
GreaterThanOrEqualExpression 8685
IsExpression 8686
AsExpression 8687
CoalesceExpression 8688
SimpleMemberAccessExpression 8689
PointerMemberAccessExpression 8690
ConditionalAccessExpression 8691
UnsignedRightShiftExpression 8692
MemberBindingExpression 8707
ElementBindingExpression 8708
SimpleAssignmentExpression 8714
AddAssignmentExpression 8715
SubtractAssignmentExpression 8716
MultiplyAssignmentExpression 8717
DivideAssignmentExpression 8718
ModuloAssignmentExpression 8719
AndAssignmentExpression 8720
ExclusiveOrAssignmentExpression 8721
OrAssignmentExpression 8722
LeftShiftAssignmentExpression 8723
RightShiftAssignmentExpression 8724
CoalesceAssignmentExpression 8725
UnsignedRightShiftAssignmentExpression 8726
UnaryPlusExpression 8730
UnaryMinusExpression 8731
BitwiseNotExpression 8732
LogicalNotExpression 8733
PreIncrementExpression 8734
PreDecrementExpression 8735
PointerIndirectionExpression 8736
AddressOfExpression 8737
PostIncrementExpression 8738
PostDecrementExpression 8739
AwaitExpression 8740
IndexExpression 8741
ThisExpression 8746
BaseExpression 8747
ArgListExpression 8748
NumericLiteralExpression 8749
StringLiteralExpression 8750
CharacterLiteralExpression 8751
TrueLiteralExpression 8752
FalseLiteralExpression 8753
NullLiteralExpression 8754
DefaultLiteralExpression 8755
Utf8StringLiteralExpression 8756
FieldExpression 8757
TypeOfExpression 8760
SizeOfExpression 8761
CheckedExpression 8762
UncheckedExpression 8763
DefaultExpression 8764
MakeRefExpression 8765
RefValueExpression 8766
RefTypeExpression 8767
UnsafeExpression 8769
QueryExpression 8774
QueryBody 8775
FromClause 8776
LetClause 8777
JoinClause 8778
JoinIntoClause 8779
WhereClause 8780
OrderByClause 8781
AscendingOrdering 8782
DescendingOrdering 8783
SelectClause 8784
GroupClause 8785
QueryContinuation 8786
Block 8792
LocalDeclarationStatement 8793
VariableDeclaration 8794
VariableDeclarator 8795
EqualsValueClause 8796
ExpressionStatement 8797
EmptyStatement 8798
LabeledStatement 8799
GotoStatement 8800
GotoCaseStatement 8801
GotoDefaultStatement 8802
BreakStatement 8803
ContinueStatement 8804
ReturnStatement 8805
YieldReturnStatement 8806
YieldBreakStatement 8807
ThrowStatement 8808
WhileStatement 8809
DoStatement 8810
ForStatement 8811
ForEachStatement 8812
UsingStatement 8813
FixedStatement 8814
CheckedStatement 8815
UncheckedStatement 8816
UnsafeStatement 8817
LockStatement 8818
IfStatement 8819
ElseClause 8820
SwitchStatement 8821
SwitchSection 8822
CaseSwitchLabel 8823
DefaultSwitchLabel 8824
TryStatement 8825
CatchClause 8826
CatchDeclaration 8827
CatchFilterClause 8828
FinallyClause 8829
LocalFunctionStatement 8830
CompilationUnit 8840
GlobalStatement 8841
NamespaceDeclaration 8842
UsingDirective 8843
ExternAliasDirective 8844
FileScopedNamespaceDeclaration 8845
AttributeList 8847
AttributeTargetSpecifier 8848
Attribute 8849
AttributeArgumentList 8850
AttributeArgument 8851
NameEquals 8852
ClassDeclaration 8855
StructDeclaration 8856
InterfaceDeclaration 8857
EnumDeclaration 8858
DelegateDeclaration 8859
BaseList 8864
SimpleBaseType 8865
TypeParameterConstraintClause 8866
ConstructorConstraint 8867
ClassConstraint 8868
StructConstraint 8869
TypeConstraint 8870
ExplicitInterfaceSpecifier 8871
EnumMemberDeclaration 8872
FieldDeclaration 8873
EventFieldDeclaration 8874
MethodDeclaration 8875
OperatorDeclaration 8876
ConversionOperatorDeclaration 8877
ConstructorDeclaration 8878
AllowsConstraintClause 8879
RefStructConstraint 8880
BaseConstructorInitializer 8889
ThisConstructorInitializer 8890
DestructorDeclaration 8891
PropertyDeclaration 8892
EventDeclaration 8893
IndexerDeclaration 8894
AccessorList 8895
GetAccessorDeclaration 8896
SetAccessorDeclaration 8897
AddAccessorDeclaration 8898
RemoveAccessorDeclaration 8899
UnknownAccessorDeclaration 8900
ParameterList 8906
BracketedParameterList 8907
Parameter 8908
TypeParameterList 8909
TypeParameter 8910
IncompleteMember 8916
ArrowExpressionClause 8917
Interpolation 8918
InterpolatedStringText 8919
InterpolationAlignmentClause 8920
InterpolationFormatClause 8921
ShebangDirectiveTrivia 8922
LoadDirectiveTrivia 8923
TupleType 8924
TupleElement 8925
TupleExpression 8926
SingleVariableDesignation 8927
ParenthesizedVariableDesignation 8928
ForEachVariableStatement 8929
DeclarationPattern 9000
ConstantPattern 9002
CasePatternSwitchLabel 9009
WhenClause 9013
DiscardDesignation 9014
RecursivePattern 9020
PropertyPatternClause 9021
Subpattern 9022
PositionalPatternClause 9023
DiscardPattern 9024
SwitchExpression 9025
SwitchExpressionArm 9026
VarPattern 9027
ParenthesizedPattern 9028
RelationalPattern 9029
TypePattern 9030
OrPattern 9031
AndPattern 9032
NotPattern 9033
SlicePattern 9034
ListPattern 9035
DeclarationExpression 9040
RefExpression 9050
RefType 9051
ThrowExpression 9052
ImplicitStackAllocArrayCreationExpression 9053
SuppressNullableWarningExpression 9054
NullableDirectiveTrivia 9055
FunctionPointerType 9056
FunctionPointerParameter 9057
FunctionPointerParameterList 9058
FunctionPointerCallingConvention 9059
InitAccessorDeclaration 9060
WithExpression 9061
WithInitializerExpression 9062
RecordDeclaration 9063
DefaultConstraint 9064
PrimaryConstructorBaseType 9065
FunctionPointerUnmanagedCallingConventionList 9066
FunctionPointerUnmanagedCallingConvention 9067
RecordStructDeclaration 9068
ExpressionColon 9069
LineDirectivePosition 9070
LineSpanDirectiveTrivia 9071
InterpolatedSingleLineRawStringStartToken 9072
InterpolatedMultiLineRawStringStartToken 9073
InterpolatedRawStringEndToken 9074
ScopedType 9075
CollectionExpression 9076
ExpressionElement 9077
SpreadElement 9078
ExtensionBlockDeclaration 9079
ExtensionDeclaration 9079
IgnoredDirectiveTrivia 9080
WithElement 9081
UnionDeclaration 9082

適用於