2438 references to Kind
Microsoft.CodeAnalysis.CSharp (2438)
_generated\1\Syntax.xml.Internal.Generated.cs (1460)
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 DefaultExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.type, this.closeParenToken, diagnostics, GetAnnotations());
3781
=> new DefaultExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.type, this.closeParenToken, GetDiagnostics(), annotations);
3877
=> new TypeOfExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.type, this.closeParenToken, diagnostics, GetAnnotations());
3880
=> new TypeOfExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.type, this.closeParenToken, GetDiagnostics(), annotations);
3976
=> new SizeOfExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.type, this.closeParenToken, diagnostics, GetAnnotations());
3979
=> new SizeOfExpressionSyntax(this.
Kind
, this.keyword, this.openParenToken, this.type, this.closeParenToken, GetDiagnostics(), annotations);
4055
=> new InvocationExpressionSyntax(this.
Kind
, this.expression, this.argumentList, diagnostics, GetAnnotations());
4058
=> new InvocationExpressionSyntax(this.
Kind
, this.expression, this.argumentList, GetDiagnostics(), annotations);
4134
=> new ElementAccessExpressionSyntax(this.
Kind
, this.expression, this.argumentList, diagnostics, GetAnnotations());
4137
=> new ElementAccessExpressionSyntax(this.
Kind
, this.expression, this.argumentList, GetDiagnostics(), annotations);
4249
=> new ArgumentListSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, diagnostics, GetAnnotations());
4252
=> new ArgumentListSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, GetDiagnostics(), annotations);
4347
=> new BracketedArgumentListSyntax(this.
Kind
, this.openBracketToken, this.arguments, this.closeBracketToken, diagnostics, GetAnnotations());
4350
=> new BracketedArgumentListSyntax(this.
Kind
, this.openBracketToken, this.arguments, this.closeBracketToken, GetDiagnostics(), annotations);
4454
=> new ArgumentSyntax(this.
Kind
, this.nameColon, this.refKindKeyword, this.expression, diagnostics, GetAnnotations());
4457
=> new ArgumentSyntax(this.
Kind
, this.nameColon, this.refKindKeyword, this.expression, GetDiagnostics(), annotations);
4547
=> new ExpressionColonSyntax(this.
Kind
, this.expression, this.colonToken, diagnostics, GetAnnotations());
4550
=> new ExpressionColonSyntax(this.
Kind
, this.expression, this.colonToken, GetDiagnostics(), annotations);
4626
=> new NameColonSyntax(this.
Kind
, this.name, this.colonToken, diagnostics, GetAnnotations());
4629
=> new NameColonSyntax(this.
Kind
, this.name, this.colonToken, GetDiagnostics(), annotations);
4704
=> new DeclarationExpressionSyntax(this.
Kind
, this.type, this.designation, diagnostics, GetAnnotations());
4707
=> new DeclarationExpressionSyntax(this.
Kind
, this.type, this.designation, GetDiagnostics(), annotations);
4803
=> new CastExpressionSyntax(this.
Kind
, this.openParenToken, this.type, this.closeParenToken, this.expression, diagnostics, GetAnnotations());
4806
=> new CastExpressionSyntax(this.
Kind
, this.openParenToken, this.type, this.closeParenToken, this.expression, GetDiagnostics(), annotations);
4972
=> new AnonymousMethodExpressionSyntax(this.
Kind
, this.modifiers, this.delegateKeyword, this.parameterList, this.block, this.expressionBody, diagnostics, GetAnnotations());
4975
=> new AnonymousMethodExpressionSyntax(this.
Kind
, this.modifiers, this.delegateKeyword, this.parameterList, this.block, this.expressionBody, GetDiagnostics(), annotations);
5150
=> new SimpleLambdaExpressionSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.parameter, this.arrowToken, this.block, this.expressionBody, diagnostics, GetAnnotations());
5153
=> new SimpleLambdaExpressionSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.parameter, this.arrowToken, this.block, this.expressionBody, GetDiagnostics(), annotations);
5226
=> new RefExpressionSyntax(this.
Kind
, this.refKeyword, this.expression, diagnostics, GetAnnotations());
5229
=> new RefExpressionSyntax(this.
Kind
, this.refKeyword, this.expression, GetDiagnostics(), annotations);
5403
=> new ParenthesizedLambdaExpressionSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.parameterList, this.arrowToken, this.block, this.expressionBody, diagnostics, GetAnnotations());
5406
=> new ParenthesizedLambdaExpressionSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.parameterList, this.arrowToken, this.block, this.expressionBody, GetDiagnostics(), annotations);
5487
var newNode = SyntaxFactory.InitializerExpression(this.
Kind
, openBraceToken, expressions, closeBraceToken);
5501
=> new InitializerExpressionSyntax(this.
Kind
, this.openBraceToken, this.expressions, this.closeBraceToken, diagnostics, GetAnnotations());
5504
=> new InitializerExpressionSyntax(this.
Kind
, this.openBraceToken, this.expressions, this.closeBraceToken, GetDiagnostics(), annotations);
5621
=> new ImplicitObjectCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.argumentList, this.initializer, diagnostics, GetAnnotations());
5624
=> new ImplicitObjectCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.argumentList, this.initializer, GetDiagnostics(), annotations);
5738
=> new ObjectCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.type, this.argumentList, this.initializer, diagnostics, GetAnnotations());
5741
=> new ObjectCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.type, this.argumentList, this.initializer, GetDiagnostics(), annotations);
5824
=> new WithExpressionSyntax(this.
Kind
, this.expression, this.withKeyword, this.initializer, diagnostics, GetAnnotations());
5827
=> new WithExpressionSyntax(this.
Kind
, this.expression, this.withKeyword, this.initializer, GetDiagnostics(), annotations);
5911
=> new AnonymousObjectMemberDeclaratorSyntax(this.
Kind
, this.nameEquals, this.expression, diagnostics, GetAnnotations());
5914
=> new AnonymousObjectMemberDeclaratorSyntax(this.
Kind
, this.nameEquals, this.expression, GetDiagnostics(), annotations);
6019
=> new AnonymousObjectCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.openBraceToken, this.initializers, this.closeBraceToken, diagnostics, GetAnnotations());
6022
=> new AnonymousObjectCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.openBraceToken, this.initializers, this.closeBraceToken, GetDiagnostics(), annotations);
6117
=> new ArrayCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.type, this.initializer, diagnostics, GetAnnotations());
6120
=> new ArrayCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.type, this.initializer, GetDiagnostics(), annotations);
6235
=> new ImplicitArrayCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.openBracketToken, this.commas, this.closeBracketToken, this.initializer, diagnostics, GetAnnotations());
6238
=> new ImplicitArrayCreationExpressionSyntax(this.
Kind
, this.newKeyword, this.openBracketToken, this.commas, this.closeBracketToken, this.initializer, GetDiagnostics(), annotations);
6333
=> new StackAllocArrayCreationExpressionSyntax(this.
Kind
, this.stackAllocKeyword, this.type, this.initializer, diagnostics, GetAnnotations());
6336
=> new StackAllocArrayCreationExpressionSyntax(this.
Kind
, this.stackAllocKeyword, this.type, this.initializer, GetDiagnostics(), annotations);
6432
=> new ImplicitStackAllocArrayCreationExpressionSyntax(this.
Kind
, this.stackAllocKeyword, this.openBracketToken, this.closeBracketToken, this.initializer, diagnostics, GetAnnotations());
6435
=> new ImplicitStackAllocArrayCreationExpressionSyntax(this.
Kind
, this.stackAllocKeyword, this.openBracketToken, this.closeBracketToken, this.initializer, GetDiagnostics(), annotations);
6527
=> new CollectionExpressionSyntax(this.
Kind
, this.openBracketToken, this.elements, this.closeBracketToken, diagnostics, GetAnnotations());
6530
=> new CollectionExpressionSyntax(this.
Kind
, this.openBracketToken, this.elements, this.closeBracketToken, GetDiagnostics(), annotations);
6603
=> new ExpressionElementSyntax(this.
Kind
, this.expression, diagnostics, GetAnnotations());
6606
=> new ExpressionElementSyntax(this.
Kind
, this.expression, GetDiagnostics(), annotations);
6679
=> new SpreadElementSyntax(this.
Kind
, this.operatorToken, this.expression, diagnostics, GetAnnotations());
6682
=> new SpreadElementSyntax(this.
Kind
, this.operatorToken, this.expression, GetDiagnostics(), annotations);
6755
=> new WithElementSyntax(this.
Kind
, this.withKeyword, this.argumentList, diagnostics, GetAnnotations());
6758
=> new WithElementSyntax(this.
Kind
, this.withKeyword, this.argumentList, GetDiagnostics(), annotations);
6857
=> new QueryExpressionSyntax(this.
Kind
, this.fromClause, this.body, diagnostics, GetAnnotations());
6860
=> new QueryExpressionSyntax(this.
Kind
, this.fromClause, this.body, GetDiagnostics(), annotations);
6960
=> new QueryBodySyntax(this.
Kind
, this.clauses, this.selectOrGroup, this.continuation, diagnostics, GetAnnotations());
6963
=> new QueryBodySyntax(this.
Kind
, this.clauses, this.selectOrGroup, this.continuation, GetDiagnostics(), annotations);
7073
=> new FromClauseSyntax(this.
Kind
, this.fromKeyword, this.type, this.identifier, this.inKeyword, this.expression, diagnostics, GetAnnotations());
7076
=> new FromClauseSyntax(this.
Kind
, this.fromKeyword, this.type, this.identifier, this.inKeyword, this.expression, GetDiagnostics(), annotations);
7168
=> new LetClauseSyntax(this.
Kind
, this.letKeyword, this.identifier, this.equalsToken, this.expression, diagnostics, GetAnnotations());
7171
=> new LetClauseSyntax(this.
Kind
, this.letKeyword, this.identifier, this.equalsToken, this.expression, GetDiagnostics(), annotations);
7335
=> 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());
7338
=> 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);
7412
=> new JoinIntoClauseSyntax(this.
Kind
, this.intoKeyword, this.identifier, diagnostics, GetAnnotations());
7415
=> new JoinIntoClauseSyntax(this.
Kind
, this.intoKeyword, this.identifier, GetDiagnostics(), annotations);
7488
=> new WhereClauseSyntax(this.
Kind
, this.whereKeyword, this.condition, diagnostics, GetAnnotations());
7491
=> new WhereClauseSyntax(this.
Kind
, this.whereKeyword, this.condition, GetDiagnostics(), annotations);
7573
=> new OrderByClauseSyntax(this.
Kind
, this.orderByKeyword, this.orderings, diagnostics, GetAnnotations());
7576
=> new OrderByClauseSyntax(this.
Kind
, this.orderByKeyword, this.orderings, GetDiagnostics(), annotations);
7644
var newNode = SyntaxFactory.Ordering(this.
Kind
, expression, ascendingOrDescendingKeyword);
7658
=> new OrderingSyntax(this.
Kind
, this.expression, this.ascendingOrDescendingKeyword, diagnostics, GetAnnotations());
7661
=> new OrderingSyntax(this.
Kind
, this.expression, this.ascendingOrDescendingKeyword, GetDiagnostics(), annotations);
7734
=> new SelectClauseSyntax(this.
Kind
, this.selectKeyword, this.expression, diagnostics, GetAnnotations());
7737
=> new SelectClauseSyntax(this.
Kind
, this.selectKeyword, this.expression, GetDiagnostics(), annotations);
7828
=> new GroupClauseSyntax(this.
Kind
, this.groupKeyword, this.groupExpression, this.byKeyword, this.byExpression, diagnostics, GetAnnotations());
7831
=> new GroupClauseSyntax(this.
Kind
, this.groupKeyword, this.groupExpression, this.byKeyword, this.byExpression, GetDiagnostics(), annotations);
7914
=> new QueryContinuationSyntax(this.
Kind
, this.intoKeyword, this.identifier, this.body, diagnostics, GetAnnotations());
7917
=> new QueryContinuationSyntax(this.
Kind
, this.intoKeyword, this.identifier, this.body, GetDiagnostics(), annotations);
7979
=> new OmittedArraySizeExpressionSyntax(this.
Kind
, this.omittedArraySizeExpressionToken, diagnostics, GetAnnotations());
7982
=> new OmittedArraySizeExpressionSyntax(this.
Kind
, this.omittedArraySizeExpressionToken, GetDiagnostics(), annotations);
8076
=> new InterpolatedStringExpressionSyntax(this.
Kind
, this.stringStartToken, this.contents, this.stringEndToken, diagnostics, GetAnnotations());
8079
=> new InterpolatedStringExpressionSyntax(this.
Kind
, this.stringStartToken, this.contents, this.stringEndToken, GetDiagnostics(), annotations);
8164
=> new IsPatternExpressionSyntax(this.
Kind
, this.expression, this.isKeyword, this.pattern, diagnostics, GetAnnotations());
8167
=> new IsPatternExpressionSyntax(this.
Kind
, this.expression, this.isKeyword, this.pattern, GetDiagnostics(), annotations);
8240
=> new ThrowExpressionSyntax(this.
Kind
, this.throwKeyword, this.expression, diagnostics, GetAnnotations());
8243
=> new ThrowExpressionSyntax(this.
Kind
, this.throwKeyword, this.expression, GetDiagnostics(), annotations);
8316
=> new WhenClauseSyntax(this.
Kind
, this.whenKeyword, this.condition, diagnostics, GetAnnotations());
8319
=> new WhenClauseSyntax(this.
Kind
, this.whenKeyword, this.condition, GetDiagnostics(), annotations);
8392
=> new DiscardPatternSyntax(this.
Kind
, this.underscoreToken, diagnostics, GetAnnotations());
8395
=> new DiscardPatternSyntax(this.
Kind
, this.underscoreToken, GetDiagnostics(), annotations);
8468
=> new DeclarationPatternSyntax(this.
Kind
, this.type, this.designation, diagnostics, GetAnnotations());
8471
=> new DeclarationPatternSyntax(this.
Kind
, this.type, this.designation, GetDiagnostics(), annotations);
8544
=> new VarPatternSyntax(this.
Kind
, this.varKeyword, this.designation, diagnostics, GetAnnotations());
8547
=> new VarPatternSyntax(this.
Kind
, this.varKeyword, this.designation, GetDiagnostics(), annotations);
8674
=> new RecursivePatternSyntax(this.
Kind
, this.type, this.positionalPatternClause, this.propertyPatternClause, this.designation, diagnostics, GetAnnotations());
8677
=> new RecursivePatternSyntax(this.
Kind
, this.type, this.positionalPatternClause, this.propertyPatternClause, this.designation, GetDiagnostics(), annotations);
8768
=> new PositionalPatternClauseSyntax(this.
Kind
, this.openParenToken, this.subpatterns, this.closeParenToken, diagnostics, GetAnnotations());
8771
=> new PositionalPatternClauseSyntax(this.
Kind
, this.openParenToken, this.subpatterns, this.closeParenToken, GetDiagnostics(), annotations);
8862
=> new PropertyPatternClauseSyntax(this.
Kind
, this.openBraceToken, this.subpatterns, this.closeBraceToken, diagnostics, GetAnnotations());
8865
=> new PropertyPatternClauseSyntax(this.
Kind
, this.openBraceToken, this.subpatterns, this.closeBraceToken, GetDiagnostics(), annotations);
8947
=> new SubpatternSyntax(this.
Kind
, this.expressionColon, this.pattern, diagnostics, GetAnnotations());
8950
=> new SubpatternSyntax(this.
Kind
, this.expressionColon, this.pattern, GetDiagnostics(), annotations);
9011
=> new ConstantPatternSyntax(this.
Kind
, this.expression, diagnostics, GetAnnotations());
9014
=> new ConstantPatternSyntax(this.
Kind
, this.expression, GetDiagnostics(), annotations);
9096
=> new ParenthesizedPatternSyntax(this.
Kind
, this.openParenToken, this.pattern, this.closeParenToken, diagnostics, GetAnnotations());
9099
=> new ParenthesizedPatternSyntax(this.
Kind
, this.openParenToken, this.pattern, this.closeParenToken, GetDiagnostics(), annotations);
9173
=> new RelationalPatternSyntax(this.
Kind
, this.operatorToken, this.expression, diagnostics, GetAnnotations());
9176
=> new RelationalPatternSyntax(this.
Kind
, this.operatorToken, this.expression, GetDiagnostics(), annotations);
9237
=> new TypePatternSyntax(this.
Kind
, this.type, diagnostics, GetAnnotations());
9240
=> new TypePatternSyntax(this.
Kind
, this.type, GetDiagnostics(), annotations);
9308
var newNode = SyntaxFactory.BinaryPattern(this.
Kind
, left, operatorToken, right);
9322
=> new BinaryPatternSyntax(this.
Kind
, this.left, this.operatorToken, this.right, diagnostics, GetAnnotations());
9325
=> new BinaryPatternSyntax(this.
Kind
, this.left, this.operatorToken, this.right, GetDiagnostics(), annotations);
9398
=> new UnaryPatternSyntax(this.
Kind
, this.operatorToken, this.pattern, diagnostics, GetAnnotations());
9401
=> new UnaryPatternSyntax(this.
Kind
, this.operatorToken, this.pattern, GetDiagnostics(), annotations);
9510
=> new ListPatternSyntax(this.
Kind
, this.openBracketToken, this.patterns, this.closeBracketToken, this.designation, diagnostics, GetAnnotations());
9513
=> new ListPatternSyntax(this.
Kind
, this.openBracketToken, this.patterns, this.closeBracketToken, this.designation, GetDiagnostics(), annotations);
9595
=> new SlicePatternSyntax(this.
Kind
, this.dotDotToken, this.pattern, diagnostics, GetAnnotations());
9598
=> new SlicePatternSyntax(this.
Kind
, this.dotDotToken, this.pattern, GetDiagnostics(), annotations);
9672
=> new InterpolatedStringTextSyntax(this.
Kind
, this.textToken, diagnostics, GetAnnotations());
9675
=> new InterpolatedStringTextSyntax(this.
Kind
, this.textToken, GetDiagnostics(), annotations);
9797
=> new InterpolationSyntax(this.
Kind
, this.openBraceToken, this.expression, this.alignmentClause, this.formatClause, this.closeBraceToken, diagnostics, GetAnnotations());
9800
=> new InterpolationSyntax(this.
Kind
, this.openBraceToken, this.expression, this.alignmentClause, this.formatClause, this.closeBraceToken, GetDiagnostics(), annotations);
9873
=> new InterpolationAlignmentClauseSyntax(this.
Kind
, this.commaToken, this.value, diagnostics, GetAnnotations());
9876
=> new InterpolationAlignmentClauseSyntax(this.
Kind
, this.commaToken, this.value, GetDiagnostics(), annotations);
9950
=> new InterpolationFormatClauseSyntax(this.
Kind
, this.colonToken, this.formatStringToken, diagnostics, GetAnnotations());
9953
=> new InterpolationFormatClauseSyntax(this.
Kind
, this.colonToken, this.formatStringToken, GetDiagnostics(), annotations);
10054
=> new GlobalStatementSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.statement, diagnostics, GetAnnotations());
10057
=> new GlobalStatementSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.statement, GetDiagnostics(), annotations);
10182
=> new BlockSyntax(this.
Kind
, this.attributeLists, this.openBraceToken, this.statements, this.closeBraceToken, diagnostics, GetAnnotations());
10185
=> new BlockSyntax(this.
Kind
, this.attributeLists, this.openBraceToken, this.statements, this.closeBraceToken, GetDiagnostics(), annotations);
10395
=> 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());
10398
=> 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);
10544
=> new LocalDeclarationStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.modifiers, this.declaration, this.semicolonToken, diagnostics, GetAnnotations());
10547
=> new LocalDeclarationStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.modifiers, this.declaration, this.semicolonToken, GetDiagnostics(), annotations);
10629
=> new VariableDeclarationSyntax(this.
Kind
, this.type, this.variables, diagnostics, GetAnnotations());
10632
=> new VariableDeclarationSyntax(this.
Kind
, this.type, this.variables, GetDiagnostics(), annotations);
10733
=> new VariableDeclaratorSyntax(this.
Kind
, this.identifier, this.argumentList, this.initializer, diagnostics, GetAnnotations());
10736
=> new VariableDeclaratorSyntax(this.
Kind
, this.identifier, this.argumentList, this.initializer, GetDiagnostics(), annotations);
10809
=> new EqualsValueClauseSyntax(this.
Kind
, this.equalsToken, this.value, diagnostics, GetAnnotations());
10812
=> new EqualsValueClauseSyntax(this.
Kind
, this.equalsToken, this.value, GetDiagnostics(), annotations);
10885
=> new SingleVariableDesignationSyntax(this.
Kind
, this.identifier, diagnostics, GetAnnotations());
10888
=> new SingleVariableDesignationSyntax(this.
Kind
, this.identifier, GetDiagnostics(), annotations);
10948
=> new DiscardDesignationSyntax(this.
Kind
, this.underscoreToken, diagnostics, GetAnnotations());
10951
=> new DiscardDesignationSyntax(this.
Kind
, this.underscoreToken, GetDiagnostics(), annotations);
11042
=> new ParenthesizedVariableDesignationSyntax(this.
Kind
, this.openParenToken, this.variables, this.closeParenToken, diagnostics, GetAnnotations());
11045
=> new ParenthesizedVariableDesignationSyntax(this.
Kind
, this.openParenToken, this.variables, this.closeParenToken, GetDiagnostics(), annotations);
11136
=> new ExpressionStatementSyntax(this.
Kind
, this.attributeLists, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11139
=> new ExpressionStatementSyntax(this.
Kind
, this.attributeLists, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
11221
=> new EmptyStatementSyntax(this.
Kind
, this.attributeLists, this.semicolonToken, diagnostics, GetAnnotations());
11224
=> new EmptyStatementSyntax(this.
Kind
, this.attributeLists, this.semicolonToken, GetDiagnostics(), annotations);
11327
=> new LabeledStatementSyntax(this.
Kind
, this.attributeLists, this.identifier, this.colonToken, this.statement, diagnostics, GetAnnotations());
11330
=> new LabeledStatementSyntax(this.
Kind
, this.attributeLists, this.identifier, this.colonToken, this.statement, GetDiagnostics(), annotations);
11458
var newNode = SyntaxFactory.GotoStatement(this.
Kind
, attributeLists, gotoKeyword, caseOrDefaultKeyword, expression, semicolonToken);
11472
=> new GotoStatementSyntax(this.
Kind
, this.attributeLists, this.gotoKeyword, this.caseOrDefaultKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11475
=> new GotoStatementSyntax(this.
Kind
, this.attributeLists, this.gotoKeyword, this.caseOrDefaultKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
11566
=> new BreakStatementSyntax(this.
Kind
, this.attributeLists, this.breakKeyword, this.semicolonToken, diagnostics, GetAnnotations());
11569
=> new BreakStatementSyntax(this.
Kind
, this.attributeLists, this.breakKeyword, this.semicolonToken, GetDiagnostics(), annotations);
11660
=> new ContinueStatementSyntax(this.
Kind
, this.attributeLists, this.continueKeyword, this.semicolonToken, diagnostics, GetAnnotations());
11663
=> new ContinueStatementSyntax(this.
Kind
, this.attributeLists, this.continueKeyword, this.semicolonToken, GetDiagnostics(), annotations);
11772
=> new ReturnStatementSyntax(this.
Kind
, this.attributeLists, this.returnKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11775
=> new ReturnStatementSyntax(this.
Kind
, this.attributeLists, this.returnKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
11884
=> new ThrowStatementSyntax(this.
Kind
, this.attributeLists, this.throwKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11887
=> new ThrowStatementSyntax(this.
Kind
, this.attributeLists, this.throwKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
11991
var newNode = SyntaxFactory.YieldStatement(this.
Kind
, attributeLists, yieldKeyword, returnOrBreakKeyword, expression, semicolonToken);
12005
=> new YieldStatementSyntax(this.
Kind
, this.attributeLists, this.yieldKeyword, this.returnOrBreakKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
12008
=> new YieldStatementSyntax(this.
Kind
, this.attributeLists, this.yieldKeyword, this.returnOrBreakKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
12126
=> new WhileStatementSyntax(this.
Kind
, this.attributeLists, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
12129
=> new WhileStatementSyntax(this.
Kind
, this.attributeLists, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
12265
=> new DoStatementSyntax(this.
Kind
, this.attributeLists, this.doKeyword, this.statement, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.semicolonToken, diagnostics, GetAnnotations());
12268
=> new DoStatementSyntax(this.
Kind
, this.attributeLists, this.doKeyword, this.statement, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.semicolonToken, GetDiagnostics(), annotations);
12467
=> 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());
12470
=> 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);
12661
=> 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());
12664
=> 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);
12824
=> new ForEachVariableStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.variable, this.inKeyword, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
12827
=> new ForEachVariableStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.variable, this.inKeyword, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
12990
=> new UsingStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.openParenToken, this.declaration, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
12993
=> new UsingStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.openParenToken, this.declaration, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
13111
=> new FixedStatementSyntax(this.
Kind
, this.attributeLists, this.fixedKeyword, this.openParenToken, this.declaration, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
13114
=> new FixedStatementSyntax(this.
Kind
, this.attributeLists, this.fixedKeyword, this.openParenToken, this.declaration, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
13191
var newNode = SyntaxFactory.CheckedStatement(this.
Kind
, attributeLists, keyword, block);
13205
=> new CheckedStatementSyntax(this.
Kind
, this.attributeLists, this.keyword, this.block, diagnostics, GetAnnotations());
13208
=> new CheckedStatementSyntax(this.
Kind
, this.attributeLists, this.keyword, this.block, GetDiagnostics(), annotations);
13299
=> new UnsafeStatementSyntax(this.
Kind
, this.attributeLists, this.unsafeKeyword, this.block, diagnostics, GetAnnotations());
13302
=> new UnsafeStatementSyntax(this.
Kind
, this.attributeLists, this.unsafeKeyword, this.block, GetDiagnostics(), annotations);
13420
=> new LockStatementSyntax(this.
Kind
, this.attributeLists, this.lockKeyword, this.openParenToken, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
13423
=> new LockStatementSyntax(this.
Kind
, this.attributeLists, this.lockKeyword, this.openParenToken, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
13580
=> new IfStatementSyntax(this.
Kind
, this.attributeLists, this.ifKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, this.@else, diagnostics, GetAnnotations());
13583
=> new IfStatementSyntax(this.
Kind
, this.attributeLists, this.ifKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, this.@else, GetDiagnostics(), annotations);
13660
=> new ElseClauseSyntax(this.
Kind
, this.elseKeyword, this.statement, diagnostics, GetAnnotations());
13663
=> new ElseClauseSyntax(this.
Kind
, this.elseKeyword, this.statement, GetDiagnostics(), annotations);
13848
=> new SwitchStatementSyntax(this.
Kind
, this.attributeLists, this.switchKeyword, this.openParenToken, this.expression, this.closeParenToken, this.openBraceToken, this.sections, this.closeBraceToken, diagnostics, GetAnnotations());
13851
=> new SwitchStatementSyntax(this.
Kind
, this.attributeLists, this.switchKeyword, this.openParenToken, this.expression, this.closeParenToken, this.openBraceToken, this.sections, this.closeBraceToken, GetDiagnostics(), annotations);
13949
=> new SwitchSectionSyntax(this.
Kind
, this.labels, this.statements, diagnostics, GetAnnotations());
13952
=> new SwitchSectionSyntax(this.
Kind
, this.labels, this.statements, GetDiagnostics(), annotations);
14081
=> new CasePatternSwitchLabelSyntax(this.
Kind
, this.keyword, this.pattern, this.whenClause, this.colonToken, diagnostics, GetAnnotations());
14084
=> new CasePatternSwitchLabelSyntax(this.
Kind
, this.keyword, this.pattern, this.whenClause, this.colonToken, GetDiagnostics(), annotations);
14171
=> new CaseSwitchLabelSyntax(this.
Kind
, this.keyword, this.value, this.colonToken, diagnostics, GetAnnotations());
14174
=> new CaseSwitchLabelSyntax(this.
Kind
, this.keyword, this.value, this.colonToken, GetDiagnostics(), annotations);
14249
=> new DefaultSwitchLabelSyntax(this.
Kind
, this.keyword, this.colonToken, diagnostics, GetAnnotations());
14252
=> new DefaultSwitchLabelSyntax(this.
Kind
, this.keyword, this.colonToken, GetDiagnostics(), annotations);
14361
=> new SwitchExpressionSyntax(this.
Kind
, this.governingExpression, this.switchKeyword, this.openBraceToken, this.arms, this.closeBraceToken, diagnostics, GetAnnotations());
14364
=> new SwitchExpressionSyntax(this.
Kind
, this.governingExpression, this.switchKeyword, this.openBraceToken, this.arms, this.closeBraceToken, GetDiagnostics(), annotations);
14464
=> new SwitchExpressionArmSyntax(this.
Kind
, this.pattern, this.whenClause, this.equalsGreaterThanToken, this.expression, diagnostics, GetAnnotations());
14467
=> new SwitchExpressionArmSyntax(this.
Kind
, this.pattern, this.whenClause, this.equalsGreaterThanToken, this.expression, GetDiagnostics(), annotations);
14594
=> new TryStatementSyntax(this.
Kind
, this.attributeLists, this.tryKeyword, this.block, this.catches, this.@finally, diagnostics, GetAnnotations());
14597
=> new TryStatementSyntax(this.
Kind
, this.attributeLists, this.tryKeyword, this.block, this.catches, this.@finally, GetDiagnostics(), annotations);
14706
=> new CatchClauseSyntax(this.
Kind
, this.catchKeyword, this.declaration, this.filter, this.block, diagnostics, GetAnnotations());
14709
=> new CatchClauseSyntax(this.
Kind
, this.catchKeyword, this.declaration, this.filter, this.block, GetDiagnostics(), annotations);
14809
=> new CatchDeclarationSyntax(this.
Kind
, this.openParenToken, this.type, this.identifier, this.closeParenToken, diagnostics, GetAnnotations());
14812
=> new CatchDeclarationSyntax(this.
Kind
, this.openParenToken, this.type, this.identifier, this.closeParenToken, GetDiagnostics(), annotations);
14903
=> new CatchFilterClauseSyntax(this.
Kind
, this.whenKeyword, this.openParenToken, this.filterExpression, this.closeParenToken, diagnostics, GetAnnotations());
14906
=> new CatchFilterClauseSyntax(this.
Kind
, this.whenKeyword, this.openParenToken, this.filterExpression, this.closeParenToken, GetDiagnostics(), annotations);
14979
=> new FinallyClauseSyntax(this.
Kind
, this.finallyKeyword, this.block, diagnostics, GetAnnotations());
14982
=> new FinallyClauseSyntax(this.
Kind
, this.finallyKeyword, this.block, GetDiagnostics(), annotations);
15119
=> new CompilationUnitSyntax(this.
Kind
, this.externs, this.usings, this.attributeLists, this.members, this.endOfFileToken, diagnostics, GetAnnotations());
15122
=> new CompilationUnitSyntax(this.
Kind
, this.externs, this.usings, this.attributeLists, this.members, this.endOfFileToken, GetDiagnostics(), annotations);
15220
=> new ExternAliasDirectiveSyntax(this.
Kind
, this.externKeyword, this.aliasKeyword, this.identifier, this.semicolonToken, diagnostics, GetAnnotations());
15223
=> new ExternAliasDirectiveSyntax(this.
Kind
, this.externKeyword, this.aliasKeyword, this.identifier, this.semicolonToken, GetDiagnostics(), annotations);
15377
=> new UsingDirectiveSyntax(this.
Kind
, this.globalKeyword, this.usingKeyword, this.staticKeyword, this.unsafeKeyword, this.alias, this.namespaceOrType, this.semicolonToken, diagnostics, GetAnnotations());
15380
=> new UsingDirectiveSyntax(this.
Kind
, this.globalKeyword, this.usingKeyword, this.staticKeyword, this.unsafeKeyword, this.alias, this.namespaceOrType, this.semicolonToken, GetDiagnostics(), annotations);
15623
=> 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());
15626
=> 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);
15798
=> new FileScopedNamespaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.semicolonToken, this.externs, this.usings, this.members, diagnostics, GetAnnotations());
15801
=> new FileScopedNamespaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.semicolonToken, this.externs, this.usings, this.members, GetDiagnostics(), annotations);
15915
=> new AttributeListSyntax(this.
Kind
, this.openBracketToken, this.target, this.attributes, this.closeBracketToken, diagnostics, GetAnnotations());
15918
=> new AttributeListSyntax(this.
Kind
, this.openBracketToken, this.target, this.attributes, this.closeBracketToken, GetDiagnostics(), annotations);
15994
=> new AttributeTargetSpecifierSyntax(this.
Kind
, this.identifier, this.colonToken, diagnostics, GetAnnotations());
15997
=> new AttributeTargetSpecifierSyntax(this.
Kind
, this.identifier, this.colonToken, GetDiagnostics(), annotations);
16084
=> new AttributeSyntax(this.
Kind
, this.name, this.argumentList, diagnostics, GetAnnotations());
16087
=> new AttributeSyntax(this.
Kind
, this.name, this.argumentList, GetDiagnostics(), annotations);
16182
=> new AttributeArgumentListSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, diagnostics, GetAnnotations());
16185
=> new AttributeArgumentListSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, GetDiagnostics(), annotations);
16287
=> new AttributeArgumentSyntax(this.
Kind
, this.nameEquals, this.nameColon, this.expression, diagnostics, GetAnnotations());
16290
=> new AttributeArgumentSyntax(this.
Kind
, this.nameEquals, this.nameColon, this.expression, GetDiagnostics(), annotations);
16365
=> new NameEqualsSyntax(this.
Kind
, this.name, this.equalsToken, diagnostics, GetAnnotations());
16368
=> new NameEqualsSyntax(this.
Kind
, this.name, this.equalsToken, GetDiagnostics(), annotations);
16463
=> new TypeParameterListSyntax(this.
Kind
, this.lessThanToken, this.parameters, this.greaterThanToken, diagnostics, GetAnnotations());
16466
=> new TypeParameterListSyntax(this.
Kind
, this.lessThanToken, this.parameters, this.greaterThanToken, GetDiagnostics(), annotations);
16569
=> new TypeParameterSyntax(this.
Kind
, this.attributeLists, this.varianceKeyword, this.identifier, diagnostics, GetAnnotations());
16572
=> new TypeParameterSyntax(this.
Kind
, this.attributeLists, this.varianceKeyword, this.identifier, GetDiagnostics(), annotations);
16883
=> 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());
16886
=> 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);
17141
=> 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());
17144
=> 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);
17399
=> 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());
17402
=> 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);
17657
=> 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());
17660
=> 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);
17917
var newNode = SyntaxFactory.RecordDeclaration(this.
Kind
, attributeLists, modifiers, keyword, classOrStructKeyword, identifier, typeParameterList, parameterList, baseList, constraintClauses, openBraceToken, members, closeBraceToken, semicolonToken);
17931
=> 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());
17934
=> 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);
18137
=> new EnumDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.enumKeyword, this.identifier, this.baseList, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
18140
=> new EnumDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.enumKeyword, this.identifier, this.baseList, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
18319
=> new DelegateDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.delegateKeyword, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.semicolonToken, diagnostics, GetAnnotations());
18322
=> new DelegateDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.delegateKeyword, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.semicolonToken, GetDiagnostics(), annotations);
18441
=> new EnumMemberDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.equalsValue, diagnostics, GetAnnotations());
18444
=> new EnumMemberDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.equalsValue, GetDiagnostics(), annotations);
18671
=> 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());
18674
=> 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);
18759
=> new BaseListSyntax(this.
Kind
, this.colonToken, this.types, diagnostics, GetAnnotations());
18762
=> new BaseListSyntax(this.
Kind
, this.colonToken, this.types, GetDiagnostics(), annotations);
18838
=> new SimpleBaseTypeSyntax(this.
Kind
, this.type, diagnostics, GetAnnotations());
18841
=> new SimpleBaseTypeSyntax(this.
Kind
, this.type, GetDiagnostics(), annotations);
18914
=> new PrimaryConstructorBaseTypeSyntax(this.
Kind
, this.type, this.argumentList, diagnostics, GetAnnotations());
18917
=> new PrimaryConstructorBaseTypeSyntax(this.
Kind
, this.type, this.argumentList, GetDiagnostics(), annotations);
19021
=> new TypeParameterConstraintClauseSyntax(this.
Kind
, this.whereKeyword, this.name, this.colonToken, this.constraints, diagnostics, GetAnnotations());
19024
=> new TypeParameterConstraintClauseSyntax(this.
Kind
, this.whereKeyword, this.name, this.colonToken, this.constraints, GetDiagnostics(), annotations);
19124
=> new ConstructorConstraintSyntax(this.
Kind
, this.newKeyword, this.openParenToken, this.closeParenToken, diagnostics, GetAnnotations());
19127
=> new ConstructorConstraintSyntax(this.
Kind
, this.newKeyword, this.openParenToken, this.closeParenToken, GetDiagnostics(), annotations);
19198
var newNode = SyntaxFactory.ClassOrStructConstraint(this.
Kind
, classOrStructKeyword, questionToken);
19212
=> new ClassOrStructConstraintSyntax(this.
Kind
, this.classOrStructKeyword, this.questionToken, diagnostics, GetAnnotations());
19215
=> new ClassOrStructConstraintSyntax(this.
Kind
, this.classOrStructKeyword, this.questionToken, GetDiagnostics(), annotations);
19277
=> new TypeConstraintSyntax(this.
Kind
, this.type, diagnostics, GetAnnotations());
19280
=> new TypeConstraintSyntax(this.
Kind
, this.type, GetDiagnostics(), annotations);
19342
=> new DefaultConstraintSyntax(this.
Kind
, this.defaultKeyword, diagnostics, GetAnnotations());
19345
=> new DefaultConstraintSyntax(this.
Kind
, this.defaultKeyword, GetDiagnostics(), annotations);
19429
=> new AllowsConstraintClauseSyntax(this.
Kind
, this.allowsKeyword, this.constraints, diagnostics, GetAnnotations());
19432
=> new AllowsConstraintClauseSyntax(this.
Kind
, this.allowsKeyword, this.constraints, GetDiagnostics(), annotations);
19522
=> new RefStructConstraintSyntax(this.
Kind
, this.refKeyword, this.structKeyword, diagnostics, GetAnnotations());
19525
=> new RefStructConstraintSyntax(this.
Kind
, this.refKeyword, this.structKeyword, GetDiagnostics(), annotations);
19651
=> new FieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.declaration, this.semicolonToken, diagnostics, GetAnnotations());
19654
=> new FieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.declaration, this.semicolonToken, GetDiagnostics(), annotations);
19772
=> new EventFieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.declaration, this.semicolonToken, diagnostics, GetAnnotations());
19775
=> new EventFieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.declaration, this.semicolonToken, GetDiagnostics(), annotations);
19848
=> new ExplicitInterfaceSpecifierSyntax(this.
Kind
, this.name, this.dotToken, diagnostics, GetAnnotations());
19851
=> new ExplicitInterfaceSpecifierSyntax(this.
Kind
, this.name, this.dotToken, GetDiagnostics(), annotations);
20106
=> 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());
20109
=> 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);
20332
=> 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());
20335
=> 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);
20558
=> 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());
20561
=> 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);
20745
=> new ConstructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.parameterList, this.initializer, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
20748
=> new ConstructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.parameterList, this.initializer, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
20819
var newNode = SyntaxFactory.ConstructorInitializer(this.
Kind
, colonToken, thisOrBaseKeyword, argumentList);
20833
=> new ConstructorInitializerSyntax(this.
Kind
, this.colonToken, this.thisOrBaseKeyword, this.argumentList, diagnostics, GetAnnotations());
20836
=> new ConstructorInitializerSyntax(this.
Kind
, this.colonToken, this.thisOrBaseKeyword, this.argumentList, GetDiagnostics(), annotations);
21012
=> new DestructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.tildeToken, this.identifier, this.parameterList, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
21015
=> new DestructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.tildeToken, this.identifier, this.parameterList, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
21237
=> new PropertyDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.expressionBody, this.initializer, this.semicolonToken, diagnostics, GetAnnotations());
21240
=> new PropertyDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.expressionBody, this.initializer, this.semicolonToken, GetDiagnostics(), annotations);
21314
=> new ArrowExpressionClauseSyntax(this.
Kind
, this.arrowToken, this.expression, diagnostics, GetAnnotations());
21317
=> new ArrowExpressionClauseSyntax(this.
Kind
, this.arrowToken, this.expression, GetDiagnostics(), annotations);
21490
=> new EventDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.semicolonToken, diagnostics, GetAnnotations());
21493
=> new EventDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.semicolonToken, GetDiagnostics(), annotations);
21684
=> new IndexerDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.thisKeyword, this.parameterList, this.accessorList, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
21687
=> new IndexerDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.thisKeyword, this.parameterList, this.accessorList, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
21778
=> new AccessorListSyntax(this.
Kind
, this.openBraceToken, this.accessors, this.closeBraceToken, diagnostics, GetAnnotations());
21781
=> new AccessorListSyntax(this.
Kind
, this.openBraceToken, this.accessors, this.closeBraceToken, GetDiagnostics(), annotations);
21927
var newNode = SyntaxFactory.AccessorDeclaration(this.
Kind
, attributeLists, modifiers, keyword, body, expressionBody, semicolonToken);
21941
=> new AccessorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
21944
=> new AccessorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
22055
=> new ParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, diagnostics, GetAnnotations());
22058
=> new ParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, GetDiagnostics(), annotations);
22152
=> new BracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, diagnostics, GetAnnotations());
22155
=> new BracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, GetDiagnostics(), annotations);
22326
=> new ParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.identifier, this.@default, diagnostics, GetAnnotations());
22329
=> new ParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.identifier, this.@default, GetDiagnostics(), annotations);
22432
=> new FunctionPointerParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, diagnostics, GetAnnotations());
22435
=> new FunctionPointerParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, GetDiagnostics(), annotations);
22544
=> new IncompleteMemberSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, diagnostics, GetAnnotations());
22547
=> new IncompleteMemberSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, GetDiagnostics(), annotations);
22616
=> new SkippedTokensTriviaSyntax(this.
Kind
, this.tokens, diagnostics, GetAnnotations());
22619
=> new SkippedTokensTriviaSyntax(this.
Kind
, this.tokens, GetDiagnostics(), annotations);
22687
var newNode = SyntaxFactory.DocumentationCommentTrivia(this.
Kind
, content, endOfComment);
22701
=> new DocumentationCommentTriviaSyntax(this.
Kind
, this.content, this.endOfComment, diagnostics, GetAnnotations());
22704
=> new DocumentationCommentTriviaSyntax(this.
Kind
, this.content, this.endOfComment, GetDiagnostics(), annotations);
22788
=> new TypeCrefSyntax(this.
Kind
, this.type, diagnostics, GetAnnotations());
22791
=> new TypeCrefSyntax(this.
Kind
, this.type, GetDiagnostics(), annotations);
22880
=> new QualifiedCrefSyntax(this.
Kind
, this.container, this.dotToken, this.member, diagnostics, GetAnnotations());
22883
=> new QualifiedCrefSyntax(this.
Kind
, this.container, this.dotToken, this.member, GetDiagnostics(), annotations);
22991
=> new NameMemberCrefSyntax(this.
Kind
, this.name, this.parameters, diagnostics, GetAnnotations());
22994
=> new NameMemberCrefSyntax(this.
Kind
, this.name, this.parameters, GetDiagnostics(), annotations);
23103
=> new ExtensionMemberCrefSyntax(this.
Kind
, this.extensionKeyword, this.typeArgumentList, this.parameters, this.dotToken, this.member, diagnostics, GetAnnotations());
23106
=> new ExtensionMemberCrefSyntax(this.
Kind
, this.extensionKeyword, this.typeArgumentList, this.parameters, this.dotToken, this.member, GetDiagnostics(), annotations);
23192
=> new IndexerMemberCrefSyntax(this.
Kind
, this.thisKeyword, this.parameters, diagnostics, GetAnnotations());
23195
=> new IndexerMemberCrefSyntax(this.
Kind
, this.thisKeyword, this.parameters, GetDiagnostics(), annotations);
23310
=> new OperatorMemberCrefSyntax(this.
Kind
, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameters, diagnostics, GetAnnotations());
23313
=> new OperatorMemberCrefSyntax(this.
Kind
, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameters, GetDiagnostics(), annotations);
23435
=> new ConversionOperatorMemberCrefSyntax(this.
Kind
, this.implicitOrExplicitKeyword, this.operatorKeyword, this.checkedKeyword, this.type, this.parameters, diagnostics, GetAnnotations());
23438
=> new ConversionOperatorMemberCrefSyntax(this.
Kind
, this.implicitOrExplicitKeyword, this.operatorKeyword, this.checkedKeyword, this.type, this.parameters, GetDiagnostics(), annotations);
23554
=> new CrefParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, diagnostics, GetAnnotations());
23557
=> new CrefParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, GetDiagnostics(), annotations);
23653
=> new CrefBracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, diagnostics, GetAnnotations());
23656
=> new CrefBracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, GetDiagnostics(), annotations);
23762
=> new CrefParameterSyntax(this.
Kind
, this.refKindKeyword, this.readOnlyKeyword, this.type, diagnostics, GetAnnotations());
23765
=> new CrefParameterSyntax(this.
Kind
, this.refKindKeyword, this.readOnlyKeyword, this.type, GetDiagnostics(), annotations);
23869
=> new XmlElementSyntax(this.
Kind
, this.startTag, this.content, this.endTag, diagnostics, GetAnnotations());
23872
=> new XmlElementSyntax(this.
Kind
, this.startTag, this.content, this.endTag, GetDiagnostics(), annotations);
23972
=> new XmlElementStartTagSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.greaterThanToken, diagnostics, GetAnnotations());
23975
=> new XmlElementStartTagSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.greaterThanToken, GetDiagnostics(), annotations);
24057
=> new XmlElementEndTagSyntax(this.
Kind
, this.lessThanSlashToken, this.name, this.greaterThanToken, diagnostics, GetAnnotations());
24060
=> new XmlElementEndTagSyntax(this.
Kind
, this.lessThanSlashToken, this.name, this.greaterThanToken, GetDiagnostics(), annotations);
24160
=> new XmlEmptyElementSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.slashGreaterThanToken, diagnostics, GetAnnotations());
24163
=> new XmlEmptyElementSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.slashGreaterThanToken, GetDiagnostics(), annotations);
24245
=> new XmlNameSyntax(this.
Kind
, this.prefix, this.localName, diagnostics, GetAnnotations());
24248
=> new XmlNameSyntax(this.
Kind
, this.prefix, this.localName, GetDiagnostics(), annotations);
24321
=> new XmlPrefixSyntax(this.
Kind
, this.prefix, this.colonToken, diagnostics, GetAnnotations());
24324
=> new XmlPrefixSyntax(this.
Kind
, this.prefix, this.colonToken, GetDiagnostics(), annotations);
24454
=> new XmlTextAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.textTokens, this.endQuoteToken, diagnostics, GetAnnotations());
24457
=> new XmlTextAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.textTokens, this.endQuoteToken, GetDiagnostics(), annotations);
24557
=> new XmlCrefAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.cref, this.endQuoteToken, diagnostics, GetAnnotations());
24560
=> new XmlCrefAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.cref, this.endQuoteToken, GetDiagnostics(), annotations);
24660
=> new XmlNameAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.identifier, this.endQuoteToken, diagnostics, GetAnnotations());
24663
=> new XmlNameAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.identifier, this.endQuoteToken, GetDiagnostics(), annotations);
24732
=> new XmlTextSyntax(this.
Kind
, this.textTokens, diagnostics, GetAnnotations());
24735
=> new XmlTextSyntax(this.
Kind
, this.textTokens, GetDiagnostics(), annotations);
24826
=> new XmlCDataSectionSyntax(this.
Kind
, this.startCDataToken, this.textTokens, this.endCDataToken, diagnostics, GetAnnotations());
24829
=> new XmlCDataSectionSyntax(this.
Kind
, this.startCDataToken, this.textTokens, this.endCDataToken, GetDiagnostics(), annotations);
24929
=> new XmlProcessingInstructionSyntax(this.
Kind
, this.startProcessingInstructionToken, this.name, this.textTokens, this.endProcessingInstructionToken, diagnostics, GetAnnotations());
24932
=> new XmlProcessingInstructionSyntax(this.
Kind
, this.startProcessingInstructionToken, this.name, this.textTokens, this.endProcessingInstructionToken, GetDiagnostics(), annotations);
25023
=> new XmlCommentSyntax(this.
Kind
, this.lessThanExclamationMinusMinusToken, this.textTokens, this.minusMinusGreaterThanToken, diagnostics, GetAnnotations());
25026
=> new XmlCommentSyntax(this.
Kind
, this.lessThanExclamationMinusMinusToken, this.textTokens, this.minusMinusGreaterThanToken, GetDiagnostics(), annotations);
25185
=> new IfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.ifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, diagnostics, GetAnnotations());
25188
=> new IfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.ifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, GetDiagnostics(), annotations);
25294
=> new ElifDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, diagnostics, GetAnnotations());
25297
=> new ElifDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, GetDiagnostics(), annotations);
25389
=> new ElseDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elseKeyword, this.endOfDirectiveToken, this.isActive, this.branchTaken, diagnostics, GetAnnotations());
25392
=> new ElseDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elseKeyword, this.endOfDirectiveToken, this.isActive, this.branchTaken, GetDiagnostics(), annotations);
25479
=> new EndIfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endIfKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25482
=> new EndIfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endIfKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25569
=> new RegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.regionKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25572
=> new RegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.regionKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25659
=> new EndRegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endRegionKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25662
=> new EndRegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endRegionKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25749
=> new ErrorDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.errorKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25752
=> new ErrorDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.errorKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25839
=> new WarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.warningKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25842
=> new WarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.warningKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25929
=> new BadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.identifier, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25932
=> new BadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.identifier, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26028
=> new DefineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.defineKeyword, this.name, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26031
=> new DefineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.defineKeyword, this.name, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26127
=> new UndefDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.undefKeyword, this.name, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26130
=> new UndefDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.undefKeyword, this.name, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26261
=> new LineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.line, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26264
=> new LineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.line, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26364
=> new LineDirectivePositionSyntax(this.
Kind
, this.openParenToken, this.line, this.commaToken, this.character, this.closeParenToken, diagnostics, GetAnnotations());
26367
=> new LineDirectivePositionSyntax(this.
Kind
, this.openParenToken, this.line, this.commaToken, this.character, this.closeParenToken, GetDiagnostics(), annotations);
26508
=> new LineSpanDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.start, this.minusToken, this.end, this.characterOffset, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26511
=> new LineSpanDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.start, this.minusToken, this.end, this.characterOffset, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26634
=> new PragmaWarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.warningKeyword, this.disableOrRestoreKeyword, this.errorCodes, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26637
=> new PragmaWarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.warningKeyword, this.disableOrRestoreKeyword, this.errorCodes, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26760
=> new PragmaChecksumDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.checksumKeyword, this.file, this.guid, this.bytes, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26763
=> new PragmaChecksumDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.checksumKeyword, this.file, this.guid, this.bytes, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26859
=> new ReferenceDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.referenceKeyword, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26862
=> new ReferenceDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.referenceKeyword, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26958
=> new LoadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.loadKeyword, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26961
=> new LoadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.loadKeyword, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
27048
=> new ShebangDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.exclamationToken, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
27051
=> new ShebangDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.exclamationToken, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
27156
=> new IgnoredDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.colonToken, this.content, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
27159
=> new IgnoredDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.colonToken, this.content, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
27273
=> new NullableDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.nullableKeyword, this.settingToken, this.targetToken, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
27276
=> new NullableDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.nullableKeyword, this.settingToken, this.targetToken, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
28547
switch (identifier.
Kind
)
28573
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
28594
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
28615
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
28617
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
28638
if (colonColonToken.
Kind
!= SyntaxKind.ColonColonToken) throw new ArgumentException(nameof(colonColonToken));
28659
switch (keyword.
Kind
)
28717
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
28719
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
28740
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
28760
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
28762
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
28773
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
28775
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
28795
switch (managedOrUnmanagedKeyword.
Kind
)
28820
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
28822
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
28842
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
28863
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
28883
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
28885
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
28907
switch (identifier.
Kind
)
28933
if (omittedTypeArgumentToken.
Kind
!= SyntaxKind.OmittedTypeArgumentToken) throw new ArgumentException(nameof(omittedTypeArgumentToken));
28953
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
28956
switch (readOnlyKeyword.
Kind
)
28983
if (scopedKeyword.
Kind
!= SyntaxKind.ScopedKeyword) throw new ArgumentException(nameof(scopedKeyword));
29004
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29007
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29027
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29029
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29062
switch (operatorToken.
Kind
)
29095
if (awaitKeyword.
Kind
!= SyntaxKind.AwaitKeyword) throw new ArgumentException(nameof(awaitKeyword));
29124
switch (operatorToken.
Kind
)
29157
switch (operatorToken.
Kind
)
29184
if (operatorToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(operatorToken));
29205
if (operatorToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(operatorToken));
29245
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
29311
switch (operatorToken.
Kind
)
29375
switch (operatorToken.
Kind
)
29413
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
29416
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
29427
if (token.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token));
29447
if (token.
Kind
!= SyntaxKind.BaseKeyword) throw new ArgumentException(nameof(token));
29480
switch (token.
Kind
)
29516
if (token.
Kind
!= SyntaxKind.FieldKeyword) throw new ArgumentException(nameof(token));
29536
if (keyword.
Kind
!= SyntaxKind.MakeRefKeyword) throw new ArgumentException(nameof(keyword));
29538
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29541
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29551
if (keyword.
Kind
!= SyntaxKind.RefTypeKeyword) throw new ArgumentException(nameof(keyword));
29553
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29556
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29566
if (keyword.
Kind
!= SyntaxKind.RefValueKeyword) throw new ArgumentException(nameof(keyword));
29568
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29571
if (comma.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(comma));
29574
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29590
switch (keyword.
Kind
)
29597
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29600
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29610
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
29612
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29615
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29625
if (keyword.
Kind
!= SyntaxKind.TypeOfKeyword) throw new ArgumentException(nameof(keyword));
29627
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29630
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29640
if (keyword.
Kind
!= SyntaxKind.SizeOfKeyword) throw new ArgumentException(nameof(keyword));
29642
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29645
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29695
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29697
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29717
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
29719
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
29740
switch (refKindKeyword.
Kind
)
29829
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29832
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29843
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
29855
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
29865
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
29887
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
29906
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
29908
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
29928
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
29949
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
29961
if (withKeyword.
Kind
!= SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword));
30001
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
30003
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
30005
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
30015
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
30036
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
30038
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
30040
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
30051
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
30072
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
30074
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
30076
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
30087
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
30089
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
30128
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
30149
if (withKeyword.
Kind
!= SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword));
30209
if (fromKeyword.
Kind
!= SyntaxKind.FromKeyword) throw new ArgumentException(nameof(fromKeyword));
30211
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30213
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
30224
if (letKeyword.
Kind
!= SyntaxKind.LetKeyword) throw new ArgumentException(nameof(letKeyword));
30226
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30228
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
30239
if (joinKeyword.
Kind
!= SyntaxKind.JoinKeyword) throw new ArgumentException(nameof(joinKeyword));
30241
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30243
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
30246
if (onKeyword.
Kind
!= SyntaxKind.OnKeyword) throw new ArgumentException(nameof(onKeyword));
30249
if (equalsKeyword.
Kind
!= SyntaxKind.EqualsKeyword) throw new ArgumentException(nameof(equalsKeyword));
30260
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
30262
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30282
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
30303
if (orderByKeyword.
Kind
!= SyntaxKind.OrderByKeyword) throw new ArgumentException(nameof(orderByKeyword));
30331
switch (ascendingOrDescendingKeyword.
Kind
)
30358
if (selectKeyword.
Kind
!= SyntaxKind.SelectKeyword) throw new ArgumentException(nameof(selectKeyword));
30379
if (groupKeyword.
Kind
!= SyntaxKind.GroupKeyword) throw new ArgumentException(nameof(groupKeyword));
30382
if (byKeyword.
Kind
!= SyntaxKind.ByKeyword) throw new ArgumentException(nameof(byKeyword));
30393
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
30395
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30416
if (omittedArraySizeExpressionToken.
Kind
!= SyntaxKind.OmittedArraySizeExpressionToken) throw new ArgumentException(nameof(omittedArraySizeExpressionToken));
30436
switch (stringStartToken.
Kind
)
30445
switch (stringEndToken.
Kind
)
30471
if (isKeyword.
Kind
!= SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword));
30492
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
30513
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
30534
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
30574
if (varKeyword.
Kind
!= SyntaxKind.VarKeyword) throw new ArgumentException(nameof(varKeyword));
30603
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30605
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30625
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
30627
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
30685
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30688
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30708
switch (operatorToken.
Kind
)
30764
switch (operatorToken.
Kind
)
30790
if (operatorToken.
Kind
!= SyntaxKind.NotKeyword) throw new ArgumentException(nameof(operatorToken));
30811
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
30813
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
30823
if (dotDotToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(dotDotToken));
30843
if (textToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(textToken));
30863
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
30866
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
30897
if (formatStringToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(formatStringToken));
30936
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
30938
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
30949
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30953
switch (semicolonToken.
Kind
)
30970
switch (awaitKeyword.
Kind
)
30979
switch (usingKeyword.
Kind
)
30988
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31017
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31037
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
31058
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31078
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
31098
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31100
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31121
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31141
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31161
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31163
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
31181
if (gotoKeyword.
Kind
!= SyntaxKind.GotoKeyword) throw new ArgumentException(nameof(gotoKeyword));
31184
switch (caseOrDefaultKeyword.
Kind
)
31193
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31203
if (breakKeyword.
Kind
!= SyntaxKind.BreakKeyword) throw new ArgumentException(nameof(breakKeyword));
31205
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31225
if (continueKeyword.
Kind
!= SyntaxKind.ContinueKeyword) throw new ArgumentException(nameof(continueKeyword));
31227
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31247
if (returnKeyword.
Kind
!= SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword));
31249
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31259
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
31261
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31277
if (yieldKeyword.
Kind
!= SyntaxKind.YieldKeyword) throw new ArgumentException(nameof(yieldKeyword));
31279
switch (returnOrBreakKeyword.
Kind
)
31286
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31296
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
31298
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31301
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31312
if (doKeyword.
Kind
!= SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword));
31315
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
31317
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31320
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31322
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31332
if (forKeyword.
Kind
!= SyntaxKind.ForKeyword) throw new ArgumentException(nameof(forKeyword));
31334
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31336
if (firstSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(firstSemicolonToken));
31338
if (secondSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(secondSemicolonToken));
31340
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31352
switch (awaitKeyword.
Kind
)
31360
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
31362
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31365
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31367
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
31370
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31382
switch (awaitKeyword.
Kind
)
31390
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
31392
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31395
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
31398
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31410
switch (awaitKeyword.
Kind
)
31418
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
31420
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31422
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31433
if (fixedKeyword.
Kind
!= SyntaxKind.FixedKeyword) throw new ArgumentException(nameof(fixedKeyword));
31435
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31438
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31455
switch (keyword.
Kind
)
31481
if (unsafeKeyword.
Kind
!= SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(unsafeKeyword));
31502
if (lockKeyword.
Kind
!= SyntaxKind.LockKeyword) throw new ArgumentException(nameof(lockKeyword));
31504
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31507
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31518
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
31520
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31523
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31534
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
31555
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
31558
switch (openParenToken.
Kind
)
31568
switch (closeParenToken.
Kind
)
31576
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
31578
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
31606
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
31618
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
31640
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
31662
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
31664
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
31666
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
31677
if (equalsGreaterThanToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(equalsGreaterThanToken));
31688
if (tryKeyword.
Kind
!= SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword));
31699
if (catchKeyword.
Kind
!= SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword));
31710
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31714
switch (identifier.
Kind
)
31722
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31732
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
31734
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31737
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31747
if (finallyKeyword.
Kind
!= SyntaxKind.FinallyKeyword) throw new ArgumentException(nameof(finallyKeyword));
31768
if (endOfFileToken.
Kind
!= SyntaxKind.EndOfFileToken) throw new ArgumentException(nameof(endOfFileToken));
31778
if (externKeyword.
Kind
!= SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword));
31780
if (aliasKeyword.
Kind
!= SyntaxKind.AliasKeyword) throw new ArgumentException(nameof(aliasKeyword));
31782
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31784
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31795
switch (globalKeyword.
Kind
)
31803
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
31806
switch (staticKeyword.
Kind
)
31815
switch (unsafeKeyword.
Kind
)
31824
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31834
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
31837
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
31839
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
31842
switch (semicolonToken.
Kind
)
31858
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
31861
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31871
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
31873
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
31884
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
31913
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31915
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31955
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
31975
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
31977
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
31998
switch (varianceKeyword.
Kind
)
32007
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32027
if (keyword.
Kind
!= SyntaxKind.ClassKeyword) throw new ArgumentException(nameof(keyword));
32029
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32032
switch (openBraceToken.
Kind
)
32041
switch (closeBraceToken.
Kind
)
32050
switch (semicolonToken.
Kind
)
32066
if (keyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(keyword));
32068
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32071
switch (openBraceToken.
Kind
)
32080
switch (closeBraceToken.
Kind
)
32089
switch (semicolonToken.
Kind
)
32105
if (keyword.
Kind
!= SyntaxKind.UnionKeyword) throw new ArgumentException(nameof(keyword));
32107
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32110
switch (openBraceToken.
Kind
)
32119
switch (closeBraceToken.
Kind
)
32128
switch (semicolonToken.
Kind
)
32144
if (keyword.
Kind
!= SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword));
32146
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32149
switch (openBraceToken.
Kind
)
32158
switch (closeBraceToken.
Kind
)
32167
switch (semicolonToken.
Kind
)
32191
switch (classOrStructKeyword.
Kind
)
32200
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32203
switch (openBraceToken.
Kind
)
32212
switch (closeBraceToken.
Kind
)
32221
switch (semicolonToken.
Kind
)
32237
if (enumKeyword.
Kind
!= SyntaxKind.EnumKeyword) throw new ArgumentException(nameof(enumKeyword));
32239
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32242
switch (openBraceToken.
Kind
)
32251
switch (closeBraceToken.
Kind
)
32260
switch (semicolonToken.
Kind
)
32276
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
32279
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32282
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
32292
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32302
if (keyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(keyword));
32305
switch (openBraceToken.
Kind
)
32314
switch (closeBraceToken.
Kind
)
32323
switch (semicolonToken.
Kind
)
32339
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
32398
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
32401
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
32411
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
32413
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
32415
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
32441
switch (classOrStructKeyword.
Kind
)
32449
switch (questionToken.
Kind
)
32494
if (defaultKeyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(defaultKeyword));
32514
if (allowsKeyword.
Kind
!= SyntaxKind.AllowsKeyword) throw new ArgumentException(nameof(allowsKeyword));
32534
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
32536
if (structKeyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(structKeyword));
32557
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
32567
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
32570
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
32581
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
32602
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32606
switch (semicolonToken.
Kind
)
32623
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
32626
switch (checkedKeyword.
Kind
)
32634
switch (operatorToken.
Kind
)
32676
switch (semicolonToken.
Kind
)
32692
switch (implicitOrExplicitKeyword.
Kind
)
32699
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
32702
switch (checkedKeyword.
Kind
)
32713
switch (semicolonToken.
Kind
)
32729
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32733
switch (semicolonToken.
Kind
)
32755
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
32757
switch (thisOrBaseKeyword.
Kind
)
32783
if (tildeToken.
Kind
!= SyntaxKind.TildeToken) throw new ArgumentException(nameof(tildeToken));
32785
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32789
switch (semicolonToken.
Kind
)
32806
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32809
switch (semicolonToken.
Kind
)
32825
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
32846
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
32849
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32852
switch (semicolonToken.
Kind
)
32869
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
32873
switch (semicolonToken.
Kind
)
32889
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
32891
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
32921
switch (keyword.
Kind
)
32933
switch (semicolonToken.
Kind
)
32949
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
32951
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
32971
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
32973
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
32994
switch (identifier.
Kind
)
33052
if (endOfComment.
Kind
!= SyntaxKind.EndOfDocumentationCommentToken) throw new ArgumentException(nameof(endOfComment));
33082
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
33122
if (extensionKeyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(extensionKeyword));
33125
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
33136
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
33156
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
33159
switch (checkedKeyword.
Kind
)
33167
switch (operatorToken.
Kind
)
33214
switch (implicitOrExplicitKeyword.
Kind
)
33221
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
33224
switch (checkedKeyword.
Kind
)
33241
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
33243
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
33263
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
33265
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
33286
switch (refKindKeyword.
Kind
)
33297
switch (readOnlyKeyword.
Kind
)
33344
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
33347
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
33357
if (lessThanSlashToken.
Kind
!= SyntaxKind.LessThanSlashToken) throw new ArgumentException(nameof(lessThanSlashToken));
33360
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
33380
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
33383
if (slashGreaterThanToken.
Kind
!= SyntaxKind.SlashGreaterThanToken) throw new ArgumentException(nameof(slashGreaterThanToken));
33393
if (localName.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(localName));
33413
if (prefix.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(prefix));
33415
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
33436
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
33438
switch (startQuoteToken.
Kind
)
33445
switch (endQuoteToken.
Kind
)
33461
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
33463
switch (startQuoteToken.
Kind
)
33471
switch (endQuoteToken.
Kind
)
33487
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
33489
switch (startQuoteToken.
Kind
)
33497
switch (endQuoteToken.
Kind
)
33530
if (startCDataToken.
Kind
!= SyntaxKind.XmlCDataStartToken) throw new ArgumentException(nameof(startCDataToken));
33532
if (endCDataToken.
Kind
!= SyntaxKind.XmlCDataEndToken) throw new ArgumentException(nameof(endCDataToken));
33552
if (startProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionStartToken) throw new ArgumentException(nameof(startProcessingInstructionToken));
33555
if (endProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionEndToken) throw new ArgumentException(nameof(endProcessingInstructionToken));
33565
if (lessThanExclamationMinusMinusToken.
Kind
!= SyntaxKind.XmlCommentStartToken) throw new ArgumentException(nameof(lessThanExclamationMinusMinusToken));
33567
if (minusMinusGreaterThanToken.
Kind
!= SyntaxKind.XmlCommentEndToken) throw new ArgumentException(nameof(minusMinusGreaterThanToken));
33587
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33589
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
33592
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33602
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33604
if (elifKeyword.
Kind
!= SyntaxKind.ElifKeyword) throw new ArgumentException(nameof(elifKeyword));
33607
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33617
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33619
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
33621
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33631
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33633
if (endIfKeyword.
Kind
!= SyntaxKind.EndIfKeyword) throw new ArgumentException(nameof(endIfKeyword));
33635
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33645
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33647
if (regionKeyword.
Kind
!= SyntaxKind.RegionKeyword) throw new ArgumentException(nameof(regionKeyword));
33649
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33659
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33661
if (endRegionKeyword.
Kind
!= SyntaxKind.EndRegionKeyword) throw new ArgumentException(nameof(endRegionKeyword));
33663
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33673
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33675
if (errorKeyword.
Kind
!= SyntaxKind.ErrorKeyword) throw new ArgumentException(nameof(errorKeyword));
33677
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33687
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33689
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
33691
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33701
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33704
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33714
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33716
if (defineKeyword.
Kind
!= SyntaxKind.DefineKeyword) throw new ArgumentException(nameof(defineKeyword));
33718
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
33720
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33730
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33732
if (undefKeyword.
Kind
!= SyntaxKind.UndefKeyword) throw new ArgumentException(nameof(undefKeyword));
33734
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
33736
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33746
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33748
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
33750
switch (line.
Kind
)
33759
switch (file.
Kind
)
33767
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33777
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
33779
if (line.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(line));
33781
if (commaToken.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(commaToken));
33783
if (character.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(character));
33785
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
33795
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33797
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
33800
if (minusToken.
Kind
!= SyntaxKind.MinusToken) throw new ArgumentException(nameof(minusToken));
33804
switch (characterOffset.
Kind
)
33812
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
33814
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33824
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33826
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
33828
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
33830
switch (disableOrRestoreKeyword.
Kind
)
33837
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33847
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33849
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
33851
if (checksumKeyword.
Kind
!= SyntaxKind.ChecksumKeyword) throw new ArgumentException(nameof(checksumKeyword));
33853
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
33855
if (guid.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(guid));
33857
if (bytes.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(bytes));
33859
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33869
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33871
if (referenceKeyword.
Kind
!= SyntaxKind.ReferenceKeyword) throw new ArgumentException(nameof(referenceKeyword));
33873
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
33875
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33885
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33887
if (loadKeyword.
Kind
!= SyntaxKind.LoadKeyword) throw new ArgumentException(nameof(loadKeyword));
33889
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
33891
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33901
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33903
if (exclamationToken.
Kind
!= SyntaxKind.ExclamationToken) throw new ArgumentException(nameof(exclamationToken));
33905
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33915
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33917
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
33920
switch (content.
Kind
)
33928
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33938
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33940
if (nullableKeyword.
Kind
!= SyntaxKind.NullableKeyword) throw new ArgumentException(nameof(nullableKeyword));
33942
switch (settingToken.
Kind
)
33951
switch (targetToken.
Kind
)
33960
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33974
switch (identifier.
Kind
)
34000
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
34021
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
34042
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
34044
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
34065
if (colonColonToken.
Kind
!= SyntaxKind.ColonColonToken) throw new ArgumentException(nameof(colonColonToken));
34086
switch (keyword.
Kind
)
34144
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
34146
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
34167
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
34187
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
34189
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
34200
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
34202
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
34222
switch (managedOrUnmanagedKeyword.
Kind
)
34247
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
34249
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
34269
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
34290
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
34310
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34312
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34334
switch (identifier.
Kind
)
34360
if (omittedTypeArgumentToken.
Kind
!= SyntaxKind.OmittedTypeArgumentToken) throw new ArgumentException(nameof(omittedTypeArgumentToken));
34380
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
34383
switch (readOnlyKeyword.
Kind
)
34410
if (scopedKeyword.
Kind
!= SyntaxKind.ScopedKeyword) throw new ArgumentException(nameof(scopedKeyword));
34431
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34434
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34454
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34456
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34489
switch (operatorToken.
Kind
)
34522
if (awaitKeyword.
Kind
!= SyntaxKind.AwaitKeyword) throw new ArgumentException(nameof(awaitKeyword));
34551
switch (operatorToken.
Kind
)
34584
switch (operatorToken.
Kind
)
34611
if (operatorToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(operatorToken));
34632
if (operatorToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(operatorToken));
34672
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
34738
switch (operatorToken.
Kind
)
34802
switch (operatorToken.
Kind
)
34840
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
34843
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
34854
if (token.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token));
34874
if (token.
Kind
!= SyntaxKind.BaseKeyword) throw new ArgumentException(nameof(token));
34907
switch (token.
Kind
)
34943
if (token.
Kind
!= SyntaxKind.FieldKeyword) throw new ArgumentException(nameof(token));
34963
if (keyword.
Kind
!= SyntaxKind.MakeRefKeyword) throw new ArgumentException(nameof(keyword));
34965
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34968
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34978
if (keyword.
Kind
!= SyntaxKind.RefTypeKeyword) throw new ArgumentException(nameof(keyword));
34980
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34983
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34993
if (keyword.
Kind
!= SyntaxKind.RefValueKeyword) throw new ArgumentException(nameof(keyword));
34995
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34998
if (comma.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(comma));
35001
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35017
switch (keyword.
Kind
)
35024
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35027
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35037
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
35039
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35042
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35052
if (keyword.
Kind
!= SyntaxKind.TypeOfKeyword) throw new ArgumentException(nameof(keyword));
35054
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35057
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35067
if (keyword.
Kind
!= SyntaxKind.SizeOfKeyword) throw new ArgumentException(nameof(keyword));
35069
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35072
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35122
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35124
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35144
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35146
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35167
switch (refKindKeyword.
Kind
)
35256
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35259
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35270
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
35282
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
35292
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
35314
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
35333
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
35335
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
35355
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35376
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35388
if (withKeyword.
Kind
!= SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword));
35428
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35430
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
35432
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
35442
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35463
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35465
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35467
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35478
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
35499
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
35501
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35503
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35514
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35516
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35555
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
35576
if (withKeyword.
Kind
!= SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword));
35636
if (fromKeyword.
Kind
!= SyntaxKind.FromKeyword) throw new ArgumentException(nameof(fromKeyword));
35638
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35640
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
35651
if (letKeyword.
Kind
!= SyntaxKind.LetKeyword) throw new ArgumentException(nameof(letKeyword));
35653
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35655
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
35666
if (joinKeyword.
Kind
!= SyntaxKind.JoinKeyword) throw new ArgumentException(nameof(joinKeyword));
35668
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35670
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
35673
if (onKeyword.
Kind
!= SyntaxKind.OnKeyword) throw new ArgumentException(nameof(onKeyword));
35676
if (equalsKeyword.
Kind
!= SyntaxKind.EqualsKeyword) throw new ArgumentException(nameof(equalsKeyword));
35687
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
35689
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35709
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
35730
if (orderByKeyword.
Kind
!= SyntaxKind.OrderByKeyword) throw new ArgumentException(nameof(orderByKeyword));
35758
switch (ascendingOrDescendingKeyword.
Kind
)
35785
if (selectKeyword.
Kind
!= SyntaxKind.SelectKeyword) throw new ArgumentException(nameof(selectKeyword));
35806
if (groupKeyword.
Kind
!= SyntaxKind.GroupKeyword) throw new ArgumentException(nameof(groupKeyword));
35809
if (byKeyword.
Kind
!= SyntaxKind.ByKeyword) throw new ArgumentException(nameof(byKeyword));
35820
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
35822
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35843
if (omittedArraySizeExpressionToken.
Kind
!= SyntaxKind.OmittedArraySizeExpressionToken) throw new ArgumentException(nameof(omittedArraySizeExpressionToken));
35863
switch (stringStartToken.
Kind
)
35872
switch (stringEndToken.
Kind
)
35898
if (isKeyword.
Kind
!= SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword));
35919
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
35940
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
35961
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
36001
if (varKeyword.
Kind
!= SyntaxKind.VarKeyword) throw new ArgumentException(nameof(varKeyword));
36030
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36032
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36052
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
36054
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
36112
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36115
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36135
switch (operatorToken.
Kind
)
36191
switch (operatorToken.
Kind
)
36217
if (operatorToken.
Kind
!= SyntaxKind.NotKeyword) throw new ArgumentException(nameof(operatorToken));
36238
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
36240
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
36250
if (dotDotToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(dotDotToken));
36270
if (textToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(textToken));
36290
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
36293
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
36324
if (formatStringToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(formatStringToken));
36363
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
36365
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
36376
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36380
switch (semicolonToken.
Kind
)
36397
switch (awaitKeyword.
Kind
)
36406
switch (usingKeyword.
Kind
)
36415
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36444
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36464
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
36485
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36505
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
36525
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36527
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36548
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36568
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36588
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36590
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
36608
if (gotoKeyword.
Kind
!= SyntaxKind.GotoKeyword) throw new ArgumentException(nameof(gotoKeyword));
36611
switch (caseOrDefaultKeyword.
Kind
)
36620
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36630
if (breakKeyword.
Kind
!= SyntaxKind.BreakKeyword) throw new ArgumentException(nameof(breakKeyword));
36632
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36652
if (continueKeyword.
Kind
!= SyntaxKind.ContinueKeyword) throw new ArgumentException(nameof(continueKeyword));
36654
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36674
if (returnKeyword.
Kind
!= SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword));
36676
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36686
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
36688
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36704
if (yieldKeyword.
Kind
!= SyntaxKind.YieldKeyword) throw new ArgumentException(nameof(yieldKeyword));
36706
switch (returnOrBreakKeyword.
Kind
)
36713
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36723
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
36725
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36728
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36739
if (doKeyword.
Kind
!= SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword));
36742
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
36744
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36747
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36749
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36759
if (forKeyword.
Kind
!= SyntaxKind.ForKeyword) throw new ArgumentException(nameof(forKeyword));
36761
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36763
if (firstSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(firstSemicolonToken));
36765
if (secondSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(secondSemicolonToken));
36767
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36779
switch (awaitKeyword.
Kind
)
36787
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
36789
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36792
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36794
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
36797
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36809
switch (awaitKeyword.
Kind
)
36817
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
36819
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36822
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
36825
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36837
switch (awaitKeyword.
Kind
)
36845
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
36847
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36849
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36860
if (fixedKeyword.
Kind
!= SyntaxKind.FixedKeyword) throw new ArgumentException(nameof(fixedKeyword));
36862
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36865
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36882
switch (keyword.
Kind
)
36908
if (unsafeKeyword.
Kind
!= SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(unsafeKeyword));
36929
if (lockKeyword.
Kind
!= SyntaxKind.LockKeyword) throw new ArgumentException(nameof(lockKeyword));
36931
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36934
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36945
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
36947
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36950
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36961
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
36982
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
36985
switch (openParenToken.
Kind
)
36995
switch (closeParenToken.
Kind
)
37003
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
37005
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
37033
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
37045
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
37067
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
37089
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
37091
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
37093
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
37104
if (equalsGreaterThanToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(equalsGreaterThanToken));
37115
if (tryKeyword.
Kind
!= SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword));
37126
if (catchKeyword.
Kind
!= SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword));
37137
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
37141
switch (identifier.
Kind
)
37149
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
37159
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
37161
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
37164
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
37174
if (finallyKeyword.
Kind
!= SyntaxKind.FinallyKeyword) throw new ArgumentException(nameof(finallyKeyword));
37195
if (endOfFileToken.
Kind
!= SyntaxKind.EndOfFileToken) throw new ArgumentException(nameof(endOfFileToken));
37205
if (externKeyword.
Kind
!= SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword));
37207
if (aliasKeyword.
Kind
!= SyntaxKind.AliasKeyword) throw new ArgumentException(nameof(aliasKeyword));
37209
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37211
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
37222
switch (globalKeyword.
Kind
)
37230
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
37233
switch (staticKeyword.
Kind
)
37242
switch (unsafeKeyword.
Kind
)
37251
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
37261
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
37264
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
37266
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
37269
switch (semicolonToken.
Kind
)
37285
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
37288
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
37298
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
37300
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
37311
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
37340
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
37342
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
37382
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
37402
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
37404
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
37425
switch (varianceKeyword.
Kind
)
37434
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37454
if (keyword.
Kind
!= SyntaxKind.ClassKeyword) throw new ArgumentException(nameof(keyword));
37456
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37459
switch (openBraceToken.
Kind
)
37468
switch (closeBraceToken.
Kind
)
37477
switch (semicolonToken.
Kind
)
37493
if (keyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(keyword));
37495
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37498
switch (openBraceToken.
Kind
)
37507
switch (closeBraceToken.
Kind
)
37516
switch (semicolonToken.
Kind
)
37532
if (keyword.
Kind
!= SyntaxKind.UnionKeyword) throw new ArgumentException(nameof(keyword));
37534
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37537
switch (openBraceToken.
Kind
)
37546
switch (closeBraceToken.
Kind
)
37555
switch (semicolonToken.
Kind
)
37571
if (keyword.
Kind
!= SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword));
37573
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37576
switch (openBraceToken.
Kind
)
37585
switch (closeBraceToken.
Kind
)
37594
switch (semicolonToken.
Kind
)
37618
switch (classOrStructKeyword.
Kind
)
37627
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37630
switch (openBraceToken.
Kind
)
37639
switch (closeBraceToken.
Kind
)
37648
switch (semicolonToken.
Kind
)
37664
if (enumKeyword.
Kind
!= SyntaxKind.EnumKeyword) throw new ArgumentException(nameof(enumKeyword));
37666
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37669
switch (openBraceToken.
Kind
)
37678
switch (closeBraceToken.
Kind
)
37687
switch (semicolonToken.
Kind
)
37703
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
37706
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37709
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
37719
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37729
if (keyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(keyword));
37732
switch (openBraceToken.
Kind
)
37741
switch (closeBraceToken.
Kind
)
37750
switch (semicolonToken.
Kind
)
37766
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
37825
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
37828
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
37838
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
37840
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
37842
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
37868
switch (classOrStructKeyword.
Kind
)
37876
switch (questionToken.
Kind
)
37921
if (defaultKeyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(defaultKeyword));
37941
if (allowsKeyword.
Kind
!= SyntaxKind.AllowsKeyword) throw new ArgumentException(nameof(allowsKeyword));
37961
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
37963
if (structKeyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(structKeyword));
37984
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
37994
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
37997
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
38008
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
38029
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
38033
switch (semicolonToken.
Kind
)
38050
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
38053
switch (checkedKeyword.
Kind
)
38061
switch (operatorToken.
Kind
)
38103
switch (semicolonToken.
Kind
)
38119
switch (implicitOrExplicitKeyword.
Kind
)
38126
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
38129
switch (checkedKeyword.
Kind
)
38140
switch (semicolonToken.
Kind
)
38156
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
38160
switch (semicolonToken.
Kind
)
38182
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
38184
switch (thisOrBaseKeyword.
Kind
)
38210
if (tildeToken.
Kind
!= SyntaxKind.TildeToken) throw new ArgumentException(nameof(tildeToken));
38212
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
38216
switch (semicolonToken.
Kind
)
38233
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
38236
switch (semicolonToken.
Kind
)
38252
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
38273
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
38276
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
38279
switch (semicolonToken.
Kind
)
38296
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
38300
switch (semicolonToken.
Kind
)
38316
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
38318
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
38348
switch (keyword.
Kind
)
38360
switch (semicolonToken.
Kind
)
38376
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
38378
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
38398
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
38400
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
38421
switch (identifier.
Kind
)
38479
if (endOfComment.
Kind
!= SyntaxKind.EndOfDocumentationCommentToken) throw new ArgumentException(nameof(endOfComment));
38509
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
38549
if (extensionKeyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(extensionKeyword));
38552
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
38563
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
38583
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
38586
switch (checkedKeyword.
Kind
)
38594
switch (operatorToken.
Kind
)
38641
switch (implicitOrExplicitKeyword.
Kind
)
38648
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
38651
switch (checkedKeyword.
Kind
)
38668
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
38670
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
38690
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
38692
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
38713
switch (refKindKeyword.
Kind
)
38724
switch (readOnlyKeyword.
Kind
)
38771
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
38774
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
38784
if (lessThanSlashToken.
Kind
!= SyntaxKind.LessThanSlashToken) throw new ArgumentException(nameof(lessThanSlashToken));
38787
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
38807
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
38810
if (slashGreaterThanToken.
Kind
!= SyntaxKind.SlashGreaterThanToken) throw new ArgumentException(nameof(slashGreaterThanToken));
38820
if (localName.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(localName));
38840
if (prefix.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(prefix));
38842
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
38863
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
38865
switch (startQuoteToken.
Kind
)
38872
switch (endQuoteToken.
Kind
)
38888
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
38890
switch (startQuoteToken.
Kind
)
38898
switch (endQuoteToken.
Kind
)
38914
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
38916
switch (startQuoteToken.
Kind
)
38924
switch (endQuoteToken.
Kind
)
38957
if (startCDataToken.
Kind
!= SyntaxKind.XmlCDataStartToken) throw new ArgumentException(nameof(startCDataToken));
38959
if (endCDataToken.
Kind
!= SyntaxKind.XmlCDataEndToken) throw new ArgumentException(nameof(endCDataToken));
38979
if (startProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionStartToken) throw new ArgumentException(nameof(startProcessingInstructionToken));
38982
if (endProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionEndToken) throw new ArgumentException(nameof(endProcessingInstructionToken));
38992
if (lessThanExclamationMinusMinusToken.
Kind
!= SyntaxKind.XmlCommentStartToken) throw new ArgumentException(nameof(lessThanExclamationMinusMinusToken));
38994
if (minusMinusGreaterThanToken.
Kind
!= SyntaxKind.XmlCommentEndToken) throw new ArgumentException(nameof(minusMinusGreaterThanToken));
39014
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39016
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
39019
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39029
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39031
if (elifKeyword.
Kind
!= SyntaxKind.ElifKeyword) throw new ArgumentException(nameof(elifKeyword));
39034
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39044
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39046
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
39048
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39058
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39060
if (endIfKeyword.
Kind
!= SyntaxKind.EndIfKeyword) throw new ArgumentException(nameof(endIfKeyword));
39062
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39072
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39074
if (regionKeyword.
Kind
!= SyntaxKind.RegionKeyword) throw new ArgumentException(nameof(regionKeyword));
39076
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39086
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39088
if (endRegionKeyword.
Kind
!= SyntaxKind.EndRegionKeyword) throw new ArgumentException(nameof(endRegionKeyword));
39090
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39100
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39102
if (errorKeyword.
Kind
!= SyntaxKind.ErrorKeyword) throw new ArgumentException(nameof(errorKeyword));
39104
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39114
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39116
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
39118
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39128
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39131
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39141
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39143
if (defineKeyword.
Kind
!= SyntaxKind.DefineKeyword) throw new ArgumentException(nameof(defineKeyword));
39145
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
39147
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39157
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39159
if (undefKeyword.
Kind
!= SyntaxKind.UndefKeyword) throw new ArgumentException(nameof(undefKeyword));
39161
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
39163
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39173
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39175
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
39177
switch (line.
Kind
)
39186
switch (file.
Kind
)
39194
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39204
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
39206
if (line.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(line));
39208
if (commaToken.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(commaToken));
39210
if (character.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(character));
39212
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
39222
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39224
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
39227
if (minusToken.
Kind
!= SyntaxKind.MinusToken) throw new ArgumentException(nameof(minusToken));
39231
switch (characterOffset.
Kind
)
39239
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
39241
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39251
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39253
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
39255
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
39257
switch (disableOrRestoreKeyword.
Kind
)
39264
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39274
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39276
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
39278
if (checksumKeyword.
Kind
!= SyntaxKind.ChecksumKeyword) throw new ArgumentException(nameof(checksumKeyword));
39280
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
39282
if (guid.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(guid));
39284
if (bytes.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(bytes));
39286
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39296
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39298
if (referenceKeyword.
Kind
!= SyntaxKind.ReferenceKeyword) throw new ArgumentException(nameof(referenceKeyword));
39300
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
39302
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39312
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39314
if (loadKeyword.
Kind
!= SyntaxKind.LoadKeyword) throw new ArgumentException(nameof(loadKeyword));
39316
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
39318
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39328
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39330
if (exclamationToken.
Kind
!= SyntaxKind.ExclamationToken) throw new ArgumentException(nameof(exclamationToken));
39332
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39342
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39344
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
39347
switch (content.
Kind
)
39355
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
39365
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
39367
if (nullableKeyword.
Kind
!= SyntaxKind.NullableKeyword) throw new ArgumentException(nameof(nullableKeyword));
39369
switch (settingToken.
Kind
)
39378
switch (targetToken.
Kind
)
39387
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.cs (744)
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
)
2646
switch (this.CurrentToken.
Kind
)
2649
if (this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken)
2656
if (this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
2688
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
2722
if (this.CurrentToken.
Kind
== SyntaxKind.ConstKeyword)
2735
if (this.CurrentToken.
Kind
== SyntaxKind.EventKeyword)
2741
if (this.CurrentToken.
Kind
== SyntaxKind.FixedKeyword)
2753
if (this.CurrentToken.
Kind
== SyntaxKind.NamespaceKeyword)
2771
if ((!haveAttributes || !IsScript) && !haveModifiers && (type.
Kind
== SyntaxKind.RefType || !IsOperatorStart(out _, advanceParser: false)))
2775
if (this.CurrentToken.
Kind
is not SyntaxKind.CloseBraceToken and not SyntaxKind.EndOfFileToken &&
2863
!type.IsMissing && type.
Kind
!= SyntaxKind.RefType &&
2994
switch (statement?.
Kind
)
3002
statement is ExpressionStatementSyntax { Expression.
Kind
: SyntaxKind.IdentifierName, SemicolonToken.IsMissing: true }:
3016
if (CurrentToken.
Kind
== SyntaxKind.UsingKeyword)
3021
if (CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).
Kind
== SyntaxKind.UsingKeyword)
3077
if (attributes.Count == 0 && modifiers.Count == 0 && type.IsMissing && type.
Kind
!= SyntaxKind.RefType)
3167
if (type.
Kind
!= SyntaxKind.RefType &&
3170
|| this.CurrentToken.
Kind
is not SyntaxKind.OpenParenToken and not SyntaxKind.OpenBraceToken and not SyntaxKind.EqualsGreaterThanToken) &&
3195
if (identifierOrThisOpt?.
Kind
== SyntaxKind.ThisKeyword)
3216
var kind = this.PeekToken(index).
Kind
;
3225
kind = this.PeekToken(index + 1).
Kind
;
3278
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
3284
if (this.CurrentToken.
Kind
== SyntaxKind.TildeToken)
3290
if (this.CurrentToken.
Kind
== SyntaxKind.ConstKeyword)
3296
if (this.CurrentToken.
Kind
== SyntaxKind.EventKeyword)
3302
if (this.CurrentToken.
Kind
== SyntaxKind.FixedKeyword)
3342
if (type.
Kind
!= SyntaxKind.RefType)
3411
(IsFeatureEnabled(MessageID.IDS_FeatureExtensions) || this.PeekToken(1).
Kind
== SyntaxKind.LessThanToken);
3422
if (type.
Kind
!= SyntaxKind.IdentifierName)
3425
if (identifierOrThisOpt.
Kind
!= SyntaxKind.IdentifierToken)
3442
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
3447
if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).
Kind
== SyntaxKind.UsingKeyword)
3468
switch (this.PeekToken(1).
Kind
)
3485
return this.CurrentToken.
Kind
is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.OperatorKeyword;
3507
if (token.
Kind
!= SyntaxKind.None)
3543
var currentTokenKind = this.CurrentToken.
Kind
;
3546
this.PeekToken(1).
Kind
is SyntaxKind.ThisKeyword or SyntaxKind.BaseKeyword &&
3547
this.PeekToken(2).
Kind
is SyntaxKind.OpenParenToken);
3560
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.ColonToken or SyntaxKind.EqualsGreaterThanToken);
3563
var token = this.CurrentToken.
Kind
is SyntaxKind.BaseKeyword or SyntaxKind.ThisKeyword
3567
var argumentList = this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken
3575
token.
Kind
== SyntaxKind.BaseKeyword
3585
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.TildeToken);
3611
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
3619
blockBody = this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
3623
expressionBody = this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken
3634
else if (parseSemicolonAfterBlock && this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
3646
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
3652
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
3658
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
3674
=> this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.OpenBraceToken;
3678
return this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.OpenBraceToken;
3682
=> this.CurrentToken.
Kind
is SyntaxKind.DotToken or SyntaxKind.ColonColonToken;
3685
=> this.CurrentToken.
Kind
== (errored ? SyntaxKind.CloseParenToken : SyntaxKind.GreaterThanToken);
3688
=> this.CurrentToken.
Kind
== SyntaxKind.CloseBracketToken;
3710
else if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
3760
switch (this.CurrentToken.
Kind
)
3779
if (this.CurrentToken.
Kind
is not (SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword))
3783
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
3793
if (this.CurrentToken.
Kind
== SyntaxKind.OperatorKeyword)
3807
(IsMakingProgress(ref lastTokenPosition, assertIfFalse: false) && this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken))
3813
separatorKind = this.CurrentToken.
Kind
;
3835
if (this.CurrentToken.
Kind
!= SyntaxKind.OperatorKeyword ||
3840
else if (this.PeekToken(1).
Kind
is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword)
3842
possibleConversion = !SyntaxFacts.IsAnyOverloadableOperator(this.PeekToken(2).
Kind
);
3846
possibleConversion = !SyntaxFacts.IsAnyOverloadableOperator(this.PeekToken(1).
Kind
);
3857
var style = this.CurrentToken.
Kind
is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword
3867
if (!style.IsMissing && explicitInterfaceOpt is not null && this.CurrentToken.
Kind
!= SyntaxKind.OperatorKeyword && style.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia))
3899
bool couldBeParameterList = this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken;
3904
this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
3935
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
3952
if (this.CurrentToken.
Kind
== SyntaxKind.OperatorKeyword)
3962
(IsMakingProgress(ref lastTokenPosition, assertIfFalse: false) && this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken);
3969
if (separator?.
Kind
== SyntaxKind.ColonColonToken)
3989
if (separator.
Kind
!= SyntaxKind.DotToken)
3991
separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.
Kind
, separator.GetLeadingTriviaWidth(), separator.Width));
4001
if (CurrentToken.
Kind
== SyntaxKind.UncheckedKeyword)
4021
if (firstToken.
Kind
is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword &&
4022
this.PeekToken(1).
Kind
is SyntaxKind.OperatorKeyword)
4053
if (SyntaxFacts.IsAnyOverloadableOperator(this.CurrentToken.
Kind
))
4062
if (this.CurrentToken.
Kind
is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)
4095
if (opToken.
Kind
== SyntaxKind.GreaterThanToken)
4099
if (tk.
Kind
== SyntaxKind.GreaterThanToken)
4106
if (tk.
Kind
== SyntaxKind.GreaterThanToken &&
4113
else if (tk.
Kind
== SyntaxKind.GreaterThanEqualsToken &&
4127
else if (tk.
Kind
== SyntaxKind.GreaterThanEqualsToken &&
4136
var opKind = opToken.
Kind
;
4220
Debug.Assert(thisKeyword.
Kind
== SyntaxKind.ThisKeyword);
4236
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken)
4244
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
4253
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken
4288
if (this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken)
4296
var accessorList = this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
4304
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken)
4310
else if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
4322
else if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
4407
if (this.CurrentToken.
Kind
== SyntaxKind.CloseBraceToken)
4442
var refKeyword = this.CurrentToken.
Kind
== SyntaxKind.RefKeyword && !this.IsPossibleLambdaExpression(Precedence.Expression)
4453
static p => p.CurrentToken.
Kind
!= SyntaxKind.CloseBraceToken && !p.IsPossibleAccessor(),
4460
return this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken
4463
|| this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken // for accessor blocks w/ missing keyword
4464
|| this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken // for empty body accessors w/ missing keyword
4498
if (token.
Kind
is SyntaxKind.CloseBraceToken or SyntaxKind.EndOfFileToken)
4716
bool currentTokenIsSemicolon = this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken;
4717
bool currentTokenIsArrow = this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken;
4718
bool currentTokenIsOpenBraceToken = this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken;
4900
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleParameter(),
4901
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
4908
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken;
4913
switch (this.CurrentToken.
Kind
)
4927
IsPredefinedType(this.CurrentToken.
Kind
);
4987
if (this.CurrentToken.
Kind
== SyntaxKind.ArgListKeyword)
4998
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && IsCurrentTokenWhereOfConstraintClause())
5005
identifier = identifierIsOptional && this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken
5011
if (identifier is not null && this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken && this.PeekToken(1).
Kind
is SyntaxKind.CloseBracketToken)
5038
switch (token.
Kind
)
5088
if (this.PeekToken(1).
Kind
is not (SyntaxKind.CloseParenToken or SyntaxKind.CommaToken or SyntaxKind.EqualsToken))
5106
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.FixedKeyword);
5124
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.EventKeyword);
5148
if (explicitInterfaceOpt != null && this.CurrentToken.
Kind
is not SyntaxKind.OpenBraceToken and not SyntaxKind.SemicolonToken)
5173
else if (identifierOrThisOpt.
Kind
!= SyntaxKind.IdentifierToken)
5175
Debug.Assert(identifierOrThisOpt.
Kind
== SyntaxKind.ThisKeyword);
5184
Debug.Assert(identifier.
Kind
== SyntaxKind.IdentifierToken);
5200
if (explicitInterfaceOpt != null && this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5227
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5246
if (modifiers is [.., SyntaxToken {
Kind
: SyntaxKind.ScopedKeyword } scopedKeyword])
5280
if (this.CurrentToken.
Kind
== SyntaxKind.DotToken)
5296
return this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken;
5361
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5365
else if (stopOnCloseParen && this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken)
5369
else if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
5384
if (flags.HasFlag(VariableFlags.ForStatement) && this.PeekToken(1).
Kind
!= SyntaxKind.SemicolonToken)
5388
this.PeekToken(2).
Kind
is SyntaxKind.CommaToken or SyntaxKind.EqualsToken or SyntaxKind.SemicolonToken;
5419
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
5420
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
5575
var currentTokenKind = this.CurrentToken.
Kind
;
5586
currentTokenKind = this.CurrentToken.
Kind
;
5636
switch (this.CurrentToken.
Kind
)
5647
var refKeyword = isLocalOrField && !isConst && this.CurrentToken.
Kind
== SyntaxKind.RefKeyword && !this.IsPossibleLambdaExpression(Precedence.Expression)
5705
bool isOmitted = expression.
Kind
== SyntaxKind.OmittedArraySizeExpression;
5724
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
5742
Debug.Assert(this.CurrentToken.
Kind
!= SyntaxKind.EqualsToken);
5759
if (parentType.
Kind
== SyntaxKind.ArrayType)
5782
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
5796
this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken &&
5797
this.PeekToken(1).
Kind
is SyntaxKind.IdentifierToken or SyntaxKind.CommaToken or SyntaxKind.EqualsToken or SyntaxKind.SemicolonToken or SyntaxKind.CloseParenToken or SyntaxKind.EndOfFileToken;
5821
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken or SyntaxKind.LessThanToken);
5829
(this.CurrentToken.
Kind
is SyntaxKind.OpenBraceToken or SyntaxKind.EqualsGreaterThanToken ||
5840
switch (this.CurrentToken.
Kind
)
5852
return this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
5859
return this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken || this.IsPossibleExpression();
5878
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DelegateKeyword);
5911
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.EnumKeyword);
5926
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
5942
if (CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5987
static p => p.CurrentToken.
Kind
is not SyntaxKind.CommaToken and not SyntaxKind.SemicolonToken && !p.IsPossibleEnumMemberDeclaration(),
5988
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
6003
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
6008
this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseBraceToken
6018
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken || this.IsTrueIdentifier();
6023
return this.CurrentToken.
Kind
is SyntaxKind.DotToken or SyntaxKind.ColonColonToken;
6062
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
6082
token.
Kind
== SyntaxKind.IdentifierToken &&
6102
var ctk = this.CurrentToken.
Kind
;
6160
if (this.CurrentToken.
Kind
!= SyntaxKind.LessThanToken)
6190
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
6191
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
6203
if (this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken or SyntaxKind.InKeyword or SyntaxKind.OutKeyword)
6212
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
6231
this.CurrentToken.
Kind
is SyntaxKind.InKeyword or SyntaxKind.OutKeyword ? EatToken() : null,
6248
if (this.CurrentToken.
Kind
== SyntaxKind.LessThanToken)
6258
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6283
if (this.CurrentToken.
Kind
!= SyntaxKind.LessThanToken)
6331
Debug.Assert(greaterThanToken.
Kind
== SyntaxKind.GreaterThanToken);
6333
switch (this.CurrentToken.
Kind
)
6367
case SyntaxKind.GreaterThanToken when ((options & NameOptions.AfterIs) != 0) && this.PeekToken(1).
Kind
!= SyntaxKind.GreaterThanToken:
6388
(options & NameOptions.AfterTupleComma) != 0 && this.PeekToken(1).
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken ||
6389
(options & NameOptions.FirstElementOfPossibleTupleLiteral) != 0 && this.PeekToken(1).
Kind
== SyntaxKind.CommaToken)
6415
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6425
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
6428
Debug.Assert(start.
Kind
== SyntaxKind.LessThanToken);
6429
Debug.Assert(greaterThanToken.
Kind
== SyntaxKind.GreaterThanToken);
6442
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
6448
if (this.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken)
6457
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
6492
isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken;
6519
isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken;
6541
isDefinitelyTypeArgumentList = this.CurrentToken.
Kind
== SyntaxKind.CommaToken;
6559
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken);
6561
if (this.CurrentToken.
Kind
!= SyntaxKind.GreaterThanToken)
6567
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken)
6576
if (lastScannedType is ScanTypeFlags.TupleType && this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken)
6589
isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken;
6601
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6611
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
6628
if (this.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken)
6644
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken && tokenBreaksTypeArgumentList(this.PeekToken(1)))
6653
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken
6654
&& this.PeekToken(1).
Kind
is SyntaxKind.CloseBracketToken)
6659
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken || this.IsPossibleType())
6684
switch (token.
Kind
)
6729
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleType(),
6730
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken,
6738
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken && this.PeekToken(1).
Kind
!= SyntaxKind.CloseBracketToken)
6754
var varianceToken = this.CurrentToken.
Kind
is SyntaxKind.InKeyword or SyntaxKind.OutKeyword
6781
this.CurrentToken.
Kind
is not SyntaxKind.CommaToken and not SyntaxKind.GreaterThanToken &&
6782
this.PeekToken(1).
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken)
6803
=> this.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken;
6807
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6809
while (this.PeekToken(n).
Kind
== SyntaxKind.CommaToken)
6812
return this.PeekToken(n).
Kind
== SyntaxKind.GreaterThanToken;
6845
if (this.CurrentToken.
Kind
== SyntaxKind.ThisKeyword)
6871
if (separator != null && separator.
Kind
== SyntaxKind.ColonColonToken)
6890
if (separator.
Kind
!= SyntaxKind.DotToken)
6892
separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.
Kind
, separator.GetLeadingTriviaWidth(), separator.Width));
6896
if (isEvent && this.CurrentToken.
Kind
is not SyntaxKind.OpenBraceToken and not SyntaxKind.SemicolonToken)
6967
separator = this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken
6980
if (this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken)
7009
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
7045
if (separator != null && separator.
Kind
== SyntaxKind.ColonColonToken)
7072
if (separator.
Kind
!= SyntaxKind.DotToken)
7074
separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.
Kind
, separator.GetLeadingTriviaWidth(), separator.Width));
7085
return this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken
7097
if (this.PeekToken(1).
Kind
== SyntaxKind.ThisKeyword)
7114
Debug.Assert(separator.
Kind
is SyntaxKind.DotToken or SyntaxKind.ColonColonToken);
7117
switch (separator.
Kind
)
7123
if (left.
Kind
!= SyntaxKind.IdentifierName)
7215
var tk = this.CurrentToken.
Kind
;
7236
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken || !this.IsTrueIdentifier())
7243
if (this.CurrentToken.
Kind
== SyntaxKind.LessThanToken)
7258
if (this.CurrentToken.
Kind
== SyntaxKind.RefKeyword)
7263
if (this.CurrentToken.
Kind
== SyntaxKind.ReadOnlyKeyword)
7270
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken or SyntaxKind.ColonColonToken)
7273
if (this.CurrentToken.
Kind
is SyntaxKind.ColonColonToken)
7287
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken);
7290
isAlias = this.PeekToken(1).
Kind
== SyntaxKind.ColonColonToken;
7327
else if (IsPredefinedType(this.CurrentToken.
Kind
))
7333
else if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
7338
if (result == ScanTypeFlags.NotType || mode == ParseTypeMode.DefinitePattern && this.CurrentToken.
Kind
!= SyntaxKind.OpenBracketToken)
7358
switch (this.CurrentToken.
Kind
)
7361
when lastTokenOfType.
Kind
is not SyntaxKind.QuestionToken // don't allow `Type??`
7399
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7404
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
7437
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7455
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken);
7457
if (this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken)
7479
if (CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
7487
case var _ when peek1.
Kind
== SyntaxKind.OpenBracketToken:
7497
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
7514
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.CommaToken);
7537
var validStartingToken = EatToken().
Kind
== SyntaxKind.LessThanToken;
7567
if (!validStartingToken && CurrentToken.
Kind
== SyntaxKind.CloseParenToken)
7581
isNotExpectedFunction: static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
7602
if (this.CurrentToken.
Kind
== SyntaxKind.VoidKeyword && this.PeekToken(1).
Kind
!= SyntaxKind.AsteriskToken)
7627
if (this.CurrentToken.
Kind
== SyntaxKind.RefKeyword)
7631
this.CurrentToken.
Kind
== SyntaxKind.ReadOnlyKeyword ? this.EatToken() : null,
7675
switch (this.CurrentToken.
Kind
)
7723
while (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken);
7744
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.QuestionToken);
7750
if (typeParsedSoFar.
Kind
is SyntaxKind.NullableType or SyntaxKind.PointerType)
7767
if (mode == ParseTypeMode.AfterIs && this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken)
7777
switch (this.PeekToken(1).
Kind
)
7794
return this.CurrentToken.
Kind
!= SyntaxKind.ColonToken;
7839
var nextTokenKind = nextToken.
Kind
;
7884
if (this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken)
7893
this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken or // ctor parameters
7907
switch (this.PeekToken(i).
Kind
)
7928
while (IsMakingProgress(ref lastTokenPosition) && this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
7930
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7943
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
7984
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken)
7988
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
8023
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleExpression(),
8024
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.CloseBracketToken,
8030
if (IsPredefinedType(this.CurrentToken.
Kind
))
8034
if (token.
Kind
== SyntaxKind.VoidKeyword && this.CurrentToken.
Kind
!= SyntaxKind.AsteriskToken)
8043
if (IsTrueIdentifier() || this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken)
8048
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
8114
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.CommaToken);
8125
lessThanToken.IsMissing && CurrentToken.
Kind
== SyntaxKind.CloseParenToken
8140
isNotExpectedFunction: static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
8148
if (CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
8164
case var _ when peek1.
Kind
== SyntaxKind.OpenBracketToken:
8176
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
8194
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.CommaToken);
8210
if (managedSpecifier.
Kind
== SyntaxKind.ManagedKeyword && unmanagedCallingConventions != null)
8224
=> CurrentToken.
Kind
== SyntaxKind.DelegateKeyword && PeekToken(1).
Kind
== SyntaxKind.AsteriskToken;
8229
=> token.
Kind
== SyntaxKind.LessThanToken || token.
Kind
== SyntaxKind.OpenParenToken;
8235
while (this.CurrentToken.
Kind
== SyntaxKind.AsteriskToken)
8255
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenBracketToken)
8269
while (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
8279
var isCollectionExpression = this.CurrentToken.
Kind
8292
|| IsExpectedBinaryOperator(this.CurrentToken.
Kind
)
8293
|| IsExpectedAssignmentOperator(this.CurrentToken.
Kind
)
8294
|| (this.CurrentToken.ContextualKind is SyntaxKind.SwitchKeyword or SyntaxKind.WithKeyword && this.PeekToken(1).
Kind
is SyntaxKind.OpenBraceToken);
8298
this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
8357
switch (this.CurrentToken.
Kind
)
8489
this.PeekToken(1).
Kind
== SyntaxKind.ForEachKeyword)
8495
if (PeekToken(2).
Kind
== SyntaxKind.OpenParenToken)
8522
=> PeekToken(1).
Kind
== SyntaxKind.OpenParenToken ? ParseUsingStatement(attributes) : ParseLocalDeclarationStatement(attributes);
8529
=> CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword && PeekToken(1).
Kind
== SyntaxKind.UsingKeyword;
8533
return this.PeekToken(1).
Kind
== SyntaxKind.ColonToken && this.IsTrueIdentifier();
8538
return this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken;
8544
this.PeekToken(1).
Kind
is SyntaxKind.ReturnKeyword or SyntaxKind.BreakKeyword;
8553
var tk = this.CurrentToken.
Kind
;
8557
this.PeekToken(1).
Kind
is not SyntaxKind.DotToken // e.g. `int.Parse()` is an expression
8566
Debug.Assert(PeekToken(1).
Kind
!= SyntaxKind.OpenParenToken);
8572
Debug.Assert(PeekToken(2).
Kind
!= SyntaxKind.OpenParenToken);
8622
if (token1.
Kind
== SyntaxKind.DotToken &&
8625
if (PeekToken(2).
Kind
== SyntaxKind.IdentifierToken &&
8626
PeekToken(3).
Kind
== SyntaxKind.IdentifierToken)
8641
var token4Kind = PeekToken(4).
Kind
;
8661
if (st == ScanTypeFlags.MustBeType && this.CurrentToken.
Kind
is not SyntaxKind.DotToken and not SyntaxKind.OpenParenToken)
8671
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
8679
return st == ScanTypeFlags.GenericTypeOrExpression && (IsDefiniteStatement() || IsTypeDeclarationStart() || IsAccessibilityModifier(CurrentToken.
Kind
));
8700
if (this.CurrentToken.
Kind
!= SyntaxKind.UsingKeyword)
8705
var tk = PeekToken(1).
Kind
;
8766
if (this.CurrentToken.
Kind
is SyntaxKind.OpenBraceToken)
8772
if (identifierOrThisOpt.
Kind
== SyntaxKind.ThisKeyword)
8787
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
8794
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
8803
return this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.SemicolonToken;
8821
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken || this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword)
8828
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
8853
if (parameter.Modifiers[i].
Kind
== SyntaxKind.ParamsKeyword)
8863
if (parameter.Identifier.
Kind
== SyntaxKind.ArgListKeyword)
8868
else if (parameter.Type.
Kind
== SyntaxKind.NullableType)
8888
else if (parameter.Type.
Kind
== SyntaxKind.IdentifierName &&
8920
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DelegateKeyword);
8925
if (nextToken.
Kind
== SyntaxKind.OpenBraceToken)
8931
if (nextToken.
Kind
!= SyntaxKind.OpenParenToken)
8948
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
8957
if (scanResult == ScanTypeFlags.TupleType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
8968
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.NewKeyword);
8975
switch (nextToken.
Kind
)
9003
if (SyntaxFacts.GetBaseTypeDeclarationKind(nextToken.
Kind
) != SyntaxKind.None)
9011
if (SyntaxFacts.IsPredefinedType(PeekToken(2).
Kind
))
9018
if (IsTypeModifierOrTypeKeyword(PeekToken(2).
Kind
))
9056
switch (next.
Kind
)
9113
CSharpSyntaxNode openBrace = isAccessorBody && this.CurrentToken.
Kind
!= SyntaxKind.OpenBraceToken
9194
while (this.CurrentToken.
Kind
is not SyntaxKind.CloseBraceToken and not SyntaxKind.EndOfFileToken
9226
return this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
9238
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.CloseBraceToken,
9246
var tk = this.CurrentToken.
Kind
;
9283
var tk = this.CurrentToken.
Kind
;
9328
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.OpenBraceToken or SyntaxKind.SemicolonToken;
9354
if (statement.
Kind
== SyntaxKind.ExpressionStatement &&
9391
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.TryKeyword or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword);
9404
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword);
9418
if (this.CurrentToken.
Kind
== SyntaxKind.CatchKeyword)
9421
while (this.CurrentToken.
Kind
== SyntaxKind.CatchKeyword)
9427
if (this.CurrentToken.
Kind
== SyntaxKind.FinallyKeyword)
9462
return this.CurrentToken.
Kind
is SyntaxKind.CloseBraceToken or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword;
9467
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.CatchKeyword);
9474
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
9526
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken
9535
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken
9543
return this.CurrentToken.
Kind
is SyntaxKind.CloseBraceToken
9550
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword);
9552
if (this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
9559
SyntaxFacts.GetCheckStatement(keyword.
Kind
),
9567
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DoKeyword);
9591
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken;
9608
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ForKeyword);
9610
if (this.EatToken().
Kind
== SyntaxKind.OpenParenToken &&
9612
this.EatToken().
Kind
== SyntaxKind.IdentifierToken &&
9613
this.EatToken().
Kind
== SyntaxKind.InKeyword)
9629
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ForKeyword);
9639
var condition = this.CurrentToken.
Kind
is not SyntaxKind.SemicolonToken and not SyntaxKind.CommaToken
9648
var incrementors = this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken
9679
if (this.PeekToken(1).
Kind
== SyntaxKind.RefKeyword)
9686
isDeclaration = ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken;
9690
else if (this.CurrentToken.
Kind
== SyntaxKind.RefKeyword)
9707
else if (this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken)
9722
=> this.CurrentToken.
Kind
is SyntaxKind.CommaToken
9730
while (this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.CommaToken)
9754
if (@this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken)
9758
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleExpression(),
9759
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind || p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
9766
return this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.CloseParenToken or SyntaxKind.OpenBraceToken;
9773
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ForEachKeyword || this.CurrentToken.
Kind
== SyntaxKind.ForKeyword);
9784
if (this.CurrentToken.
Kind
== SyntaxKind.ForKeyword)
9810
if (decl.designation.
Kind
!= SyntaxKind.ParenthesizedVariableDesignation)
9814
switch (decl.designation.
Kind
)
9822
Debug.Assert(discard.
Kind
== SyntaxKind.UnderscoreToken);
9826
throw ExceptionUtilities.UnexpectedValue(decl.designation.
Kind
);
9889
if (ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
9894
if (this.PeekToken(1).
Kind
== SyntaxKind.CommaToken)
9902
if (this.PeekToken(1).
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken)
9928
if (!ScanDesignation(permitTupleDesignation && (typeIsVar || IsPredefinedType(lastTokenOfType.
Kind
))))
9936
return this.CurrentToken.
Kind
== SyntaxKind.CommaToken;
9938
return this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken;
9956
switch (this.PeekToken(1).
Kind
)
9972
switch (variable.
Kind
)
9990
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.GotoKeyword);
9998
if (this.CurrentToken.
Kind
is SyntaxKind.CaseKeyword or SyntaxKind.DefaultKeyword)
10001
if (caseOrDefault.
Kind
== SyntaxKind.CaseKeyword)
10026
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken)
10037
if (this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken &&
10038
this.PeekToken(1).
Kind
!= SyntaxKind.EqualsGreaterThanToken &&
10056
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.IfKeyword);
10069
var elseKeyword = this.CurrentToken.
Kind
!= SyntaxKind.ElseKeyword ?
10080
if (this.CurrentToken.
Kind
!= SyntaxKind.IfKeyword)
10121
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ElseKeyword);
10135
return this.CurrentToken.
Kind
!= SyntaxKind.ElseKeyword
10144
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LockKeyword);
10156
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ReturnKeyword);
10160
this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken ? this.ParsePossibleRefExpression() : null,
10173
if (this.CurrentToken.
Kind
== SyntaxKind.BreakKeyword)
10182
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
10203
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.SwitchKeyword or SyntaxKind.CaseKeyword);
10228
if (this.CurrentToken.
Kind
is SyntaxKind.CaseKeyword)
10242
if (expression.
Kind
== SyntaxKind.ParenthesizedExpression)
10251
else if (expression.
Kind
== SyntaxKind.TupleExpression)
10273
return this.CurrentToken.
Kind
== SyntaxKind.CaseKeyword ||
10274
(this.CurrentToken.
Kind
== SyntaxKind.DefaultKeyword && this.PeekToken(1).
Kind
!= SyntaxKind.OpenParenToken);
10288
if (this.CurrentToken.
Kind
== SyntaxKind.CaseKeyword)
10292
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
10307
if (node.
Kind
== SyntaxKind.DiscardPattern)
10329
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DefaultKeyword);
10351
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ThrowKeyword);
10355
this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken ? this.ParseExpressionCore() : null,
10361
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.UnsafeKeyword);
10429
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
10436
switch (this.PeekToken(1).
Kind
)
10456
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken &&
10457
declaration.Type.
Kind
== SyntaxKind.NullableType &&
10458
SyntaxFacts.IsName(((NullableTypeSyntax)declaration.Type).ElementType.
Kind
) &&
10488
bool condition1 = st == ScanTypeFlags.MustBeType && this.CurrentToken.
Kind
!= SyntaxKind.DotToken;
10489
bool condition2 = st != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken;
10490
bool condition3 = st == ScanTypeFlags.NonGenericTypeOrExpression || this.PeekToken(1).
Kind
== SyntaxKind.EqualsToken;
10497
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.WhileKeyword);
10511
Debug.Assert(this.IsTrueIdentifier() && this.PeekToken(1).
Kind
== SyntaxKind.ColonToken);
10532
else if (this.CurrentToken.
Kind
== SyntaxKind.UsingKeyword)
10662
return this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken;
10664
else if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
10689
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
10697
done = (this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken);
10710
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
10821
if (allowLocalFunctions && localFunction == null && type is PredefinedTypeSyntax { Keyword.
Kind
: SyntaxKind.VoidKeyword })
10831
switch (this.CurrentToken.
Kind
)
10881
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken);
10887
if (IsDeclarationModifier(this.CurrentToken.
Kind
) ||
10888
IsAdditionalLocalFunctionModifier(this.CurrentToken.
Kind
))
10895
if (ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
10980
if (type.
Kind
== SyntaxKind.IdentifierName)
11086
if (IsScript && this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken)
11130
SyntaxKind tk = this.CurrentToken.
Kind
;
11429
switch (next.
Kind
)
11480
_ = GetPrecedence(result.
Kind
);
11495
var tk = this.CurrentToken.
Kind
;
11591
if (this.CurrentToken.
Kind
== SyntaxKind.QuestionToken && precedence <= Precedence.Conditional)
11622
if (newPrecedence > GetPrecedence(leftOperand.
Kind
))
11637
leftOperand.
Kind
== SyntaxKind.IsPatternExpression ? ErrorCode.ERR_UnexpectedToken : ErrorCode.WRN_PrecedenceInversion,
11666
if (IsExpectedAssignmentOperator(operatorToken.
Kind
))
11669
if (IsExpectedBinaryOperator(operatorToken.
Kind
))
11689
if (this.CurrentToken.
Kind
!= SyntaxKind.ColonToken &&
11707
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
11719
if (this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken && this.lexer.InterpolationFollowedByColon)
11753
conditionalExpression.WhenTrue.GetFirstToken().
Kind
== SyntaxKind.OpenBracketToken)
11789
&& this.PeekToken(1) is {
Kind
: SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken } token2
11792
if (token2.
Kind
== SyntaxKind.GreaterThanToken)
11794
if (this.PeekToken(2) is {
Kind
: SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken } token3
11798
token1Kind = token3.
Kind
== SyntaxKind.GreaterThanToken
11821
if (token1Kind == SyntaxKind.SwitchKeyword && this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken)
11824
if (token1Kind == SyntaxKind.WithKeyword && this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken)
11875
Debug.Assert(IsExpectedAssignmentOperator(operatorToken.
Kind
));
11880
if (operatorExpressionKind == SyntaxKind.SimpleAssignmentExpression && CurrentToken.
Kind
== SyntaxKind.RefKeyword &&
11900
if (this.CurrentToken.
Kind
!= SyntaxKind.DotToken)
11904
return nextToken.
Kind
== SyntaxKind.DotToken && NoTriviaBetween(this.CurrentToken, nextToken);
11908
=> token1.
Kind
== SyntaxKind.DotToken &&
11909
token2.
Kind
== SyntaxKind.DotToken &&
11922
if (this.CurrentToken is {
Kind
: SyntaxKind.DotToken } token3 &&
11939
if (this.PeekToken(1) is not {
Kind
: SyntaxKind.DotToken } token4 ||
11992
var tk = this.CurrentToken.
Kind
;
12046
else if (IsCurrentTokenFieldInKeywordContext() && PeekToken(1).
Kind
!= SyntaxKind.ColonColonToken)
12125
if (this.CurrentToken.
Kind
!= SyntaxKind.DotToken || tk == SyntaxKind.VoidKeyword)
12175
switch (this.CurrentToken.
Kind
)
12187
expr = _syntaxFactory.PostfixUnaryExpression(SyntaxFacts.GetPostfixUnaryExpression(this.CurrentToken.
Kind
), expr, this.EatToken());
12191
if (this.PeekToken(1).
Kind
== SyntaxKind.IdentifierToken)
12223
this.PeekToken(1).
Kind
== SyntaxKind.IdentifierToken &&
12256
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.BaseKeyword);
12270
if (precedence > Precedence.Assignment || !(this.CurrentToken.IsIdentifierVar() || IsPredefinedType(this.CurrentToken.
Kind
)))
12279
this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken && ScanDesignator() &&
12280
this.CurrentToken.
Kind
== SyntaxKind.EqualsToken;
12285
switch (this.CurrentToken.
Kind
)
12304
switch (this.CurrentToken.
Kind
)
12324
while (this.PeekToken(tokenIndex).
Kind
== SyntaxKind.StaticKeyword ||
12330
return this.PeekToken(tokenIndex).
Kind
== SyntaxKind.DelegateKeyword &&
12331
this.PeekToken(tokenIndex + 1).
Kind
!= SyntaxKind.AsteriskToken;
12378
if (this.CurrentToken.
Kind
== SyntaxKind.QuestionToken)
12381
var nextTokenKind = nextToken.
Kind
;
12417
return this.CurrentToken.
Kind
!= SyntaxKind.ColonToken;
12430
while (this.CurrentToken.
Kind
== SyntaxKind.ExclamationToken)
12466
=> this.CurrentToken.
Kind
switch
12525
openToken = this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken or SyntaxKind.OpenBracketToken
12532
if (this.CurrentToken.
Kind
!= closeKind && this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken)
12560
else if (isIndexer && this.CurrentToken.
Kind
== closeKind)
12576
closeToken = this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken
12585
if (@this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken)
12589
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleArgumentExpression(),
12590
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind || p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
12597
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken;
12602
return IsValidArgumentRefKindKeyword(this.CurrentToken.
Kind
) || this.IsPossibleExpression();
12620
var nameColon = this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.ColonToken
12627
if (IsValidArgumentRefKindKeyword(this.CurrentToken.
Kind
) &&
12629
!(this.CurrentToken.
Kind
== SyntaxKind.RefKeyword &&
12637
if (isIndexer && this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseBracketToken)
12641
else if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
12653
expression = refKindKeyword?.
Kind
== SyntaxKind.OutKeyword
12673
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
12717
Debug.Assert(checkedOrUnchecked.
Kind
is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword);
12718
var kind = checkedOrUnchecked.
Kind
== SyntaxKind.CheckedKeyword ? SyntaxKind.CheckedExpression : SyntaxKind.UncheckedExpression;
12751
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
12769
token.
Kind
is SyntaxKind.CommaToken ||
12775
return token.
Kind
== SyntaxKind.CloseParenToken &&
12776
this.PeekToken(index).
Kind
== SyntaxKind.EqualsGreaterThanToken;
12782
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
12834
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
12842
switch (this.CurrentToken.
Kind
)
12848
return this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken;
12858
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
12886
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
12894
if (expression.
Kind
== SyntaxKind.IdentifierName && this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
12915
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
12920
var argument = expression.
Kind
!= SyntaxKind.IdentifierName || this.CurrentToken.
Kind
!= SyntaxKind.ColonToken
12948
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
12961
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken)
12968
if (forPattern && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
13002
return !forPattern || this.CurrentToken.
Kind
switch
13027
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken || CanFollowCast(this.CurrentToken.
Kind
);
13033
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken &&
13034
this.PeekToken(1).
Kind
== SyntaxKind.CloseBracketToken)
13042
return CanFollowCast(this.CurrentToken.
Kind
);
13094
if (token1.
Kind
== SyntaxKind.EqualsGreaterThanToken)
13102
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
13118
if (this.CurrentToken.
Kind
== SyntaxKind.StaticKeyword)
13124
this.PeekToken(1).
Kind
== SyntaxKind.StaticKeyword)
13137
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken)
13147
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13155
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken &&
13156
this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken)
13175
if (st == ScanTypeFlags.NotType || this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13192
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken &&
13193
this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken)
13200
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13272
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.NewKeyword);
13291
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken);
13312
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleCollectionElement(),
13313
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13328
this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
13345
return this.CurrentToken.
Kind
== SyntaxKind.NewKeyword && this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken;
13353
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken);
13390
return this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken;
13395
return IsTrueIdentifier() && this.PeekToken(1).
Kind
== SyntaxKind.EqualsToken;
13400
return IsTrueIdentifier() && this.PeekToken(1).
Kind
is SyntaxKind.EqualsToken or SyntaxKind.ColonToken;
13405
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken;
13418
if (type.
Kind
== SyntaxKind.ArrayType)
13421
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
13431
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13436
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
13458
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13469
switch (this.CurrentToken.
Kind
)
13542
Kind
: SyntaxKind.SimpleAssignmentExpression,
13543
Left.
Kind
: SyntaxKind.IdentifierName or SyntaxKind.ImplicitElementAccess,
13588
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleExpression(),
13589
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13598
this.CurrentToken.
Kind
== SyntaxKind.ColonToken
13601
this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
13612
this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
13640
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.NewKeyword or SyntaxKind.StackAllocKeyword);
13641
return this.PeekToken(1).
Kind
== SyntaxKind.OpenBracketToken;
13667
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
13707
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleVariableInitializer(),
13708
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13734
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
13756
this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken ? this.ParseArrayInitializer() : null);
13773
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13786
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenBraceToken)
13817
if (this.CurrentToken.
Kind
== SyntaxKind.StaticKeyword)
13840
switch (this.PeekToken(1).
Kind
)
13863
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken &&
13891
if (CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13898
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13911
var identifier = (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken)
13928
=> CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
13959
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleLambdaParameter(),
13960
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13967
switch (this.CurrentToken.
Kind
)
13985
return IsPredefinedType(this.CurrentToken.
Kind
);
14023
if (IsPredefinedType(this.CurrentToken.
Kind
))
14029
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
14051
if (peek1.
Kind
14116
var pk1 = this.PeekToken(1).
Kind
;
14124
var pk2 = this.PeekToken(2).
Kind
;
14161
return this.ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken or SyntaxKind.InKeyword;
14228
var type = this.PeekToken(1).
Kind
!= SyntaxKind.InKeyword
14234
(this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken || SyntaxFacts.IsQueryContextualKeyword(this.CurrentToken.ContextualKind)))
14261
type: this.PeekToken(1).
Kind
!= SyntaxKind.InKeyword
14282
SyntaxFacts.IsReservedKeyword(this.CurrentToken.
Kind
) && this.PeekToken(1).
Kind
== SyntaxKind.EqualsToken
14307
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
14309
if (this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken)
14313
else if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
14334
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
14335
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.CloseParenToken
14336
|| p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
14351
if (direction.
Kind
== SyntaxKind.DescendingKeyword)
14511
if (requireOneElement || this.CurrentToken.
Kind
!= closeTokenKind)
14528
if (this.CurrentToken.
Kind
== closeTokenKind)
14539
nodes.AddSeparator(this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
14546
if (this.CurrentToken.
Kind
== closeTokenKind)
14581
if (this.CurrentToken.
Kind
== separatorTokenKind)
14586
if (allowSemicolonAsSeparator && this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken)
14675
if (this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken) return node;
14677
while (this.CurrentToken.
Kind
!= SyntaxKind.EndOfFileToken)
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\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
);