2447 references to Kind
Microsoft.CodeAnalysis.CSharp (2447)
_generated\1\Syntax.xml.Internal.Generated.cs (1468)
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);
28687
switch (identifier.
Kind
)
28713
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
28734
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
28755
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
28757
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
28778
if (colonColonToken.
Kind
!= SyntaxKind.ColonColonToken) throw new ArgumentException(nameof(colonColonToken));
28799
switch (keyword.
Kind
)
28857
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
28859
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
28880
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
28900
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
28902
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
28913
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
28915
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
28935
switch (managedOrUnmanagedKeyword.
Kind
)
28960
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
28962
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
28982
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
29003
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
29023
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29025
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29047
switch (identifier.
Kind
)
29073
if (omittedTypeArgumentToken.
Kind
!= SyntaxKind.OmittedTypeArgumentToken) throw new ArgumentException(nameof(omittedTypeArgumentToken));
29093
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
29096
switch (readOnlyKeyword.
Kind
)
29123
if (scopedKeyword.
Kind
!= SyntaxKind.ScopedKeyword) throw new ArgumentException(nameof(scopedKeyword));
29144
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29147
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29167
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29169
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29202
switch (operatorToken.
Kind
)
29235
if (awaitKeyword.
Kind
!= SyntaxKind.AwaitKeyword) throw new ArgumentException(nameof(awaitKeyword));
29264
switch (operatorToken.
Kind
)
29297
switch (operatorToken.
Kind
)
29324
if (operatorToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(operatorToken));
29345
if (operatorToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(operatorToken));
29385
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
29451
switch (operatorToken.
Kind
)
29515
switch (operatorToken.
Kind
)
29553
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
29556
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
29567
if (token.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token));
29587
if (token.
Kind
!= SyntaxKind.BaseKeyword) throw new ArgumentException(nameof(token));
29620
switch (token.
Kind
)
29656
if (token.
Kind
!= SyntaxKind.FieldKeyword) throw new ArgumentException(nameof(token));
29676
if (keyword.
Kind
!= SyntaxKind.MakeRefKeyword) throw new ArgumentException(nameof(keyword));
29678
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29681
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29691
if (keyword.
Kind
!= SyntaxKind.RefTypeKeyword) throw new ArgumentException(nameof(keyword));
29693
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29696
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29706
if (keyword.
Kind
!= SyntaxKind.RefValueKeyword) throw new ArgumentException(nameof(keyword));
29708
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29711
if (comma.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(comma));
29714
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29730
switch (keyword.
Kind
)
29737
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29740
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29750
if (keyword.
Kind
!= SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(keyword));
29752
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29755
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29765
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
29767
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29770
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29780
if (keyword.
Kind
!= SyntaxKind.TypeOfKeyword) throw new ArgumentException(nameof(keyword));
29782
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29785
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29795
if (keyword.
Kind
!= SyntaxKind.SizeOfKeyword) throw new ArgumentException(nameof(keyword));
29797
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29800
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29850
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29852
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29872
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
29874
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
29895
switch (refKindKeyword.
Kind
)
29984
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29987
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29998
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
30010
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
30020
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
30042
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
30061
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
30063
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
30083
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
30104
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
30116
if (withKeyword.
Kind
!= SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword));
30156
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
30158
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
30160
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
30170
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
30191
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
30193
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
30195
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
30206
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
30227
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
30229
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
30231
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
30242
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
30244
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
30283
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
30304
if (withKeyword.
Kind
!= SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword));
30364
if (fromKeyword.
Kind
!= SyntaxKind.FromKeyword) throw new ArgumentException(nameof(fromKeyword));
30366
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30368
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
30379
if (letKeyword.
Kind
!= SyntaxKind.LetKeyword) throw new ArgumentException(nameof(letKeyword));
30381
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30383
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
30394
if (joinKeyword.
Kind
!= SyntaxKind.JoinKeyword) throw new ArgumentException(nameof(joinKeyword));
30396
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30398
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
30401
if (onKeyword.
Kind
!= SyntaxKind.OnKeyword) throw new ArgumentException(nameof(onKeyword));
30404
if (equalsKeyword.
Kind
!= SyntaxKind.EqualsKeyword) throw new ArgumentException(nameof(equalsKeyword));
30415
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
30417
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30437
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
30458
if (orderByKeyword.
Kind
!= SyntaxKind.OrderByKeyword) throw new ArgumentException(nameof(orderByKeyword));
30486
switch (ascendingOrDescendingKeyword.
Kind
)
30513
if (selectKeyword.
Kind
!= SyntaxKind.SelectKeyword) throw new ArgumentException(nameof(selectKeyword));
30534
if (groupKeyword.
Kind
!= SyntaxKind.GroupKeyword) throw new ArgumentException(nameof(groupKeyword));
30537
if (byKeyword.
Kind
!= SyntaxKind.ByKeyword) throw new ArgumentException(nameof(byKeyword));
30548
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
30550
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30571
if (omittedArraySizeExpressionToken.
Kind
!= SyntaxKind.OmittedArraySizeExpressionToken) throw new ArgumentException(nameof(omittedArraySizeExpressionToken));
30591
switch (stringStartToken.
Kind
)
30600
switch (stringEndToken.
Kind
)
30626
if (isKeyword.
Kind
!= SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword));
30647
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
30668
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
30689
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
30729
if (varKeyword.
Kind
!= SyntaxKind.VarKeyword) throw new ArgumentException(nameof(varKeyword));
30758
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30760
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30780
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
30782
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
30840
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30843
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30863
switch (operatorToken.
Kind
)
30919
switch (operatorToken.
Kind
)
30945
if (operatorToken.
Kind
!= SyntaxKind.NotKeyword) throw new ArgumentException(nameof(operatorToken));
30966
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
30968
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
30978
if (dotDotToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(dotDotToken));
30998
if (textToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(textToken));
31018
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
31021
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
31052
if (formatStringToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(formatStringToken));
31091
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
31093
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
31104
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31108
switch (semicolonToken.
Kind
)
31125
switch (awaitKeyword.
Kind
)
31134
switch (usingKeyword.
Kind
)
31143
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31172
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31192
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
31213
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31233
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
31253
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31255
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31276
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31296
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31316
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31318
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
31336
if (gotoKeyword.
Kind
!= SyntaxKind.GotoKeyword) throw new ArgumentException(nameof(gotoKeyword));
31339
switch (caseOrDefaultKeyword.
Kind
)
31348
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31358
if (breakKeyword.
Kind
!= SyntaxKind.BreakKeyword) throw new ArgumentException(nameof(breakKeyword));
31360
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31370
if (continueKeyword.
Kind
!= SyntaxKind.ContinueKeyword) throw new ArgumentException(nameof(continueKeyword));
31372
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31382
if (returnKeyword.
Kind
!= SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword));
31384
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31394
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
31396
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31412
if (yieldKeyword.
Kind
!= SyntaxKind.YieldKeyword) throw new ArgumentException(nameof(yieldKeyword));
31414
switch (returnOrBreakKeyword.
Kind
)
31421
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31431
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
31433
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31436
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31447
if (doKeyword.
Kind
!= SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword));
31450
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
31452
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31455
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31457
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31467
if (forKeyword.
Kind
!= SyntaxKind.ForKeyword) throw new ArgumentException(nameof(forKeyword));
31469
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31471
if (firstSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(firstSemicolonToken));
31473
if (secondSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(secondSemicolonToken));
31475
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31487
switch (awaitKeyword.
Kind
)
31495
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
31497
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31500
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31502
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
31505
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31517
switch (awaitKeyword.
Kind
)
31525
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
31527
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31530
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
31533
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31545
switch (awaitKeyword.
Kind
)
31553
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
31555
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31557
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31568
if (fixedKeyword.
Kind
!= SyntaxKind.FixedKeyword) throw new ArgumentException(nameof(fixedKeyword));
31570
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31573
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31590
switch (keyword.
Kind
)
31616
if (unsafeKeyword.
Kind
!= SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(unsafeKeyword));
31637
if (lockKeyword.
Kind
!= SyntaxKind.LockKeyword) throw new ArgumentException(nameof(lockKeyword));
31639
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31642
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31653
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
31655
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31658
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31669
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
31690
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
31693
switch (openParenToken.
Kind
)
31703
switch (closeParenToken.
Kind
)
31711
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
31713
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
31741
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
31753
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
31775
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
31797
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
31799
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
31801
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
31812
if (equalsGreaterThanToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(equalsGreaterThanToken));
31823
if (tryKeyword.
Kind
!= SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword));
31834
if (catchKeyword.
Kind
!= SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword));
31845
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31849
switch (identifier.
Kind
)
31857
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31867
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
31869
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31872
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31882
if (finallyKeyword.
Kind
!= SyntaxKind.FinallyKeyword) throw new ArgumentException(nameof(finallyKeyword));
31903
if (endOfFileToken.
Kind
!= SyntaxKind.EndOfFileToken) throw new ArgumentException(nameof(endOfFileToken));
31913
if (externKeyword.
Kind
!= SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword));
31915
if (aliasKeyword.
Kind
!= SyntaxKind.AliasKeyword) throw new ArgumentException(nameof(aliasKeyword));
31917
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31919
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31930
switch (globalKeyword.
Kind
)
31938
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
31941
switch (staticKeyword.
Kind
)
31950
switch (unsafeKeyword.
Kind
)
31959
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31969
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
31972
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
31974
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
31977
switch (semicolonToken.
Kind
)
31993
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
31996
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
32006
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
32008
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
32019
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
32048
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
32050
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
32090
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
32110
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
32112
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
32133
switch (varianceKeyword.
Kind
)
32142
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32162
if (keyword.
Kind
!= SyntaxKind.ClassKeyword) throw new ArgumentException(nameof(keyword));
32164
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32167
switch (openBraceToken.
Kind
)
32176
switch (closeBraceToken.
Kind
)
32185
switch (semicolonToken.
Kind
)
32201
if (keyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(keyword));
32203
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32206
switch (openBraceToken.
Kind
)
32215
switch (closeBraceToken.
Kind
)
32224
switch (semicolonToken.
Kind
)
32240
if (keyword.
Kind
!= SyntaxKind.UnionKeyword) throw new ArgumentException(nameof(keyword));
32242
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32245
switch (openBraceToken.
Kind
)
32254
switch (closeBraceToken.
Kind
)
32263
switch (semicolonToken.
Kind
)
32279
if (keyword.
Kind
!= SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword));
32281
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32284
switch (openBraceToken.
Kind
)
32293
switch (closeBraceToken.
Kind
)
32302
switch (semicolonToken.
Kind
)
32326
switch (classOrStructKeyword.
Kind
)
32335
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32338
switch (openBraceToken.
Kind
)
32347
switch (closeBraceToken.
Kind
)
32356
switch (semicolonToken.
Kind
)
32372
if (enumKeyword.
Kind
!= SyntaxKind.EnumKeyword) throw new ArgumentException(nameof(enumKeyword));
32374
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32377
switch (openBraceToken.
Kind
)
32386
switch (closeBraceToken.
Kind
)
32395
switch (semicolonToken.
Kind
)
32411
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
32414
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32417
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
32427
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32437
if (keyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(keyword));
32440
switch (openBraceToken.
Kind
)
32449
switch (closeBraceToken.
Kind
)
32458
switch (semicolonToken.
Kind
)
32474
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
32533
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
32536
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
32546
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
32548
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
32550
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
32576
switch (classOrStructKeyword.
Kind
)
32584
switch (questionToken.
Kind
)
32629
if (defaultKeyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(defaultKeyword));
32649
if (allowsKeyword.
Kind
!= SyntaxKind.AllowsKeyword) throw new ArgumentException(nameof(allowsKeyword));
32669
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
32671
if (structKeyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(structKeyword));
32692
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
32702
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
32705
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
32716
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
32737
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32741
switch (semicolonToken.
Kind
)
32758
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
32761
switch (checkedKeyword.
Kind
)
32769
switch (operatorToken.
Kind
)
32811
switch (semicolonToken.
Kind
)
32827
switch (implicitOrExplicitKeyword.
Kind
)
32834
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
32837
switch (checkedKeyword.
Kind
)
32848
switch (semicolonToken.
Kind
)
32864
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32868
switch (semicolonToken.
Kind
)
32890
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
32892
switch (thisOrBaseKeyword.
Kind
)
32918
if (tildeToken.
Kind
!= SyntaxKind.TildeToken) throw new ArgumentException(nameof(tildeToken));
32920
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32924
switch (semicolonToken.
Kind
)
32941
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32944
switch (semicolonToken.
Kind
)
32960
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
32981
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
32984
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32987
switch (semicolonToken.
Kind
)
33004
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
33008
switch (semicolonToken.
Kind
)
33024
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
33026
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
33056
switch (keyword.
Kind
)
33068
switch (semicolonToken.
Kind
)
33084
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
33086
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
33106
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
33108
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
33129
switch (identifier.
Kind
)
33187
if (endOfComment.
Kind
!= SyntaxKind.EndOfDocumentationCommentToken) throw new ArgumentException(nameof(endOfComment));
33217
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
33257
if (extensionKeyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(extensionKeyword));
33260
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
33271
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
33291
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
33294
switch (checkedKeyword.
Kind
)
33302
switch (operatorToken.
Kind
)
33349
switch (implicitOrExplicitKeyword.
Kind
)
33356
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
33359
switch (checkedKeyword.
Kind
)
33376
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
33378
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
33398
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
33400
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
33421
switch (refKindKeyword.
Kind
)
33432
switch (readOnlyKeyword.
Kind
)
33479
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
33482
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
33492
if (lessThanSlashToken.
Kind
!= SyntaxKind.LessThanSlashToken) throw new ArgumentException(nameof(lessThanSlashToken));
33495
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
33515
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
33518
if (slashGreaterThanToken.
Kind
!= SyntaxKind.SlashGreaterThanToken) throw new ArgumentException(nameof(slashGreaterThanToken));
33528
if (localName.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(localName));
33548
if (prefix.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(prefix));
33550
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
33571
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
33573
switch (startQuoteToken.
Kind
)
33580
switch (endQuoteToken.
Kind
)
33596
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
33598
switch (startQuoteToken.
Kind
)
33606
switch (endQuoteToken.
Kind
)
33622
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
33624
switch (startQuoteToken.
Kind
)
33632
switch (endQuoteToken.
Kind
)
33665
if (startCDataToken.
Kind
!= SyntaxKind.XmlCDataStartToken) throw new ArgumentException(nameof(startCDataToken));
33667
if (endCDataToken.
Kind
!= SyntaxKind.XmlCDataEndToken) throw new ArgumentException(nameof(endCDataToken));
33687
if (startProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionStartToken) throw new ArgumentException(nameof(startProcessingInstructionToken));
33690
if (endProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionEndToken) throw new ArgumentException(nameof(endProcessingInstructionToken));
33700
if (lessThanExclamationMinusMinusToken.
Kind
!= SyntaxKind.XmlCommentStartToken) throw new ArgumentException(nameof(lessThanExclamationMinusMinusToken));
33702
if (minusMinusGreaterThanToken.
Kind
!= SyntaxKind.XmlCommentEndToken) throw new ArgumentException(nameof(minusMinusGreaterThanToken));
33722
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33724
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
33727
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33737
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33739
if (elifKeyword.
Kind
!= SyntaxKind.ElifKeyword) throw new ArgumentException(nameof(elifKeyword));
33742
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33752
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33754
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
33756
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33766
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33768
if (endIfKeyword.
Kind
!= SyntaxKind.EndIfKeyword) throw new ArgumentException(nameof(endIfKeyword));
33770
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33780
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33782
if (regionKeyword.
Kind
!= SyntaxKind.RegionKeyword) throw new ArgumentException(nameof(regionKeyword));
33784
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33794
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33796
if (endRegionKeyword.
Kind
!= SyntaxKind.EndRegionKeyword) throw new ArgumentException(nameof(endRegionKeyword));
33798
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33808
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33810
if (errorKeyword.
Kind
!= SyntaxKind.ErrorKeyword) throw new ArgumentException(nameof(errorKeyword));
33812
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33822
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33824
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
33826
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33836
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33839
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33849
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33851
if (defineKeyword.
Kind
!= SyntaxKind.DefineKeyword) throw new ArgumentException(nameof(defineKeyword));
33853
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
33855
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33865
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33867
if (undefKeyword.
Kind
!= SyntaxKind.UndefKeyword) throw new ArgumentException(nameof(undefKeyword));
33869
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
33871
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33881
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33883
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
33885
switch (line.
Kind
)
33894
switch (file.
Kind
)
33902
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33912
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
33914
if (line.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(line));
33916
if (commaToken.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(commaToken));
33918
if (character.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(character));
33920
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
33930
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33932
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
33935
if (minusToken.
Kind
!= SyntaxKind.MinusToken) throw new ArgumentException(nameof(minusToken));
33939
switch (characterOffset.
Kind
)
33947
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
33949
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33959
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33961
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
33963
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
33965
switch (disableOrRestoreKeyword.
Kind
)
33972
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33982
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33984
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
33986
if (checksumKeyword.
Kind
!= SyntaxKind.ChecksumKeyword) throw new ArgumentException(nameof(checksumKeyword));
33988
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
33990
if (guid.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(guid));
33992
if (bytes.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(bytes));
33994
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
34004
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
34006
if (referenceKeyword.
Kind
!= SyntaxKind.ReferenceKeyword) throw new ArgumentException(nameof(referenceKeyword));
34008
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
34010
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
34020
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
34022
if (loadKeyword.
Kind
!= SyntaxKind.LoadKeyword) throw new ArgumentException(nameof(loadKeyword));
34024
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
34026
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
34036
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
34038
if (exclamationToken.
Kind
!= SyntaxKind.ExclamationToken) throw new ArgumentException(nameof(exclamationToken));
34040
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
34050
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
34052
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
34055
switch (content.
Kind
)
34063
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
34073
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
34075
if (nullableKeyword.
Kind
!= SyntaxKind.NullableKeyword) throw new ArgumentException(nameof(nullableKeyword));
34077
switch (settingToken.
Kind
)
34086
switch (targetToken.
Kind
)
34095
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
34109
switch (identifier.
Kind
)
34135
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
34156
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
34177
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
34179
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
34200
if (colonColonToken.
Kind
!= SyntaxKind.ColonColonToken) throw new ArgumentException(nameof(colonColonToken));
34221
switch (keyword.
Kind
)
34279
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
34281
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
34302
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
34322
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
34324
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
34335
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
34337
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
34357
switch (managedOrUnmanagedKeyword.
Kind
)
34382
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
34384
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
34404
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
34425
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
34445
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34447
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34469
switch (identifier.
Kind
)
34495
if (omittedTypeArgumentToken.
Kind
!= SyntaxKind.OmittedTypeArgumentToken) throw new ArgumentException(nameof(omittedTypeArgumentToken));
34515
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
34518
switch (readOnlyKeyword.
Kind
)
34545
if (scopedKeyword.
Kind
!= SyntaxKind.ScopedKeyword) throw new ArgumentException(nameof(scopedKeyword));
34566
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34569
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34589
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34591
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34624
switch (operatorToken.
Kind
)
34657
if (awaitKeyword.
Kind
!= SyntaxKind.AwaitKeyword) throw new ArgumentException(nameof(awaitKeyword));
34686
switch (operatorToken.
Kind
)
34719
switch (operatorToken.
Kind
)
34746
if (operatorToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(operatorToken));
34767
if (operatorToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(operatorToken));
34807
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
34873
switch (operatorToken.
Kind
)
34937
switch (operatorToken.
Kind
)
34975
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
34978
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
34989
if (token.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token));
35009
if (token.
Kind
!= SyntaxKind.BaseKeyword) throw new ArgumentException(nameof(token));
35042
switch (token.
Kind
)
35078
if (token.
Kind
!= SyntaxKind.FieldKeyword) throw new ArgumentException(nameof(token));
35098
if (keyword.
Kind
!= SyntaxKind.MakeRefKeyword) throw new ArgumentException(nameof(keyword));
35100
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35103
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35113
if (keyword.
Kind
!= SyntaxKind.RefTypeKeyword) throw new ArgumentException(nameof(keyword));
35115
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35118
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35128
if (keyword.
Kind
!= SyntaxKind.RefValueKeyword) throw new ArgumentException(nameof(keyword));
35130
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35133
if (comma.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(comma));
35136
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35152
switch (keyword.
Kind
)
35159
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35162
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35172
if (keyword.
Kind
!= SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(keyword));
35174
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35177
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35187
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
35189
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35192
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35202
if (keyword.
Kind
!= SyntaxKind.TypeOfKeyword) throw new ArgumentException(nameof(keyword));
35204
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35207
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35217
if (keyword.
Kind
!= SyntaxKind.SizeOfKeyword) throw new ArgumentException(nameof(keyword));
35219
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35222
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35272
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35274
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35294
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35296
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35317
switch (refKindKeyword.
Kind
)
35406
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35409
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35420
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
35432
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
35442
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
35464
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
35483
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
35485
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
35505
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35526
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35538
if (withKeyword.
Kind
!= SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword));
35578
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35580
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
35582
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
35592
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35613
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35615
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35617
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35628
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
35649
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
35651
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35653
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35664
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35666
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35705
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
35726
if (withKeyword.
Kind
!= SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword));
35786
if (fromKeyword.
Kind
!= SyntaxKind.FromKeyword) throw new ArgumentException(nameof(fromKeyword));
35788
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35790
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
35801
if (letKeyword.
Kind
!= SyntaxKind.LetKeyword) throw new ArgumentException(nameof(letKeyword));
35803
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35805
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
35816
if (joinKeyword.
Kind
!= SyntaxKind.JoinKeyword) throw new ArgumentException(nameof(joinKeyword));
35818
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35820
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
35823
if (onKeyword.
Kind
!= SyntaxKind.OnKeyword) throw new ArgumentException(nameof(onKeyword));
35826
if (equalsKeyword.
Kind
!= SyntaxKind.EqualsKeyword) throw new ArgumentException(nameof(equalsKeyword));
35837
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
35839
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35859
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
35880
if (orderByKeyword.
Kind
!= SyntaxKind.OrderByKeyword) throw new ArgumentException(nameof(orderByKeyword));
35908
switch (ascendingOrDescendingKeyword.
Kind
)
35935
if (selectKeyword.
Kind
!= SyntaxKind.SelectKeyword) throw new ArgumentException(nameof(selectKeyword));
35956
if (groupKeyword.
Kind
!= SyntaxKind.GroupKeyword) throw new ArgumentException(nameof(groupKeyword));
35959
if (byKeyword.
Kind
!= SyntaxKind.ByKeyword) throw new ArgumentException(nameof(byKeyword));
35970
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
35972
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35993
if (omittedArraySizeExpressionToken.
Kind
!= SyntaxKind.OmittedArraySizeExpressionToken) throw new ArgumentException(nameof(omittedArraySizeExpressionToken));
36013
switch (stringStartToken.
Kind
)
36022
switch (stringEndToken.
Kind
)
36048
if (isKeyword.
Kind
!= SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword));
36069
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
36090
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
36111
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
36151
if (varKeyword.
Kind
!= SyntaxKind.VarKeyword) throw new ArgumentException(nameof(varKeyword));
36180
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36182
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36202
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
36204
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
36262
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36265
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36285
switch (operatorToken.
Kind
)
36341
switch (operatorToken.
Kind
)
36367
if (operatorToken.
Kind
!= SyntaxKind.NotKeyword) throw new ArgumentException(nameof(operatorToken));
36388
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
36390
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
36400
if (dotDotToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(dotDotToken));
36420
if (textToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(textToken));
36440
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
36443
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
36474
if (formatStringToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(formatStringToken));
36513
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
36515
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
36526
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36530
switch (semicolonToken.
Kind
)
36547
switch (awaitKeyword.
Kind
)
36556
switch (usingKeyword.
Kind
)
36565
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36594
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36614
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
36635
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36655
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
36675
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36677
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36698
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36718
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36738
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36740
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
36758
if (gotoKeyword.
Kind
!= SyntaxKind.GotoKeyword) throw new ArgumentException(nameof(gotoKeyword));
36761
switch (caseOrDefaultKeyword.
Kind
)
36770
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36780
if (breakKeyword.
Kind
!= SyntaxKind.BreakKeyword) throw new ArgumentException(nameof(breakKeyword));
36782
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36792
if (continueKeyword.
Kind
!= SyntaxKind.ContinueKeyword) throw new ArgumentException(nameof(continueKeyword));
36794
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36804
if (returnKeyword.
Kind
!= SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword));
36806
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36816
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
36818
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36834
if (yieldKeyword.
Kind
!= SyntaxKind.YieldKeyword) throw new ArgumentException(nameof(yieldKeyword));
36836
switch (returnOrBreakKeyword.
Kind
)
36843
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36853
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
36855
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36858
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36869
if (doKeyword.
Kind
!= SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword));
36872
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
36874
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36877
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36879
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36889
if (forKeyword.
Kind
!= SyntaxKind.ForKeyword) throw new ArgumentException(nameof(forKeyword));
36891
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36893
if (firstSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(firstSemicolonToken));
36895
if (secondSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(secondSemicolonToken));
36897
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36909
switch (awaitKeyword.
Kind
)
36917
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
36919
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36922
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36924
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
36927
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36939
switch (awaitKeyword.
Kind
)
36947
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
36949
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36952
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
36955
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36967
switch (awaitKeyword.
Kind
)
36975
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
36977
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36979
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36990
if (fixedKeyword.
Kind
!= SyntaxKind.FixedKeyword) throw new ArgumentException(nameof(fixedKeyword));
36992
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36995
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
37012
switch (keyword.
Kind
)
37038
if (unsafeKeyword.
Kind
!= SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(unsafeKeyword));
37059
if (lockKeyword.
Kind
!= SyntaxKind.LockKeyword) throw new ArgumentException(nameof(lockKeyword));
37061
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
37064
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
37075
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
37077
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
37080
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
37091
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
37112
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
37115
switch (openParenToken.
Kind
)
37125
switch (closeParenToken.
Kind
)
37133
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
37135
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
37163
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
37175
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
37197
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
37219
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
37221
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
37223
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
37234
if (equalsGreaterThanToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(equalsGreaterThanToken));
37245
if (tryKeyword.
Kind
!= SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword));
37256
if (catchKeyword.
Kind
!= SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword));
37267
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
37271
switch (identifier.
Kind
)
37279
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
37289
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
37291
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
37294
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
37304
if (finallyKeyword.
Kind
!= SyntaxKind.FinallyKeyword) throw new ArgumentException(nameof(finallyKeyword));
37325
if (endOfFileToken.
Kind
!= SyntaxKind.EndOfFileToken) throw new ArgumentException(nameof(endOfFileToken));
37335
if (externKeyword.
Kind
!= SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword));
37337
if (aliasKeyword.
Kind
!= SyntaxKind.AliasKeyword) throw new ArgumentException(nameof(aliasKeyword));
37339
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37341
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
37352
switch (globalKeyword.
Kind
)
37360
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
37363
switch (staticKeyword.
Kind
)
37372
switch (unsafeKeyword.
Kind
)
37381
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
37391
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
37394
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
37396
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
37399
switch (semicolonToken.
Kind
)
37415
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
37418
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
37428
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
37430
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
37441
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
37470
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
37472
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
37512
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
37532
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
37534
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
37555
switch (varianceKeyword.
Kind
)
37564
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37584
if (keyword.
Kind
!= SyntaxKind.ClassKeyword) throw new ArgumentException(nameof(keyword));
37586
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37589
switch (openBraceToken.
Kind
)
37598
switch (closeBraceToken.
Kind
)
37607
switch (semicolonToken.
Kind
)
37623
if (keyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(keyword));
37625
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37628
switch (openBraceToken.
Kind
)
37637
switch (closeBraceToken.
Kind
)
37646
switch (semicolonToken.
Kind
)
37662
if (keyword.
Kind
!= SyntaxKind.UnionKeyword) throw new ArgumentException(nameof(keyword));
37664
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37667
switch (openBraceToken.
Kind
)
37676
switch (closeBraceToken.
Kind
)
37685
switch (semicolonToken.
Kind
)
37701
if (keyword.
Kind
!= SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword));
37703
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37706
switch (openBraceToken.
Kind
)
37715
switch (closeBraceToken.
Kind
)
37724
switch (semicolonToken.
Kind
)
37748
switch (classOrStructKeyword.
Kind
)
37757
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37760
switch (openBraceToken.
Kind
)
37769
switch (closeBraceToken.
Kind
)
37778
switch (semicolonToken.
Kind
)
37794
if (enumKeyword.
Kind
!= SyntaxKind.EnumKeyword) throw new ArgumentException(nameof(enumKeyword));
37796
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37799
switch (openBraceToken.
Kind
)
37808
switch (closeBraceToken.
Kind
)
37817
switch (semicolonToken.
Kind
)
37833
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
37836
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37839
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
37849
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37859
if (keyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(keyword));
37862
switch (openBraceToken.
Kind
)
37871
switch (closeBraceToken.
Kind
)
37880
switch (semicolonToken.
Kind
)
37896
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
37955
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
37958
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
37968
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
37970
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
37972
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
37998
switch (classOrStructKeyword.
Kind
)
38006
switch (questionToken.
Kind
)
38051
if (defaultKeyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(defaultKeyword));
38071
if (allowsKeyword.
Kind
!= SyntaxKind.AllowsKeyword) throw new ArgumentException(nameof(allowsKeyword));
38091
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
38093
if (structKeyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(structKeyword));
38114
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
38124
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
38127
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
38138
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
38159
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
38163
switch (semicolonToken.
Kind
)
38180
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
38183
switch (checkedKeyword.
Kind
)
38191
switch (operatorToken.
Kind
)
38233
switch (semicolonToken.
Kind
)
38249
switch (implicitOrExplicitKeyword.
Kind
)
38256
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
38259
switch (checkedKeyword.
Kind
)
38270
switch (semicolonToken.
Kind
)
38286
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
38290
switch (semicolonToken.
Kind
)
38312
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
38314
switch (thisOrBaseKeyword.
Kind
)
38340
if (tildeToken.
Kind
!= SyntaxKind.TildeToken) throw new ArgumentException(nameof(tildeToken));
38342
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
38346
switch (semicolonToken.
Kind
)
38363
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
38366
switch (semicolonToken.
Kind
)
38382
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
38403
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
38406
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
38409
switch (semicolonToken.
Kind
)
38426
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
38430
switch (semicolonToken.
Kind
)
38446
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
38448
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
38478
switch (keyword.
Kind
)
38490
switch (semicolonToken.
Kind
)
38506
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
38508
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
38528
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
38530
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
38551
switch (identifier.
Kind
)
38609
if (endOfComment.
Kind
!= SyntaxKind.EndOfDocumentationCommentToken) throw new ArgumentException(nameof(endOfComment));
38639
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
38679
if (extensionKeyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(extensionKeyword));
38682
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
38693
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
38713
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
38716
switch (checkedKeyword.
Kind
)
38724
switch (operatorToken.
Kind
)
38771
switch (implicitOrExplicitKeyword.
Kind
)
38778
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
38781
switch (checkedKeyword.
Kind
)
38798
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
38800
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
38820
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
38822
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
38843
switch (refKindKeyword.
Kind
)
38854
switch (readOnlyKeyword.
Kind
)
38901
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
38904
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
38914
if (lessThanSlashToken.
Kind
!= SyntaxKind.LessThanSlashToken) throw new ArgumentException(nameof(lessThanSlashToken));
38917
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
38937
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
38940
if (slashGreaterThanToken.
Kind
!= SyntaxKind.SlashGreaterThanToken) throw new ArgumentException(nameof(slashGreaterThanToken));
38950
if (localName.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(localName));
38970
if (prefix.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(prefix));
38972
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
38993
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
38995
switch (startQuoteToken.
Kind
)
39002
switch (endQuoteToken.
Kind
)
39018
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
39020
switch (startQuoteToken.
Kind
)
39028
switch (endQuoteToken.
Kind
)
39044
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
39046
switch (startQuoteToken.
Kind
)
39054
switch (endQuoteToken.
Kind
)
39087
if (startCDataToken.
Kind
!= SyntaxKind.XmlCDataStartToken) throw new ArgumentException(nameof(startCDataToken));
39089
if (endCDataToken.
Kind
!= SyntaxKind.XmlCDataEndToken) throw new ArgumentException(nameof(endCDataToken));
39109
if (startProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionStartToken) throw new ArgumentException(nameof(startProcessingInstructionToken));
39112
if (endProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionEndToken) throw new ArgumentException(nameof(endProcessingInstructionToken));
39122
if (lessThanExclamationMinusMinusToken.
Kind
!= SyntaxKind.XmlCommentStartToken) throw new ArgumentException(nameof(lessThanExclamationMinusMinusToken));
39124
if (minusMinusGreaterThanToken.
Kind
!= SyntaxKind.XmlCommentEndToken) throw new ArgumentException(nameof(minusMinusGreaterThanToken));
39144
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39146
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
39149
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39159
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39161
if (elifKeyword.
Kind
!= SyntaxKind.ElifKeyword) throw new ArgumentException(nameof(elifKeyword));
39164
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39174
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39176
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
39178
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39188
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39190
if (endIfKeyword.
Kind
!= SyntaxKind.EndIfKeyword) throw new ArgumentException(nameof(endIfKeyword));
39192
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39202
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39204
if (regionKeyword.
Kind
!= SyntaxKind.RegionKeyword) throw new ArgumentException(nameof(regionKeyword));
39206
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39216
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39218
if (endRegionKeyword.
Kind
!= SyntaxKind.EndRegionKeyword) throw new ArgumentException(nameof(endRegionKeyword));
39220
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39230
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39232
if (errorKeyword.
Kind
!= SyntaxKind.ErrorKeyword) throw new ArgumentException(nameof(errorKeyword));
39234
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39244
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39246
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
39248
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39258
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39261
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39271
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39273
if (defineKeyword.
Kind
!= SyntaxKind.DefineKeyword) throw new ArgumentException(nameof(defineKeyword));
39275
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
39277
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39287
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39289
if (undefKeyword.
Kind
!= SyntaxKind.UndefKeyword) throw new ArgumentException(nameof(undefKeyword));
39291
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
39293
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39303
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39305
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
39307
switch (line.
Kind
)
39316
switch (file.
Kind
)
39324
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39334
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
39336
if (line.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(line));
39338
if (commaToken.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(commaToken));
39340
if (character.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(character));
39342
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
39352
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39354
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
39357
if (minusToken.
Kind
!= SyntaxKind.MinusToken) throw new ArgumentException(nameof(minusToken));
39361
switch (characterOffset.
Kind
)
39369
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
39371
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39381
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39383
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
39385
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
39387
switch (disableOrRestoreKeyword.
Kind
)
39394
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39404
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39406
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
39408
if (checksumKeyword.
Kind
!= SyntaxKind.ChecksumKeyword) throw new ArgumentException(nameof(checksumKeyword));
39410
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
39412
if (guid.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(guid));
39414
if (bytes.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(bytes));
39416
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39426
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39428
if (referenceKeyword.
Kind
!= SyntaxKind.ReferenceKeyword) throw new ArgumentException(nameof(referenceKeyword));
39430
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
39432
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39442
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39444
if (loadKeyword.
Kind
!= SyntaxKind.LoadKeyword) throw new ArgumentException(nameof(loadKeyword));
39446
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
39448
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39458
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39460
if (exclamationToken.
Kind
!= SyntaxKind.ExclamationToken) throw new ArgumentException(nameof(exclamationToken));
39462
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39472
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39474
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
39477
switch (content.
Kind
)
39485
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39495
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39497
if (nullableKeyword.
Kind
!= SyntaxKind.NullableKeyword) throw new ArgumentException(nameof(nullableKeyword));
39499
switch (settingToken.
Kind
)
39508
switch (targetToken.
Kind
)
39517
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
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)
978
if (!anyExtensionDeclarationSyntax && member.
Kind
== SyntaxKind.ExtensionBlockDeclaration)
1103
if (member.
Kind
== SyntaxKind.MethodDeclaration)
1117
if (modifier.
Kind
== SyntaxKind.ThisKeyword)
1130
switch (member.
Kind
)
1182
switch (member.
Kind
)
1280
switch (member.
Kind
)
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.HasFlag(TerminatorState.IsExpressionOrPatternInCaseLabelOfSwitchStatement) && @this.CurrentToken.
Kind
is SyntaxKind.ColonToken)
584
if (@this._termState.HasFlag(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 (745)
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
)
880
return IsPossibleStartOfTypeDeclaration(this.CurrentToken.
Kind
);
892
else if (this.PeekToken(1).
Kind
== SyntaxKind.NamespaceKeyword)
903
return this.CurrentToken.
Kind
== SyntaxKind.CloseBraceToken;
928
return this.CurrentToken.
Kind
== SyntaxKind.ExternKeyword
929
&& this.PeekToken(1) is {
Kind
: SyntaxKind.IdentifierToken, ContextualKind: SyntaxKind.AliasKeyword }
930
&& this.PeekToken(2).
Kind
== SyntaxKind.IdentifierToken
931
&& this.PeekToken(3).
Kind
== SyntaxKind.SemicolonToken;
941
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ExternKeyword);
969
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.UsingKeyword);
976
if (staticToken is null && unsafeToken != null && this.CurrentToken.
Kind
== SyntaxKind.StaticKeyword)
988
var isAliasToFunctionPointer = alias != null && this.CurrentToken.
Kind
== SyntaxKind.DelegateKeyword;
1007
type = _syntaxFactory.IdentifierName(CreateMissingToken(SyntaxKind.IdentifierToken, this.CurrentToken.
Kind
));
1019
if (type.IsMissing && this.PeekToken(1).
Kind
== SyntaxKind.SemicolonToken)
1030
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken
1032
&& this.PeekToken(2).
Kind
== SyntaxKind.ColonToken;
1050
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenBracketToken)
1068
if (SyntaxFacts.IsLiteralExpression(this.CurrentToken.
Kind
))
1112
return this.CurrentToken.
Kind
== SyntaxKind.CloseBracketToken
1117
=> IsSomeWord(this.CurrentToken.
Kind
) && this.PeekToken(1).
Kind
== SyntaxKind.ColonToken;
1162
if (this.CurrentToken.
Kind
== SyntaxKind.DotToken)
1168
if (this.CurrentToken.
Kind
== SyntaxKind.MinusGreaterThanToken)
1173
if (this.CurrentToken.
Kind
== SyntaxKind.QuestionToken &&
1174
this.PeekToken(1).
Kind
== SyntaxKind.DotToken)
1186
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleAttribute(),
1187
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
1216
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
1241
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleAttributeArgument(),
1242
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
1251
if (argument.expression is LiteralExpressionSyntax {
Kind
: SyntaxKind.StringLiteralExpression, Token: var literalToken } &&
1257
if (argument.expression is InterpolatedStringExpressionSyntax { StringStartToken.
Kind
: SyntaxKind.InterpolatedStringStartToken, StringEndToken.IsMissing: true })
1276
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
1278
switch (this.PeekToken(1).
Kind
)
1300
=> GetModifierExcludingScoped(token.
Kind
, token.ContextualKind);
1400
else if (nextToken.
Kind
== SyntaxKind.NamespaceKeyword)
1406
nextToken.
Kind
is SyntaxKind.EnumKeyword or SyntaxKind.DelegateKeyword ||
1407
(IsPossibleStartOfTypeDeclaration(nextToken.
Kind
) && GetModifierExcludingScoped(nextToken) != DeclarationModifiers.None))
1493
Debug.Assert(modTok.
Kind
is not (SyntaxKind.OutKeyword or SyntaxKind.InKeyword));
1516
if (token.
Kind
== SyntaxKind.StructKeyword)
1548
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && GetModifierExcludingScoped(this.CurrentToken) != DeclarationModifiers.None);
1584
var currentTokenKind = this.CurrentToken.
Kind
;
1587
(currentTokenKind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && PeekToken(1).
Kind
== SyntaxKind.OperatorKeyword))
1606
var currentTokenKind = this.CurrentToken.
Kind
;
1624
if (SyntaxFacts.IsPredefinedType(this.CurrentToken.
Kind
))
1668
switch (nextToken.
Kind
)
1706
if (this.PeekToken(1).
Kind
== SyntaxKind.EventKeyword)
1713
if (this.PeekToken(1).
Kind
== SyntaxKind.IdentifierToken &&
1714
this.PeekToken(2).
Kind
== SyntaxKind.OpenParenToken)
1735
switch (this.CurrentToken.
Kind
)
1738
if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).
Kind
== SyntaxKind.UsingKeyword)
1758
switch (this.CurrentToken.
Kind
)
1780
throw ExceptionUtilities.UnexpectedValue(this.CurrentToken.
Kind
);
1786
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.ClassKeyword or SyntaxKind.StructKeyword or SyntaxKind.InterfaceKeyword ||
1797
bool isExtension = keyword.
Kind
== SyntaxKind.ExtensionKeyword;
1798
bool isUnion = keyword.
Kind
== SyntaxKind.UnionKeyword;
1809
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
1822
var paramList = CurrentToken.
Kind
== SyntaxKind.OpenParenToken || isExtension
1845
if (CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
1869
SyntaxKind kind = this.CurrentToken.
Kind
;
1877
var member = this.ParseMemberDeclaration(keyword.
Kind
);
1905
? this.CreateMissingToken(SyntaxKind.CloseBraceToken, this.CurrentToken.
Kind
)
1931
recordModifier = this.CurrentToken.
Kind
is SyntaxKind.ClassKeyword or SyntaxKind.StructKeyword
1938
if (this.CurrentToken.
Kind
is SyntaxKind.StructKeyword or SyntaxKind.ClassKeyword &&
1940
this.PeekToken(2).
Kind
is SyntaxKind.IdentifierToken)
1951
recordModifier = SyntaxFactory.MissingToken(misplacedToken.
Kind
);
1967
switch (keyword.
Kind
)
2038
SyntaxKind declarationKind = recordModifier?.
Kind
== SyntaxKind.StructKeyword ? SyntaxKind.RecordStructDeclaration : SyntaxKind.RecordDeclaration;
2071
throw ExceptionUtilities.UnexpectedValue(keyword.
Kind
);
2108
SyntaxKind kind = this.CurrentToken.
Kind
;
2112
!(kind == SyntaxKind.DelegateKeyword && this.PeekToken(1).
Kind
is SyntaxKind.OpenBraceToken or SyntaxKind.OpenParenToken))
2156
return this.IsPossibleMemberStart() || this.CurrentToken.
Kind
== SyntaxKind.CloseBraceToken;
2161
return this.CurrentToken.
Kind
is SyntaxKind.ColonToken or SyntaxKind.OpenBraceToken
2178
list.Add(this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken
2185
if (this.CurrentToken.
Kind
is 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
)
2647
switch (this.CurrentToken.
Kind
)
2650
if (this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken)
2654
else if (this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
2661
if (this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
2693
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
2727
if (this.CurrentToken.
Kind
== SyntaxKind.ConstKeyword)
2740
if (this.CurrentToken.
Kind
== SyntaxKind.EventKeyword)
2746
if (this.CurrentToken.
Kind
== SyntaxKind.FixedKeyword)
2758
if (this.CurrentToken.
Kind
== SyntaxKind.NamespaceKeyword)
2776
if ((!haveAttributes || !IsScript) && !haveModifiers && (type.
Kind
== SyntaxKind.RefType || !IsOperatorStart(out _, advanceParser: false)))
2780
if (this.CurrentToken.
Kind
is not SyntaxKind.CloseBraceToken and not SyntaxKind.EndOfFileToken &&
2868
!type.IsMissing && type.
Kind
!= SyntaxKind.RefType &&
2999
switch (statement?.
Kind
)
3007
statement is ExpressionStatementSyntax { Expression.
Kind
: SyntaxKind.IdentifierName, SemicolonToken.IsMissing: true }:
3021
if (CurrentToken.
Kind
== SyntaxKind.UsingKeyword)
3026
if (CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).
Kind
== SyntaxKind.UsingKeyword)
3082
if (attributes.Count == 0 && modifiers.Count == 0 && type.IsMissing && type.
Kind
!= SyntaxKind.RefType)
3172
if (type.
Kind
!= SyntaxKind.RefType &&
3175
|| this.CurrentToken.
Kind
is not SyntaxKind.OpenParenToken and not SyntaxKind.OpenBraceToken and not SyntaxKind.EqualsGreaterThanToken) &&
3200
if (identifierOrThisOpt?.
Kind
== SyntaxKind.ThisKeyword)
3221
var kind = this.PeekToken(index).
Kind
;
3230
kind = this.PeekToken(index + 1).
Kind
;
3283
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
3289
if (this.CurrentToken.
Kind
== SyntaxKind.TildeToken)
3295
if (this.CurrentToken.
Kind
== SyntaxKind.ConstKeyword)
3301
if (this.CurrentToken.
Kind
== SyntaxKind.EventKeyword)
3307
if (this.CurrentToken.
Kind
== SyntaxKind.FixedKeyword)
3347
if (type.
Kind
!= SyntaxKind.RefType)
3416
(IsFeatureEnabled(MessageID.IDS_FeatureExtensions) || this.PeekToken(1).
Kind
== SyntaxKind.LessThanToken);
3427
if (type.
Kind
!= SyntaxKind.IdentifierName)
3430
if (identifierOrThisOpt.
Kind
!= SyntaxKind.IdentifierToken)
3447
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
3452
if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).
Kind
== SyntaxKind.UsingKeyword)
3473
switch (this.PeekToken(1).
Kind
)
3490
return this.CurrentToken.
Kind
is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.OperatorKeyword;
3512
if (token.
Kind
!= SyntaxKind.None)
3548
var currentTokenKind = this.CurrentToken.
Kind
;
3551
this.PeekToken(1).
Kind
is SyntaxKind.ThisKeyword or SyntaxKind.BaseKeyword &&
3552
this.PeekToken(2).
Kind
is SyntaxKind.OpenParenToken);
3565
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.ColonToken or SyntaxKind.EqualsGreaterThanToken);
3568
var token = this.CurrentToken.
Kind
is SyntaxKind.BaseKeyword or SyntaxKind.ThisKeyword
3572
var argumentList = this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken
3580
token.
Kind
== SyntaxKind.BaseKeyword
3590
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.TildeToken);
3616
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
3624
blockBody = this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
3628
expressionBody = this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken
3639
else if (parseSemicolonAfterBlock && this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
3651
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
3657
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
3663
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
3679
=> this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.OpenBraceToken;
3683
return this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.OpenBraceToken;
3687
=> this.CurrentToken.
Kind
is SyntaxKind.DotToken or SyntaxKind.ColonColonToken;
3690
=> this.CurrentToken.
Kind
== (errored ? SyntaxKind.CloseParenToken : SyntaxKind.GreaterThanToken);
3693
=> this.CurrentToken.
Kind
== SyntaxKind.CloseBracketToken;
3715
else if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
3765
switch (this.CurrentToken.
Kind
)
3784
if (this.CurrentToken.
Kind
is not (SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword))
3788
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
3798
if (this.CurrentToken.
Kind
== SyntaxKind.OperatorKeyword)
3812
(IsMakingProgress(ref lastTokenPosition, assertIfFalse: false) && this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken))
3818
separatorKind = this.CurrentToken.
Kind
;
3840
if (this.CurrentToken.
Kind
!= SyntaxKind.OperatorKeyword ||
3845
else if (this.PeekToken(1).
Kind
is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword)
3847
possibleConversion = !SyntaxFacts.IsAnyOverloadableOperator(this.PeekToken(2).
Kind
);
3851
possibleConversion = !SyntaxFacts.IsAnyOverloadableOperator(this.PeekToken(1).
Kind
);
3862
var style = this.CurrentToken.
Kind
is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword
3872
if (!style.IsMissing && explicitInterfaceOpt is not null && this.CurrentToken.
Kind
!= SyntaxKind.OperatorKeyword && style.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia))
3904
bool couldBeParameterList = this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken;
3909
this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
3940
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
3957
if (this.CurrentToken.
Kind
== SyntaxKind.OperatorKeyword)
3967
(IsMakingProgress(ref lastTokenPosition, assertIfFalse: false) && this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken);
3974
if (separator?.
Kind
== SyntaxKind.ColonColonToken)
3994
if (separator.
Kind
!= SyntaxKind.DotToken)
3996
separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.
Kind
, separator.GetLeadingTriviaWidth(), separator.Width));
4006
if (CurrentToken.
Kind
== SyntaxKind.UncheckedKeyword)
4026
if (firstToken.
Kind
is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword &&
4027
this.PeekToken(1).
Kind
is SyntaxKind.OperatorKeyword)
4058
if (SyntaxFacts.IsAnyOverloadableOperator(this.CurrentToken.
Kind
))
4067
if (this.CurrentToken.
Kind
is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)
4100
if (opToken.
Kind
== SyntaxKind.GreaterThanToken)
4104
if (tk.
Kind
== SyntaxKind.GreaterThanToken)
4111
if (tk.
Kind
== SyntaxKind.GreaterThanToken &&
4118
else if (tk.
Kind
== SyntaxKind.GreaterThanEqualsToken &&
4132
else if (tk.
Kind
== SyntaxKind.GreaterThanEqualsToken &&
4141
var opKind = opToken.
Kind
;
4225
Debug.Assert(thisKeyword.
Kind
== SyntaxKind.ThisKeyword);
4241
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken)
4249
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
4258
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken
4293
if (this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken)
4301
var accessorList = this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
4309
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken)
4315
else if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
4327
else if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
4412
if (this.CurrentToken.
Kind
== SyntaxKind.CloseBraceToken)
4447
var refKeyword = this.CurrentToken.
Kind
== SyntaxKind.RefKeyword && !this.IsPossibleLambdaExpression(Precedence.Expression)
4458
static p => p.CurrentToken.
Kind
!= SyntaxKind.CloseBraceToken && !p.IsPossibleAccessor(),
4465
return this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken
4468
|| this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken // for accessor blocks w/ missing keyword
4469
|| this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken // for empty body accessors w/ missing keyword
4503
if (token.
Kind
is SyntaxKind.CloseBraceToken or SyntaxKind.EndOfFileToken)
4721
bool currentTokenIsSemicolon = this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken;
4722
bool currentTokenIsArrow = this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken;
4723
bool currentTokenIsOpenBraceToken = this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken;
4905
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleParameter(),
4906
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
4913
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken;
4918
switch (this.CurrentToken.
Kind
)
4932
IsPredefinedType(this.CurrentToken.
Kind
);
4992
if (this.CurrentToken.
Kind
== SyntaxKind.ArgListKeyword)
5003
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && IsCurrentTokenWhereOfConstraintClause())
5010
identifier = identifierIsOptional && this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken
5016
if (identifier is not null && this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken && this.PeekToken(1).
Kind
is SyntaxKind.CloseBracketToken)
5043
switch (token.
Kind
)
5093
if (this.PeekToken(1).
Kind
is not (SyntaxKind.CloseParenToken or SyntaxKind.CommaToken or SyntaxKind.EqualsToken))
5111
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.FixedKeyword);
5129
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.EventKeyword);
5153
if (explicitInterfaceOpt != null && this.CurrentToken.
Kind
is not SyntaxKind.OpenBraceToken and not SyntaxKind.SemicolonToken)
5178
else if (identifierOrThisOpt.
Kind
!= SyntaxKind.IdentifierToken)
5180
Debug.Assert(identifierOrThisOpt.
Kind
== SyntaxKind.ThisKeyword);
5189
Debug.Assert(identifier.
Kind
== SyntaxKind.IdentifierToken);
5205
if (explicitInterfaceOpt != null && this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5232
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5251
if (modifiers is [.., SyntaxToken {
Kind
: SyntaxKind.ScopedKeyword } scopedKeyword])
5285
if (this.CurrentToken.
Kind
== SyntaxKind.DotToken)
5301
return this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken;
5366
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5370
else if (stopOnCloseParen && this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken)
5374
else if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
5389
if (flags.HasFlag(VariableFlags.ForStatement) && this.PeekToken(1).
Kind
!= SyntaxKind.SemicolonToken)
5393
this.PeekToken(2).
Kind
is SyntaxKind.CommaToken or SyntaxKind.EqualsToken or SyntaxKind.SemicolonToken;
5424
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
5425
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
5580
var currentTokenKind = this.CurrentToken.
Kind
;
5591
currentTokenKind = this.CurrentToken.
Kind
;
5641
switch (this.CurrentToken.
Kind
)
5652
var refKeyword = isLocalOrField && !isConst && this.CurrentToken.
Kind
== SyntaxKind.RefKeyword && !this.IsPossibleLambdaExpression(Precedence.Expression)
5710
bool isOmitted = expression.
Kind
== SyntaxKind.OmittedArraySizeExpression;
5729
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
5747
Debug.Assert(this.CurrentToken.
Kind
!= SyntaxKind.EqualsToken);
5764
if (parentType.
Kind
== SyntaxKind.ArrayType)
5787
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
5801
this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken &&
5802
this.PeekToken(1).
Kind
is SyntaxKind.IdentifierToken or SyntaxKind.CommaToken or SyntaxKind.EqualsToken or SyntaxKind.SemicolonToken or SyntaxKind.CloseParenToken or SyntaxKind.EndOfFileToken;
5826
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken or SyntaxKind.LessThanToken);
5834
(this.CurrentToken.
Kind
is SyntaxKind.OpenBraceToken or SyntaxKind.EqualsGreaterThanToken ||
5845
switch (this.CurrentToken.
Kind
)
5857
return this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
5864
return this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken || this.IsPossibleExpression();
5883
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DelegateKeyword);
5916
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.EnumKeyword);
5931
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
5947
if (CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5992
static p => p.CurrentToken.
Kind
is not SyntaxKind.CommaToken and not SyntaxKind.SemicolonToken && !p.IsPossibleEnumMemberDeclaration(),
5993
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
6008
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
6013
this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseBraceToken
6023
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken || this.IsTrueIdentifier();
6028
return this.CurrentToken.
Kind
is SyntaxKind.DotToken or SyntaxKind.ColonColonToken;
6067
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
6087
token.
Kind
== SyntaxKind.IdentifierToken &&
6107
var ctk = this.CurrentToken.
Kind
;
6165
if (this.CurrentToken.
Kind
!= SyntaxKind.LessThanToken)
6195
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
6196
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
6208
if (this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken or SyntaxKind.InKeyword or SyntaxKind.OutKeyword)
6217
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
6236
this.CurrentToken.
Kind
is SyntaxKind.InKeyword or SyntaxKind.OutKeyword ? EatToken() : null,
6253
if (this.CurrentToken.
Kind
== SyntaxKind.LessThanToken)
6263
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6288
if (this.CurrentToken.
Kind
!= SyntaxKind.LessThanToken)
6336
Debug.Assert(greaterThanToken.
Kind
== SyntaxKind.GreaterThanToken);
6338
switch (this.CurrentToken.
Kind
)
6372
case SyntaxKind.GreaterThanToken when ((options & NameOptions.AfterIs) != 0) && this.PeekToken(1).
Kind
!= SyntaxKind.GreaterThanToken:
6393
(options & NameOptions.AfterTupleComma) != 0 && this.PeekToken(1).
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken ||
6394
(options & NameOptions.FirstElementOfPossibleTupleLiteral) != 0 && this.PeekToken(1).
Kind
== SyntaxKind.CommaToken)
6420
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6430
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
6433
Debug.Assert(start.
Kind
== SyntaxKind.LessThanToken);
6434
Debug.Assert(greaterThanToken.
Kind
== SyntaxKind.GreaterThanToken);
6447
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
6453
if (this.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken)
6462
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
6497
isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken;
6524
isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken;
6546
isDefinitelyTypeArgumentList = this.CurrentToken.
Kind
== SyntaxKind.CommaToken;
6564
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken);
6566
if (this.CurrentToken.
Kind
!= SyntaxKind.GreaterThanToken)
6572
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken)
6581
if (lastScannedType is ScanTypeFlags.TupleType && this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken)
6594
isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken;
6606
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6616
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
6633
if (this.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken)
6649
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken && tokenBreaksTypeArgumentList(this.PeekToken(1)))
6658
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken
6659
&& this.PeekToken(1).
Kind
is SyntaxKind.CloseBracketToken)
6664
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken || this.IsPossibleType())
6689
switch (token.
Kind
)
6734
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleType(),
6735
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken,
6743
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken && this.PeekToken(1).
Kind
!= SyntaxKind.CloseBracketToken)
6759
var varianceToken = this.CurrentToken.
Kind
is SyntaxKind.InKeyword or SyntaxKind.OutKeyword
6786
this.CurrentToken.
Kind
is not SyntaxKind.CommaToken and not SyntaxKind.GreaterThanToken &&
6787
this.PeekToken(1).
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken)
6808
=> this.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken;
6812
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6814
while (this.PeekToken(n).
Kind
== SyntaxKind.CommaToken)
6817
return this.PeekToken(n).
Kind
== SyntaxKind.GreaterThanToken;
6850
if (this.CurrentToken.
Kind
== SyntaxKind.ThisKeyword)
6876
if (separator != null && separator.
Kind
== SyntaxKind.ColonColonToken)
6895
if (separator.
Kind
!= SyntaxKind.DotToken)
6897
separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.
Kind
, separator.GetLeadingTriviaWidth(), separator.Width));
6901
if (isEvent && this.CurrentToken.
Kind
is not SyntaxKind.OpenBraceToken and not SyntaxKind.SemicolonToken)
6972
separator = this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken
6985
if (this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken)
7014
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
7050
if (separator != null && separator.
Kind
== SyntaxKind.ColonColonToken)
7077
if (separator.
Kind
!= SyntaxKind.DotToken)
7079
separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.
Kind
, separator.GetLeadingTriviaWidth(), separator.Width));
7090
return this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken
7102
if (this.PeekToken(1).
Kind
== SyntaxKind.ThisKeyword)
7119
Debug.Assert(separator.
Kind
is SyntaxKind.DotToken or SyntaxKind.ColonColonToken);
7122
switch (separator.
Kind
)
7128
if (left.
Kind
!= SyntaxKind.IdentifierName)
7220
var tk = this.CurrentToken.
Kind
;
7241
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken || !this.IsTrueIdentifier())
7248
if (this.CurrentToken.
Kind
== SyntaxKind.LessThanToken)
7263
if (this.CurrentToken.
Kind
== SyntaxKind.RefKeyword)
7268
if (this.CurrentToken.
Kind
== SyntaxKind.ReadOnlyKeyword)
7275
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken or SyntaxKind.ColonColonToken)
7278
if (this.CurrentToken.
Kind
is SyntaxKind.ColonColonToken)
7292
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken);
7295
isAlias = this.PeekToken(1).
Kind
== SyntaxKind.ColonColonToken;
7332
else if (IsPredefinedType(this.CurrentToken.
Kind
))
7338
else if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
7343
if (result == ScanTypeFlags.NotType || mode == ParseTypeMode.DefinitePattern && this.CurrentToken.
Kind
!= SyntaxKind.OpenBracketToken)
7363
switch (this.CurrentToken.
Kind
)
7366
when lastTokenOfType.
Kind
is not SyntaxKind.QuestionToken // don't allow `Type??`
7404
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7409
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
7442
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7460
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken);
7462
if (this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken)
7484
if (CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
7492
case var _ when peek1.
Kind
== SyntaxKind.OpenBracketToken:
7502
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
7519
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.CommaToken);
7542
var validStartingToken = EatToken().
Kind
== SyntaxKind.LessThanToken;
7572
if (!validStartingToken && CurrentToken.
Kind
== SyntaxKind.CloseParenToken)
7586
isNotExpectedFunction: static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
7607
if (this.CurrentToken.
Kind
== SyntaxKind.VoidKeyword && this.PeekToken(1).
Kind
!= SyntaxKind.AsteriskToken)
7632
if (this.CurrentToken.
Kind
== SyntaxKind.RefKeyword)
7636
this.CurrentToken.
Kind
== SyntaxKind.ReadOnlyKeyword ? this.EatToken() : null,
7680
switch (this.CurrentToken.
Kind
)
7728
while (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken);
7749
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.QuestionToken);
7755
if (typeParsedSoFar.
Kind
is SyntaxKind.NullableType or SyntaxKind.PointerType)
7772
if (mode == ParseTypeMode.AfterIs && this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken)
7782
switch (this.PeekToken(1).
Kind
)
7799
return this.CurrentToken.
Kind
!= SyntaxKind.ColonToken;
7844
var nextTokenKind = nextToken.
Kind
;
7889
if (this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken)
7898
this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken or // ctor parameters
7912
switch (this.PeekToken(i).
Kind
)
7933
while (IsMakingProgress(ref lastTokenPosition) && this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
7935
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7948
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
7989
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken)
7993
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
8028
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleExpression(),
8029
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.CloseBracketToken,
8035
if (IsPredefinedType(this.CurrentToken.
Kind
))
8039
if (token.
Kind
== SyntaxKind.VoidKeyword && this.CurrentToken.
Kind
!= SyntaxKind.AsteriskToken)
8048
if (IsTrueIdentifier() || this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken)
8053
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
8119
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.CommaToken);
8130
lessThanToken.IsMissing && CurrentToken.
Kind
== SyntaxKind.CloseParenToken
8145
isNotExpectedFunction: static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
8153
if (CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
8169
case var _ when peek1.
Kind
== SyntaxKind.OpenBracketToken:
8181
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
8199
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.CommaToken);
8215
if (managedSpecifier.
Kind
== SyntaxKind.ManagedKeyword && unmanagedCallingConventions != null)
8229
=> CurrentToken.
Kind
== SyntaxKind.DelegateKeyword && PeekToken(1).
Kind
== SyntaxKind.AsteriskToken;
8234
=> token.
Kind
== SyntaxKind.LessThanToken || token.
Kind
== SyntaxKind.OpenParenToken;
8240
while (this.CurrentToken.
Kind
== SyntaxKind.AsteriskToken)
8260
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenBracketToken)
8274
while (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
8284
var isCollectionExpression = this.CurrentToken.
Kind
8297
|| IsExpectedBinaryOperator(this.CurrentToken.
Kind
)
8298
|| IsExpectedAssignmentOperator(this.CurrentToken.
Kind
)
8299
|| (this.CurrentToken.ContextualKind is SyntaxKind.SwitchKeyword or SyntaxKind.WithKeyword && this.PeekToken(1).
Kind
is SyntaxKind.OpenBraceToken);
8303
this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
8362
switch (this.CurrentToken.
Kind
)
8494
this.PeekToken(1).
Kind
== SyntaxKind.ForEachKeyword)
8500
if (PeekToken(2).
Kind
== SyntaxKind.OpenParenToken)
8527
=> PeekToken(1).
Kind
== SyntaxKind.OpenParenToken ? ParseUsingStatement(attributes) : ParseLocalDeclarationStatement(attributes);
8532
return PeekToken(1).
Kind
switch
8555
=> CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword && PeekToken(1).
Kind
== SyntaxKind.UsingKeyword;
8559
return this.PeekToken(1).
Kind
== SyntaxKind.ColonToken && this.IsTrueIdentifier();
8565
this.PeekToken(1).
Kind
is SyntaxKind.ReturnKeyword or SyntaxKind.BreakKeyword;
8574
var tk = this.CurrentToken.
Kind
;
8578
this.PeekToken(1).
Kind
is not SyntaxKind.DotToken // e.g. `int.Parse()` is an expression
8587
Debug.Assert(PeekToken(1).
Kind
!= SyntaxKind.OpenParenToken);
8593
Debug.Assert(PeekToken(2).
Kind
!= SyntaxKind.OpenParenToken);
8643
if (token1.
Kind
== SyntaxKind.DotToken &&
8646
if (PeekToken(2).
Kind
== SyntaxKind.IdentifierToken &&
8647
PeekToken(3).
Kind
== SyntaxKind.IdentifierToken)
8662
var token4Kind = PeekToken(4).
Kind
;
8682
if (st == ScanTypeFlags.MustBeType && this.CurrentToken.
Kind
is not SyntaxKind.DotToken and not SyntaxKind.OpenParenToken)
8692
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
8700
return st == ScanTypeFlags.GenericTypeOrExpression && (IsDefiniteStatement() || IsTypeDeclarationStart() || IsAccessibilityModifier(CurrentToken.
Kind
));
8721
if (this.CurrentToken.
Kind
!= SyntaxKind.UsingKeyword)
8726
var tk = PeekToken(1).
Kind
;
8787
if (this.CurrentToken.
Kind
is SyntaxKind.OpenBraceToken)
8793
if (identifierOrThisOpt.
Kind
== SyntaxKind.ThisKeyword)
8808
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
8815
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
8824
return this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.SemicolonToken;
8842
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken || this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword)
8849
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
8874
if (parameter.Modifiers[i].
Kind
== SyntaxKind.ParamsKeyword)
8884
if (parameter.Identifier.
Kind
== SyntaxKind.ArgListKeyword)
8889
else if (parameter.Type.
Kind
== SyntaxKind.NullableType)
8909
else if (parameter.Type.
Kind
== SyntaxKind.IdentifierName &&
8941
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DelegateKeyword);
8946
if (nextToken.
Kind
== SyntaxKind.OpenBraceToken)
8952
if (nextToken.
Kind
!= SyntaxKind.OpenParenToken)
8969
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
8978
if (scanResult == ScanTypeFlags.TupleType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
8989
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.NewKeyword);
8996
switch (nextToken.
Kind
)
9024
if (SyntaxFacts.GetBaseTypeDeclarationKind(nextToken.
Kind
) != SyntaxKind.None)
9032
if (SyntaxFacts.IsPredefinedType(PeekToken(2).
Kind
))
9039
if (IsTypeModifierOrTypeKeyword(PeekToken(2).
Kind
))
9077
switch (next.
Kind
)
9134
CSharpSyntaxNode openBrace = isAccessorBody && this.CurrentToken.
Kind
!= SyntaxKind.OpenBraceToken
9215
while (this.CurrentToken.
Kind
is not SyntaxKind.CloseBraceToken and not SyntaxKind.EndOfFileToken
9247
return this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
9259
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.CloseBraceToken,
9267
var tk = this.CurrentToken.
Kind
;
9304
var tk = this.CurrentToken.
Kind
;
9349
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.OpenBraceToken or SyntaxKind.SemicolonToken;
9375
if (statement.
Kind
== SyntaxKind.ExpressionStatement &&
9414
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.TryKeyword or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword);
9427
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword);
9441
if (this.CurrentToken.
Kind
== SyntaxKind.CatchKeyword)
9444
while (this.CurrentToken.
Kind
== SyntaxKind.CatchKeyword)
9450
if (this.CurrentToken.
Kind
== SyntaxKind.FinallyKeyword)
9485
return this.CurrentToken.
Kind
is SyntaxKind.CloseBraceToken or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword;
9490
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.CatchKeyword);
9497
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
9549
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken
9558
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken
9566
return this.CurrentToken.
Kind
is SyntaxKind.CloseBraceToken
9573
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword);
9575
if (this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
9582
SyntaxFacts.GetCheckStatement(keyword.
Kind
),
9590
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DoKeyword);
9614
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken;
9631
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ForKeyword);
9633
if (this.EatToken().
Kind
== SyntaxKind.OpenParenToken &&
9635
this.EatToken().
Kind
== SyntaxKind.IdentifierToken &&
9636
this.EatToken().
Kind
== SyntaxKind.InKeyword)
9652
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ForKeyword);
9662
var condition = this.CurrentToken.
Kind
is not SyntaxKind.SemicolonToken and not SyntaxKind.CommaToken
9671
var incrementors = this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken
9702
if (this.PeekToken(1).
Kind
== SyntaxKind.RefKeyword)
9709
isDeclaration = ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken;
9713
else if (this.CurrentToken.
Kind
== SyntaxKind.RefKeyword)
9730
else if (this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken)
9745
=> this.CurrentToken.
Kind
is SyntaxKind.CommaToken
9753
while (this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.CommaToken)
9777
if (@this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken)
9781
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleExpression(),
9782
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind || p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
9789
return this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.CloseParenToken or SyntaxKind.OpenBraceToken;
9796
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ForEachKeyword || this.CurrentToken.
Kind
== SyntaxKind.ForKeyword);
9807
if (this.CurrentToken.
Kind
== SyntaxKind.ForKeyword)
9833
if (decl.designation.
Kind
!= SyntaxKind.ParenthesizedVariableDesignation)
9837
switch (decl.designation.
Kind
)
9845
Debug.Assert(discard.
Kind
== SyntaxKind.UnderscoreToken);
9849
throw ExceptionUtilities.UnexpectedValue(decl.designation.
Kind
);
9912
if (ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
9917
if (this.PeekToken(1).
Kind
== SyntaxKind.CommaToken)
9925
if (this.PeekToken(1).
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken)
9951
if (!ScanDesignation(permitTupleDesignation && (typeIsVar || IsPredefinedType(lastTokenOfType.
Kind
))))
9959
return this.CurrentToken.
Kind
== SyntaxKind.CommaToken;
9961
return this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken;
9979
switch (this.PeekToken(1).
Kind
)
9995
switch (variable.
Kind
)
10013
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.GotoKeyword);
10021
if (this.CurrentToken.
Kind
is SyntaxKind.CaseKeyword or SyntaxKind.DefaultKeyword)
10024
if (caseOrDefault.
Kind
== SyntaxKind.CaseKeyword)
10049
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken)
10060
if (this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken &&
10061
this.PeekToken(1).
Kind
!= SyntaxKind.EqualsGreaterThanToken &&
10079
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.IfKeyword);
10092
var elseKeyword = this.CurrentToken.
Kind
!= SyntaxKind.ElseKeyword ?
10103
if (this.CurrentToken.
Kind
!= SyntaxKind.IfKeyword)
10144
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ElseKeyword);
10158
return this.CurrentToken.
Kind
!= SyntaxKind.ElseKeyword
10167
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LockKeyword);
10179
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ReturnKeyword);
10183
this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken ? this.ParsePossibleRefExpression() : null,
10196
if (this.CurrentToken.
Kind
== SyntaxKind.BreakKeyword)
10205
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
10226
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.SwitchKeyword or SyntaxKind.CaseKeyword);
10251
if (this.CurrentToken.
Kind
is SyntaxKind.CaseKeyword)
10265
if (expression.
Kind
== SyntaxKind.ParenthesizedExpression)
10274
else if (expression.
Kind
== SyntaxKind.TupleExpression)
10296
return this.CurrentToken.
Kind
== SyntaxKind.CaseKeyword ||
10297
(this.CurrentToken.
Kind
== SyntaxKind.DefaultKeyword && this.PeekToken(1).
Kind
!= SyntaxKind.OpenParenToken);
10311
if (this.CurrentToken.
Kind
== SyntaxKind.CaseKeyword)
10315
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
10330
if (node.
Kind
== SyntaxKind.DiscardPattern)
10352
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DefaultKeyword);
10374
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ThrowKeyword);
10378
this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken ? this.ParseExpressionCore() : null,
10384
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.UnsafeKeyword);
10452
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
10459
switch (this.PeekToken(1).
Kind
)
10479
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken &&
10480
declaration.Type.
Kind
== SyntaxKind.NullableType &&
10481
SyntaxFacts.IsName(((NullableTypeSyntax)declaration.Type).ElementType.
Kind
) &&
10511
bool condition1 = st == ScanTypeFlags.MustBeType && this.CurrentToken.
Kind
!= SyntaxKind.DotToken;
10512
bool condition2 = st != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken;
10513
bool condition3 = st == ScanTypeFlags.NonGenericTypeOrExpression || this.PeekToken(1).
Kind
== SyntaxKind.EqualsToken;
10520
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.WhileKeyword);
10534
Debug.Assert(this.IsTrueIdentifier() && this.PeekToken(1).
Kind
== SyntaxKind.ColonToken);
10555
else if (this.CurrentToken.
Kind
== SyntaxKind.UsingKeyword)
10685
return this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken;
10687
else if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
10712
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
10720
done = (this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken);
10733
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
10844
if (allowLocalFunctions && localFunction == null && type is PredefinedTypeSyntax { Keyword.
Kind
: SyntaxKind.VoidKeyword })
10854
switch (this.CurrentToken.
Kind
)
10904
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken);
10910
if (IsDeclarationModifier(this.CurrentToken.
Kind
) ||
10911
IsAdditionalLocalFunctionModifier(this.CurrentToken.
Kind
))
10918
if (ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
11003
if (type.
Kind
== SyntaxKind.IdentifierName)
11109
if (IsScript && this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken)
11153
SyntaxKind tk = this.CurrentToken.
Kind
;
11454
switch (next.
Kind
)
11505
_ = GetPrecedence(result.
Kind
);
11520
var tk = this.CurrentToken.
Kind
;
11616
if (this.CurrentToken.
Kind
== SyntaxKind.QuestionToken && precedence <= Precedence.Conditional)
11647
if (newPrecedence > GetPrecedence(leftOperand.
Kind
))
11662
leftOperand.
Kind
== SyntaxKind.IsPatternExpression ? ErrorCode.ERR_UnexpectedToken : ErrorCode.WRN_PrecedenceInversion,
11691
if (IsExpectedAssignmentOperator(operatorToken.
Kind
))
11694
if (IsExpectedBinaryOperator(operatorToken.
Kind
))
11714
if (this.CurrentToken.
Kind
!= SyntaxKind.ColonToken &&
11732
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
11744
if (this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken && this.lexer.InterpolationFollowedByColon)
11778
conditionalExpression.WhenTrue.GetFirstToken().
Kind
== SyntaxKind.OpenBracketToken)
11814
&& this.PeekToken(1) is {
Kind
: SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken } token2
11817
if (token2.
Kind
== SyntaxKind.GreaterThanToken)
11819
if (this.PeekToken(2) is {
Kind
: SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken } token3
11823
token1Kind = token3.
Kind
== SyntaxKind.GreaterThanToken
11846
if (token1Kind == SyntaxKind.SwitchKeyword && this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken)
11849
if (token1Kind == SyntaxKind.WithKeyword && this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken)
11900
Debug.Assert(IsExpectedAssignmentOperator(operatorToken.
Kind
));
11905
if (operatorExpressionKind == SyntaxKind.SimpleAssignmentExpression && CurrentToken.
Kind
== SyntaxKind.RefKeyword &&
11925
if (this.CurrentToken.
Kind
!= SyntaxKind.DotToken)
11929
return nextToken.
Kind
== SyntaxKind.DotToken && NoTriviaBetween(this.CurrentToken, nextToken);
11933
=> token1.
Kind
== SyntaxKind.DotToken &&
11934
token2.
Kind
== SyntaxKind.DotToken &&
11947
if (this.CurrentToken is {
Kind
: SyntaxKind.DotToken } token3 &&
11964
if (this.PeekToken(1) is not {
Kind
: SyntaxKind.DotToken } token4 ||
12017
var tk = this.CurrentToken.
Kind
;
12073
else if (IsCurrentTokenFieldInKeywordContext() && PeekToken(1).
Kind
!= SyntaxKind.ColonColonToken)
12152
if (this.CurrentToken.
Kind
!= SyntaxKind.DotToken || tk == SyntaxKind.VoidKeyword)
12202
switch (this.CurrentToken.
Kind
)
12214
expr = _syntaxFactory.PostfixUnaryExpression(SyntaxFacts.GetPostfixUnaryExpression(this.CurrentToken.
Kind
), expr, this.EatToken());
12218
if (this.PeekToken(1).
Kind
== SyntaxKind.IdentifierToken)
12250
this.PeekToken(1).
Kind
== SyntaxKind.IdentifierToken &&
12283
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.BaseKeyword);
12297
if (precedence > Precedence.Assignment || !(this.CurrentToken.IsIdentifierVar() || IsPredefinedType(this.CurrentToken.
Kind
)))
12306
this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken && ScanDesignator() &&
12307
this.CurrentToken.
Kind
== SyntaxKind.EqualsToken;
12312
switch (this.CurrentToken.
Kind
)
12331
switch (this.CurrentToken.
Kind
)
12351
while (this.PeekToken(tokenIndex).
Kind
== SyntaxKind.StaticKeyword ||
12357
return this.PeekToken(tokenIndex).
Kind
== SyntaxKind.DelegateKeyword &&
12358
this.PeekToken(tokenIndex + 1).
Kind
!= SyntaxKind.AsteriskToken;
12405
if (this.CurrentToken.
Kind
== SyntaxKind.QuestionToken)
12408
var nextTokenKind = nextToken.
Kind
;
12444
return this.CurrentToken.
Kind
!= SyntaxKind.ColonToken;
12457
while (this.CurrentToken.
Kind
== SyntaxKind.ExclamationToken)
12493
=> this.CurrentToken.
Kind
switch
12552
openToken = this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken or SyntaxKind.OpenBracketToken
12559
if (this.CurrentToken.
Kind
!= closeKind && this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken)
12587
else if (isIndexer && this.CurrentToken.
Kind
== closeKind)
12603
closeToken = this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken
12612
if (@this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken)
12616
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleArgumentExpression(),
12617
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind || p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
12624
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken;
12629
return IsValidArgumentRefKindKeyword(this.CurrentToken.
Kind
) || this.IsPossibleExpression();
12647
var nameColon = this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.ColonToken
12654
if (IsValidArgumentRefKindKeyword(this.CurrentToken.
Kind
) &&
12656
!(this.CurrentToken.
Kind
== SyntaxKind.RefKeyword &&
12664
if (isIndexer && this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseBracketToken)
12668
else if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
12680
expression = refKindKeyword?.
Kind
== SyntaxKind.OutKeyword
12700
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
12744
Debug.Assert(checkedOrUnchecked.
Kind
is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword);
12745
var kind = checkedOrUnchecked.
Kind
== SyntaxKind.CheckedKeyword ? SyntaxKind.CheckedExpression : SyntaxKind.UncheckedExpression;
12787
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
12805
token.
Kind
is SyntaxKind.CommaToken ||
12811
return token.
Kind
== SyntaxKind.CloseParenToken &&
12812
this.PeekToken(index).
Kind
== SyntaxKind.EqualsGreaterThanToken;
12818
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
12870
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
12878
switch (this.CurrentToken.
Kind
)
12884
return this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken;
12894
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
12922
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
12930
if (expression.
Kind
== SyntaxKind.IdentifierName && this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
12951
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
12956
var argument = expression.
Kind
!= SyntaxKind.IdentifierName || this.CurrentToken.
Kind
!= SyntaxKind.ColonToken
12984
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
12997
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken)
13004
if (forPattern && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
13038
return !forPattern || this.CurrentToken.
Kind
switch
13063
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken || CanFollowCast(this.CurrentToken.
Kind
);
13069
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken &&
13070
this.PeekToken(1).
Kind
== SyntaxKind.CloseBracketToken)
13078
return CanFollowCast(this.CurrentToken.
Kind
);
13130
if (token1.
Kind
== SyntaxKind.EqualsGreaterThanToken)
13138
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
13154
if (this.CurrentToken.
Kind
== SyntaxKind.StaticKeyword)
13160
this.PeekToken(1).
Kind
== SyntaxKind.StaticKeyword)
13173
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken)
13183
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13191
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken &&
13192
this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken)
13211
if (st == ScanTypeFlags.NotType || this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13228
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken &&
13229
this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken)
13236
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13308
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.NewKeyword);
13327
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken);
13348
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleCollectionElement(),
13349
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13364
this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
13381
return this.CurrentToken.
Kind
== SyntaxKind.NewKeyword && this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken;
13389
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken);
13426
return this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken;
13431
return IsTrueIdentifier() && this.PeekToken(1).
Kind
== SyntaxKind.EqualsToken;
13436
return IsTrueIdentifier() && this.PeekToken(1).
Kind
is SyntaxKind.EqualsToken or SyntaxKind.ColonToken;
13441
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken;
13454
if (type.
Kind
== SyntaxKind.ArrayType)
13457
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
13467
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13472
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
13494
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13505
switch (this.CurrentToken.
Kind
)
13578
Kind
: SyntaxKind.SimpleAssignmentExpression,
13579
Left.
Kind
: SyntaxKind.IdentifierName or SyntaxKind.ImplicitElementAccess,
13624
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleExpression(),
13625
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13634
this.CurrentToken.
Kind
== SyntaxKind.ColonToken
13637
this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
13648
this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
13676
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.NewKeyword or SyntaxKind.StackAllocKeyword);
13677
return this.PeekToken(1).
Kind
== SyntaxKind.OpenBracketToken;
13703
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
13743
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleVariableInitializer(),
13744
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13770
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
13792
this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken ? this.ParseArrayInitializer() : null);
13809
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13822
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenBraceToken)
13853
if (this.CurrentToken.
Kind
== SyntaxKind.StaticKeyword)
13876
switch (this.PeekToken(1).
Kind
)
13899
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken &&
13927
if (CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13934
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13947
var identifier = (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken)
13964
=> CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
13995
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleLambdaParameter(),
13996
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
14003
switch (this.CurrentToken.
Kind
)
14021
return IsPredefinedType(this.CurrentToken.
Kind
);
14059
if (IsPredefinedType(this.CurrentToken.
Kind
))
14065
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
14087
if (peek1.
Kind
14152
var pk1 = this.PeekToken(1).
Kind
;
14160
var pk2 = this.PeekToken(2).
Kind
;
14197
return this.ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken or SyntaxKind.InKeyword;
14264
var type = this.PeekToken(1).
Kind
!= SyntaxKind.InKeyword
14270
(this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken || SyntaxFacts.IsQueryContextualKeyword(this.CurrentToken.ContextualKind)))
14297
type: this.PeekToken(1).
Kind
!= SyntaxKind.InKeyword
14318
SyntaxFacts.IsReservedKeyword(this.CurrentToken.
Kind
) && this.PeekToken(1).
Kind
== SyntaxKind.EqualsToken
14343
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
14345
if (this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken)
14349
else if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
14370
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
14371
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.CloseParenToken
14372
|| p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
14387
if (direction.
Kind
== SyntaxKind.DescendingKeyword)
14547
if (requireOneElement || this.CurrentToken.
Kind
!= closeTokenKind)
14564
if (this.CurrentToken.
Kind
== closeTokenKind)
14575
nodes.AddSeparator(this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
14582
if (this.CurrentToken.
Kind
== closeTokenKind)
14617
if (this.CurrentToken.
Kind
== separatorTokenKind)
14622
if (allowSemicolonAsSeparator && this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken)
14711
if (this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken) return node;
14713
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
);