1498 references to Kind
Microsoft.CodeAnalysis.CSharp (1498)
Binder\Semantics\Operators\OperatorFacts.cs (4)
177
var opTokenKind = declaration.OperatorToken.
Kind
;
178
bool isChecked = declaration.CheckedKeyword?.
Kind
== SyntaxKind.CheckedKeyword;
220
switch (declaration.ImplicitOrExplicitKeyword.
Kind
)
225
return declaration.CheckedKeyword?.
Kind
== SyntaxKind.CheckedKeyword ?
Declarations\DeclarationTreeBuilder.cs (6)
982
if (!anyExtensionDeclarationSyntax && member.
Kind
== SyntaxKind.ExtensionBlockDeclaration)
1107
if (member.
Kind
== SyntaxKind.MethodDeclaration)
1121
if (modifier.
Kind
== SyntaxKind.ThisKeyword)
1134
switch (member.
Kind
)
1186
switch (member.
Kind
)
1284
switch (member.
Kind
)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Syntax.xml.Internal.Generated.cs (518)
104
=> new IdentifierNameSyntax(this.
Kind
, this.identifier, diagnostics, GetAnnotations());
107
=> new IdentifierNameSyntax(this.
Kind
, this.identifier, GetDiagnostics(), annotations);
193
=> new QualifiedNameSyntax(this.
Kind
, this.left, this.dotToken, this.right, diagnostics, GetAnnotations());
196
=> new QualifiedNameSyntax(this.
Kind
, this.left, this.dotToken, this.right, GetDiagnostics(), annotations);
272
=> new GenericNameSyntax(this.
Kind
, this.identifier, this.typeArgumentList, diagnostics, GetAnnotations());
275
=> new GenericNameSyntax(this.
Kind
, this.identifier, this.typeArgumentList, GetDiagnostics(), annotations);
370
=> new TypeArgumentListSyntax(this.
Kind
, this.lessThanToken, this.arguments, this.greaterThanToken, diagnostics, GetAnnotations());
373
=> new TypeArgumentListSyntax(this.
Kind
, this.lessThanToken, this.arguments, this.greaterThanToken, GetDiagnostics(), annotations);
459
=> new AliasQualifiedNameSyntax(this.
Kind
, this.alias, this.colonColonToken, this.name, diagnostics, GetAnnotations());
462
=> new AliasQualifiedNameSyntax(this.
Kind
, this.alias, this.colonColonToken, this.name, GetDiagnostics(), annotations);
538
=> new PredefinedTypeSyntax(this.
Kind
, this.keyword, diagnostics, GetAnnotations());
541
=> new PredefinedTypeSyntax(this.
Kind
, this.keyword, GetDiagnostics(), annotations);
626
=> new ArrayTypeSyntax(this.
Kind
, this.elementType, this.rankSpecifiers, diagnostics, GetAnnotations());
629
=> new ArrayTypeSyntax(this.
Kind
, this.elementType, this.rankSpecifiers, GetDiagnostics(), annotations);
720
=> new ArrayRankSpecifierSyntax(this.
Kind
, this.openBracketToken, this.sizes, this.closeBracketToken, diagnostics, GetAnnotations());
723
=> new ArrayRankSpecifierSyntax(this.
Kind
, this.openBracketToken, this.sizes, this.closeBracketToken, GetDiagnostics(), annotations);
799
=> new PointerTypeSyntax(this.
Kind
, this.elementType, this.asteriskToken, diagnostics, GetAnnotations());
802
=> new PointerTypeSyntax(this.
Kind
, this.elementType, this.asteriskToken, GetDiagnostics(), annotations);
906
=> new FunctionPointerTypeSyntax(this.
Kind
, this.delegateKeyword, this.asteriskToken, this.callingConvention, this.parameterList, diagnostics, GetAnnotations());
909
=> new FunctionPointerTypeSyntax(this.
Kind
, this.delegateKeyword, this.asteriskToken, this.callingConvention, this.parameterList, GetDiagnostics(), annotations);
1004
=> new FunctionPointerParameterListSyntax(this.
Kind
, this.lessThanToken, this.parameters, this.greaterThanToken, diagnostics, GetAnnotations());
1007
=> new FunctionPointerParameterListSyntax(this.
Kind
, this.lessThanToken, this.parameters, this.greaterThanToken, GetDiagnostics(), annotations);
1092
=> new FunctionPointerCallingConventionSyntax(this.
Kind
, this.managedOrUnmanagedKeyword, this.unmanagedCallingConventionList, diagnostics, GetAnnotations());
1095
=> new FunctionPointerCallingConventionSyntax(this.
Kind
, this.managedOrUnmanagedKeyword, this.unmanagedCallingConventionList, GetDiagnostics(), annotations);
1190
=> new FunctionPointerUnmanagedCallingConventionListSyntax(this.
Kind
, this.openBracketToken, this.callingConventions, this.closeBracketToken, diagnostics, GetAnnotations());
1193
=> new FunctionPointerUnmanagedCallingConventionListSyntax(this.
Kind
, this.openBracketToken, this.callingConventions, this.closeBracketToken, GetDiagnostics(), annotations);
1255
=> new FunctionPointerUnmanagedCallingConventionSyntax(this.
Kind
, this.name, diagnostics, GetAnnotations());
1258
=> new FunctionPointerUnmanagedCallingConventionSyntax(this.
Kind
, this.name, GetDiagnostics(), annotations);
1334
=> new NullableTypeSyntax(this.
Kind
, this.elementType, this.questionToken, diagnostics, GetAnnotations());
1337
=> new NullableTypeSyntax(this.
Kind
, this.elementType, this.questionToken, GetDiagnostics(), annotations);
1431
=> new TupleTypeSyntax(this.
Kind
, this.openParenToken, this.elements, this.closeParenToken, diagnostics, GetAnnotations());
1434
=> new TupleTypeSyntax(this.
Kind
, this.openParenToken, this.elements, this.closeParenToken, GetDiagnostics(), annotations);
1519
=> new TupleElementSyntax(this.
Kind
, this.type, this.identifier, diagnostics, GetAnnotations());
1522
=> new TupleElementSyntax(this.
Kind
, this.type, this.identifier, GetDiagnostics(), annotations);
1584
=> new OmittedTypeArgumentSyntax(this.
Kind
, this.omittedTypeArgumentToken, diagnostics, GetAnnotations());
1587
=> new OmittedTypeArgumentSyntax(this.
Kind
, this.omittedTypeArgumentToken, GetDiagnostics(), annotations);
1680
=> new RefTypeSyntax(this.
Kind
, this.refKeyword, this.readOnlyKeyword, this.type, diagnostics, GetAnnotations());
1683
=> new RefTypeSyntax(this.
Kind
, this.refKeyword, this.readOnlyKeyword, this.type, GetDiagnostics(), annotations);
1757
=> new ScopedTypeSyntax(this.
Kind
, this.scopedKeyword, this.type, diagnostics, GetAnnotations());
1760
=> new ScopedTypeSyntax(this.
Kind
, this.scopedKeyword, this.type, GetDiagnostics(), annotations);
1873
=> new ParenthesizedExpressionSyntax(this.
Kind
, this.openParenToken, this.expression, this.closeParenToken, diagnostics, GetAnnotations());
1876
=> new ParenthesizedExpressionSyntax(this.
Kind
, this.openParenToken, this.expression, this.closeParenToken, GetDiagnostics(), annotations);
1971
=> new TupleExpressionSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, diagnostics, GetAnnotations());
1974
=> new TupleExpressionSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, GetDiagnostics(), annotations);
2036
var newNode = SyntaxFactory.PrefixUnaryExpression(this.
Kind
, operatorToken, operand);
2050
=> new PrefixUnaryExpressionSyntax(this.
Kind
, this.operatorToken, this.operand, diagnostics, GetAnnotations());
2053
=> new PrefixUnaryExpressionSyntax(this.
Kind
, this.operatorToken, this.operand, GetDiagnostics(), annotations);
2129
=> new AwaitExpressionSyntax(this.
Kind
, this.awaitKeyword, this.expression, diagnostics, GetAnnotations());
2132
=> new AwaitExpressionSyntax(this.
Kind
, this.awaitKeyword, this.expression, GetDiagnostics(), annotations);
2194
var newNode = SyntaxFactory.PostfixUnaryExpression(this.
Kind
, operand, operatorToken);
2208
=> new PostfixUnaryExpressionSyntax(this.
Kind
, this.operand, this.operatorToken, diagnostics, GetAnnotations());
2211
=> new PostfixUnaryExpressionSyntax(this.
Kind
, this.operand, this.operatorToken, GetDiagnostics(), annotations);
2283
var newNode = SyntaxFactory.MemberAccessExpression(this.
Kind
, expression, operatorToken, name);
2297
=> new MemberAccessExpressionSyntax(this.
Kind
, this.expression, this.operatorToken, this.name, diagnostics, GetAnnotations());
2300
=> new MemberAccessExpressionSyntax(this.
Kind
, this.expression, this.operatorToken, this.name, GetDiagnostics(), annotations);
2386
=> new ConditionalAccessExpressionSyntax(this.
Kind
, this.expression, this.operatorToken, this.whenNotNull, diagnostics, GetAnnotations());
2389
=> new ConditionalAccessExpressionSyntax(this.
Kind
, this.expression, this.operatorToken, this.whenNotNull, GetDiagnostics(), annotations);
2465
=> new MemberBindingExpressionSyntax(this.
Kind
, this.operatorToken, this.name, diagnostics, GetAnnotations());
2468
=> new MemberBindingExpressionSyntax(this.
Kind
, this.operatorToken, this.name, GetDiagnostics(), annotations);
2530
=> new ElementBindingExpressionSyntax(this.
Kind
, this.argumentList, diagnostics, GetAnnotations());
2533
=> new ElementBindingExpressionSyntax(this.
Kind
, this.argumentList, GetDiagnostics(), annotations);
2637
=> new RangeExpressionSyntax(this.
Kind
, this.leftOperand, this.operatorToken, this.rightOperand, diagnostics, GetAnnotations());
2640
=> new RangeExpressionSyntax(this.
Kind
, this.leftOperand, this.operatorToken, this.rightOperand, GetDiagnostics(), annotations);
2702
=> new ImplicitElementAccessSyntax(this.
Kind
, this.argumentList, diagnostics, GetAnnotations());
2705
=> new ImplicitElementAccessSyntax(this.
Kind
, this.argumentList, GetDiagnostics(), annotations);
2777
var newNode = SyntaxFactory.BinaryExpression(this.
Kind
, left, operatorToken, right);
2791
=> new BinaryExpressionSyntax(this.
Kind
, this.left, this.operatorToken, this.right, diagnostics, GetAnnotations());
2794
=> new BinaryExpressionSyntax(this.
Kind
, this.left, this.operatorToken, this.right, GetDiagnostics(), annotations);
2866
var newNode = SyntaxFactory.AssignmentExpression(this.
Kind
, left, operatorToken, right);
2880
=> new AssignmentExpressionSyntax(this.
Kind
, this.left, this.operatorToken, this.right, diagnostics, GetAnnotations());
2883
=> new AssignmentExpressionSyntax(this.
Kind
, this.left, this.operatorToken, this.right, GetDiagnostics(), annotations);
2989
=> new ConditionalExpressionSyntax(this.
Kind
, this.condition, this.questionToken, this.whenTrue, this.colonToken, this.whenFalse, diagnostics, GetAnnotations());
2992
=> new ConditionalExpressionSyntax(this.
Kind
, this.condition, this.questionToken, this.whenTrue, this.colonToken, this.whenFalse, GetDiagnostics(), annotations);
3068
=> new ThisExpressionSyntax(this.
Kind
, this.token, diagnostics, GetAnnotations());
3071
=> new ThisExpressionSyntax(this.
Kind
, this.token, GetDiagnostics(), annotations);
3133
=> new BaseExpressionSyntax(this.
Kind
, this.token, diagnostics, GetAnnotations());
3136
=> new BaseExpressionSyntax(this.
Kind
, this.token, GetDiagnostics(), annotations);
3184
var newNode = SyntaxFactory.LiteralExpression(this.
Kind
, token);
3198
=> new LiteralExpressionSyntax(this.
Kind
, this.token, diagnostics, GetAnnotations());
3201
=> new LiteralExpressionSyntax(this.
Kind
, this.token, GetDiagnostics(), annotations);
3263
=> new FieldExpressionSyntax(this.
Kind
, this.token, diagnostics, GetAnnotations());
3266
=> new FieldExpressionSyntax(this.
Kind
, this.token, GetDiagnostics(), annotations);
3362
=> new MakeRefExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.expression, this.closeParenToken, diagnostics, GetAnnotations());
3365
=> new MakeRefExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.expression, this.closeParenToken, GetDiagnostics(), annotations);
3461
=> new RefTypeExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.expression, this.closeParenToken, diagnostics, GetAnnotations());
3464
=> new RefTypeExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.expression, this.closeParenToken, GetDiagnostics(), annotations);
3580
=> new RefValueExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.expression, this.comma, this.type, this.closeParenToken, diagnostics, GetAnnotations());
3583
=> new RefValueExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.expression, this.comma, this.type, this.closeParenToken, GetDiagnostics(), annotations);
3665
var newNode = SyntaxFactory.CheckedExpression(this.
Kind
, keyword, openParenToken, expression, closeParenToken);
3679
=> new CheckedExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.expression, this.closeParenToken, diagnostics, GetAnnotations());
3682
=> new CheckedExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.expression, this.closeParenToken, GetDiagnostics(), annotations);
3778
=> new UnsafeExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.expression, this.closeParenToken, diagnostics, GetAnnotations());
3781
=> new UnsafeExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.expression, this.closeParenToken, GetDiagnostics(), annotations);
3877
=> new DefaultExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.type, this.closeParenToken, diagnostics, GetAnnotations());
3880
=> new DefaultExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.type, this.closeParenToken, GetDiagnostics(), annotations);
3976
=> new TypeOfExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.type, this.closeParenToken, diagnostics, GetAnnotations());
3979
=> new TypeOfExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.type, this.closeParenToken, GetDiagnostics(), annotations);
4075
=> new SizeOfExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.type, this.closeParenToken, diagnostics, GetAnnotations());
4078
=> new SizeOfExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.type, this.closeParenToken, GetDiagnostics(), annotations);
4154
=> new InvocationExpressionSyntax(this.
Kind
, this.expression, this.argumentList, diagnostics, GetAnnotations());
4157
=> new InvocationExpressionSyntax(this.
Kind
, this.expression, this.argumentList, GetDiagnostics(), annotations);
4233
=> new ElementAccessExpressionSyntax(this.
Kind
, this.expression, this.argumentList, diagnostics, GetAnnotations());
4236
=> new ElementAccessExpressionSyntax(this.
Kind
, this.expression, this.argumentList, GetDiagnostics(), annotations);
4348
=> new ArgumentListSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, diagnostics, GetAnnotations());
4351
=> new ArgumentListSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, GetDiagnostics(), annotations);
4446
=> new BracketedArgumentListSyntax(this.
Kind
, this.openBracketToken, this.arguments, this.closeBracketToken, diagnostics, GetAnnotations());
4449
=> new BracketedArgumentListSyntax(this.
Kind
, this.openBracketToken, this.arguments, this.closeBracketToken, GetDiagnostics(), annotations);
4553
=> new ArgumentSyntax(this.
Kind
, this.nameColon, this.refKindKeyword, this.expression, diagnostics, GetAnnotations());
4556
=> new ArgumentSyntax(this.
Kind
, this.nameColon, this.refKindKeyword, this.expression, GetDiagnostics(), annotations);
4646
=> new ExpressionColonSyntax(this.
Kind
, this.expression, this.colonToken, diagnostics, GetAnnotations());
4649
=> new ExpressionColonSyntax(this.
Kind
, this.expression, this.colonToken, GetDiagnostics(), annotations);
4725
=> new NameColonSyntax(this.
Kind
, this.name, this.colonToken, diagnostics, GetAnnotations());
4728
=> new NameColonSyntax(this.
Kind
, this.name, this.colonToken, GetDiagnostics(), annotations);
4803
=> new DeclarationExpressionSyntax(this.
Kind
, this.type, this.designation, diagnostics, GetAnnotations());
4806
=> new DeclarationExpressionSyntax(this.
Kind
, this.type, this.designation, GetDiagnostics(), annotations);
4902
=> new CastExpressionSyntax(this.
Kind
, this.openParenToken, this.type, this.closeParenToken, this.expression, diagnostics, GetAnnotations());
4905
=> new CastExpressionSyntax(this.
Kind
, this.openParenToken, this.type, this.closeParenToken, this.expression, GetDiagnostics(), annotations);
5071
=> new AnonymousMethodExpressionSyntax(this.
Kind
, this.modifiers, this.delegateKeyword, this.parameterList, this.block, this.expressionBody, diagnostics, GetAnnotations());
5074
=> new AnonymousMethodExpressionSyntax(this.
Kind
, this.modifiers, this.delegateKeyword, this.parameterList, this.block, this.expressionBody, GetDiagnostics(), annotations);
5249
=> new SimpleLambdaExpressionSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.parameter, this.arrowToken, this.block, this.expressionBody, diagnostics, GetAnnotations());
5252
=> new SimpleLambdaExpressionSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.parameter, this.arrowToken, this.block, this.expressionBody, GetDiagnostics(), annotations);
5325
=> new RefExpressionSyntax(this.
Kind
, this.refKeyword, this.expression, diagnostics, GetAnnotations());
5328
=> new RefExpressionSyntax(this.
Kind
, this.refKeyword, this.expression, GetDiagnostics(), annotations);
5502
=> new ParenthesizedLambdaExpressionSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.parameterList, this.arrowToken, this.block, this.expressionBody, diagnostics, GetAnnotations());
5505
=> new ParenthesizedLambdaExpressionSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.parameterList, this.arrowToken, this.block, this.expressionBody, GetDiagnostics(), annotations);
5586
var newNode = SyntaxFactory.InitializerExpression(this.
Kind
, openBraceToken, expressions, closeBraceToken);
5600
=> new InitializerExpressionSyntax(this.
Kind
, this.openBraceToken, this.expressions, this.closeBraceToken, diagnostics, GetAnnotations());
5603
=> new InitializerExpressionSyntax(this.
Kind
, this.openBraceToken, this.expressions, this.closeBraceToken, GetDiagnostics(), annotations);
5720
=> new ImplicitObjectCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.argumentList, this.initializer, diagnostics, GetAnnotations());
5723
=> new ImplicitObjectCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.argumentList, this.initializer, GetDiagnostics(), annotations);
5837
=> new ObjectCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.type, this.argumentList, this.initializer, diagnostics, GetAnnotations());
5840
=> new ObjectCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.type, this.argumentList, this.initializer, GetDiagnostics(), annotations);
5923
=> new WithExpressionSyntax(this.
Kind
, this.expression, this.withKeyword, this.initializer, diagnostics, GetAnnotations());
5926
=> new WithExpressionSyntax(this.
Kind
, this.expression, this.withKeyword, this.initializer, GetDiagnostics(), annotations);
6010
=> new AnonymousObjectMemberDeclaratorSyntax(this.
Kind
, this.nameEquals, this.expression, diagnostics, GetAnnotations());
6013
=> new AnonymousObjectMemberDeclaratorSyntax(this.
Kind
, this.nameEquals, this.expression, GetDiagnostics(), annotations);
6118
=> new AnonymousObjectCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.openBraceToken, this.initializers, this.closeBraceToken, diagnostics, GetAnnotations());
6121
=> new AnonymousObjectCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.openBraceToken, this.initializers, this.closeBraceToken, GetDiagnostics(), annotations);
6216
=> new ArrayCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.type, this.initializer, diagnostics, GetAnnotations());
6219
=> new ArrayCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.type, this.initializer, GetDiagnostics(), annotations);
6334
=> new ImplicitArrayCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.openBracketToken, this.commas, this.closeBracketToken, this.initializer, diagnostics, GetAnnotations());
6337
=> new ImplicitArrayCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.openBracketToken, this.commas, this.closeBracketToken, this.initializer, GetDiagnostics(), annotations);
6432
=> new StackAllocArrayCreationExpressionSyntax(this.
Kind
, this.stackAllocKeyword, this.type, this.initializer, diagnostics, GetAnnotations());
6435
=> new StackAllocArrayCreationExpressionSyntax(this.
Kind
, this.stackAllocKeyword, this.type, this.initializer, GetDiagnostics(), annotations);
6531
=> new ImplicitStackAllocArrayCreationExpressionSyntax(this.
Kind
, this.stackAllocKeyword, this.openBracketToken, this.closeBracketToken, this.initializer, diagnostics, GetAnnotations());
6534
=> new ImplicitStackAllocArrayCreationExpressionSyntax(this.
Kind
, this.stackAllocKeyword, this.openBracketToken, this.closeBracketToken, this.initializer, GetDiagnostics(), annotations);
6626
=> new CollectionExpressionSyntax(this.
Kind
, this.openBracketToken, this.elements, this.closeBracketToken, diagnostics, GetAnnotations());
6629
=> new CollectionExpressionSyntax(this.
Kind
, this.openBracketToken, this.elements, this.closeBracketToken, GetDiagnostics(), annotations);
6702
=> new ExpressionElementSyntax(this.
Kind
, this.expression, diagnostics, GetAnnotations());
6705
=> new ExpressionElementSyntax(this.
Kind
, this.expression, GetDiagnostics(), annotations);
6778
=> new SpreadElementSyntax(this.
Kind
, this.operatorToken, this.expression, diagnostics, GetAnnotations());
6781
=> new SpreadElementSyntax(this.
Kind
, this.operatorToken, this.expression, GetDiagnostics(), annotations);
6854
=> new WithElementSyntax(this.
Kind
, this.withKeyword, this.argumentList, diagnostics, GetAnnotations());
6857
=> new WithElementSyntax(this.
Kind
, this.withKeyword, this.argumentList, GetDiagnostics(), annotations);
6956
=> new QueryExpressionSyntax(this.
Kind
, this.fromClause, this.body, diagnostics, GetAnnotations());
6959
=> new QueryExpressionSyntax(this.
Kind
, this.fromClause, this.body, GetDiagnostics(), annotations);
7059
=> new QueryBodySyntax(this.
Kind
, this.clauses, this.selectOrGroup, this.continuation, diagnostics, GetAnnotations());
7062
=> new QueryBodySyntax(this.
Kind
, this.clauses, this.selectOrGroup, this.continuation, GetDiagnostics(), annotations);
7172
=> new FromClauseSyntax(this.
Kind
, this.fromKeyword, this.type, this.identifier, this.inKeyword, this.expression, diagnostics, GetAnnotations());
7175
=> new FromClauseSyntax(this.
Kind
, this.fromKeyword, this.type, this.identifier, this.inKeyword, this.expression, GetDiagnostics(), annotations);
7267
=> new LetClauseSyntax(this.
Kind
, this.letKeyword, this.identifier, this.equalsToken, this.expression, diagnostics, GetAnnotations());
7270
=> new LetClauseSyntax(this.
Kind
, this.letKeyword, this.identifier, this.equalsToken, this.expression, GetDiagnostics(), annotations);
7434
=> new JoinClauseSyntax(this.
Kind
, this.joinKeyword, this.type, this.identifier, this.inKeyword, this.inExpression, this.onKeyword, this.leftExpression, this.equalsKeyword, this.rightExpression, this.into, diagnostics, GetAnnotations());
7437
=> new JoinClauseSyntax(this.
Kind
, this.joinKeyword, this.type, this.identifier, this.inKeyword, this.inExpression, this.onKeyword, this.leftExpression, this.equalsKeyword, this.rightExpression, this.into, GetDiagnostics(), annotations);
7511
=> new JoinIntoClauseSyntax(this.
Kind
, this.intoKeyword, this.identifier, diagnostics, GetAnnotations());
7514
=> new JoinIntoClauseSyntax(this.
Kind
, this.intoKeyword, this.identifier, GetDiagnostics(), annotations);
7587
=> new WhereClauseSyntax(this.
Kind
, this.whereKeyword, this.condition, diagnostics, GetAnnotations());
7590
=> new WhereClauseSyntax(this.
Kind
, this.whereKeyword, this.condition, GetDiagnostics(), annotations);
7672
=> new OrderByClauseSyntax(this.
Kind
, this.orderByKeyword, this.orderings, diagnostics, GetAnnotations());
7675
=> new OrderByClauseSyntax(this.
Kind
, this.orderByKeyword, this.orderings, GetDiagnostics(), annotations);
7743
var newNode = SyntaxFactory.Ordering(this.
Kind
, expression, ascendingOrDescendingKeyword);
7757
=> new OrderingSyntax(this.
Kind
, this.expression, this.ascendingOrDescendingKeyword, diagnostics, GetAnnotations());
7760
=> new OrderingSyntax(this.
Kind
, this.expression, this.ascendingOrDescendingKeyword, GetDiagnostics(), annotations);
7833
=> new SelectClauseSyntax(this.
Kind
, this.selectKeyword, this.expression, diagnostics, GetAnnotations());
7836
=> new SelectClauseSyntax(this.
Kind
, this.selectKeyword, this.expression, GetDiagnostics(), annotations);
7927
=> new GroupClauseSyntax(this.
Kind
, this.groupKeyword, this.groupExpression, this.byKeyword, this.byExpression, diagnostics, GetAnnotations());
7930
=> new GroupClauseSyntax(this.
Kind
, this.groupKeyword, this.groupExpression, this.byKeyword, this.byExpression, GetDiagnostics(), annotations);
8013
=> new QueryContinuationSyntax(this.
Kind
, this.intoKeyword, this.identifier, this.body, diagnostics, GetAnnotations());
8016
=> new QueryContinuationSyntax(this.
Kind
, this.intoKeyword, this.identifier, this.body, GetDiagnostics(), annotations);
8078
=> new OmittedArraySizeExpressionSyntax(this.
Kind
, this.omittedArraySizeExpressionToken, diagnostics, GetAnnotations());
8081
=> new OmittedArraySizeExpressionSyntax(this.
Kind
, this.omittedArraySizeExpressionToken, GetDiagnostics(), annotations);
8175
=> new InterpolatedStringExpressionSyntax(this.
Kind
, this.stringStartToken, this.contents, this.stringEndToken, diagnostics, GetAnnotations());
8178
=> new InterpolatedStringExpressionSyntax(this.
Kind
, this.stringStartToken, this.contents, this.stringEndToken, GetDiagnostics(), annotations);
8263
=> new IsPatternExpressionSyntax(this.
Kind
, this.expression, this.isKeyword, this.pattern, diagnostics, GetAnnotations());
8266
=> new IsPatternExpressionSyntax(this.
Kind
, this.expression, this.isKeyword, this.pattern, GetDiagnostics(), annotations);
8339
=> new ThrowExpressionSyntax(this.
Kind
, this.throwKeyword, this.expression, diagnostics, GetAnnotations());
8342
=> new ThrowExpressionSyntax(this.
Kind
, this.throwKeyword, this.expression, GetDiagnostics(), annotations);
8415
=> new WhenClauseSyntax(this.
Kind
, this.whenKeyword, this.condition, diagnostics, GetAnnotations());
8418
=> new WhenClauseSyntax(this.
Kind
, this.whenKeyword, this.condition, GetDiagnostics(), annotations);
8491
=> new DiscardPatternSyntax(this.
Kind
, this.underscoreToken, diagnostics, GetAnnotations());
8494
=> new DiscardPatternSyntax(this.
Kind
, this.underscoreToken, GetDiagnostics(), annotations);
8567
=> new DeclarationPatternSyntax(this.
Kind
, this.type, this.designation, diagnostics, GetAnnotations());
8570
=> new DeclarationPatternSyntax(this.
Kind
, this.type, this.designation, GetDiagnostics(), annotations);
8643
=> new VarPatternSyntax(this.
Kind
, this.varKeyword, this.designation, diagnostics, GetAnnotations());
8646
=> new VarPatternSyntax(this.
Kind
, this.varKeyword, this.designation, GetDiagnostics(), annotations);
8773
=> new RecursivePatternSyntax(this.
Kind
, this.type, this.positionalPatternClause, this.propertyPatternClause, this.designation, diagnostics, GetAnnotations());
8776
=> new RecursivePatternSyntax(this.
Kind
, this.type, this.positionalPatternClause, this.propertyPatternClause, this.designation, GetDiagnostics(), annotations);
8867
=> new PositionalPatternClauseSyntax(this.
Kind
, this.openParenToken, this.subpatterns, this.closeParenToken, diagnostics, GetAnnotations());
8870
=> new PositionalPatternClauseSyntax(this.
Kind
, this.openParenToken, this.subpatterns, this.closeParenToken, GetDiagnostics(), annotations);
8961
=> new PropertyPatternClauseSyntax(this.
Kind
, this.openBraceToken, this.subpatterns, this.closeBraceToken, diagnostics, GetAnnotations());
8964
=> new PropertyPatternClauseSyntax(this.
Kind
, this.openBraceToken, this.subpatterns, this.closeBraceToken, GetDiagnostics(), annotations);
9046
=> new SubpatternSyntax(this.
Kind
, this.expressionColon, this.pattern, diagnostics, GetAnnotations());
9049
=> new SubpatternSyntax(this.
Kind
, this.expressionColon, this.pattern, GetDiagnostics(), annotations);
9110
=> new ConstantPatternSyntax(this.
Kind
, this.expression, diagnostics, GetAnnotations());
9113
=> new ConstantPatternSyntax(this.
Kind
, this.expression, GetDiagnostics(), annotations);
9195
=> new ParenthesizedPatternSyntax(this.
Kind
, this.openParenToken, this.pattern, this.closeParenToken, diagnostics, GetAnnotations());
9198
=> new ParenthesizedPatternSyntax(this.
Kind
, this.openParenToken, this.pattern, this.closeParenToken, GetDiagnostics(), annotations);
9272
=> new RelationalPatternSyntax(this.
Kind
, this.operatorToken, this.expression, diagnostics, GetAnnotations());
9275
=> new RelationalPatternSyntax(this.
Kind
, this.operatorToken, this.expression, GetDiagnostics(), annotations);
9336
=> new TypePatternSyntax(this.
Kind
, this.type, diagnostics, GetAnnotations());
9339
=> new TypePatternSyntax(this.
Kind
, this.type, GetDiagnostics(), annotations);
9407
var newNode = SyntaxFactory.BinaryPattern(this.
Kind
, left, operatorToken, right);
9421
=> new BinaryPatternSyntax(this.
Kind
, this.left, this.operatorToken, this.right, diagnostics, GetAnnotations());
9424
=> new BinaryPatternSyntax(this.
Kind
, this.left, this.operatorToken, this.right, GetDiagnostics(), annotations);
9497
=> new UnaryPatternSyntax(this.
Kind
, this.operatorToken, this.pattern, diagnostics, GetAnnotations());
9500
=> new UnaryPatternSyntax(this.
Kind
, this.operatorToken, this.pattern, GetDiagnostics(), annotations);
9609
=> new ListPatternSyntax(this.
Kind
, this.openBracketToken, this.patterns, this.closeBracketToken, this.designation, diagnostics, GetAnnotations());
9612
=> new ListPatternSyntax(this.
Kind
, this.openBracketToken, this.patterns, this.closeBracketToken, this.designation, GetDiagnostics(), annotations);
9694
=> new SlicePatternSyntax(this.
Kind
, this.dotDotToken, this.pattern, diagnostics, GetAnnotations());
9697
=> new SlicePatternSyntax(this.
Kind
, this.dotDotToken, this.pattern, GetDiagnostics(), annotations);
9771
=> new InterpolatedStringTextSyntax(this.
Kind
, this.textToken, diagnostics, GetAnnotations());
9774
=> new InterpolatedStringTextSyntax(this.
Kind
, this.textToken, GetDiagnostics(), annotations);
9896
=> new InterpolationSyntax(this.
Kind
, this.openBraceToken, this.expression, this.alignmentClause, this.formatClause, this.closeBraceToken, diagnostics, GetAnnotations());
9899
=> new InterpolationSyntax(this.
Kind
, this.openBraceToken, this.expression, this.alignmentClause, this.formatClause, this.closeBraceToken, GetDiagnostics(), annotations);
9972
=> new InterpolationAlignmentClauseSyntax(this.
Kind
, this.commaToken, this.value, diagnostics, GetAnnotations());
9975
=> new InterpolationAlignmentClauseSyntax(this.
Kind
, this.commaToken, this.value, GetDiagnostics(), annotations);
10049
=> new InterpolationFormatClauseSyntax(this.
Kind
, this.colonToken, this.formatStringToken, diagnostics, GetAnnotations());
10052
=> new InterpolationFormatClauseSyntax(this.
Kind
, this.colonToken, this.formatStringToken, GetDiagnostics(), annotations);
10153
=> new GlobalStatementSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.statement, diagnostics, GetAnnotations());
10156
=> new GlobalStatementSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.statement, GetDiagnostics(), annotations);
10281
=> new BlockSyntax(this.
Kind
, this.attributeLists, this.openBraceToken, this.statements, this.closeBraceToken, diagnostics, GetAnnotations());
10284
=> new BlockSyntax(this.
Kind
, this.attributeLists, this.openBraceToken, this.statements, this.closeBraceToken, GetDiagnostics(), annotations);
10494
=> new LocalFunctionStatementSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
10497
=> new LocalFunctionStatementSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
10643
=> new LocalDeclarationStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.modifiers, this.declaration, this.semicolonToken, diagnostics, GetAnnotations());
10646
=> new LocalDeclarationStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.modifiers, this.declaration, this.semicolonToken, GetDiagnostics(), annotations);
10728
=> new VariableDeclarationSyntax(this.
Kind
, this.type, this.variables, diagnostics, GetAnnotations());
10731
=> new VariableDeclarationSyntax(this.
Kind
, this.type, this.variables, GetDiagnostics(), annotations);
10832
=> new VariableDeclaratorSyntax(this.
Kind
, this.identifier, this.argumentList, this.initializer, diagnostics, GetAnnotations());
10835
=> new VariableDeclaratorSyntax(this.
Kind
, this.identifier, this.argumentList, this.initializer, GetDiagnostics(), annotations);
10908
=> new EqualsValueClauseSyntax(this.
Kind
, this.equalsToken, this.value, diagnostics, GetAnnotations());
10911
=> new EqualsValueClauseSyntax(this.
Kind
, this.equalsToken, this.value, GetDiagnostics(), annotations);
10984
=> new SingleVariableDesignationSyntax(this.
Kind
, this.identifier, diagnostics, GetAnnotations());
10987
=> new SingleVariableDesignationSyntax(this.
Kind
, this.identifier, GetDiagnostics(), annotations);
11047
=> new DiscardDesignationSyntax(this.
Kind
, this.underscoreToken, diagnostics, GetAnnotations());
11050
=> new DiscardDesignationSyntax(this.
Kind
, this.underscoreToken, GetDiagnostics(), annotations);
11141
=> new ParenthesizedVariableDesignationSyntax(this.
Kind
, this.openParenToken, this.variables, this.closeParenToken, diagnostics, GetAnnotations());
11144
=> new ParenthesizedVariableDesignationSyntax(this.
Kind
, this.openParenToken, this.variables, this.closeParenToken, GetDiagnostics(), annotations);
11235
=> new ExpressionStatementSyntax(this.
Kind
, this.attributeLists, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11238
=> new ExpressionStatementSyntax(this.
Kind
, this.attributeLists, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
11320
=> new EmptyStatementSyntax(this.
Kind
, this.attributeLists, this.semicolonToken, diagnostics, GetAnnotations());
11323
=> new EmptyStatementSyntax(this.
Kind
, this.attributeLists, this.semicolonToken, GetDiagnostics(), annotations);
11426
=> new LabeledStatementSyntax(this.
Kind
, this.attributeLists, this.identifier, this.colonToken, this.statement, diagnostics, GetAnnotations());
11429
=> new LabeledStatementSyntax(this.
Kind
, this.attributeLists, this.identifier, this.colonToken, this.statement, GetDiagnostics(), annotations);
11557
var newNode = SyntaxFactory.GotoStatement(this.
Kind
, attributeLists, gotoKeyword, caseOrDefaultKeyword, expression, semicolonToken);
11571
=> new GotoStatementSyntax(this.
Kind
, this.attributeLists, this.gotoKeyword, this.caseOrDefaultKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11574
=> new GotoStatementSyntax(this.
Kind
, this.attributeLists, this.gotoKeyword, this.caseOrDefaultKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
11683
=> new BreakStatementSyntax(this.
Kind
, this.attributeLists, this.breakKeyword, this.name, this.semicolonToken, diagnostics, GetAnnotations());
11686
=> new BreakStatementSyntax(this.
Kind
, this.attributeLists, this.breakKeyword, this.name, this.semicolonToken, GetDiagnostics(), annotations);
11795
=> new ContinueStatementSyntax(this.
Kind
, this.attributeLists, this.continueKeyword, this.name, this.semicolonToken, diagnostics, GetAnnotations());
11798
=> new ContinueStatementSyntax(this.
Kind
, this.attributeLists, this.continueKeyword, this.name, this.semicolonToken, GetDiagnostics(), annotations);
11907
=> new ReturnStatementSyntax(this.
Kind
, this.attributeLists, this.returnKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11910
=> new ReturnStatementSyntax(this.
Kind
, this.attributeLists, this.returnKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
12019
=> new ThrowStatementSyntax(this.
Kind
, this.attributeLists, this.throwKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
12022
=> new ThrowStatementSyntax(this.
Kind
, this.attributeLists, this.throwKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
12126
var newNode = SyntaxFactory.YieldStatement(this.
Kind
, attributeLists, yieldKeyword, returnOrBreakKeyword, expression, semicolonToken);
12140
=> new YieldStatementSyntax(this.
Kind
, this.attributeLists, this.yieldKeyword, this.returnOrBreakKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
12143
=> new YieldStatementSyntax(this.
Kind
, this.attributeLists, this.yieldKeyword, this.returnOrBreakKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
12261
=> new WhileStatementSyntax(this.
Kind
, this.attributeLists, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
12264
=> new WhileStatementSyntax(this.
Kind
, this.attributeLists, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
12400
=> new DoStatementSyntax(this.
Kind
, this.attributeLists, this.doKeyword, this.statement, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.semicolonToken, diagnostics, GetAnnotations());
12403
=> new DoStatementSyntax(this.
Kind
, this.attributeLists, this.doKeyword, this.statement, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.semicolonToken, GetDiagnostics(), annotations);
12602
=> new ForStatementSyntax(this.
Kind
, this.attributeLists, this.forKeyword, this.openParenToken, this.declaration, this.initializers, this.firstSemicolonToken, this.condition, this.secondSemicolonToken, this.incrementors, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
12605
=> new ForStatementSyntax(this.
Kind
, this.attributeLists, this.forKeyword, this.openParenToken, this.declaration, this.initializers, this.firstSemicolonToken, this.condition, this.secondSemicolonToken, this.incrementors, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
12796
=> new ForEachStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.type, this.identifier, this.inKeyword, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
12799
=> new ForEachStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.type, this.identifier, this.inKeyword, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
12959
=> new ForEachVariableStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.variable, this.inKeyword, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
12962
=> new ForEachVariableStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.variable, this.inKeyword, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
13125
=> new UsingStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.openParenToken, this.declaration, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
13128
=> new UsingStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.openParenToken, this.declaration, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
13246
=> new FixedStatementSyntax(this.
Kind
, this.attributeLists, this.fixedKeyword, this.openParenToken, this.declaration, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
13249
=> new FixedStatementSyntax(this.
Kind
, this.attributeLists, this.fixedKeyword, this.openParenToken, this.declaration, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
13326
var newNode = SyntaxFactory.CheckedStatement(this.
Kind
, attributeLists, keyword, block);
13340
=> new CheckedStatementSyntax(this.
Kind
, this.attributeLists, this.keyword, this.block, diagnostics, GetAnnotations());
13343
=> new CheckedStatementSyntax(this.
Kind
, this.attributeLists, this.keyword, this.block, GetDiagnostics(), annotations);
13434
=> new UnsafeStatementSyntax(this.
Kind
, this.attributeLists, this.unsafeKeyword, this.block, diagnostics, GetAnnotations());
13437
=> new UnsafeStatementSyntax(this.
Kind
, this.attributeLists, this.unsafeKeyword, this.block, GetDiagnostics(), annotations);
13555
=> new LockStatementSyntax(this.
Kind
, this.attributeLists, this.lockKeyword, this.openParenToken, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
13558
=> new LockStatementSyntax(this.
Kind
, this.attributeLists, this.lockKeyword, this.openParenToken, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
13715
=> new IfStatementSyntax(this.
Kind
, this.attributeLists, this.ifKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, this.@else, diagnostics, GetAnnotations());
13718
=> new IfStatementSyntax(this.
Kind
, this.attributeLists, this.ifKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, this.@else, GetDiagnostics(), annotations);
13795
=> new ElseClauseSyntax(this.
Kind
, this.elseKeyword, this.statement, diagnostics, GetAnnotations());
13798
=> new ElseClauseSyntax(this.
Kind
, this.elseKeyword, this.statement, GetDiagnostics(), annotations);
13983
=> new SwitchStatementSyntax(this.
Kind
, this.attributeLists, this.switchKeyword, this.openParenToken, this.expression, this.closeParenToken, this.openBraceToken, this.sections, this.closeBraceToken, diagnostics, GetAnnotations());
13986
=> new SwitchStatementSyntax(this.
Kind
, this.attributeLists, this.switchKeyword, this.openParenToken, this.expression, this.closeParenToken, this.openBraceToken, this.sections, this.closeBraceToken, GetDiagnostics(), annotations);
14084
=> new SwitchSectionSyntax(this.
Kind
, this.labels, this.statements, diagnostics, GetAnnotations());
14087
=> new SwitchSectionSyntax(this.
Kind
, this.labels, this.statements, GetDiagnostics(), annotations);
14216
=> new CasePatternSwitchLabelSyntax(this.
Kind
, this.keyword, this.pattern, this.whenClause, this.colonToken, diagnostics, GetAnnotations());
14219
=> new CasePatternSwitchLabelSyntax(this.
Kind
, this.keyword, this.pattern, this.whenClause, this.colonToken, GetDiagnostics(), annotations);
14306
=> new CaseSwitchLabelSyntax(this.
Kind
, this.keyword, this.value, this.colonToken, diagnostics, GetAnnotations());
14309
=> new CaseSwitchLabelSyntax(this.
Kind
, this.keyword, this.value, this.colonToken, GetDiagnostics(), annotations);
14384
=> new DefaultSwitchLabelSyntax(this.
Kind
, this.keyword, this.colonToken, diagnostics, GetAnnotations());
14387
=> new DefaultSwitchLabelSyntax(this.
Kind
, this.keyword, this.colonToken, GetDiagnostics(), annotations);
14496
=> new SwitchExpressionSyntax(this.
Kind
, this.governingExpression, this.switchKeyword, this.openBraceToken, this.arms, this.closeBraceToken, diagnostics, GetAnnotations());
14499
=> new SwitchExpressionSyntax(this.
Kind
, this.governingExpression, this.switchKeyword, this.openBraceToken, this.arms, this.closeBraceToken, GetDiagnostics(), annotations);
14599
=> new SwitchExpressionArmSyntax(this.
Kind
, this.pattern, this.whenClause, this.equalsGreaterThanToken, this.expression, diagnostics, GetAnnotations());
14602
=> new SwitchExpressionArmSyntax(this.
Kind
, this.pattern, this.whenClause, this.equalsGreaterThanToken, this.expression, GetDiagnostics(), annotations);
14729
=> new TryStatementSyntax(this.
Kind
, this.attributeLists, this.tryKeyword, this.block, this.catches, this.@finally, diagnostics, GetAnnotations());
14732
=> new TryStatementSyntax(this.
Kind
, this.attributeLists, this.tryKeyword, this.block, this.catches, this.@finally, GetDiagnostics(), annotations);
14841
=> new CatchClauseSyntax(this.
Kind
, this.catchKeyword, this.declaration, this.filter, this.block, diagnostics, GetAnnotations());
14844
=> new CatchClauseSyntax(this.
Kind
, this.catchKeyword, this.declaration, this.filter, this.block, GetDiagnostics(), annotations);
14944
=> new CatchDeclarationSyntax(this.
Kind
, this.openParenToken, this.type, this.identifier, this.closeParenToken, diagnostics, GetAnnotations());
14947
=> new CatchDeclarationSyntax(this.
Kind
, this.openParenToken, this.type, this.identifier, this.closeParenToken, GetDiagnostics(), annotations);
15038
=> new CatchFilterClauseSyntax(this.
Kind
, this.whenKeyword, this.openParenToken, this.filterExpression, this.closeParenToken, diagnostics, GetAnnotations());
15041
=> new CatchFilterClauseSyntax(this.
Kind
, this.whenKeyword, this.openParenToken, this.filterExpression, this.closeParenToken, GetDiagnostics(), annotations);
15114
=> new FinallyClauseSyntax(this.
Kind
, this.finallyKeyword, this.block, diagnostics, GetAnnotations());
15117
=> new FinallyClauseSyntax(this.
Kind
, this.finallyKeyword, this.block, GetDiagnostics(), annotations);
15254
=> new CompilationUnitSyntax(this.
Kind
, this.externs, this.usings, this.attributeLists, this.members, this.endOfFileToken, diagnostics, GetAnnotations());
15257
=> new CompilationUnitSyntax(this.
Kind
, this.externs, this.usings, this.attributeLists, this.members, this.endOfFileToken, GetDiagnostics(), annotations);
15355
=> new ExternAliasDirectiveSyntax(this.
Kind
, this.externKeyword, this.aliasKeyword, this.identifier, this.semicolonToken, diagnostics, GetAnnotations());
15358
=> new ExternAliasDirectiveSyntax(this.
Kind
, this.externKeyword, this.aliasKeyword, this.identifier, this.semicolonToken, GetDiagnostics(), annotations);
15512
=> new UsingDirectiveSyntax(this.
Kind
, this.globalKeyword, this.usingKeyword, this.staticKeyword, this.unsafeKeyword, this.alias, this.namespaceOrType, this.semicolonToken, diagnostics, GetAnnotations());
15515
=> new UsingDirectiveSyntax(this.
Kind
, this.globalKeyword, this.usingKeyword, this.staticKeyword, this.unsafeKeyword, this.alias, this.namespaceOrType, this.semicolonToken, GetDiagnostics(), annotations);
15758
=> new NamespaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.openBraceToken, this.externs, this.usings, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
15761
=> new NamespaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.openBraceToken, this.externs, this.usings, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
15933
=> new FileScopedNamespaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.semicolonToken, this.externs, this.usings, this.members, diagnostics, GetAnnotations());
15936
=> new FileScopedNamespaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.semicolonToken, this.externs, this.usings, this.members, GetDiagnostics(), annotations);
16050
=> new AttributeListSyntax(this.
Kind
, this.openBracketToken, this.target, this.attributes, this.closeBracketToken, diagnostics, GetAnnotations());
16053
=> new AttributeListSyntax(this.
Kind
, this.openBracketToken, this.target, this.attributes, this.closeBracketToken, GetDiagnostics(), annotations);
16129
=> new AttributeTargetSpecifierSyntax(this.
Kind
, this.identifier, this.colonToken, diagnostics, GetAnnotations());
16132
=> new AttributeTargetSpecifierSyntax(this.
Kind
, this.identifier, this.colonToken, GetDiagnostics(), annotations);
16219
=> new AttributeSyntax(this.
Kind
, this.name, this.argumentList, diagnostics, GetAnnotations());
16222
=> new AttributeSyntax(this.
Kind
, this.name, this.argumentList, GetDiagnostics(), annotations);
16317
=> new AttributeArgumentListSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, diagnostics, GetAnnotations());
16320
=> new AttributeArgumentListSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, GetDiagnostics(), annotations);
16422
=> new AttributeArgumentSyntax(this.
Kind
, this.nameEquals, this.nameColon, this.expression, diagnostics, GetAnnotations());
16425
=> new AttributeArgumentSyntax(this.
Kind
, this.nameEquals, this.nameColon, this.expression, GetDiagnostics(), annotations);
16500
=> new NameEqualsSyntax(this.
Kind
, this.name, this.equalsToken, diagnostics, GetAnnotations());
16503
=> new NameEqualsSyntax(this.
Kind
, this.name, this.equalsToken, GetDiagnostics(), annotations);
16598
=> new TypeParameterListSyntax(this.
Kind
, this.lessThanToken, this.parameters, this.greaterThanToken, diagnostics, GetAnnotations());
16601
=> new TypeParameterListSyntax(this.
Kind
, this.lessThanToken, this.parameters, this.greaterThanToken, GetDiagnostics(), annotations);
16704
=> new TypeParameterSyntax(this.
Kind
, this.attributeLists, this.varianceKeyword, this.identifier, diagnostics, GetAnnotations());
16707
=> new TypeParameterSyntax(this.
Kind
, this.attributeLists, this.varianceKeyword, this.identifier, GetDiagnostics(), annotations);
17018
=> new ClassDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
17021
=> new ClassDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
17276
=> new StructDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
17279
=> new StructDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
17534
=> new UnionDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
17537
=> new UnionDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
17792
=> new InterfaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
17795
=> new InterfaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
18052
var newNode = SyntaxFactory.RecordDeclaration(this.
Kind
, attributeLists, modifiers, keyword, classOrStructKeyword, identifier, typeParameterList, parameterList, baseList, constraintClauses, openBraceToken, members, closeBraceToken, semicolonToken);
18066
=> new RecordDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.classOrStructKeyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
18069
=> new RecordDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.classOrStructKeyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
18272
=> new EnumDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.enumKeyword, this.identifier, this.baseList, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
18275
=> new EnumDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.enumKeyword, this.identifier, this.baseList, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
18454
=> new DelegateDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.delegateKeyword, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.semicolonToken, diagnostics, GetAnnotations());
18457
=> new DelegateDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.delegateKeyword, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.semicolonToken, GetDiagnostics(), annotations);
18576
=> new EnumMemberDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.equalsValue, diagnostics, GetAnnotations());
18579
=> new EnumMemberDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.equalsValue, GetDiagnostics(), annotations);
18806
=> new ExtensionBlockDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.typeParameterList, this.parameterList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
18809
=> new ExtensionBlockDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.typeParameterList, this.parameterList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
18894
=> new BaseListSyntax(this.
Kind
, this.colonToken, this.types, diagnostics, GetAnnotations());
18897
=> new BaseListSyntax(this.
Kind
, this.colonToken, this.types, GetDiagnostics(), annotations);
18973
=> new SimpleBaseTypeSyntax(this.
Kind
, this.type, diagnostics, GetAnnotations());
18976
=> new SimpleBaseTypeSyntax(this.
Kind
, this.type, GetDiagnostics(), annotations);
19049
=> new PrimaryConstructorBaseTypeSyntax(this.
Kind
, this.type, this.argumentList, diagnostics, GetAnnotations());
19052
=> new PrimaryConstructorBaseTypeSyntax(this.
Kind
, this.type, this.argumentList, GetDiagnostics(), annotations);
19156
=> new TypeParameterConstraintClauseSyntax(this.
Kind
, this.whereKeyword, this.name, this.colonToken, this.constraints, diagnostics, GetAnnotations());
19159
=> new TypeParameterConstraintClauseSyntax(this.
Kind
, this.whereKeyword, this.name, this.colonToken, this.constraints, GetDiagnostics(), annotations);
19259
=> new ConstructorConstraintSyntax(this.
Kind
, this.newKeyword, this.openParenToken, this.closeParenToken, diagnostics, GetAnnotations());
19262
=> new ConstructorConstraintSyntax(this.
Kind
, this.newKeyword, this.openParenToken, this.closeParenToken, GetDiagnostics(), annotations);
19333
var newNode = SyntaxFactory.ClassOrStructConstraint(this.
Kind
, classOrStructKeyword, questionToken);
19347
=> new ClassOrStructConstraintSyntax(this.
Kind
, this.classOrStructKeyword, this.questionToken, diagnostics, GetAnnotations());
19350
=> new ClassOrStructConstraintSyntax(this.
Kind
, this.classOrStructKeyword, this.questionToken, GetDiagnostics(), annotations);
19412
=> new TypeConstraintSyntax(this.
Kind
, this.type, diagnostics, GetAnnotations());
19415
=> new TypeConstraintSyntax(this.
Kind
, this.type, GetDiagnostics(), annotations);
19477
=> new DefaultConstraintSyntax(this.
Kind
, this.defaultKeyword, diagnostics, GetAnnotations());
19480
=> new DefaultConstraintSyntax(this.
Kind
, this.defaultKeyword, GetDiagnostics(), annotations);
19564
=> new AllowsConstraintClauseSyntax(this.
Kind
, this.allowsKeyword, this.constraints, diagnostics, GetAnnotations());
19567
=> new AllowsConstraintClauseSyntax(this.
Kind
, this.allowsKeyword, this.constraints, GetDiagnostics(), annotations);
19657
=> new RefStructConstraintSyntax(this.
Kind
, this.refKeyword, this.structKeyword, diagnostics, GetAnnotations());
19660
=> new RefStructConstraintSyntax(this.
Kind
, this.refKeyword, this.structKeyword, GetDiagnostics(), annotations);
19786
=> new FieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.declaration, this.semicolonToken, diagnostics, GetAnnotations());
19789
=> new FieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.declaration, this.semicolonToken, GetDiagnostics(), annotations);
19907
=> new EventFieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.declaration, this.semicolonToken, diagnostics, GetAnnotations());
19910
=> new EventFieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.declaration, this.semicolonToken, GetDiagnostics(), annotations);
19983
=> new ExplicitInterfaceSpecifierSyntax(this.
Kind
, this.name, this.dotToken, diagnostics, GetAnnotations());
19986
=> new ExplicitInterfaceSpecifierSyntax(this.
Kind
, this.name, this.dotToken, GetDiagnostics(), annotations);
20241
=> new MethodDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.explicitInterfaceSpecifier, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
20244
=> new MethodDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.explicitInterfaceSpecifier, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
20467
=> new OperatorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.explicitInterfaceSpecifier, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameterList, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
20470
=> new OperatorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.explicitInterfaceSpecifier, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameterList, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
20693
=> new ConversionOperatorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.implicitOrExplicitKeyword, this.explicitInterfaceSpecifier, this.operatorKeyword, this.checkedKeyword, this.type, this.parameterList, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
20696
=> new ConversionOperatorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.implicitOrExplicitKeyword, this.explicitInterfaceSpecifier, this.operatorKeyword, this.checkedKeyword, this.type, this.parameterList, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
20880
=> new ConstructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.parameterList, this.initializer, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
20883
=> new ConstructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.parameterList, this.initializer, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
20954
var newNode = SyntaxFactory.ConstructorInitializer(this.
Kind
, colonToken, thisOrBaseKeyword, argumentList);
20968
=> new ConstructorInitializerSyntax(this.
Kind
, this.colonToken, this.thisOrBaseKeyword, this.argumentList, diagnostics, GetAnnotations());
20971
=> new ConstructorInitializerSyntax(this.
Kind
, this.colonToken, this.thisOrBaseKeyword, this.argumentList, GetDiagnostics(), annotations);
21147
=> new DestructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.tildeToken, this.identifier, this.parameterList, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
21150
=> new DestructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.tildeToken, this.identifier, this.parameterList, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
21372
=> new PropertyDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.expressionBody, this.initializer, this.semicolonToken, diagnostics, GetAnnotations());
21375
=> new PropertyDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.expressionBody, this.initializer, this.semicolonToken, GetDiagnostics(), annotations);
21449
=> new ArrowExpressionClauseSyntax(this.
Kind
, this.arrowToken, this.expression, diagnostics, GetAnnotations());
21452
=> new ArrowExpressionClauseSyntax(this.
Kind
, this.arrowToken, this.expression, GetDiagnostics(), annotations);
21625
=> new EventDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.semicolonToken, diagnostics, GetAnnotations());
21628
=> new EventDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.semicolonToken, GetDiagnostics(), annotations);
21819
=> new IndexerDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.thisKeyword, this.parameterList, this.accessorList, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
21822
=> new IndexerDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.thisKeyword, this.parameterList, this.accessorList, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
21913
=> new AccessorListSyntax(this.
Kind
, this.openBraceToken, this.accessors, this.closeBraceToken, diagnostics, GetAnnotations());
21916
=> new AccessorListSyntax(this.
Kind
, this.openBraceToken, this.accessors, this.closeBraceToken, GetDiagnostics(), annotations);
22062
var newNode = SyntaxFactory.AccessorDeclaration(this.
Kind
, attributeLists, modifiers, keyword, body, expressionBody, semicolonToken);
22076
=> new AccessorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
22079
=> new AccessorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
22190
=> new ParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, diagnostics, GetAnnotations());
22193
=> new ParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, GetDiagnostics(), annotations);
22287
=> new BracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, diagnostics, GetAnnotations());
22290
=> new BracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, GetDiagnostics(), annotations);
22461
=> new ParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.identifier, this.@default, diagnostics, GetAnnotations());
22464
=> new ParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.identifier, this.@default, GetDiagnostics(), annotations);
22567
=> new FunctionPointerParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, diagnostics, GetAnnotations());
22570
=> new FunctionPointerParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, GetDiagnostics(), annotations);
22679
=> new IncompleteMemberSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, diagnostics, GetAnnotations());
22682
=> new IncompleteMemberSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, GetDiagnostics(), annotations);
22751
=> new SkippedTokensTriviaSyntax(this.
Kind
, this.tokens, diagnostics, GetAnnotations());
22754
=> new SkippedTokensTriviaSyntax(this.
Kind
, this.tokens, GetDiagnostics(), annotations);
22822
var newNode = SyntaxFactory.DocumentationCommentTrivia(this.
Kind
, content, endOfComment);
22836
=> new DocumentationCommentTriviaSyntax(this.
Kind
, this.content, this.endOfComment, diagnostics, GetAnnotations());
22839
=> new DocumentationCommentTriviaSyntax(this.
Kind
, this.content, this.endOfComment, GetDiagnostics(), annotations);
22923
=> new TypeCrefSyntax(this.
Kind
, this.type, diagnostics, GetAnnotations());
22926
=> new TypeCrefSyntax(this.
Kind
, this.type, GetDiagnostics(), annotations);
23015
=> new QualifiedCrefSyntax(this.
Kind
, this.container, this.dotToken, this.member, diagnostics, GetAnnotations());
23018
=> new QualifiedCrefSyntax(this.
Kind
, this.container, this.dotToken, this.member, GetDiagnostics(), annotations);
23126
=> new NameMemberCrefSyntax(this.
Kind
, this.name, this.parameters, diagnostics, GetAnnotations());
23129
=> new NameMemberCrefSyntax(this.
Kind
, this.name, this.parameters, GetDiagnostics(), annotations);
23238
=> new ExtensionMemberCrefSyntax(this.
Kind
, this.extensionKeyword, this.typeArgumentList, this.parameters, this.dotToken, this.member, diagnostics, GetAnnotations());
23241
=> new ExtensionMemberCrefSyntax(this.
Kind
, this.extensionKeyword, this.typeArgumentList, this.parameters, this.dotToken, this.member, GetDiagnostics(), annotations);
23327
=> new IndexerMemberCrefSyntax(this.
Kind
, this.thisKeyword, this.parameters, diagnostics, GetAnnotations());
23330
=> new IndexerMemberCrefSyntax(this.
Kind
, this.thisKeyword, this.parameters, GetDiagnostics(), annotations);
23445
=> new OperatorMemberCrefSyntax(this.
Kind
, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameters, diagnostics, GetAnnotations());
23448
=> new OperatorMemberCrefSyntax(this.
Kind
, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameters, GetDiagnostics(), annotations);
23570
=> new ConversionOperatorMemberCrefSyntax(this.
Kind
, this.implicitOrExplicitKeyword, this.operatorKeyword, this.checkedKeyword, this.type, this.parameters, diagnostics, GetAnnotations());
23573
=> new ConversionOperatorMemberCrefSyntax(this.
Kind
, this.implicitOrExplicitKeyword, this.operatorKeyword, this.checkedKeyword, this.type, this.parameters, GetDiagnostics(), annotations);
23689
=> new CrefParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, diagnostics, GetAnnotations());
23692
=> new CrefParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, GetDiagnostics(), annotations);
23788
=> new CrefBracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, diagnostics, GetAnnotations());
23791
=> new CrefBracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, GetDiagnostics(), annotations);
23897
=> new CrefParameterSyntax(this.
Kind
, this.refKindKeyword, this.readOnlyKeyword, this.type, diagnostics, GetAnnotations());
23900
=> new CrefParameterSyntax(this.
Kind
, this.refKindKeyword, this.readOnlyKeyword, this.type, GetDiagnostics(), annotations);
24004
=> new XmlElementSyntax(this.
Kind
, this.startTag, this.content, this.endTag, diagnostics, GetAnnotations());
24007
=> new XmlElementSyntax(this.
Kind
, this.startTag, this.content, this.endTag, GetDiagnostics(), annotations);
24107
=> new XmlElementStartTagSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.greaterThanToken, diagnostics, GetAnnotations());
24110
=> new XmlElementStartTagSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.greaterThanToken, GetDiagnostics(), annotations);
24192
=> new XmlElementEndTagSyntax(this.
Kind
, this.lessThanSlashToken, this.name, this.greaterThanToken, diagnostics, GetAnnotations());
24195
=> new XmlElementEndTagSyntax(this.
Kind
, this.lessThanSlashToken, this.name, this.greaterThanToken, GetDiagnostics(), annotations);
24295
=> new XmlEmptyElementSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.slashGreaterThanToken, diagnostics, GetAnnotations());
24298
=> new XmlEmptyElementSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.slashGreaterThanToken, GetDiagnostics(), annotations);
24380
=> new XmlNameSyntax(this.
Kind
, this.prefix, this.localName, diagnostics, GetAnnotations());
24383
=> new XmlNameSyntax(this.
Kind
, this.prefix, this.localName, GetDiagnostics(), annotations);
24456
=> new XmlPrefixSyntax(this.
Kind
, this.prefix, this.colonToken, diagnostics, GetAnnotations());
24459
=> new XmlPrefixSyntax(this.
Kind
, this.prefix, this.colonToken, GetDiagnostics(), annotations);
24589
=> new XmlTextAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.textTokens, this.endQuoteToken, diagnostics, GetAnnotations());
24592
=> new XmlTextAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.textTokens, this.endQuoteToken, GetDiagnostics(), annotations);
24692
=> new XmlCrefAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.cref, this.endQuoteToken, diagnostics, GetAnnotations());
24695
=> new XmlCrefAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.cref, this.endQuoteToken, GetDiagnostics(), annotations);
24795
=> new XmlNameAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.identifier, this.endQuoteToken, diagnostics, GetAnnotations());
24798
=> new XmlNameAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.identifier, this.endQuoteToken, GetDiagnostics(), annotations);
24867
=> new XmlTextSyntax(this.
Kind
, this.textTokens, diagnostics, GetAnnotations());
24870
=> new XmlTextSyntax(this.
Kind
, this.textTokens, GetDiagnostics(), annotations);
24961
=> new XmlCDataSectionSyntax(this.
Kind
, this.startCDataToken, this.textTokens, this.endCDataToken, diagnostics, GetAnnotations());
24964
=> new XmlCDataSectionSyntax(this.
Kind
, this.startCDataToken, this.textTokens, this.endCDataToken, GetDiagnostics(), annotations);
25064
=> new XmlProcessingInstructionSyntax(this.
Kind
, this.startProcessingInstructionToken, this.name, this.textTokens, this.endProcessingInstructionToken, diagnostics, GetAnnotations());
25067
=> new XmlProcessingInstructionSyntax(this.
Kind
, this.startProcessingInstructionToken, this.name, this.textTokens, this.endProcessingInstructionToken, GetDiagnostics(), annotations);
25158
=> new XmlCommentSyntax(this.
Kind
, this.lessThanExclamationMinusMinusToken, this.textTokens, this.minusMinusGreaterThanToken, diagnostics, GetAnnotations());
25161
=> new XmlCommentSyntax(this.
Kind
, this.lessThanExclamationMinusMinusToken, this.textTokens, this.minusMinusGreaterThanToken, GetDiagnostics(), annotations);
25320
=> new IfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.ifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, diagnostics, GetAnnotations());
25323
=> new IfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.ifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, GetDiagnostics(), annotations);
25429
=> new ElifDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, diagnostics, GetAnnotations());
25432
=> new ElifDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, GetDiagnostics(), annotations);
25524
=> new ElseDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elseKeyword, this.endOfDirectiveToken, this.isActive, this.branchTaken, diagnostics, GetAnnotations());
25527
=> new ElseDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elseKeyword, this.endOfDirectiveToken, this.isActive, this.branchTaken, GetDiagnostics(), annotations);
25614
=> new EndIfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endIfKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25617
=> new EndIfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endIfKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25704
=> new RegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.regionKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25707
=> new RegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.regionKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25794
=> new EndRegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endRegionKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25797
=> new EndRegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endRegionKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25884
=> new ErrorDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.errorKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25887
=> new ErrorDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.errorKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25974
=> new WarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.warningKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25977
=> new WarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.warningKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26064
=> new BadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.identifier, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26067
=> new BadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.identifier, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26163
=> new DefineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.defineKeyword, this.name, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26166
=> new DefineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.defineKeyword, this.name, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26262
=> new UndefDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.undefKeyword, this.name, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26265
=> new UndefDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.undefKeyword, this.name, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26396
=> new LineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.line, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26399
=> new LineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.line, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26499
=> new LineDirectivePositionSyntax(this.
Kind
, this.openParenToken, this.line, this.commaToken, this.character, this.closeParenToken, diagnostics, GetAnnotations());
26502
=> new LineDirectivePositionSyntax(this.
Kind
, this.openParenToken, this.line, this.commaToken, this.character, this.closeParenToken, GetDiagnostics(), annotations);
26643
=> new LineSpanDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.start, this.minusToken, this.end, this.characterOffset, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26646
=> new LineSpanDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.start, this.minusToken, this.end, this.characterOffset, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26769
=> new PragmaWarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.warningKeyword, this.disableOrRestoreKeyword, this.errorCodes, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26772
=> new PragmaWarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.warningKeyword, this.disableOrRestoreKeyword, this.errorCodes, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26895
=> new PragmaChecksumDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.checksumKeyword, this.file, this.guid, this.bytes, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26898
=> new PragmaChecksumDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.checksumKeyword, this.file, this.guid, this.bytes, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26994
=> new ReferenceDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.referenceKeyword, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26997
=> new ReferenceDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.referenceKeyword, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
27093
=> new LoadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.loadKeyword, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
27096
=> new LoadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.loadKeyword, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
27183
=> new ShebangDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.exclamationToken, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
27186
=> new ShebangDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.exclamationToken, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
27291
=> new IgnoredDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.colonToken, this.content, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
27294
=> new IgnoredDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.colonToken, this.content, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
27408
=> new NullableDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.nullableKeyword, this.settingToken, this.targetToken, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
27411
=> new NullableDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.nullableKeyword, this.settingToken, this.targetToken, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
Parser\DirectiveParser.cs (32)
89
result = (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken) ?
257
if (keyword.
Kind
== SyntaxKind.DefineKeyword)
292
bool isError = keyword.
Kind
== SyntaxKind.ErrorKeyword;
306
if (t.
Kind
== SyntaxKind.WhitespaceTrivia)
377
switch (this.CurrentToken.
Kind
)
386
if (isActive && !line.IsMissing && line.
Kind
== SyntaxKind.NumericLiteralToken)
398
if (this.CurrentToken.
Kind
== SyntaxKind.StringLiteralToken &&
414
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
433
var characterOffset = (CurrentToken.
Kind
== SyntaxKind.NumericLiteralToken) ?
487
else if (token.
Kind
== SyntaxKind.NumericLiteralToken)
546
SyntaxToken setting = this.CurrentToken.
Kind
switch
554
SyntaxToken target = this.CurrentToken.
Kind
switch
579
if (this.CurrentToken.
Kind
== SyntaxKind.DisableKeyword || this.CurrentToken.
Kind
== SyntaxKind.RestoreKeyword)
584
while (this.CurrentToken.
Kind
!= SyntaxKind.EndOfDirectiveToken)
589
if (this.CurrentToken.
Kind
== SyntaxKind.NumericLiteralToken)
601
else if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
622
if (this.CurrentToken.
Kind
!= SyntaxKind.CommaToken)
640
else if (this.CurrentToken.
Kind
== SyntaxKind.ChecksumKeyword)
729
if (this.CurrentToken.
Kind
!= SyntaxKind.EndOfDirectiveToken &&
730
this.CurrentToken.
Kind
!= SyntaxKind.EndOfFileToken)
749
while (this.CurrentToken.
Kind
!= SyntaxKind.EndOfDirectiveToken &&
750
this.CurrentToken.
Kind
!= SyntaxKind.EndOfFileToken)
757
SyntaxToken endOfDirective = this.CurrentToken.
Kind
== SyntaxKind.EndOfDirectiveToken
778
while (this.CurrentToken.
Kind
== SyntaxKind.BarBarToken)
791
while (this.CurrentToken.
Kind
== SyntaxKind.AmpersandAmpersandToken)
804
while (this.CurrentToken.
Kind
== SyntaxKind.EqualsEqualsToken || this.CurrentToken.
Kind
== SyntaxKind.ExclamationEqualsToken)
808
left = SyntaxFactory.BinaryExpression(SyntaxFacts.GetBinaryExpression(op.
Kind
), left, op, right);
816
if (this.CurrentToken.
Kind
== SyntaxKind.ExclamationToken)
827
var k = this.CurrentToken.
Kind
;
876
switch (expr.
Kind
)
Parser\Directives.cs (2)
30
return _node.
Kind
;
79
switch (_node.
Kind
)
Parser\DocumentationCommentParser.cs (95)
81
if (this.CurrentToken.
Kind
!= SyntaxKind.EndOfDocumentationCommentToken)
101
bool endTag = this.CurrentToken.
Kind
== SyntaxKind.LessThanSlashToken;
108
while (this.CurrentToken.
Kind
!= SyntaxKind.EndOfDocumentationCommentToken)
147
switch (this.CurrentToken.
Kind
)
171
switch (this.CurrentToken.
Kind
)
190
while (this.CurrentToken.
Kind
== SyntaxKind.XmlTextLiteralToken
191
|| this.CurrentToken.
Kind
== SyntaxKind.XmlTextLiteralNewLineToken
192
|| this.CurrentToken.
Kind
== SyntaxKind.XmlEntityLiteralToken)
218
if (this.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken)
258
if (this.CurrentToken.
Kind
!= SyntaxKind.GreaterThanToken)
261
p => p.CurrentToken.
Kind
!= SyntaxKind.GreaterThanToken,
328
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
344
p => p.CurrentToken.
Kind
!= SyntaxKind.IdentifierName,
347
p => p.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken
348
|| p.CurrentToken.
Kind
== SyntaxKind.SlashGreaterThanToken
349
|| p.CurrentToken.
Kind
== SyntaxKind.LessThanToken
350
|| p.CurrentToken.
Kind
== SyntaxKind.LessThanSlashToken
351
|| p.CurrentToken.
Kind
== SyntaxKind.EndOfDocumentationCommentToken
352
|| p.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken,
452
switch (this.CurrentToken.
Kind
)
525
SyntaxToken openQuote = EatToken(this.CurrentToken.
Kind
== SyntaxKind.SingleQuoteToken
533
if ((current.
Kind
== SyntaxKind.XmlTextLiteralToken || current.
Kind
== SyntaxKind.XmlEntityLiteralToken) &&
534
current.ValueText != SyntaxFacts.GetText(openQuote.
Kind
) &&
540
if ((current.
Kind
== SyntaxKind.XmlTextLiteralToken || current.
Kind
== SyntaxKind.XmlEntityLiteralToken) &&
556
SyntaxKind quoteKind = startQuote.
Kind
;
574
SyntaxKind quoteKind = startQuote.
Kind
;
592
SyntaxKind quoteKind = startQuote.
Kind
;
606
while (this.CurrentToken.
Kind
== SyntaxKind.XmlTextLiteralToken
607
|| this.CurrentToken.
Kind
== SyntaxKind.XmlTextLiteralNewLineToken
608
|| this.CurrentToken.
Kind
== SyntaxKind.XmlEntityLiteralToken
609
|| this.CurrentToken.
Kind
== SyntaxKind.LessThanToken)
612
if (token.
Kind
== SyntaxKind.LessThanToken)
636
var quoteKind = this.CurrentToken.
Kind
== SyntaxKind.SingleQuoteToken
685
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
725
while (this.CurrentToken.
Kind
== SyntaxKind.XmlTextLiteralToken
726
|| this.CurrentToken.
Kind
== SyntaxKind.XmlTextLiteralNewLineToken
727
|| this.CurrentToken.
Kind
== SyntaxKind.MinusMinusToken)
730
if (token.
Kind
== SyntaxKind.MinusMinusToken)
752
while (this.CurrentToken.
Kind
== SyntaxKind.XmlTextLiteralToken
753
|| this.CurrentToken.
Kind
== SyntaxKind.XmlTextLiteralNewLineToken)
774
while (this.CurrentToken.
Kind
== SyntaxKind.XmlTextLiteralToken
775
|| this.CurrentToken.
Kind
== SyntaxKind.XmlTextLiteralNewLineToken)
900
else if (type.
Kind
!= SyntaxKind.QualifiedName && this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
940
switch (CurrentToken.
Kind
)
973
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.ThisKeyword);
990
TypeArgumentListSyntax? typeArguments = (CurrentToken.
Kind
== SyntaxKind.LessThanToken) ? ParseTypeArguments(typeArgumentsMustBeIdentifiers: true) : null;
991
CrefParameterListSyntax? parameters = (CurrentToken.
Kind
== SyntaxKind.OpenParenToken) ? ParseCrefParameterList() : null;
993
if (parameters is null || CurrentToken.
Kind
!= SyntaxKind.DotToken)
1018
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.OperatorKeyword);
1024
if (SyntaxFacts.IsAnyOverloadableOperator(CurrentToken.
Kind
))
1035
if (SyntaxFacts.IsUnaryOperatorDeclarationToken(CurrentToken.
Kind
) || SyntaxFacts.IsBinaryExpressionOperatorToken(CurrentToken.
Kind
))
1048
if (operatorToken.
Kind
== SyntaxKind.GreaterThanToken && LanguageParser.NoTriviaBetween(operatorToken, CurrentToken))
1050
if (CurrentToken.
Kind
== SyntaxKind.GreaterThanToken)
1055
CurrentToken.
Kind
is (SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken))
1059
if (operatorToken3.
Kind
== SyntaxKind.GreaterThanToken)
1091
else if (CurrentToken.
Kind
== SyntaxKind.EqualsToken)
1101
else if (CurrentToken.
Kind
== SyntaxKind.GreaterThanEqualsToken)
1114
switch (operatorToken.
Kind
)
1151
Debug.Assert(SyntaxFacts.IsAnyOverloadableOperator(operatorToken.
Kind
));
1159
if (LanguageParser.NoTriviaBetween(operatorToken, CurrentToken) && CurrentToken.
Kind
== SyntaxKind.EqualsToken)
1181
(isConversion || SyntaxFacts.IsAnyOverloadableOperator(CurrentToken.
Kind
)))
1190
if (CurrentToken.
Kind
== SyntaxKind.UncheckedKeyword)
1207
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.ExplicitKeyword ||
1208
CurrentToken.
Kind
== SyntaxKind.ImplicitKeyword);
1245
if (CurrentToken.
Kind
!= openKind)
1255
while (CurrentToken.
Kind
== SyntaxKind.CommaToken || IsPossibleCrefParameter())
1259
if (CurrentToken.
Kind
!= closeKind)
1270
Debug.Assert(CurrentToken.
Kind
!= SyntaxKind.CommaToken);
1295
SyntaxKind kind = this.CurrentToken.
Kind
;
1317
switch (CurrentToken.
Kind
)
1327
if (CurrentToken.
Kind
== SyntaxKind.ReadOnlyKeyword && refKindOpt is not null)
1329
if (refKindOpt.
Kind
!= SyntaxKind.RefKeyword)
1354
if (CurrentToken.
Kind
!= SyntaxKind.LessThanToken)
1364
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.LessThanToken);
1374
if (typeArgumentsMustBeIdentifiers && typeSyntax.
Kind
!= SyntaxKind.IdentifierName)
1382
var currentKind = CurrentToken.
Kind
;
1384
SyntaxFacts.IsPredefinedType(CurrentToken.
Kind
))
1444
if (SyntaxFacts.IsPredefinedType(CurrentToken.
Kind
))
1453
else if (CurrentToken.
Kind
== SyntaxKind.IdentifierToken && PeekToken(1).
Kind
== SyntaxKind.ColonColonToken)
1473
if (checkForMember && (leftName.IsMissing || CurrentToken.
Kind
!= SyntaxKind.DotToken))
1485
while (CurrentToken.
Kind
== SyntaxKind.DotToken)
1494
if (checkForMember && (rightName.IsMissing || CurrentToken.
Kind
!= SyntaxKind.DotToken))
1516
if (CurrentToken.
Kind
== SyntaxKind.QuestionToken)
1521
while (CurrentToken.
Kind
== SyntaxKind.AsteriskToken)
1526
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
1532
while (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
1538
while (this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
1540
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
1590
switch (CurrentToken.
Kind
)
1658
switch (CurrentToken.
Kind
)
Parser\LanguageParser_InterpolatedString.cs (6)
20
var expressionKind = SyntaxFacts.GetLiteralExpression(originalToken.
Kind
);
34
Debug.Assert(interpolatedString.StringStartToken.
Kind
is SyntaxKind.InterpolatedSingleLineRawStringStartToken or SyntaxKind.InterpolatedMultiLineRawStringStartToken);
44
.Literal(originalToken.GetLeadingTrivia(), originalToken.Text, originalToken.
Kind
, getTokenValue(), originalToken.GetTrailingTrivia())
112
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.InterpolatedStringToken);
537
if (this.CurrentToken.
Kind
!= SyntaxKind.CommaToken)
595
Debug.Assert(token.
Kind
== SyntaxKind.StringLiteralToken);
Parser\LanguageParser_Patterns.cs (32)
40
case MemberAccessExpressionSyntax { Expression: var expr, OperatorToken: {
Kind
: SyntaxKind.DotToken } dotToken, Name: var simpleName }
78
var tk = CurrentToken.
Kind
;
85
(this.CurrentToken.ContextualKind != SyntaxKind.NameOfKeyword || this.PeekToken(1).
Kind
!= SyntaxKind.OpenParenToken))
121
switch (this.CurrentToken.
Kind
)
143
switch (this.CurrentToken.
Kind
)
166
else if (this.CurrentToken.
Kind
== SyntaxKind.EqualsEqualsToken)
172
else if (this.CurrentToken.
Kind
== SyntaxKind.ExclamationEqualsToken)
190
var tk = this.CurrentToken.
Kind
;
207
switch (CurrentToken.
Kind
)
259
switch (this.CurrentToken.
Kind
)
286
if (type?.
Kind
== SyntaxKind.IdentifierName)
291
(this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken || this.IsValidPatternDesignation(inSwitchArmPattern)))
300
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken && (type != null || !looksLikeCast()))
379
this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken
383
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
409
if (CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
419
var tk = PeekToken(1).
Kind
;
502
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
534
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken && ConvertPatternToExpressionIfPossible(pattern, permitTypeArguments: true) is ExpressionSyntax expr)
555
this.CurrentToken.
Kind
is
568
if (@this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBraceToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken)
575
if ((@this._termState & TerminatorState.IsExpressionOrPatternInCaseLabelOfSwitchStatement) == TerminatorState.IsExpressionOrPatternInCaseLabelOfSwitchStatement && @this.CurrentToken.
Kind
is SyntaxKind.ColonToken)
584
if ((@this._termState & TerminatorState.IsPatternInSwitchExpressionArm) == TerminatorState.IsPatternInSwitchExpressionArm && @this.CurrentToken.
Kind
is SyntaxKind.EqualsGreaterThanToken or SyntaxKind.ColonToken)
588
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleSubpatternElement(),
589
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind || p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
609
while (this.CurrentToken.
Kind
!= SyntaxKind.CloseBraceToken)
615
var errantCase = this.CurrentToken.
Kind
== SyntaxKind.CaseKeyword
634
this.CurrentToken.
Kind
== SyntaxKind.ColonToken
640
if (errantCase is null && switchExpressionCase.FullWidth == 0 && this.CurrentToken.
Kind
!= SyntaxKind.CommaToken)
647
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseBraceToken)
649
var commaToken = this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
Parser\LanguageParser.cs (746)
96
if (this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken)
251
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.NamespaceKeyword);
264
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
268
else if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken || IsPossibleNamespaceMemberDeclaration())
549
return memberDeclaration?.
Kind
586
switch (this.CurrentToken.
Kind
)
661
if (isGlobal && (this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken || (!IsScript && IsPossibleTopLevelUsingLocalDeclarationStatement())))
675
if (this.CurrentToken.ContextualKind != SyntaxKind.GlobalKeyword || this.PeekToken(1).
Kind
!= SyntaxKind.UsingKeyword)
750
else if (memberOrStatement.
Kind
== SyntaxKind.IncompleteMember && seen < NamespaceParts.MembersAndStatements)
778
switch (memberOrStatement.
Kind
)
871
switch (this.CurrentToken.
Kind
)
881
return IsPossibleStartOfTypeDeclaration(this.CurrentToken.
Kind
);
887
return this.CurrentToken.
Kind
== SyntaxKind.CloseBraceToken;
912
return this.CurrentToken.
Kind
== SyntaxKind.ExternKeyword
913
&& this.PeekToken(1) is {
Kind
: SyntaxKind.IdentifierToken, ContextualKind: SyntaxKind.AliasKeyword }
914
&& this.PeekToken(2).
Kind
== SyntaxKind.IdentifierToken
915
&& this.PeekToken(3).
Kind
== SyntaxKind.SemicolonToken;
925
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ExternKeyword);
953
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.UsingKeyword);
960
if (staticToken is null && unsafeToken != null && this.CurrentToken.
Kind
== SyntaxKind.StaticKeyword)
972
var isAliasToFunctionPointer = alias != null && this.CurrentToken.
Kind
== SyntaxKind.DelegateKeyword;
991
type = _syntaxFactory.IdentifierName(CreateMissingToken(SyntaxKind.IdentifierToken, this.CurrentToken.
Kind
));
1003
if (type.IsMissing && this.PeekToken(1).
Kind
== SyntaxKind.SemicolonToken)
1014
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken
1016
&& this.PeekToken(2).
Kind
== SyntaxKind.ColonToken;
1034
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenBracketToken)
1052
if (SyntaxFacts.IsLiteralExpression(this.CurrentToken.
Kind
))
1096
return this.CurrentToken.
Kind
== SyntaxKind.CloseBracketToken
1101
=> IsSomeWord(this.CurrentToken.
Kind
) && this.PeekToken(1).
Kind
== SyntaxKind.ColonToken;
1146
if (this.CurrentToken.
Kind
== SyntaxKind.DotToken)
1152
if (this.CurrentToken.
Kind
== SyntaxKind.MinusGreaterThanToken)
1157
if (this.CurrentToken.
Kind
== SyntaxKind.QuestionToken &&
1158
this.PeekToken(1).
Kind
== SyntaxKind.DotToken)
1170
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleAttribute(),
1171
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
1200
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
1225
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleAttributeArgument(),
1226
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
1235
if (argument.expression is LiteralExpressionSyntax {
Kind
: SyntaxKind.StringLiteralExpression, Token: var literalToken } &&
1241
if (argument.expression is InterpolatedStringExpressionSyntax { StringStartToken.
Kind
: SyntaxKind.InterpolatedStringStartToken, StringEndToken.IsMissing: true })
1260
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
1262
switch (this.PeekToken(1).
Kind
)
1284
=> GetModifierExcludingScoped(token.
Kind
, token.ContextualKind);
1444
Debug.Assert(modTok.
Kind
is not (SyntaxKind.OutKeyword or SyntaxKind.InKeyword));
1450
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.RefKeyword);
1467
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.RefKeyword);
1497
tokens.Add(token.
Kind
== SyntaxKind.IdentifierToken ? ConvertToKeyword(token) : token);
1503
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && GetModifierExcludingScoped(this.CurrentToken) != DeclarationModifiers.None);
1543
var currentTokenKind = this.CurrentToken.
Kind
;
1546
(currentTokenKind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && PeekToken(1).
Kind
== SyntaxKind.OperatorKeyword))
1565
var currentTokenKind = this.CurrentToken.
Kind
;
1583
if (SyntaxFacts.IsPredefinedType(this.CurrentToken.
Kind
))
1612
=> this.IsTypeDeclarationStart() || this.CurrentToken.
Kind
== SyntaxKind.NamespaceKeyword;
1685
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
1709
if (this.CurrentToken.
Kind
== SyntaxKind.EventKeyword)
1714
if (this.CurrentToken.
Kind
is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)
1723
return this.PeekToken(peekIndex).
Kind
== SyntaxKind.IdentifierToken &&
1724
this.PeekToken(peekIndex + 1).
Kind
== SyntaxKind.OpenParenToken;
1740
switch (this.CurrentToken.
Kind
)
1743
if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).
Kind
== SyntaxKind.UsingKeyword)
1763
switch (this.CurrentToken.
Kind
)
1785
throw ExceptionUtilities.UnexpectedValue(this.CurrentToken.
Kind
);
1791
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.ClassKeyword or SyntaxKind.StructKeyword or SyntaxKind.InterfaceKeyword ||
1802
bool isExtension = keyword.
Kind
== SyntaxKind.ExtensionKeyword;
1803
bool isUnion = keyword.
Kind
== SyntaxKind.UnionKeyword;
1814
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
1827
var paramList = CurrentToken.
Kind
== SyntaxKind.OpenParenToken || isExtension
1850
if (CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
1874
SyntaxKind kind = this.CurrentToken.
Kind
;
1882
var member = this.ParseMemberDeclaration(keyword.
Kind
);
1910
? this.CreateMissingToken(SyntaxKind.CloseBraceToken, this.CurrentToken.
Kind
)
1936
recordModifier = this.CurrentToken.
Kind
is SyntaxKind.ClassKeyword or SyntaxKind.StructKeyword
1943
if (this.CurrentToken.
Kind
is SyntaxKind.StructKeyword or SyntaxKind.ClassKeyword &&
1945
this.PeekToken(2).
Kind
is SyntaxKind.IdentifierToken)
1956
recordModifier = SyntaxFactory.MissingToken(misplacedToken.
Kind
);
1972
switch (keyword.
Kind
)
2043
SyntaxKind declarationKind = recordModifier?.
Kind
== SyntaxKind.StructKeyword ? SyntaxKind.RecordStructDeclaration : SyntaxKind.RecordDeclaration;
2076
throw ExceptionUtilities.UnexpectedValue(keyword.
Kind
);
2113
SyntaxKind kind = this.CurrentToken.
Kind
;
2117
!(kind == SyntaxKind.DelegateKeyword && this.PeekToken(1).
Kind
is SyntaxKind.OpenBraceToken or SyntaxKind.OpenParenToken))
2161
return this.IsPossibleMemberStart() || this.CurrentToken.
Kind
== SyntaxKind.CloseBraceToken;
2166
return this.CurrentToken.
Kind
is SyntaxKind.ColonToken or SyntaxKind.OpenBraceToken
2183
list.Add(this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken
2188
while (this.CurrentToken.
Kind
is not (SyntaxKind.OpenBraceToken or SyntaxKind.SemicolonToken) &&
2191
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
2228
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleAttribute(),
2229
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken || p.IsCurrentTokenWhereOfConstraintClause(),
2238
this.PeekToken(1).
Kind
== SyntaxKind.IdentifierToken &&
2239
this.PeekToken(2).
Kind
== SyntaxKind.ColonToken;
2262
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken || this.IsCurrentTokenWhereOfConstraintClause())
2276
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
2277
|| ((_termState & TerminatorState.IsEndOfTypeSignature) != 0 && this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
2278
|| this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken
2283
else if (haveComma = (this.CurrentToken.
Kind
== SyntaxKind.CommaToken) || this.IsPossibleTypeParameterConstraint())
2287
if (constraint.
Kind
== SyntaxKind.AllowsConstraintClause && haveComma && !this.IsPossibleTypeParameterConstraint())
2323
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleTypeParameterConstraint(),
2324
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken || p.IsCurrentTokenWhereOfConstraintClause(),
2331
switch (this.CurrentToken.
Kind
)
2340
return (this.CurrentToken.ContextualKind == SyntaxKind.AllowsKeyword && PeekToken(1).
Kind
== SyntaxKind.RefKeyword) || this.IsTrueIdentifier();
2342
return IsPredefinedType(this.CurrentToken.
Kind
);
2348
return this.CurrentToken.
Kind
switch
2360
this.CurrentToken.
Kind
== SyntaxKind.QuestionToken
2381
PeekToken(1).
Kind
== SyntaxKind.AsteriskToken
2393
PeekToken(1).
Kind
== SyntaxKind.RefKeyword)
2406
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken && PeekToken(1).
Kind
== SyntaxKind.RefKeyword)
2424
return CanStartMember(this.CurrentToken.
Kind
);
2485
switch (this.CurrentToken.
Kind
)
2631
switch (this.CurrentToken.
Kind
)
2634
if (this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken)
2638
else if (this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
2645
if (this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
2677
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
2711
if (this.CurrentToken.
Kind
== SyntaxKind.ConstKeyword)
2724
if (this.CurrentToken.
Kind
== SyntaxKind.EventKeyword)
2730
if (this.CurrentToken.
Kind
== SyntaxKind.FixedKeyword)
2742
if (this.CurrentToken.
Kind
== SyntaxKind.NamespaceKeyword)
2760
if ((!haveAttributes || !IsScript) && !haveModifiers && (type.
Kind
== SyntaxKind.RefType || !IsOperatorStart(out _, advanceParser: false)))
2764
if (this.CurrentToken.
Kind
is not SyntaxKind.CloseBraceToken and not SyntaxKind.EndOfFileToken &&
2852
!type.IsMissing && type.
Kind
!= SyntaxKind.RefType &&
2983
switch (statement?.
Kind
)
2991
statement is ExpressionStatementSyntax { Expression.
Kind
: SyntaxKind.IdentifierName, SemicolonToken.IsMissing: true }:
3005
if (CurrentToken.
Kind
== SyntaxKind.UsingKeyword)
3010
if (CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).
Kind
== SyntaxKind.UsingKeyword)
3066
if (attributes.Count == 0 && modifiers.Count == 0 && type.IsMissing && type.
Kind
!= SyntaxKind.RefType)
3156
if (type.
Kind
!= SyntaxKind.RefType &&
3159
|| this.CurrentToken.
Kind
is not SyntaxKind.OpenParenToken and not SyntaxKind.OpenBraceToken and not SyntaxKind.EqualsGreaterThanToken) &&
3184
if (identifierOrThisOpt?.
Kind
== SyntaxKind.ThisKeyword)
3205
var kind = this.PeekToken(index).
Kind
;
3214
kind = this.PeekToken(index + 1).
Kind
;
3267
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
3273
if (this.CurrentToken.
Kind
== SyntaxKind.TildeToken)
3279
if (this.CurrentToken.
Kind
== SyntaxKind.ConstKeyword)
3285
if (this.CurrentToken.
Kind
== SyntaxKind.EventKeyword)
3291
if (this.CurrentToken.
Kind
== SyntaxKind.FixedKeyword)
3331
if (type.
Kind
!= SyntaxKind.RefType)
3400
(IsFeatureEnabled(MessageID.IDS_FeatureExtensions) || this.PeekToken(1).
Kind
== SyntaxKind.LessThanToken);
3411
if (type.
Kind
!= SyntaxKind.IdentifierName)
3414
if (identifierOrThisOpt.
Kind
!= SyntaxKind.IdentifierToken)
3431
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
3436
if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).
Kind
== SyntaxKind.UsingKeyword)
3457
switch (this.PeekToken(1).
Kind
)
3474
return this.CurrentToken.
Kind
is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.OperatorKeyword;
3496
if (token.
Kind
!= SyntaxKind.None)
3532
var currentTokenKind = this.CurrentToken.
Kind
;
3535
this.PeekToken(1).
Kind
is SyntaxKind.ThisKeyword or SyntaxKind.BaseKeyword &&
3536
this.PeekToken(2).
Kind
is SyntaxKind.OpenParenToken);
3549
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.ColonToken or SyntaxKind.EqualsGreaterThanToken);
3552
var token = this.CurrentToken.
Kind
is SyntaxKind.BaseKeyword or SyntaxKind.ThisKeyword
3556
var argumentList = this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken
3564
token.
Kind
== SyntaxKind.BaseKeyword
3574
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.TildeToken);
3600
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
3608
blockBody = this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
3612
expressionBody = this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken
3623
else if (parseSemicolonAfterBlock && this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
3635
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
3641
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
3647
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
3663
=> this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.OpenBraceToken;
3667
return this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.OpenBraceToken;
3671
=> this.CurrentToken.
Kind
is SyntaxKind.DotToken or SyntaxKind.ColonColonToken;
3674
=> this.CurrentToken.
Kind
== (errored ? SyntaxKind.CloseParenToken : SyntaxKind.GreaterThanToken);
3677
=> this.CurrentToken.
Kind
== SyntaxKind.CloseBracketToken;
3699
else if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
3749
switch (this.CurrentToken.
Kind
)
3768
if (this.CurrentToken.
Kind
is not (SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword))
3772
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
3776
while (this.CurrentToken.
Kind
!= SyntaxKind.OperatorKeyword)
3789
(IsMakingProgress(ref lastTokenPosition, assertIfFalse: false) && this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken))
3795
separatorKind = this.CurrentToken.
Kind
;
3815
if (this.CurrentToken.
Kind
!= SyntaxKind.OperatorKeyword ||
3820
else if (this.PeekToken(1).
Kind
is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword)
3822
possibleConversion = !SyntaxFacts.IsAnyOverloadableOperator(this.PeekToken(2).
Kind
);
3826
possibleConversion = !SyntaxFacts.IsAnyOverloadableOperator(this.PeekToken(1).
Kind
);
3837
var style = this.CurrentToken.
Kind
is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword
3847
if (!style.IsMissing && explicitInterfaceOpt is not null && this.CurrentToken.
Kind
!= SyntaxKind.OperatorKeyword && style.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia))
3879
bool couldBeParameterList = this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken;
3884
this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
3915
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
3932
if (this.CurrentToken.
Kind
== SyntaxKind.OperatorKeyword)
3942
(IsMakingProgress(ref lastTokenPosition, assertIfFalse: false) && this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken);
3949
if (separator?.
Kind
== SyntaxKind.ColonColonToken)
3969
if (separator.
Kind
!= SyntaxKind.DotToken)
3971
separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.
Kind
, separator.GetLeadingTriviaWidth(), separator.Width));
3981
if (CurrentToken.
Kind
== SyntaxKind.UncheckedKeyword)
4001
if (firstToken.
Kind
is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword &&
4002
this.PeekToken(1).
Kind
is SyntaxKind.OperatorKeyword)
4033
if (SyntaxFacts.IsAnyOverloadableOperator(this.CurrentToken.
Kind
))
4042
if (this.CurrentToken.
Kind
is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)
4075
if (opToken.
Kind
== SyntaxKind.GreaterThanToken)
4079
if (tk.
Kind
== SyntaxKind.GreaterThanToken)
4086
if (tk.
Kind
== SyntaxKind.GreaterThanToken &&
4093
else if (tk.
Kind
== SyntaxKind.GreaterThanEqualsToken &&
4107
else if (tk.
Kind
== SyntaxKind.GreaterThanEqualsToken &&
4116
var opKind = opToken.
Kind
;
4200
Debug.Assert(thisKeyword.
Kind
== SyntaxKind.ThisKeyword);
4216
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken)
4224
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
4233
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken
4268
if (this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken)
4276
var accessorList = this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
4284
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken)
4290
else if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
4302
else if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
4385
while (this.CurrentToken.
Kind
!= SyntaxKind.CloseBraceToken)
4418
var refKeyword = this.CurrentToken.
Kind
== SyntaxKind.RefKeyword && !this.IsPossibleLambdaExpression(Precedence.Expression)
4429
static p => p.CurrentToken.
Kind
!= SyntaxKind.CloseBraceToken && !p.IsPossibleAccessor(),
4460
if (this.CurrentToken.
Kind
is SyntaxKind.CloseBraceToken or SyntaxKind.EndOfFileToken)
4465
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && IsAccessorBodyStart(PeekToken(1)))
4474
return this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken;
4479
=> token.
Kind
is SyntaxKind.OpenBraceToken or SyntaxKind.SemicolonToken or SyntaxKind.EqualsGreaterThanToken;
4679
bool currentTokenIsSemicolon = this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken;
4680
bool currentTokenIsArrow = this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken;
4681
bool currentTokenIsOpenBraceToken = this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken;
4863
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleParameter(),
4864
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
4871
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken;
4876
switch (this.CurrentToken.
Kind
)
4890
IsPredefinedType(this.CurrentToken.
Kind
);
4950
if (this.CurrentToken.
Kind
== SyntaxKind.ArgListKeyword)
4961
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && IsCurrentTokenWhereOfConstraintClause())
4968
identifier = identifierIsOptional && this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken
4974
if (identifier is not null && this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken && this.PeekToken(1).
Kind
is SyntaxKind.CloseBracketToken)
5001
switch (token.
Kind
)
5051
if (this.PeekToken(1).
Kind
is not (SyntaxKind.CloseParenToken or SyntaxKind.CommaToken or SyntaxKind.EqualsToken))
5069
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.FixedKeyword);
5087
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.EventKeyword);
5111
if (explicitInterfaceOpt != null && this.CurrentToken.
Kind
is not SyntaxKind.OpenBraceToken and not SyntaxKind.SemicolonToken)
5136
else if (identifierOrThisOpt.
Kind
!= SyntaxKind.IdentifierToken)
5138
Debug.Assert(identifierOrThisOpt.
Kind
== SyntaxKind.ThisKeyword);
5147
Debug.Assert(identifier.
Kind
== SyntaxKind.IdentifierToken);
5163
if (explicitInterfaceOpt != null && this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5190
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5209
if (modifiers is [.., SyntaxToken {
Kind
: SyntaxKind.ScopedKeyword } scopedKeyword])
5243
if (this.CurrentToken.
Kind
== SyntaxKind.DotToken)
5259
return this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken;
5322
while (this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken)
5324
if (stopOnCloseParen && this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken)
5328
else if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
5343
if ((flags & VariableFlags.ForStatement) == VariableFlags.ForStatement && this.PeekToken(1).
Kind
!= SyntaxKind.SemicolonToken)
5347
this.PeekToken(2).
Kind
is SyntaxKind.CommaToken or SyntaxKind.EqualsToken or SyntaxKind.SemicolonToken;
5378
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
5379
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
5534
var currentTokenKind = this.CurrentToken.
Kind
;
5545
currentTokenKind = this.CurrentToken.
Kind
;
5595
switch (this.CurrentToken.
Kind
)
5606
var refKeyword = isLocalOrField && !isConst && this.CurrentToken.
Kind
== SyntaxKind.RefKeyword && !this.IsPossibleLambdaExpression(Precedence.Expression)
5664
bool isOmitted = expression.
Kind
== SyntaxKind.OmittedArraySizeExpression;
5683
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
5701
Debug.Assert(this.CurrentToken.
Kind
!= SyntaxKind.EqualsToken);
5718
if (parentType.
Kind
== SyntaxKind.ArrayType)
5741
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
5755
this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken &&
5756
this.PeekToken(1).
Kind
is SyntaxKind.IdentifierToken or SyntaxKind.CommaToken or SyntaxKind.EqualsToken or SyntaxKind.SemicolonToken or SyntaxKind.CloseParenToken or SyntaxKind.EndOfFileToken;
5780
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken or SyntaxKind.LessThanToken);
5788
(this.CurrentToken.
Kind
is SyntaxKind.OpenBraceToken or SyntaxKind.EqualsGreaterThanToken ||
5799
switch (this.CurrentToken.
Kind
)
5811
return this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
5818
return this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken || this.IsPossibleExpression();
5837
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DelegateKeyword);
5870
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.EnumKeyword);
5885
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
5901
if (CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5946
static p => p.CurrentToken.
Kind
is not SyntaxKind.CommaToken and not SyntaxKind.SemicolonToken && !p.IsPossibleEnumMemberDeclaration(),
5947
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
5962
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
5967
this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseBraceToken
5977
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken || this.IsTrueIdentifier();
5982
return this.CurrentToken.
Kind
is SyntaxKind.DotToken or SyntaxKind.ColonColonToken;
6021
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
6041
token.
Kind
== SyntaxKind.IdentifierToken &&
6061
var ctk = this.CurrentToken.
Kind
;
6106
if (this.CurrentToken.
Kind
!= SyntaxKind.LessThanToken)
6136
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
6137
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
6149
if (this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken or SyntaxKind.InKeyword or SyntaxKind.OutKeyword)
6158
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
6177
this.CurrentToken.
Kind
is SyntaxKind.InKeyword or SyntaxKind.OutKeyword ? EatToken() : null,
6194
if (this.CurrentToken.
Kind
== SyntaxKind.LessThanToken)
6204
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6229
if (this.CurrentToken.
Kind
!= SyntaxKind.LessThanToken)
6277
Debug.Assert(greaterThanToken.
Kind
== SyntaxKind.GreaterThanToken);
6279
switch (this.CurrentToken.
Kind
)
6313
case SyntaxKind.GreaterThanToken when ((options & NameOptions.AfterIs) != 0) && this.PeekToken(1).
Kind
!= SyntaxKind.GreaterThanToken:
6334
(options & NameOptions.AfterTupleComma) != 0 && this.PeekToken(1).
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken ||
6335
(options & NameOptions.FirstElementOfPossibleTupleLiteral) != 0 && this.PeekToken(1).
Kind
== SyntaxKind.CommaToken)
6361
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6371
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
6374
Debug.Assert(start.
Kind
== SyntaxKind.LessThanToken);
6375
Debug.Assert(greaterThanToken.
Kind
== SyntaxKind.GreaterThanToken);
6388
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
6394
if (this.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken)
6403
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
6438
isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken;
6465
isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken;
6487
isDefinitelyTypeArgumentList = this.CurrentToken.
Kind
== SyntaxKind.CommaToken;
6505
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken);
6507
if (this.CurrentToken.
Kind
!= SyntaxKind.GreaterThanToken)
6513
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken)
6522
if (lastScannedType is ScanTypeFlags.TupleType && this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken)
6535
isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken;
6547
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6557
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
6572
while (this.CurrentToken.
Kind
!= SyntaxKind.GreaterThanToken)
6585
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken && tokenBreaksTypeArgumentList(this.PeekToken(1)))
6594
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken
6595
&& this.PeekToken(1).
Kind
is SyntaxKind.CloseBracketToken)
6600
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken || this.IsPossibleType())
6625
switch (token.
Kind
)
6670
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleType(),
6671
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken,
6679
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken && this.PeekToken(1).
Kind
!= SyntaxKind.CloseBracketToken)
6695
var varianceToken = this.CurrentToken.
Kind
is SyntaxKind.InKeyword or SyntaxKind.OutKeyword
6722
this.CurrentToken.
Kind
is not SyntaxKind.CommaToken and not SyntaxKind.GreaterThanToken &&
6723
this.PeekToken(1).
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken)
6744
=> this.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken;
6748
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6750
while (this.PeekToken(n).
Kind
== SyntaxKind.CommaToken)
6753
return this.PeekToken(n).
Kind
== SyntaxKind.GreaterThanToken;
6786
if (this.CurrentToken.
Kind
== SyntaxKind.ThisKeyword)
6812
if (separator != null && separator.
Kind
== SyntaxKind.ColonColonToken)
6831
if (separator.
Kind
!= SyntaxKind.DotToken)
6833
separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.
Kind
, separator.GetLeadingTriviaWidth(), separator.Width));
6837
if (isEvent && this.CurrentToken.
Kind
is not SyntaxKind.OpenBraceToken and not SyntaxKind.SemicolonToken)
6908
separator = this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken
6921
if (this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken)
6950
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
6986
if (separator != null && separator.
Kind
== SyntaxKind.ColonColonToken)
7013
if (separator.
Kind
!= SyntaxKind.DotToken)
7015
separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.
Kind
, separator.GetLeadingTriviaWidth(), separator.Width));
7026
return this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken
7038
if (this.PeekToken(1).
Kind
== SyntaxKind.ThisKeyword)
7055
Debug.Assert(separator.
Kind
is SyntaxKind.DotToken or SyntaxKind.ColonColonToken);
7058
switch (separator.
Kind
)
7064
if (left.
Kind
!= SyntaxKind.IdentifierName)
7156
var tk = this.CurrentToken.
Kind
;
7177
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken || !this.IsTrueIdentifier())
7184
if (this.CurrentToken.
Kind
== SyntaxKind.LessThanToken)
7199
if (this.CurrentToken.
Kind
== SyntaxKind.RefKeyword)
7204
if (this.CurrentToken.
Kind
== SyntaxKind.ReadOnlyKeyword)
7211
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken or SyntaxKind.ColonColonToken)
7214
if (this.CurrentToken.
Kind
is SyntaxKind.ColonColonToken)
7228
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken);
7231
isAlias = this.PeekToken(1).
Kind
== SyntaxKind.ColonColonToken;
7268
else if (IsPredefinedType(this.CurrentToken.
Kind
))
7274
else if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
7279
if (result == ScanTypeFlags.NotType || mode == ParseTypeMode.DefinitePattern && this.CurrentToken.
Kind
!= SyntaxKind.OpenBracketToken)
7299
switch (this.CurrentToken.
Kind
)
7302
when lastTokenOfType.
Kind
is not SyntaxKind.QuestionToken // don't allow `Type??`
7340
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7345
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
7378
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7396
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken);
7398
if (this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken)
7420
if (CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
7428
case var _ when peek1.
Kind
== SyntaxKind.OpenBracketToken:
7438
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
7455
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.CommaToken);
7478
var validStartingToken = EatToken().
Kind
== SyntaxKind.LessThanToken;
7508
if (!validStartingToken && CurrentToken.
Kind
== SyntaxKind.CloseParenToken)
7522
isNotExpectedFunction: static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
7543
if (this.CurrentToken.
Kind
== SyntaxKind.VoidKeyword && this.PeekToken(1).
Kind
!= SyntaxKind.AsteriskToken)
7568
if (this.CurrentToken.
Kind
== SyntaxKind.RefKeyword)
7572
this.CurrentToken.
Kind
== SyntaxKind.ReadOnlyKeyword ? this.EatToken() : null,
7616
switch (this.CurrentToken.
Kind
)
7664
while (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken);
7685
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.QuestionToken);
7691
if (typeParsedSoFar.
Kind
is SyntaxKind.NullableType or SyntaxKind.PointerType)
7708
if (mode == ParseTypeMode.AfterIs && this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken)
7718
switch (this.PeekToken(1).
Kind
)
7735
return this.CurrentToken.
Kind
!= SyntaxKind.ColonToken;
7780
var nextTokenKind = nextToken.
Kind
;
7825
if (this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken)
7834
this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken or // ctor parameters
7848
switch (this.PeekToken(i).
Kind
)
7869
while (IsMakingProgress(ref lastTokenPosition) && this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
7871
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7884
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
7925
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken)
7929
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7964
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleExpression(),
7965
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.CloseBracketToken,
7971
if (IsPredefinedType(this.CurrentToken.
Kind
))
7975
if (token.
Kind
== SyntaxKind.VoidKeyword && this.CurrentToken.
Kind
!= SyntaxKind.AsteriskToken)
7984
if (IsTrueIdentifier() || this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken)
7989
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
8055
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.CommaToken);
8066
lessThanToken.IsMissing && CurrentToken.
Kind
== SyntaxKind.CloseParenToken
8081
isNotExpectedFunction: static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
8089
if (CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
8105
case var _ when peek1.
Kind
== SyntaxKind.OpenBracketToken:
8117
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
8135
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.CommaToken);
8151
if (managedSpecifier.
Kind
== SyntaxKind.ManagedKeyword && unmanagedCallingConventions != null)
8165
=> CurrentToken.
Kind
== SyntaxKind.DelegateKeyword && PeekToken(1).
Kind
== SyntaxKind.AsteriskToken;
8170
=> token.
Kind
== SyntaxKind.LessThanToken || token.
Kind
== SyntaxKind.OpenParenToken;
8176
while (this.CurrentToken.
Kind
== SyntaxKind.AsteriskToken)
8196
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenBracketToken)
8210
while (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
8220
var isCollectionExpression = this.CurrentToken.
Kind
8233
|| IsExpectedBinaryOperator(this.CurrentToken.
Kind
)
8234
|| IsExpectedAssignmentOperator(this.CurrentToken.
Kind
)
8235
|| (this.CurrentToken.ContextualKind is SyntaxKind.SwitchKeyword or SyntaxKind.WithKeyword && this.PeekToken(1).
Kind
is SyntaxKind.OpenBraceToken);
8239
this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
8298
switch (this.CurrentToken.
Kind
)
8430
this.PeekToken(1).
Kind
== SyntaxKind.ForEachKeyword)
8436
if (PeekToken(2).
Kind
== SyntaxKind.OpenParenToken)
8463
=> PeekToken(1).
Kind
== SyntaxKind.OpenParenToken ? ParseUsingStatement(attributes) : ParseLocalDeclarationStatement(attributes);
8468
return PeekToken(1).
Kind
switch
8491
=> CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword && PeekToken(1).
Kind
== SyntaxKind.UsingKeyword;
8495
return this.PeekToken(1).
Kind
== SyntaxKind.ColonToken && this.IsTrueIdentifier();
8501
this.PeekToken(1).
Kind
is SyntaxKind.ReturnKeyword or SyntaxKind.BreakKeyword;
8510
var tk = this.CurrentToken.
Kind
;
8514
this.PeekToken(1).
Kind
is not SyntaxKind.DotToken // e.g. `int.Parse()` is an expression
8523
Debug.Assert(PeekToken(1).
Kind
!= SyntaxKind.OpenParenToken);
8529
Debug.Assert(PeekToken(2).
Kind
!= SyntaxKind.OpenParenToken);
8579
if (token1.
Kind
== SyntaxKind.DotToken &&
8582
if (PeekToken(2).
Kind
== SyntaxKind.IdentifierToken &&
8583
PeekToken(3).
Kind
== SyntaxKind.IdentifierToken)
8598
var token4Kind = PeekToken(4).
Kind
;
8618
if (st == ScanTypeFlags.MustBeType && this.CurrentToken.
Kind
is not SyntaxKind.DotToken and not SyntaxKind.OpenParenToken)
8628
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
8636
return st == ScanTypeFlags.GenericTypeOrExpression && (IsDefiniteStatement() || IsTypeDeclarationStart() || IsAccessibilityModifier(CurrentToken.
Kind
));
8657
if (this.CurrentToken.
Kind
!= SyntaxKind.UsingKeyword)
8662
var tk = PeekToken(1).
Kind
;
8723
if (this.CurrentToken.
Kind
is SyntaxKind.OpenBraceToken)
8729
if (identifierOrThisOpt.
Kind
== SyntaxKind.ThisKeyword)
8744
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
8751
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
8760
return this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.SemicolonToken;
8778
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken || this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword)
8785
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
8810
if (parameter.Modifiers[i].
Kind
== SyntaxKind.ParamsKeyword)
8820
if (parameter.Identifier.
Kind
== SyntaxKind.ArgListKeyword)
8825
else if (parameter.Type.
Kind
== SyntaxKind.NullableType)
8845
else if (parameter.Type.
Kind
== SyntaxKind.IdentifierName &&
8877
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DelegateKeyword);
8882
if (nextToken.
Kind
== SyntaxKind.OpenBraceToken)
8888
if (nextToken.
Kind
!= SyntaxKind.OpenParenToken)
8905
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
8914
if (scanResult == ScanTypeFlags.TupleType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
8925
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.NewKeyword);
8932
switch (nextToken.
Kind
)
8960
if (SyntaxFacts.GetBaseTypeDeclarationKind(nextToken.
Kind
) != SyntaxKind.None)
8968
if (SyntaxFacts.IsPredefinedType(PeekToken(2).
Kind
))
8975
if (IsTypeModifierOrTypeKeyword(PeekToken(2).
Kind
))
9013
switch (next.
Kind
)
9070
CSharpSyntaxNode openBrace = isAccessorBody && this.CurrentToken.
Kind
!= SyntaxKind.OpenBraceToken
9151
while (this.CurrentToken.
Kind
is not SyntaxKind.CloseBraceToken and not SyntaxKind.EndOfFileToken
9183
return this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
9195
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.CloseBraceToken,
9203
var tk = this.CurrentToken.
Kind
;
9240
var tk = this.CurrentToken.
Kind
;
9285
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.OpenBraceToken or SyntaxKind.SemicolonToken;
9311
if (statement.
Kind
== SyntaxKind.ExpressionStatement &&
9350
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.TryKeyword or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword);
9363
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword);
9377
if (this.CurrentToken.
Kind
== SyntaxKind.CatchKeyword)
9380
while (this.CurrentToken.
Kind
== SyntaxKind.CatchKeyword)
9386
if (this.CurrentToken.
Kind
== SyntaxKind.FinallyKeyword)
9421
return this.CurrentToken.
Kind
is SyntaxKind.CloseBraceToken or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword;
9426
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.CatchKeyword);
9433
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
9485
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken
9494
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken
9502
return this.CurrentToken.
Kind
is SyntaxKind.CloseBraceToken
9509
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword);
9511
if (this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
9518
SyntaxFacts.GetCheckStatement(keyword.
Kind
),
9526
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DoKeyword);
9550
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken;
9567
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ForKeyword);
9569
if (this.EatToken().
Kind
== SyntaxKind.OpenParenToken &&
9571
this.EatToken().
Kind
== SyntaxKind.IdentifierToken &&
9572
this.EatToken().
Kind
== SyntaxKind.InKeyword)
9588
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ForKeyword);
9598
var condition = this.CurrentToken.
Kind
is not SyntaxKind.SemicolonToken and not SyntaxKind.CommaToken
9607
var incrementors = this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken
9638
if (this.PeekToken(1).
Kind
== SyntaxKind.RefKeyword)
9645
isDeclaration = ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken;
9649
else if (this.CurrentToken.
Kind
== SyntaxKind.RefKeyword)
9666
else if (this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken)
9681
=> this.CurrentToken.
Kind
is SyntaxKind.CommaToken
9689
while (this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.CommaToken)
9713
if (@this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken)
9717
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleExpression(),
9718
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind || p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
9725
return this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.CloseParenToken or SyntaxKind.OpenBraceToken;
9732
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ForEachKeyword || this.CurrentToken.
Kind
== SyntaxKind.ForKeyword);
9743
if (this.CurrentToken.
Kind
== SyntaxKind.ForKeyword)
9769
if (decl.designation.
Kind
!= SyntaxKind.ParenthesizedVariableDesignation)
9773
switch (decl.designation.
Kind
)
9781
Debug.Assert(discard.
Kind
== SyntaxKind.UnderscoreToken);
9785
throw ExceptionUtilities.UnexpectedValue(decl.designation.
Kind
);
9848
if (ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
9853
if (this.PeekToken(1).
Kind
== SyntaxKind.CommaToken)
9861
if (this.PeekToken(1).
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken)
9887
if (!ScanDesignation(permitTupleDesignation && (typeIsVar || IsPredefinedType(lastTokenOfType.
Kind
))))
9895
return this.CurrentToken.
Kind
== SyntaxKind.CommaToken;
9897
return this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken;
9915
switch (this.PeekToken(1).
Kind
)
9931
switch (variable.
Kind
)
9949
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.GotoKeyword);
9957
if (this.CurrentToken.
Kind
is SyntaxKind.CaseKeyword or SyntaxKind.DefaultKeyword)
9960
if (caseOrDefault.
Kind
== SyntaxKind.CaseKeyword)
9985
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken)
9996
if (this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken &&
9997
this.PeekToken(1).
Kind
!= SyntaxKind.EqualsGreaterThanToken &&
10015
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.IfKeyword);
10028
var elseKeyword = this.CurrentToken.
Kind
!= SyntaxKind.ElseKeyword ?
10039
if (this.CurrentToken.
Kind
!= SyntaxKind.IfKeyword)
10080
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ElseKeyword);
10094
return this.CurrentToken.
Kind
!= SyntaxKind.ElseKeyword
10103
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LockKeyword);
10115
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ReturnKeyword);
10119
this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken ? this.ParsePossibleRefExpression() : null,
10132
if (this.CurrentToken.
Kind
== SyntaxKind.BreakKeyword)
10141
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
10162
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.SwitchKeyword or SyntaxKind.CaseKeyword);
10187
if (this.CurrentToken.
Kind
is SyntaxKind.CaseKeyword)
10201
if (expression.
Kind
== SyntaxKind.ParenthesizedExpression)
10210
else if (expression.
Kind
== SyntaxKind.TupleExpression)
10232
return this.CurrentToken.
Kind
== SyntaxKind.CaseKeyword ||
10233
(this.CurrentToken.
Kind
== SyntaxKind.DefaultKeyword && this.PeekToken(1).
Kind
!= SyntaxKind.OpenParenToken);
10247
if (this.CurrentToken.
Kind
== SyntaxKind.CaseKeyword)
10251
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
10266
if (node.
Kind
== SyntaxKind.DiscardPattern)
10288
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DefaultKeyword);
10310
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ThrowKeyword);
10314
this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken ? this.ParseExpressionCore() : null,
10320
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.UnsafeKeyword);
10388
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
10395
switch (this.PeekToken(1).
Kind
)
10415
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken &&
10416
declaration.Type.
Kind
== SyntaxKind.NullableType &&
10417
SyntaxFacts.IsName(((NullableTypeSyntax)declaration.Type).ElementType.
Kind
) &&
10447
bool condition1 = st == ScanTypeFlags.MustBeType && this.CurrentToken.
Kind
!= SyntaxKind.DotToken;
10448
bool condition2 = st != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken;
10449
bool condition3 = st == ScanTypeFlags.NonGenericTypeOrExpression || this.PeekToken(1).
Kind
== SyntaxKind.EqualsToken;
10456
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.WhileKeyword);
10470
Debug.Assert(this.IsTrueIdentifier() && this.PeekToken(1).
Kind
== SyntaxKind.ColonToken);
10491
else if (this.CurrentToken.
Kind
== SyntaxKind.UsingKeyword)
10621
return this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken;
10623
else if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
10648
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
10656
done = (this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken);
10669
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
10780
if (allowLocalFunctions && localFunction == null && type is PredefinedTypeSyntax { Keyword.
Kind
: SyntaxKind.VoidKeyword })
10790
switch (this.CurrentToken.
Kind
)
10840
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken);
10846
if (IsDeclarationModifier(this.CurrentToken.
Kind
) ||
10847
IsAdditionalLocalFunctionModifier(this.CurrentToken.
Kind
))
10854
if (ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
10939
if (type.
Kind
== SyntaxKind.IdentifierName)
11045
if (IsScript && this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken)
11089
SyntaxKind tk = this.CurrentToken.
Kind
;
11390
switch (next.
Kind
)
11456
var tk = this.CurrentToken.
Kind
;
11552
if (this.CurrentToken.
Kind
== SyntaxKind.QuestionToken && precedence <= Precedence.Conditional)
11583
if (newPrecedence > GetPrecedence(leftOperand.
Kind
))
11598
leftOperand.
Kind
== SyntaxKind.IsPatternExpression ? ErrorCode.ERR_UnexpectedToken : ErrorCode.WRN_PrecedenceInversion,
11627
if (IsExpectedAssignmentOperator(operatorToken.
Kind
))
11630
if (IsExpectedBinaryOperator(operatorToken.
Kind
))
11650
if (this.CurrentToken.
Kind
!= SyntaxKind.ColonToken &&
11668
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
11680
if (this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken && this.lexer.InterpolationFollowedByColon)
11714
conditionalExpression.WhenTrue.GetFirstToken().
Kind
== SyntaxKind.OpenBracketToken)
11750
&& this.PeekToken(1) is {
Kind
: SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken } token2
11753
if (token2.
Kind
== SyntaxKind.GreaterThanToken)
11755
if (this.PeekToken(2) is {
Kind
: SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken } token3
11759
token1Kind = token3.
Kind
== SyntaxKind.GreaterThanToken
11782
if (token1Kind == SyntaxKind.SwitchKeyword && this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken)
11785
if (token1Kind == SyntaxKind.WithKeyword && this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken)
11836
Debug.Assert(IsExpectedAssignmentOperator(operatorToken.
Kind
));
11841
if (operatorExpressionKind == SyntaxKind.SimpleAssignmentExpression && CurrentToken.
Kind
== SyntaxKind.RefKeyword &&
11861
if (this.CurrentToken.
Kind
!= SyntaxKind.DotToken)
11865
return nextToken.
Kind
== SyntaxKind.DotToken && NoTriviaBetween(this.CurrentToken, nextToken);
11869
=> token1.
Kind
== SyntaxKind.DotToken &&
11870
token2.
Kind
== SyntaxKind.DotToken &&
11883
if (this.CurrentToken is {
Kind
: SyntaxKind.DotToken } token3 &&
11900
if (this.PeekToken(1) is not {
Kind
: SyntaxKind.DotToken } token4 ||
11953
var tk = this.CurrentToken.
Kind
;
12009
else if (IsCurrentTokenFieldInKeywordContext() && PeekToken(1).
Kind
!= SyntaxKind.ColonColonToken)
12088
if (this.CurrentToken.
Kind
!= SyntaxKind.DotToken || tk == SyntaxKind.VoidKeyword)
12138
switch (this.CurrentToken.
Kind
)
12150
expr = _syntaxFactory.PostfixUnaryExpression(SyntaxFacts.GetPostfixUnaryExpression(this.CurrentToken.
Kind
), expr, this.EatToken());
12154
if (this.PeekToken(1).
Kind
== SyntaxKind.IdentifierToken)
12186
this.PeekToken(1).
Kind
== SyntaxKind.IdentifierToken &&
12219
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.BaseKeyword);
12233
if (precedence > Precedence.Assignment || !(this.CurrentToken.IsIdentifierVar() || IsPredefinedType(this.CurrentToken.
Kind
)))
12242
this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken && ScanDesignator() &&
12243
this.CurrentToken.
Kind
== SyntaxKind.EqualsToken;
12248
switch (this.CurrentToken.
Kind
)
12267
switch (this.CurrentToken.
Kind
)
12287
while (this.PeekToken(tokenIndex).
Kind
== SyntaxKind.StaticKeyword ||
12293
return this.PeekToken(tokenIndex).
Kind
== SyntaxKind.DelegateKeyword &&
12294
this.PeekToken(tokenIndex + 1).
Kind
!= SyntaxKind.AsteriskToken;
12341
if (this.CurrentToken.
Kind
== SyntaxKind.QuestionToken)
12344
var nextTokenKind = nextToken.
Kind
;
12380
return this.CurrentToken.
Kind
!= SyntaxKind.ColonToken;
12393
while (this.CurrentToken.
Kind
== SyntaxKind.ExclamationToken)
12429
=> this.CurrentToken.
Kind
switch
12488
openToken = this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken or SyntaxKind.OpenBracketToken
12495
if (this.CurrentToken.
Kind
!= closeKind && this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken)
12523
else if (isIndexer && this.CurrentToken.
Kind
== closeKind)
12539
closeToken = this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken
12548
if (@this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken)
12552
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleArgumentExpression(),
12553
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind || p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
12560
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken;
12565
return IsValidArgumentRefKindKeyword(this.CurrentToken.
Kind
) || this.IsPossibleExpression();
12583
var nameColon = this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.ColonToken
12590
if (IsValidArgumentRefKindKeyword(this.CurrentToken.
Kind
) &&
12592
!(this.CurrentToken.
Kind
== SyntaxKind.RefKeyword &&
12600
if (isIndexer && this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseBracketToken)
12604
else if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
12616
expression = refKindKeyword?.
Kind
== SyntaxKind.OutKeyword
12636
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
12680
Debug.Assert(checkedOrUnchecked.
Kind
is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword);
12681
var kind = checkedOrUnchecked.
Kind
== SyntaxKind.CheckedKeyword ? SyntaxKind.CheckedExpression : SyntaxKind.UncheckedExpression;
12723
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
12741
token.
Kind
is SyntaxKind.CommaToken ||
12747
return token.
Kind
== SyntaxKind.CloseParenToken &&
12748
this.PeekToken(index).
Kind
== SyntaxKind.EqualsGreaterThanToken;
12754
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
12806
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
12814
switch (this.CurrentToken.
Kind
)
12820
return this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken;
12830
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
12858
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
12866
if (expression.
Kind
== SyntaxKind.IdentifierName && this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
12887
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
12892
var argument = expression.
Kind
!= SyntaxKind.IdentifierName || this.CurrentToken.
Kind
!= SyntaxKind.ColonToken
12920
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
12933
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken)
12940
if (forPattern && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
12974
return !forPattern || this.CurrentToken.
Kind
switch
12999
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken || CanFollowCast(this.CurrentToken.
Kind
);
13005
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken &&
13006
this.PeekToken(1).
Kind
== SyntaxKind.CloseBracketToken)
13014
return CanFollowCast(this.CurrentToken.
Kind
);
13066
if (token1.
Kind
== SyntaxKind.EqualsGreaterThanToken)
13074
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
13093
if (this.CurrentToken.
Kind
== SyntaxKind.StaticKeyword)
13099
this.PeekToken(1).
Kind
== SyntaxKind.StaticKeyword)
13112
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken)
13122
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13130
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken &&
13131
this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken)
13150
if (st == ScanTypeFlags.NotType || this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13167
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken &&
13168
this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken)
13175
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13247
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.NewKeyword);
13266
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken);
13287
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleCollectionElement(),
13288
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13303
this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
13320
return this.CurrentToken.
Kind
== SyntaxKind.NewKeyword && this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken;
13328
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken);
13365
return this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken;
13370
return IsTrueIdentifier() && this.PeekToken(1).
Kind
== SyntaxKind.EqualsToken;
13375
return IsTrueIdentifier() && this.PeekToken(1).
Kind
is SyntaxKind.EqualsToken or SyntaxKind.ColonToken;
13380
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken;
13393
if (type.
Kind
== SyntaxKind.ArrayType)
13396
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
13406
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13411
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
13433
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13444
switch (this.CurrentToken.
Kind
)
13517
Kind
: SyntaxKind.SimpleAssignmentExpression,
13518
Left.
Kind
: SyntaxKind.IdentifierName or SyntaxKind.ImplicitElementAccess,
13563
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleExpression(),
13564
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13573
this.CurrentToken.
Kind
== SyntaxKind.ColonToken
13576
this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
13587
this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
13615
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.NewKeyword or SyntaxKind.StackAllocKeyword);
13616
return this.PeekToken(1).
Kind
== SyntaxKind.OpenBracketToken;
13642
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
13682
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleVariableInitializer(),
13683
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13709
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
13731
this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken ? this.ParseArrayInitializer() : null);
13748
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13761
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenBraceToken)
13806
if (this.CurrentToken.
Kind
== SyntaxKind.StaticKeyword)
13829
if (token.
Kind
== SyntaxKind.StaticKeyword)
13843
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13858
switch (this.PeekToken(1).
Kind
)
13881
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken &&
13909
if (CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13916
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13929
var identifier = (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken)
13946
=> CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
13977
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleLambdaParameter(),
13978
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13985
switch (this.CurrentToken.
Kind
)
14003
return IsPredefinedType(this.CurrentToken.
Kind
);
14041
if (IsPredefinedType(this.CurrentToken.
Kind
))
14047
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
14069
if (peek1.
Kind
14134
var pk1 = this.PeekToken(1).
Kind
;
14142
var pk2 = this.PeekToken(2).
Kind
;
14179
return this.ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken or SyntaxKind.InKeyword;
14246
var type = this.PeekToken(1).
Kind
!= SyntaxKind.InKeyword
14252
(this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken || SyntaxFacts.IsQueryContextualKeyword(this.CurrentToken.ContextualKind)))
14279
type: this.PeekToken(1).
Kind
!= SyntaxKind.InKeyword
14300
SyntaxFacts.IsReservedKeyword(this.CurrentToken.
Kind
) && this.PeekToken(1).
Kind
== SyntaxKind.EqualsToken
14325
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
14327
if (this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken)
14331
else if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
14352
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
14353
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.CloseParenToken
14354
|| p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
14369
if (direction.
Kind
== SyntaxKind.DescendingKeyword)
14529
if (requireOneElement || this.CurrentToken.
Kind
!= closeTokenKind)
14546
if (this.CurrentToken.
Kind
== closeTokenKind)
14557
nodes.AddSeparator(this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
14564
if (this.CurrentToken.
Kind
== closeTokenKind)
14599
if (this.CurrentToken.
Kind
== separatorTokenKind)
14604
if (allowSemicolonAsSeparator && this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken)
14693
if (this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken) return node;
14695
while (this.CurrentToken.
Kind
!= SyntaxKind.EndOfFileToken)
Parser\Lexer.cs (3)
2368
if (directive.
Kind
== SyntaxKind.EndIfDirectiveTrivia || (branching != null && branching.BranchTaken))
2372
else if (directive.
Kind
== SyntaxKind.IfDirectiveTrivia)
2727
else if (tr.
Kind
== SyntaxKind.EndOfLineTrivia)
Parser\SyntaxParser.cs (12)
151
if (token.
Kind
== SyntaxKind.EndOfFileToken)
498
=> this.CurrentToken.
Kind
== kind ? this.EatToken() : null;
526
if (ct.
Kind
== kind)
533
return CreateMissingToken(kind, this.CurrentToken.
Kind
);
542
if (ct.
Kind
== expected)
548
var replacement = CreateMissingToken(expected, this.CurrentToken.
Kind
);
578
if (this.CurrentToken.
Kind
!= kind)
592
if (this.CurrentToken.
Kind
!= kind)
613
if (token.
Kind
!= kind)
616
token = WithAdditionalDiagnostics(token, this.GetExpectedTokenError(kind, token.
Kind
, offset, width));
1106
if (token.
Kind
!= token.ContextualKind)
1127
var identifier = SyntaxToken.Identifier(token.
Kind
, token.LeadingTrivia.Node, token.Text, token.ValueText, token.TrailingTrivia.Node);
Syntax\InternalSyntax\CSharpSyntaxNode.cs (5)
67
public override string KindText => this.
Kind
.ToString();
77
public override bool IsSkippedTokensTrivia => this.
Kind
== SyntaxKind.SkippedTokensTrivia;
78
public override bool IsDocumentationCommentTrivia => SyntaxFacts.IsDocumentationCommentTrivia(this.
Kind
);
248
return this.
Kind
== SyntaxKind.EndOfLineTrivia
249
|| this.
Kind
== SyntaxKind.SingleLineCommentTrivia;
Syntax\InternalSyntax\CSharpSyntaxRewriter.cs (1)
57
Debug.Assert(visited != null && visited.
Kind
!= SyntaxKind.None, "Cannot remove node using Syntax.InternalSyntax.SyntaxRewriter.");
Syntax\InternalSyntax\StructuredTriviaSyntax.cs (1)
18
if (this.
Kind
== SyntaxKind.SkippedTokensTrivia)
Syntax\InternalSyntax\SyntaxToken.cs (7)
255
return this.
Kind
;
269
get { return SyntaxFacts.GetText(this.
Kind
); }
286
switch (this.
Kind
)
349
return new SyntaxTokenWithTrivia(this.
Kind
, trivia, null, this.GetDiagnostics(), this.GetAnnotations());
359
return new SyntaxTokenWithTrivia(this.
Kind
, null, trivia, this.GetDiagnostics(), this.GetAnnotations());
365
return new SyntaxToken(this.
Kind
, this.FullWidth, diagnostics, this.GetAnnotations());
371
return new SyntaxToken(this.
Kind
, this.FullWidth, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.MissingTokenWithTrivia.cs (5)
37
switch (this.
Kind
)
49
return new MissingTokenWithTrivia(this.
Kind
, trivia, this.TrailingField, this.GetDiagnostics(), this.GetAnnotations());
54
return new MissingTokenWithTrivia(this.
Kind
, this.LeadingField, trivia, this.GetDiagnostics(), this.GetAnnotations());
59
return new MissingTokenWithTrivia(this.
Kind
, this.LeadingField, this.TrailingField, diagnostics, this.GetAnnotations());
64
return new MissingTokenWithTrivia(this.
Kind
, this.LeadingField, this.TrailingField, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.SyntaxIdentifier.cs (2)
46
return new SyntaxIdentifierWithTrivia(this.
Kind
, this.TextField, this.TextField, trivia, null, this.GetDiagnostics(), this.GetAnnotations());
51
return new SyntaxIdentifierWithTrivia(this.
Kind
, this.TextField, this.TextField, null, trivia, this.GetDiagnostics(), this.GetAnnotations());
Syntax\InternalSyntax\SyntaxToken.SyntaxIdentifierWithTrailingTrivia.cs (1)
42
return new SyntaxIdentifierWithTrivia(this.
Kind
, this.TextField, this.TextField, trivia, _trailing, this.GetDiagnostics(), this.GetAnnotations());
Syntax\InternalSyntax\SyntaxToken.SyntaxLiteral.cs (4)
59
return new SyntaxTokenWithValueAndTrivia<T>(this.
Kind
, this.TextField, this.ValueField, trivia, null, this.GetDiagnostics(), this.GetAnnotations());
64
return new SyntaxTokenWithValueAndTrivia<T>(this.
Kind
, this.TextField, this.ValueField, null, trivia, this.GetDiagnostics(), this.GetAnnotations());
69
return new SyntaxTokenWithValue<T>(this.
Kind
, this.TextField, this.ValueField, diagnostics, this.GetAnnotations());
74
return new SyntaxTokenWithValue<T>(this.
Kind
, this.TextField, this.ValueField, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.SyntaxLiteralWithTrivia.cs (4)
65
return new SyntaxTokenWithValueAndTrivia<T>(this.
Kind
, this.TextField, this.ValueField, trivia, _trailing, this.GetDiagnostics(), this.GetAnnotations());
70
return new SyntaxTokenWithValueAndTrivia<T>(this.
Kind
, this.TextField, this.ValueField, _leading, trivia, this.GetDiagnostics(), this.GetAnnotations());
75
return new SyntaxTokenWithValueAndTrivia<T>(this.
Kind
, this.TextField, this.ValueField, _leading, _trailing, diagnostics, this.GetAnnotations());
80
return new SyntaxTokenWithValueAndTrivia<T>(this.
Kind
, this.TextField, this.ValueField, _leading, _trailing, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.SyntaxTokenWithTrivia.cs (4)
58
return new SyntaxTokenWithTrivia(this.
Kind
, trivia, this.TrailingField, this.GetDiagnostics(), this.GetAnnotations());
63
return new SyntaxTokenWithTrivia(this.
Kind
, this.LeadingField, trivia, this.GetDiagnostics(), this.GetAnnotations());
68
return new SyntaxTokenWithTrivia(this.
Kind
, this.LeadingField, this.TrailingField, diagnostics, this.GetAnnotations());
73
return new SyntaxTokenWithTrivia(this.
Kind
, this.LeadingField, this.TrailingField, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxTrivia.cs (2)
67
return new SyntaxTrivia(this.
Kind
, this.Text, diagnostics, GetAnnotations());
72
return new SyntaxTrivia(this.
Kind
, this.Text, GetDiagnostics(), annotations);
Syntax\InternalSyntax\TypeSyntax.cs (1)
19
public bool IsRef =>
Kind
== SyntaxKind.RefType;
Syntax\ShebangDirectiveTriviaSyntax.cs (2)
41
if (content.
Kind
is SyntaxKind.StringLiteralToken)
45
else if (content.
Kind
is not SyntaxKind.None)
Syntax\SyntaxEquivalence.cs (1)
284
if (current.
Kind
== SyntaxKind.NullableDirectiveTrivia)
Syntax\SyntaxFactory.cs (1)
1697
if (token.
Kind
== SyntaxKind.EndOfFileToken)
Syntax\SyntaxFacts.cs (1)
450
return node.IsIdentifierVar() || IsPredefinedType(node.
Kind
);