2835 references to Kind
Microsoft.CodeAnalysis.CSharp (2405)
Binder\Semantics\Operators\OperatorFacts.cs (4)
177var opTokenKind = declaration.OperatorToken.Kind; 178bool isChecked = declaration.CheckedKeyword?.Kind == SyntaxKind.CheckedKeyword; 220switch (declaration.ImplicitOrExplicitKeyword.Kind) 225return declaration.CheckedKeyword?.Kind == SyntaxKind.CheckedKeyword ?
Declarations\DeclarationTreeBuilder.cs (6)
947if (!anyExtensionDeclarationSyntax && member.Kind == SyntaxKind.ExtensionBlockDeclaration) 1072if (member.Kind == SyntaxKind.MethodDeclaration) 1086if (modifier.Kind == SyntaxKind.ThisKeyword) 1099switch (member.Kind) 1150switch (member.Kind) 1248switch (member.Kind)
Parser\DirectiveParser.cs (32)
89result = (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) ? 257if (keyword.Kind == SyntaxKind.DefineKeyword) 292bool isError = keyword.Kind == SyntaxKind.ErrorKeyword; 306if (t.Kind == SyntaxKind.WhitespaceTrivia) 376switch (this.CurrentToken.Kind) 385if (isActive && !line.IsMissing && line.Kind == SyntaxKind.NumericLiteralToken) 397if (this.CurrentToken.Kind == SyntaxKind.StringLiteralToken && 413Debug.Assert(CurrentToken.Kind == SyntaxKind.OpenParenToken); 432var characterOffset = (CurrentToken.Kind == SyntaxKind.NumericLiteralToken) ? 486else if (token.Kind == SyntaxKind.NumericLiteralToken) 545SyntaxToken setting = this.CurrentToken.Kind switch 553SyntaxToken target = this.CurrentToken.Kind switch 578if (this.CurrentToken.Kind == SyntaxKind.DisableKeyword || this.CurrentToken.Kind == SyntaxKind.RestoreKeyword) 583while (this.CurrentToken.Kind != SyntaxKind.EndOfDirectiveToken) 588if (this.CurrentToken.Kind == SyntaxKind.NumericLiteralToken) 600else if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 621if (this.CurrentToken.Kind != SyntaxKind.CommaToken) 639else if (this.CurrentToken.Kind == SyntaxKind.ChecksumKeyword) 728if (this.CurrentToken.Kind != SyntaxKind.EndOfDirectiveToken && 729this.CurrentToken.Kind != SyntaxKind.EndOfFileToken) 748while (this.CurrentToken.Kind != SyntaxKind.EndOfDirectiveToken && 749this.CurrentToken.Kind != SyntaxKind.EndOfFileToken) 756SyntaxToken endOfDirective = this.CurrentToken.Kind == SyntaxKind.EndOfDirectiveToken 777while (this.CurrentToken.Kind == SyntaxKind.BarBarToken) 790while (this.CurrentToken.Kind == SyntaxKind.AmpersandAmpersandToken) 803while (this.CurrentToken.Kind == SyntaxKind.EqualsEqualsToken || this.CurrentToken.Kind == SyntaxKind.ExclamationEqualsToken) 807left = SyntaxFactory.BinaryExpression(SyntaxFacts.GetBinaryExpression(op.Kind), left, op, right); 815if (this.CurrentToken.Kind == SyntaxKind.ExclamationToken) 826var k = this.CurrentToken.Kind; 875switch (expr.Kind)
Parser\Directives.cs (2)
30return _node.Kind; 79switch (_node.Kind)
Parser\DocumentationCommentParser.cs (95)
81if (this.CurrentToken.Kind != SyntaxKind.EndOfDocumentationCommentToken) 101bool endTag = this.CurrentToken.Kind == SyntaxKind.LessThanSlashToken; 108while (this.CurrentToken.Kind != SyntaxKind.EndOfDocumentationCommentToken) 147switch (this.CurrentToken.Kind) 171switch (this.CurrentToken.Kind) 190while (this.CurrentToken.Kind == SyntaxKind.XmlTextLiteralToken 191|| this.CurrentToken.Kind == SyntaxKind.XmlTextLiteralNewLineToken 192|| this.CurrentToken.Kind == SyntaxKind.XmlEntityLiteralToken) 218if (this.CurrentToken.Kind == SyntaxKind.GreaterThanToken) 258if (this.CurrentToken.Kind != SyntaxKind.GreaterThanToken) 261p => p.CurrentToken.Kind != SyntaxKind.GreaterThanToken, 328if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 344p => p.CurrentToken.Kind != SyntaxKind.IdentifierName, 347p => 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, 452switch (this.CurrentToken.Kind) 525SyntaxToken openQuote = EatToken(this.CurrentToken.Kind == SyntaxKind.SingleQuoteToken 533if ((current.Kind == SyntaxKind.XmlTextLiteralToken || current.Kind == SyntaxKind.XmlEntityLiteralToken) && 534current.ValueText != SyntaxFacts.GetText(openQuote.Kind) && 540if ((current.Kind == SyntaxKind.XmlTextLiteralToken || current.Kind == SyntaxKind.XmlEntityLiteralToken) && 556SyntaxKind quoteKind = startQuote.Kind; 574SyntaxKind quoteKind = startQuote.Kind; 592SyntaxKind quoteKind = startQuote.Kind; 606while (this.CurrentToken.Kind == SyntaxKind.XmlTextLiteralToken 607|| this.CurrentToken.Kind == SyntaxKind.XmlTextLiteralNewLineToken 608|| this.CurrentToken.Kind == SyntaxKind.XmlEntityLiteralToken 609|| this.CurrentToken.Kind == SyntaxKind.LessThanToken) 612if (token.Kind == SyntaxKind.LessThanToken) 636var quoteKind = this.CurrentToken.Kind == SyntaxKind.SingleQuoteToken 685if (this.CurrentToken.Kind == SyntaxKind.ColonToken) 725while (this.CurrentToken.Kind == SyntaxKind.XmlTextLiteralToken 726|| this.CurrentToken.Kind == SyntaxKind.XmlTextLiteralNewLineToken 727|| this.CurrentToken.Kind == SyntaxKind.MinusMinusToken) 730if (token.Kind == SyntaxKind.MinusMinusToken) 752while (this.CurrentToken.Kind == SyntaxKind.XmlTextLiteralToken 753|| this.CurrentToken.Kind == SyntaxKind.XmlTextLiteralNewLineToken) 774while (this.CurrentToken.Kind == SyntaxKind.XmlTextLiteralToken 775|| this.CurrentToken.Kind == SyntaxKind.XmlTextLiteralNewLineToken) 900else if (type.Kind != SyntaxKind.QualifiedName && this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 940switch (CurrentToken.Kind) 973Debug.Assert(CurrentToken.Kind == SyntaxKind.ThisKeyword); 990TypeArgumentListSyntax? typeArguments = (CurrentToken.Kind == SyntaxKind.LessThanToken) ? ParseTypeArguments(typeArgumentsMustBeIdentifiers: true) : null; 991CrefParameterListSyntax? parameters = (CurrentToken.Kind == SyntaxKind.OpenParenToken) ? ParseCrefParameterList() : null; 993if (parameters is null || CurrentToken.Kind != SyntaxKind.DotToken) 1018Debug.Assert(CurrentToken.Kind == SyntaxKind.OperatorKeyword); 1024if (SyntaxFacts.IsAnyOverloadableOperator(CurrentToken.Kind)) 1037if (SyntaxFacts.IsUnaryOperatorDeclarationToken(CurrentToken.Kind) || SyntaxFacts.IsBinaryExpressionOperatorToken(CurrentToken.Kind)) 1050if (operatorToken.Kind == SyntaxKind.GreaterThanToken && LanguageParser.NoTriviaBetween(operatorToken, CurrentToken)) 1052if (CurrentToken.Kind == SyntaxKind.GreaterThanToken) 1057CurrentToken.Kind is (SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken)) 1061if (operatorToken3.Kind == SyntaxKind.GreaterThanToken) 1093else if (CurrentToken.Kind == SyntaxKind.EqualsToken) 1103else if (CurrentToken.Kind == SyntaxKind.GreaterThanEqualsToken) 1116switch (operatorToken.Kind) 1153Debug.Assert(SyntaxFacts.IsAnyOverloadableOperator(operatorToken.Kind)); 1161if (LanguageParser.NoTriviaBetween(operatorToken, CurrentToken) && CurrentToken.Kind == SyntaxKind.EqualsToken) 1183(isConversion || SyntaxFacts.IsAnyOverloadableOperator(CurrentToken.Kind))) 1192if (CurrentToken.Kind == SyntaxKind.UncheckedKeyword) 1209Debug.Assert(CurrentToken.Kind == SyntaxKind.ExplicitKeyword || 1210CurrentToken.Kind == SyntaxKind.ImplicitKeyword); 1247if (CurrentToken.Kind != openKind) 1257while (CurrentToken.Kind == SyntaxKind.CommaToken || IsPossibleCrefParameter()) 1261if (CurrentToken.Kind != closeKind) 1272Debug.Assert(CurrentToken.Kind != SyntaxKind.CommaToken); 1297SyntaxKind kind = this.CurrentToken.Kind; 1319switch (CurrentToken.Kind) 1329if (CurrentToken.Kind == SyntaxKind.ReadOnlyKeyword && refKindOpt is not null) 1331if (refKindOpt.Kind != SyntaxKind.RefKeyword) 1356if (CurrentToken.Kind != SyntaxKind.LessThanToken) 1366Debug.Assert(CurrentToken.Kind == SyntaxKind.LessThanToken); 1376if (typeArgumentsMustBeIdentifiers && typeSyntax.Kind != SyntaxKind.IdentifierName) 1384var currentKind = CurrentToken.Kind; 1386SyntaxFacts.IsPredefinedType(CurrentToken.Kind)) 1446if (SyntaxFacts.IsPredefinedType(CurrentToken.Kind)) 1455else if (CurrentToken.Kind == SyntaxKind.IdentifierToken && PeekToken(1).Kind == SyntaxKind.ColonColonToken) 1475if (checkForMember && (leftName.IsMissing || CurrentToken.Kind != SyntaxKind.DotToken)) 1487while (CurrentToken.Kind == SyntaxKind.DotToken) 1496if (checkForMember && (rightName.IsMissing || CurrentToken.Kind != SyntaxKind.DotToken)) 1518if (CurrentToken.Kind == SyntaxKind.QuestionToken) 1523while (CurrentToken.Kind == SyntaxKind.AsteriskToken) 1528if (CurrentToken.Kind == SyntaxKind.OpenBracketToken) 1534while (CurrentToken.Kind == SyntaxKind.OpenBracketToken) 1540while (this.CurrentToken.Kind != SyntaxKind.CloseBracketToken) 1542if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 1592switch (CurrentToken.Kind) 1660switch (CurrentToken.Kind)
Parser\LanguageParser.cs (732)
96if (this.CurrentToken.Kind == SyntaxKind.EndOfFileToken) 251Debug.Assert(this.CurrentToken.Kind == SyntaxKind.NamespaceKeyword); 264if (this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 268else if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken || IsPossibleNamespaceMemberDeclaration()) 549return memberDeclaration?.Kind 586switch (this.CurrentToken.Kind) 661if (isGlobal && (this.PeekToken(1).Kind == SyntaxKind.OpenParenToken || (!IsScript && IsPossibleTopLevelUsingLocalDeclarationStatement()))) 675if (this.CurrentToken.ContextualKind != SyntaxKind.GlobalKeyword || this.PeekToken(1).Kind != SyntaxKind.UsingKeyword) 742else if (memberOrStatement.Kind == SyntaxKind.IncompleteMember && seen < NamespaceParts.MembersAndStatements) 770switch (memberOrStatement.Kind) 862switch (this.CurrentToken.Kind) 871return IsPossibleStartOfTypeDeclaration(this.CurrentToken.Kind); 883else if (this.PeekToken(1).Kind == SyntaxKind.NamespaceKeyword) 894return this.CurrentToken.Kind == SyntaxKind.CloseBraceToken; 919return this.CurrentToken.Kind == SyntaxKind.ExternKeyword 920&& this.PeekToken(1) is { Kind: SyntaxKind.IdentifierToken, ContextualKind: SyntaxKind.AliasKeyword } 921&& this.PeekToken(2).Kind == SyntaxKind.IdentifierToken 922&& this.PeekToken(3).Kind == SyntaxKind.SemicolonToken; 932Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ExternKeyword); 960Debug.Assert(this.CurrentToken.Kind == SyntaxKind.UsingKeyword); 967if (staticToken is null && unsafeToken != null && this.CurrentToken.Kind == SyntaxKind.StaticKeyword) 979var isAliasToFunctionPointer = alias != null && this.CurrentToken.Kind == SyntaxKind.DelegateKeyword; 998type = WithAdditionalDiagnostics(CreateMissingIdentifierName(), GetExpectedTokenError(SyntaxKind.IdentifierToken, this.CurrentToken.Kind)); 1010if (type.IsMissing && this.PeekToken(1).Kind == SyntaxKind.SemicolonToken) 1021return this.CurrentToken.Kind == SyntaxKind.OpenBracketToken 1023&& this.PeekToken(2).Kind == SyntaxKind.ColonToken; 1041if (this.CurrentToken.Kind != SyntaxKind.OpenBracketToken) 1059if (SyntaxFacts.IsLiteralExpression(this.CurrentToken.Kind)) 1103return this.CurrentToken.Kind == SyntaxKind.CloseBracketToken 1108=> IsSomeWord(this.CurrentToken.Kind) && this.PeekToken(1).Kind == SyntaxKind.ColonToken; 1153if (this.CurrentToken.Kind == SyntaxKind.DotToken) 1159if (this.CurrentToken.Kind == SyntaxKind.MinusGreaterThanToken) 1164if (this.CurrentToken.Kind == SyntaxKind.QuestionToken && 1165this.PeekToken(1).Kind == SyntaxKind.DotToken) 1177static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleAttribute(), 1178static (p, closeKind) => p.CurrentToken.Kind == closeKind, 1207if (this.CurrentToken.Kind != SyntaxKind.OpenParenToken) 1232static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleAttributeArgument(), 1233static (p, closeKind) => p.CurrentToken.Kind == closeKind, 1242if (argument.expression is LiteralExpressionSyntax { Kind: SyntaxKind.StringLiteralExpression, Token: var literalToken } && 1248if (argument.expression is InterpolatedStringExpressionSyntax { StringStartToken.Kind: SyntaxKind.InterpolatedStringStartToken, StringEndToken.IsMissing: true }) 1267if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 1269switch (this.PeekToken(1).Kind) 1291=> GetModifierExcludingScoped(token.Kind, token.ContextualKind); 1387else if (nextToken.Kind == SyntaxKind.NamespaceKeyword) 1393nextToken.Kind is SyntaxKind.EnumKeyword or SyntaxKind.DelegateKeyword || 1394(IsPossibleStartOfTypeDeclaration(nextToken.Kind) && GetModifierExcludingScoped(nextToken) != DeclarationModifiers.None)) 1469Debug.Assert(modTok.Kind is not (SyntaxKind.OutKeyword or SyntaxKind.InKeyword)); 1475if (token.Kind == SyntaxKind.StructKeyword) 1495Debug.Assert(this.CurrentToken.Kind == SyntaxKind.IdentifierToken && GetModifierExcludingScoped(this.CurrentToken) != DeclarationModifiers.None); 1531var currentTokenKind = this.CurrentToken.Kind; 1534(currentTokenKind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && PeekToken(1).Kind == SyntaxKind.OperatorKeyword)) 1553var currentTokenKind = this.CurrentToken.Kind; 1571if (SyntaxFacts.IsPredefinedType(this.CurrentToken.Kind)) 1615switch (nextToken.Kind) 1641if (this.PeekToken(1).Kind == SyntaxKind.EventKeyword) 1648if (this.PeekToken(1).Kind == SyntaxKind.IdentifierToken && 1649this.PeekToken(2).Kind == SyntaxKind.OpenParenToken) 1670switch (this.CurrentToken.Kind) 1673if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.UsingKeyword) 1693switch (this.CurrentToken.Kind) 1715throw ExceptionUtilities.UnexpectedValue(this.CurrentToken.Kind); 1721Debug.Assert(this.CurrentToken.Kind is SyntaxKind.ClassKeyword or SyntaxKind.StructKeyword or SyntaxKind.InterfaceKeyword || 1732bool isExtension = keyword.Kind == SyntaxKind.ExtensionKeyword; 1743if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 1756var paramList = CurrentToken.Kind == SyntaxKind.OpenParenToken || isExtension 1779if (CurrentToken.Kind == SyntaxKind.SemicolonToken) 1803SyntaxKind kind = this.CurrentToken.Kind; 1811var member = this.ParseMemberDeclaration(keyword.Kind); 1841closeBrace = WithAdditionalDiagnostics(closeBrace, this.GetExpectedTokenError(SyntaxKind.CloseBraceToken, this.CurrentToken.Kind)); 1871recordModifier = this.CurrentToken.Kind is SyntaxKind.ClassKeyword or SyntaxKind.StructKeyword 1878if (this.CurrentToken.Kind is SyntaxKind.StructKeyword or SyntaxKind.ClassKeyword && 1880this.PeekToken(2).Kind is SyntaxKind.IdentifierToken) 1891recordModifier = SyntaxFactory.MissingToken(misplacedToken.Kind); 1907switch (keyword.Kind) 1962SyntaxKind declarationKind = recordModifier?.Kind == SyntaxKind.StructKeyword ? SyntaxKind.RecordStructDeclaration : SyntaxKind.RecordDeclaration; 1995throw ExceptionUtilities.UnexpectedValue(keyword.Kind); 2032SyntaxKind kind = this.CurrentToken.Kind; 2036!(kind == SyntaxKind.DelegateKeyword && this.PeekToken(1).Kind is SyntaxKind.OpenBraceToken or SyntaxKind.OpenParenToken)) 2080return this.IsPossibleMemberStart() || this.CurrentToken.Kind == SyntaxKind.CloseBraceToken; 2085return this.CurrentToken.Kind is SyntaxKind.ColonToken or SyntaxKind.OpenBraceToken 2102list.Add(this.CurrentToken.Kind == SyntaxKind.OpenParenToken 2109if (this.CurrentToken.Kind is SyntaxKind.OpenBraceToken or SyntaxKind.SemicolonToken || 2115if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 2152static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleAttribute(), 2153static (p, _) => p.CurrentToken.Kind == SyntaxKind.OpenBraceToken || p.IsCurrentTokenWhereOfConstraintClause(), 2162this.PeekToken(1).Kind == SyntaxKind.IdentifierToken && 2163this.PeekToken(2).Kind == SyntaxKind.ColonToken; 2186if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken || this.IsCurrentTokenWhereOfConstraintClause()) 2200if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken 2201|| ((_termState & TerminatorState.IsEndOfTypeSignature) != 0 && this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 2202|| this.CurrentToken.Kind == SyntaxKind.EqualsGreaterThanToken 2207else if (haveComma = (this.CurrentToken.Kind == SyntaxKind.CommaToken) || this.IsPossibleTypeParameterConstraint()) 2211if (constraint.Kind == SyntaxKind.AllowsConstraintClause && haveComma && !this.IsPossibleTypeParameterConstraint()) 2247static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleTypeParameterConstraint(), 2248static (p, _) => p.CurrentToken.Kind == SyntaxKind.OpenBraceToken || p.IsCurrentTokenWhereOfConstraintClause(), 2255switch (this.CurrentToken.Kind) 2264return (this.CurrentToken.ContextualKind == SyntaxKind.AllowsKeyword && PeekToken(1).Kind == SyntaxKind.RefKeyword) || this.IsTrueIdentifier(); 2266return IsPredefinedType(this.CurrentToken.Kind); 2272return this.CurrentToken.Kind switch 2284this.CurrentToken.Kind == SyntaxKind.QuestionToken 2305PeekToken(1).Kind == SyntaxKind.AsteriskToken 2317PeekToken(1).Kind == SyntaxKind.RefKeyword) 2330if (this.CurrentToken.Kind == SyntaxKind.CommaToken && PeekToken(1).Kind == SyntaxKind.RefKeyword) 2348return CanStartMember(this.CurrentToken.Kind); 2409switch (this.CurrentToken.Kind) 2561switch (this.CurrentToken.Kind) 2564if (this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken) 2571if (this.PeekToken(1).Kind == SyntaxKind.OpenParenToken) 2578switch (this.PeekToken(1).Kind) 2607if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken && this.PeekToken(1).Kind == SyntaxKind.OpenParenToken) 2641if (this.CurrentToken.Kind == SyntaxKind.ConstKeyword) 2654if (this.CurrentToken.Kind == SyntaxKind.EventKeyword) 2660if (this.CurrentToken.Kind == SyntaxKind.FixedKeyword) 2672if (this.CurrentToken.Kind == SyntaxKind.NamespaceKeyword) 2690if ((!haveAttributes || !IsScript) && !haveModifiers && (type.Kind == SyntaxKind.RefType || !IsOperatorStart(out _, advanceParser: false))) 2694if (this.CurrentToken.Kind is not SyntaxKind.CloseBraceToken and not SyntaxKind.EndOfFileToken && 2784!type.IsMissing && type.Kind != SyntaxKind.RefType && 2917switch (statement?.Kind) 2925statement is ExpressionStatementSyntax { Expression.Kind: SyntaxKind.IdentifierName, SemicolonToken.IsMissing: true }: 2939if (CurrentToken.Kind == SyntaxKind.UsingKeyword) 2944if (CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.UsingKeyword) 2985if (attributes.Count == 0 && modifiers.Count == 0 && type.IsMissing && type.Kind != SyntaxKind.RefType) 3024if (type.Kind != SyntaxKind.RefType && 3027|| this.CurrentToken.Kind is not SyntaxKind.OpenParenToken and not SyntaxKind.OpenBraceToken and not SyntaxKind.EqualsGreaterThanToken) && 3047if (identifierOrThisOpt.Kind == SyntaxKind.ThisKeyword) 3055if (IsStartOfPropertyBody(this.CurrentToken.Kind) || 3056(this.CurrentToken.Kind is SyntaxKind.SemicolonToken && IsStartOfPropertyBody(this.PeekToken(1).Kind))) 3114if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken && this.PeekToken(1).Kind == SyntaxKind.OpenParenToken) 3120if (this.CurrentToken.Kind == SyntaxKind.TildeToken) 3126if (this.CurrentToken.Kind == SyntaxKind.ConstKeyword) 3132if (this.CurrentToken.Kind == SyntaxKind.EventKeyword) 3138if (this.CurrentToken.Kind == SyntaxKind.FixedKeyword) 3178if (type.Kind != SyntaxKind.RefType) 3246(IsFeatureEnabled(MessageID.IDS_FeatureExtensions) || this.PeekToken(1).Kind == SyntaxKind.LessThanToken); 3257if (type.Kind != SyntaxKind.IdentifierName) 3260if (identifierOrThisOpt.Kind != SyntaxKind.IdentifierToken) 3277if (this.CurrentToken.Kind != SyntaxKind.IdentifierToken) 3282if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.UsingKeyword) 3293var kind = this.PeekToken(1).Kind; 3300IsStartOfPropertyBody(this.PeekToken(2).Kind)) 3322return this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.OperatorKeyword; 3344if (token.Kind != SyntaxKind.None) 3364var initializer = this.CurrentToken.Kind == SyntaxKind.ColonToken 3383var kind = this.CurrentToken.Kind == SyntaxKind.BaseKeyword 3388if (this.CurrentToken.Kind is SyntaxKind.BaseKeyword or SyntaxKind.ThisKeyword) 3400var argumentList = this.CurrentToken.Kind == SyntaxKind.OpenParenToken 3412Debug.Assert(this.CurrentToken.Kind == SyntaxKind.TildeToken); 3438if (this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 3446blockBody = this.CurrentToken.Kind == SyntaxKind.OpenBraceToken 3450expressionBody = this.CurrentToken.Kind == SyntaxKind.EqualsGreaterThanToken 3461else if (parseSemicolonAfterBlock && this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 3473if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 3479if (this.CurrentToken.Kind == SyntaxKind.ColonToken) 3485if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken) 3501=> this.CurrentToken.Kind is SyntaxKind.SemicolonToken or SyntaxKind.OpenBraceToken; 3505return this.CurrentToken.Kind is SyntaxKind.SemicolonToken or SyntaxKind.OpenBraceToken; 3509=> this.CurrentToken.Kind is SyntaxKind.DotToken or SyntaxKind.ColonColonToken; 3512=> this.CurrentToken.Kind == (errored ? SyntaxKind.CloseParenToken : SyntaxKind.GreaterThanToken); 3515=> this.CurrentToken.Kind == SyntaxKind.CloseBracketToken; 3537else if (this.CurrentToken.Kind == SyntaxKind.ColonToken) 3590switch (this.CurrentToken.Kind) 3609if (this.CurrentToken.Kind is not (SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)) 3613if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 3623if (this.CurrentToken.Kind == SyntaxKind.OperatorKeyword) 3637(IsMakingProgress(ref lastTokenPosition, assertIfFalse: false) && this.CurrentToken.Kind != SyntaxKind.OpenParenToken)) 3643separatorKind = this.CurrentToken.Kind; 3665if (this.CurrentToken.Kind != SyntaxKind.OperatorKeyword || 3670else if (this.PeekToken(1).Kind is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword) 3672possibleConversion = !SyntaxFacts.IsAnyOverloadableOperator(this.PeekToken(2).Kind); 3676possibleConversion = !SyntaxFacts.IsAnyOverloadableOperator(this.PeekToken(1).Kind); 3687var style = this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword 3697if (!style.IsMissing && explicitInterfaceOpt is not null && this.CurrentToken.Kind != SyntaxKind.OperatorKeyword && style.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia)) 3729bool couldBeParameterList = this.CurrentToken.Kind == SyntaxKind.OpenParenToken; 3734this.CurrentToken.Kind != SyntaxKind.OpenParenToken) 3765if (this.CurrentToken.Kind != SyntaxKind.IdentifierToken) 3782if (this.CurrentToken.Kind == SyntaxKind.OperatorKeyword) 3792(IsMakingProgress(ref lastTokenPosition, assertIfFalse: false) && this.CurrentToken.Kind != SyntaxKind.OpenParenToken); 3799if (separator?.Kind == SyntaxKind.ColonColonToken) 3819if (separator.Kind != SyntaxKind.DotToken) 3821separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 3831if (CurrentToken.Kind == SyntaxKind.UncheckedKeyword) 3851if (firstToken.Kind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && 3852this.PeekToken(1).Kind is SyntaxKind.OperatorKeyword) 3883if (SyntaxFacts.IsAnyOverloadableOperator(this.CurrentToken.Kind)) 3892if (this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword) 3925if (opToken.Kind == SyntaxKind.GreaterThanToken) 3929if (tk.Kind == SyntaxKind.GreaterThanToken) 3936if (tk.Kind == SyntaxKind.GreaterThanToken && 3943else if (tk.Kind == SyntaxKind.GreaterThanEqualsToken && 3957else if (tk.Kind == SyntaxKind.GreaterThanEqualsToken && 3966var opKind = opToken.Kind; 4050Debug.Assert(thisKeyword.Kind == SyntaxKind.ThisKeyword); 4066if (this.CurrentToken.Kind == SyntaxKind.EqualsGreaterThanToken) 4074if (this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 4083if (this.CurrentToken.Kind == SyntaxKind.EqualsGreaterThanToken 4118if (this.CurrentToken.Kind is SyntaxKind.SemicolonToken) 4124Debug.Assert(IsStartOfPropertyBody(this.CurrentToken.Kind)); 4126var accessorList = this.CurrentToken.Kind == SyntaxKind.OpenBraceToken 4134if (this.CurrentToken.Kind == SyntaxKind.EqualsGreaterThanToken) 4142else if (this.CurrentToken.Kind == SyntaxKind.EqualsToken) 4154else if (this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 4208if (this.CurrentToken.Kind == SyntaxKind.CloseBraceToken) 4243var refKeyword = this.CurrentToken.Kind == SyntaxKind.RefKeyword && !this.IsPossibleLambdaExpression(Precedence.Expression) 4254static p => p.CurrentToken.Kind != SyntaxKind.CloseBraceToken && !p.IsPossibleAccessor(), 4261return this.CurrentToken.Kind == SyntaxKind.IdentifierToken 4264|| this.CurrentToken.Kind == SyntaxKind.OpenBraceToken // for accessor blocks w/ missing keyword 4265|| this.CurrentToken.Kind == SyntaxKind.SemicolonToken // for empty body accessors w/ missing keyword 4299if (token.Kind is SyntaxKind.CloseBraceToken or SyntaxKind.EndOfFileToken) 4517bool currentTokenIsSemicolon = this.CurrentToken.Kind == SyntaxKind.SemicolonToken; 4518bool currentTokenIsArrow = this.CurrentToken.Kind == SyntaxKind.EqualsGreaterThanToken; 4519bool currentTokenIsOpenBraceToken = this.CurrentToken.Kind == SyntaxKind.OpenBraceToken; 4702static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleParameter(), 4703static (p, closeKind) => p.CurrentToken.Kind == closeKind, 4710return this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken; 4715switch (this.CurrentToken.Kind) 4727return IsParameterModifierExcludingScoped(this.CurrentToken) || IsPossibleScopedKeyword(isFunctionPointerParameter: false) || IsPredefinedType(this.CurrentToken.Kind); 4787if (this.CurrentToken.Kind == SyntaxKind.ArgListKeyword) 4798if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken && IsCurrentTokenWhereOfConstraintClause()) 4805identifier = allowOptionalIdentifier && this.CurrentToken.Kind != SyntaxKind.IdentifierToken 4811if (identifier is not null && this.CurrentToken.Kind is SyntaxKind.OpenBracketToken && this.PeekToken(1).Kind is SyntaxKind.CloseBracketToken) 4838switch (token.Kind) 4858if (this.CurrentToken.Kind is SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword) 4875while (this.CurrentToken.Kind is SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword) 4888Debug.Assert(this.CurrentToken.Kind == SyntaxKind.FixedKeyword); 4906Debug.Assert(this.CurrentToken.Kind == SyntaxKind.EventKeyword); 4930if (explicitInterfaceOpt != null && this.CurrentToken.Kind is not SyntaxKind.OpenBraceToken and not SyntaxKind.SemicolonToken) 4955else if (identifierOrThisOpt.Kind != SyntaxKind.IdentifierToken) 4957Debug.Assert(identifierOrThisOpt.Kind == SyntaxKind.ThisKeyword); 4966Debug.Assert(identifier.Kind == SyntaxKind.IdentifierToken); 4982if (explicitInterfaceOpt != null && this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 5009if (this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 5028if (modifiers is [.., SyntaxToken { Kind: SyntaxKind.ScopedKeyword } scopedKeyword]) 5062if (this.CurrentToken.Kind == SyntaxKind.DotToken) 5078return this.CurrentToken.Kind == SyntaxKind.SemicolonToken; 5143if (this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 5147else if (stopOnCloseParen && this.CurrentToken.Kind == SyntaxKind.CloseParenToken) 5151else if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 5166if (flags.HasFlag(VariableFlags.ForStatement) && this.PeekToken(1).Kind != SyntaxKind.SemicolonToken) 5170this.PeekToken(2).Kind is SyntaxKind.CommaToken or SyntaxKind.EqualsToken or SyntaxKind.SemicolonToken; 5201static p => p.CurrentToken.Kind != SyntaxKind.CommaToken, 5202static (p, _) => p.CurrentToken.Kind == SyntaxKind.SemicolonToken, 5356var currentTokenKind = this.CurrentToken.Kind; 5366currentTokenKind = this.CurrentToken.Kind; 5417switch (this.CurrentToken.Kind) 5428var refKeyword = isLocalOrField && !isConst && this.CurrentToken.Kind == SyntaxKind.RefKeyword && !this.IsPossibleLambdaExpression(Precedence.Expression) 5486bool isOmitted = expression.Kind == SyntaxKind.OmittedArraySizeExpression; 5505if (this.CurrentToken.Kind == SyntaxKind.EqualsToken) 5520if (parentType.Kind == SyntaxKind.ArrayType) 5541Debug.Assert(this.CurrentToken.Kind is SyntaxKind.OpenParenToken or SyntaxKind.LessThanToken); 5549(this.CurrentToken.Kind is SyntaxKind.OpenBraceToken or SyntaxKind.EqualsGreaterThanToken || 5560switch (this.CurrentToken.Kind) 5572return this.CurrentToken.Kind == SyntaxKind.OpenBraceToken 5579return this.CurrentToken.Kind == SyntaxKind.OpenBraceToken || this.IsPossibleExpression(); 5598Debug.Assert(this.CurrentToken.Kind == SyntaxKind.DelegateKeyword); 5631Debug.Assert(this.CurrentToken.Kind == SyntaxKind.EnumKeyword); 5646if (this.CurrentToken.Kind == SyntaxKind.ColonToken) 5662if (CurrentToken.Kind == SyntaxKind.SemicolonToken) 5707static p => p.CurrentToken.Kind is not SyntaxKind.CommaToken and not SyntaxKind.SemicolonToken && !p.IsPossibleEnumMemberDeclaration(), 5708static (p, closeKind) => p.CurrentToken.Kind == closeKind, 5723if (this.CurrentToken.Kind == SyntaxKind.EqualsToken) 5728this.CurrentToken.Kind is SyntaxKind.CommaToken or SyntaxKind.CloseBraceToken 5738return this.CurrentToken.Kind == SyntaxKind.OpenBracketToken || this.IsTrueIdentifier(); 5743return this.CurrentToken.Kind is SyntaxKind.DotToken or SyntaxKind.ColonColonToken; 5782if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 5802token.Kind == SyntaxKind.IdentifierToken && 5822var ctk = this.CurrentToken.Kind; 5880if (this.CurrentToken.Kind != SyntaxKind.LessThanToken) 5910static p => p.CurrentToken.Kind != SyntaxKind.CommaToken, 5911static (p, closeKind) => p.CurrentToken.Kind == closeKind, 5922if (this.CurrentToken.Kind == SyntaxKind.OpenBracketToken && this.PeekToken(1).Kind != SyntaxKind.CloseBracketToken) 5926if (this.CurrentToken.Kind is SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 5943if (this.CurrentToken.Kind == SyntaxKind.OpenBracketToken && this.PeekToken(1).Kind != SyntaxKind.CloseBracketToken) 5953this.CurrentToken.Kind is SyntaxKind.InKeyword or SyntaxKind.OutKeyword ? EatToken() : null, 5970if (this.CurrentToken.Kind == SyntaxKind.LessThanToken) 5980Debug.Assert(this.CurrentToken.Kind == SyntaxKind.LessThanToken); 6005if (this.CurrentToken.Kind != SyntaxKind.LessThanToken) 6053Debug.Assert(greaterThanToken.Kind == SyntaxKind.GreaterThanToken); 6055switch (this.CurrentToken.Kind) 6089case SyntaxKind.GreaterThanToken when ((options & NameOptions.AfterIs) != 0) && this.PeekToken(1).Kind != SyntaxKind.GreaterThanToken: 6110(options & NameOptions.AfterTupleComma) != 0 && this.PeekToken(1).Kind is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken || 6111(options & NameOptions.FirstElementOfPossibleTupleLiteral) != 0 && this.PeekToken(1).Kind == SyntaxKind.CommaToken) 6137Debug.Assert(this.CurrentToken.Kind == SyntaxKind.LessThanToken); 6147while (this.CurrentToken.Kind == SyntaxKind.CommaToken) 6150Debug.Assert(start.Kind == SyntaxKind.LessThanToken); 6151Debug.Assert(greaterThanToken.Kind == SyntaxKind.GreaterThanToken); 6164if (this.CurrentToken.Kind == SyntaxKind.OpenBracketToken) 6170if (this.CurrentToken.Kind == SyntaxKind.GreaterThanToken) 6179if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 6214isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.Kind is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken; 6241isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.Kind is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken; 6263isDefinitelyTypeArgumentList = this.CurrentToken.Kind == SyntaxKind.CommaToken; 6281while (this.CurrentToken.Kind == SyntaxKind.CommaToken); 6283if (this.CurrentToken.Kind != SyntaxKind.GreaterThanToken) 6289if (this.CurrentToken.Kind is SyntaxKind.IdentifierToken) 6298if (lastScannedType is ScanTypeFlags.TupleType && this.CurrentToken.Kind is SyntaxKind.OpenParenToken) 6311isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.Kind is SyntaxKind.CloseParenToken; 6323Debug.Assert(this.CurrentToken.Kind == SyntaxKind.LessThanToken); 6333while (this.CurrentToken.Kind == SyntaxKind.CommaToken) 6350if (this.CurrentToken.Kind == SyntaxKind.GreaterThanToken) 6366if (this.CurrentToken.Kind is SyntaxKind.IdentifierToken && tokenBreaksTypeArgumentList(this.PeekToken(1))) 6375if (this.CurrentToken.Kind is SyntaxKind.IdentifierToken 6376&& this.PeekToken(1).Kind is SyntaxKind.CloseBracketToken) 6381if (this.CurrentToken.Kind == SyntaxKind.CommaToken || this.IsPossibleType()) 6406switch (token.Kind) 6451static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleType(), 6452static (p, _) => p.CurrentToken.Kind == SyntaxKind.GreaterThanToken, 6460if (this.CurrentToken.Kind == SyntaxKind.OpenBracketToken && this.PeekToken(1).Kind != SyntaxKind.CloseBracketToken) 6476var varianceToken = this.CurrentToken.Kind is SyntaxKind.InKeyword or SyntaxKind.OutKeyword 6503this.CurrentToken.Kind is not SyntaxKind.CommaToken and not SyntaxKind.GreaterThanToken && 6504this.PeekToken(1).Kind is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken) 6525=> this.CurrentToken.Kind == SyntaxKind.GreaterThanToken; 6529Debug.Assert(this.CurrentToken.Kind == SyntaxKind.LessThanToken); 6531while (this.PeekToken(n).Kind == SyntaxKind.CommaToken) 6534return this.PeekToken(n).Kind == SyntaxKind.GreaterThanToken; 6567if (this.CurrentToken.Kind == SyntaxKind.ThisKeyword) 6593if (separator != null && separator.Kind == SyntaxKind.ColonColonToken) 6612if (separator.Kind != SyntaxKind.DotToken) 6614separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 6618if (isEvent && this.CurrentToken.Kind is not SyntaxKind.OpenBraceToken and not SyntaxKind.SemicolonToken) 6689separator = this.CurrentToken.Kind == SyntaxKind.ColonColonToken 6702if (this.CurrentToken.Kind == SyntaxKind.ColonColonToken) 6731if (this.CurrentToken.Kind != SyntaxKind.IdentifierToken) 6767if (separator != null && separator.Kind == SyntaxKind.ColonColonToken) 6794if (separator.Kind != SyntaxKind.DotToken) 6796separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 6807return this.CurrentToken.Kind == SyntaxKind.ColonColonToken 6819if (this.PeekToken(1).Kind == SyntaxKind.ThisKeyword) 6836Debug.Assert(separator.Kind is SyntaxKind.DotToken or SyntaxKind.ColonColonToken); 6839switch (separator.Kind) 6845if (left.Kind != SyntaxKind.IdentifierName) 6937var tk = this.CurrentToken.Kind; 6958if (this.CurrentToken.Kind != SyntaxKind.IdentifierToken || !this.IsTrueIdentifier()) 6965if (this.CurrentToken.Kind == SyntaxKind.LessThanToken) 6980if (this.CurrentToken.Kind == SyntaxKind.RefKeyword) 6985if (this.CurrentToken.Kind == SyntaxKind.ReadOnlyKeyword) 6992if (this.CurrentToken.Kind is SyntaxKind.IdentifierToken or SyntaxKind.ColonColonToken) 6995if (this.CurrentToken.Kind is SyntaxKind.ColonColonToken) 7009Debug.Assert(this.CurrentToken.Kind is SyntaxKind.IdentifierToken); 7012isAlias = this.PeekToken(1).Kind == SyntaxKind.ColonColonToken; 7049else if (IsPredefinedType(this.CurrentToken.Kind)) 7055else if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 7060if (result == ScanTypeFlags.NotType || mode == ParseTypeMode.DefinitePattern && this.CurrentToken.Kind != SyntaxKind.OpenBracketToken) 7080switch (this.CurrentToken.Kind) 7083when lastTokenOfType.Kind is not SyntaxKind.QuestionToken // don't allow `Type??` 7121while (this.CurrentToken.Kind == SyntaxKind.CommaToken) 7126if (this.CurrentToken.Kind != SyntaxKind.CloseBracketToken) 7159if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 7177while (this.CurrentToken.Kind == SyntaxKind.CommaToken); 7179if (this.CurrentToken.Kind == SyntaxKind.CloseParenToken) 7201if (CurrentToken.Kind == SyntaxKind.IdentifierToken) 7209case var _ when peek1.Kind == SyntaxKind.OpenBracketToken: 7219if (CurrentToken.Kind == SyntaxKind.OpenBracketToken) 7236Debug.Assert(CurrentToken.Kind == SyntaxKind.CommaToken); 7259var validStartingToken = EatToken().Kind == SyntaxKind.LessThanToken; 7289if (!validStartingToken && CurrentToken.Kind == SyntaxKind.CloseParenToken) 7303isNotExpectedFunction: static p => p.CurrentToken.Kind != SyntaxKind.CommaToken, 7324if (this.CurrentToken.Kind == SyntaxKind.VoidKeyword && this.PeekToken(1).Kind != SyntaxKind.AsteriskToken) 7349if (this.CurrentToken.Kind == SyntaxKind.RefKeyword) 7353this.CurrentToken.Kind == SyntaxKind.ReadOnlyKeyword ? this.EatToken() : null, 7397switch (this.CurrentToken.Kind) 7445while (this.CurrentToken.Kind == SyntaxKind.OpenBracketToken); 7466Debug.Assert(this.CurrentToken.Kind == SyntaxKind.QuestionToken); 7472if (typeParsedSoFar.Kind is SyntaxKind.NullableType or SyntaxKind.PointerType) 7489if (mode == ParseTypeMode.AfterIs && this.CurrentToken.Kind is SyntaxKind.OpenBracketToken) 7499switch (this.PeekToken(1).Kind) 7516return this.CurrentToken.Kind != SyntaxKind.ColonToken; 7561var nextTokenKind = nextToken.Kind; 7606if (this.CurrentToken.Kind is SyntaxKind.OpenBracketToken) 7615this.CurrentToken.Kind is SyntaxKind.OpenParenToken or // ctor parameters 7629switch (this.PeekToken(i).Kind) 7650while (IsMakingProgress(ref lastTokenPosition) && this.CurrentToken.Kind != SyntaxKind.CloseBracketToken) 7652if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 7665if (this.CurrentToken.Kind != SyntaxKind.CloseBracketToken) 7710if (this.CurrentToken.Kind != SyntaxKind.CloseParenToken) 7714while (this.CurrentToken.Kind == SyntaxKind.CommaToken) 7749static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleExpression(), 7750static (p, _) => p.CurrentToken.Kind == SyntaxKind.CloseBracketToken, 7756if (IsPredefinedType(this.CurrentToken.Kind)) 7760if (token.Kind == SyntaxKind.VoidKeyword && this.CurrentToken.Kind != SyntaxKind.AsteriskToken) 7769if (IsTrueIdentifier() || this.CurrentToken.Kind == SyntaxKind.ColonColonToken) 7774if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 7840Debug.Assert(CurrentToken.Kind == SyntaxKind.CommaToken); 7851lessThanToken.IsMissing && CurrentToken.Kind == SyntaxKind.CloseParenToken 7866isNotExpectedFunction: static p => p.CurrentToken.Kind != SyntaxKind.CommaToken, 7874if (CurrentToken.Kind == SyntaxKind.IdentifierToken) 7890case var _ when peek1.Kind == SyntaxKind.OpenBracketToken: 7902if (CurrentToken.Kind == SyntaxKind.OpenBracketToken) 7920Debug.Assert(CurrentToken.Kind == SyntaxKind.CommaToken); 7936if (managedSpecifier.Kind == SyntaxKind.ManagedKeyword && unmanagedCallingConventions != null) 7950=> CurrentToken.Kind == SyntaxKind.DelegateKeyword && PeekToken(1).Kind == SyntaxKind.AsteriskToken; 7955=> token.Kind == SyntaxKind.LessThanToken || token.Kind == SyntaxKind.OpenParenToken; 7961while (this.CurrentToken.Kind == SyntaxKind.AsteriskToken) 7981if (this.CurrentToken.Kind != SyntaxKind.OpenBracketToken) 7995while (this.CurrentToken.Kind == SyntaxKind.OpenBracketToken) 8005var isCollectionExpression = this.CurrentToken.Kind 8018|| IsExpectedBinaryOperator(this.CurrentToken.Kind) 8019|| IsExpectedAssignmentOperator(this.CurrentToken.Kind) 8020|| (this.CurrentToken.ContextualKind is SyntaxKind.SwitchKeyword or SyntaxKind.WithKeyword && this.PeekToken(1).Kind is SyntaxKind.OpenBraceToken); 8024this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 8083switch (this.CurrentToken.Kind) 8216this.PeekToken(1).Kind == SyntaxKind.ForEachKeyword) 8222if (PeekToken(2).Kind == SyntaxKind.OpenParenToken) 8249=> PeekToken(1).Kind == SyntaxKind.OpenParenToken ? ParseUsingStatement(attributes) : ParseLocalDeclarationStatement(attributes); 8256=> CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword && PeekToken(1).Kind == SyntaxKind.UsingKeyword; 8260return this.PeekToken(1).Kind == SyntaxKind.ColonToken && this.IsTrueIdentifier(); 8265return this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken; 8271this.PeekToken(1).Kind is SyntaxKind.ReturnKeyword or SyntaxKind.BreakKeyword; 8280var tk = this.CurrentToken.Kind; 8284this.PeekToken(1).Kind is not SyntaxKind.DotToken // e.g. `int.Parse()` is an expression 8293Debug.Assert(PeekToken(1).Kind != SyntaxKind.OpenParenToken); 8299Debug.Assert(PeekToken(2).Kind != SyntaxKind.OpenParenToken); 8355if (token1.Kind == SyntaxKind.DotToken && 8358if (PeekToken(2).Kind == SyntaxKind.IdentifierToken && 8359PeekToken(3).Kind == SyntaxKind.IdentifierToken) 8374var token4Kind = PeekToken(4).Kind; 8394if (st == ScanTypeFlags.MustBeType && this.CurrentToken.Kind is not SyntaxKind.DotToken and not SyntaxKind.OpenParenToken) 8404if (this.CurrentToken.Kind != SyntaxKind.IdentifierToken) 8412return st == ScanTypeFlags.GenericTypeOrExpression && (IsDefiniteStatement() || IsTypeDeclarationStart() || IsAccessibilityModifier(CurrentToken.Kind)); 8433if (this.CurrentToken.Kind != SyntaxKind.UsingKeyword) 8438var tk = PeekToken(1).Kind; 8499if (this.CurrentToken.Kind is SyntaxKind.OpenBraceToken) 8505if (identifierOrThisOpt.Kind == SyntaxKind.ThisKeyword) 8520if (this.CurrentToken.Kind != SyntaxKind.IdentifierToken) 8527if (this.CurrentToken.Kind == SyntaxKind.EqualsToken) 8536return this.CurrentToken.Kind is SyntaxKind.CommaToken or SyntaxKind.SemicolonToken; 8554if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken || this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 8561if (this.CurrentToken.Kind == SyntaxKind.ColonToken) 8586if (parameter.Modifiers[i].Kind == SyntaxKind.ParamsKeyword) 8596if (parameter.Identifier.Kind == SyntaxKind.ArgListKeyword) 8601else if (parameter.Type.Kind == SyntaxKind.NullableType) 8621else if (parameter.Type.Kind == SyntaxKind.IdentifierName && 8645Debug.Assert(this.CurrentToken.Kind == SyntaxKind.NewKeyword); 8652switch (nextToken.Kind) 8680if (SyntaxFacts.GetBaseTypeDeclarationKind(nextToken.Kind) != SyntaxKind.None) 8688if (SyntaxFacts.IsPredefinedType(PeekToken(2).Kind)) 8695if (IsTypeModifierOrTypeKeyword(PeekToken(2).Kind)) 8733switch (next.Kind) 8790CSharpSyntaxNode openBrace = isAccessorBody && this.CurrentToken.Kind != SyntaxKind.OpenBraceToken 8871while (this.CurrentToken.Kind is not SyntaxKind.CloseBraceToken and not SyntaxKind.EndOfFileToken 8903return this.CurrentToken.Kind == SyntaxKind.SemicolonToken 8915static (p, _) => p.CurrentToken.Kind == SyntaxKind.CloseBraceToken, 8923var tk = this.CurrentToken.Kind; 8960var tk = this.CurrentToken.Kind; 9005return this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.OpenBraceToken or SyntaxKind.SemicolonToken; 9031if (statement.Kind == SyntaxKind.ExpressionStatement && 9068Debug.Assert(this.CurrentToken.Kind is SyntaxKind.TryKeyword or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword); 9081Debug.Assert(this.CurrentToken.Kind is SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword); 9095if (this.CurrentToken.Kind == SyntaxKind.CatchKeyword) 9098while (this.CurrentToken.Kind == SyntaxKind.CatchKeyword) 9104if (this.CurrentToken.Kind == SyntaxKind.FinallyKeyword) 9139return this.CurrentToken.Kind is SyntaxKind.CloseBraceToken or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword; 9144Debug.Assert(this.CurrentToken.Kind == SyntaxKind.CatchKeyword); 9151if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 9203return this.CurrentToken.Kind is SyntaxKind.CloseParenToken 9212return this.CurrentToken.Kind is SyntaxKind.CloseParenToken 9220return this.CurrentToken.Kind is SyntaxKind.CloseBraceToken 9227Debug.Assert(this.CurrentToken.Kind is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword); 9229if (this.PeekToken(1).Kind == SyntaxKind.OpenParenToken) 9236SyntaxFacts.GetCheckStatement(keyword.Kind), 9244Debug.Assert(this.CurrentToken.Kind == SyntaxKind.DoKeyword); 9268return this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken; 9285Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ForKeyword); 9287if (this.EatToken().Kind == SyntaxKind.OpenParenToken && 9289this.EatToken().Kind == SyntaxKind.IdentifierToken && 9290this.EatToken().Kind == SyntaxKind.InKeyword) 9306Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ForKeyword); 9316var condition = this.CurrentToken.Kind is not SyntaxKind.SemicolonToken and not SyntaxKind.CommaToken 9325var incrementors = this.CurrentToken.Kind != SyntaxKind.CloseParenToken 9356if (this.PeekToken(1).Kind == SyntaxKind.RefKeyword) 9363isDeclaration = ScanType() != ScanTypeFlags.NotType && this.CurrentToken.Kind == SyntaxKind.IdentifierToken; 9367else if (this.CurrentToken.Kind == SyntaxKind.RefKeyword) 9384else if (this.CurrentToken.Kind != SyntaxKind.SemicolonToken) 9399=> this.CurrentToken.Kind is SyntaxKind.CommaToken 9407while (this.CurrentToken.Kind is SyntaxKind.SemicolonToken or SyntaxKind.CommaToken) 9431if (@this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken) 9435static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleExpression(), 9436static (p, closeKind) => p.CurrentToken.Kind == closeKind || p.CurrentToken.Kind == SyntaxKind.SemicolonToken, 9443return this.CurrentToken.Kind is SyntaxKind.SemicolonToken or SyntaxKind.CloseParenToken or SyntaxKind.OpenBraceToken; 9450Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ForEachKeyword || this.CurrentToken.Kind == SyntaxKind.ForKeyword); 9461if (this.CurrentToken.Kind == SyntaxKind.ForKeyword) 9487if (decl.designation.Kind != SyntaxKind.ParenthesizedVariableDesignation) 9491switch (decl.designation.Kind) 9499Debug.Assert(discard.Kind == SyntaxKind.UnderscoreToken); 9503throw ExceptionUtilities.UnexpectedValue(decl.designation.Kind); 9566if (ScanType() != ScanTypeFlags.NotType && this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 9571if (this.PeekToken(1).Kind == SyntaxKind.CommaToken) 9579if (this.PeekToken(1).Kind is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken) 9605if (!ScanDesignation(permitTupleDesignation && (typeIsVar || IsPredefinedType(lastTokenOfType.Kind)))) 9613return this.CurrentToken.Kind == SyntaxKind.CommaToken; 9615return this.CurrentToken.Kind is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken; 9633switch (this.PeekToken(1).Kind) 9649switch (variable.Kind) 9667Debug.Assert(this.CurrentToken.Kind == SyntaxKind.GotoKeyword); 9675if (this.CurrentToken.Kind is SyntaxKind.CaseKeyword or SyntaxKind.DefaultKeyword) 9678if (caseOrDefault.Kind == SyntaxKind.CaseKeyword) 9700Debug.Assert(this.CurrentToken.Kind == SyntaxKind.IfKeyword); 9713var elseKeyword = this.CurrentToken.Kind != SyntaxKind.ElseKeyword ? 9724if (this.CurrentToken.Kind != SyntaxKind.IfKeyword) 9765Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ElseKeyword); 9779return this.CurrentToken.Kind != SyntaxKind.ElseKeyword 9788Debug.Assert(this.CurrentToken.Kind == SyntaxKind.LockKeyword); 9800Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ReturnKeyword); 9804this.CurrentToken.Kind != SyntaxKind.SemicolonToken ? this.ParsePossibleRefExpression() : null, 9817if (this.CurrentToken.Kind == SyntaxKind.BreakKeyword) 9826if (this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 9847Debug.Assert(this.CurrentToken.Kind is SyntaxKind.SwitchKeyword or SyntaxKind.CaseKeyword); 9872if (this.CurrentToken.Kind is SyntaxKind.CaseKeyword) 9886if (expression.Kind == SyntaxKind.ParenthesizedExpression) 9895else if (expression.Kind == SyntaxKind.TupleExpression) 9917return this.CurrentToken.Kind == SyntaxKind.CaseKeyword || 9918(this.CurrentToken.Kind == SyntaxKind.DefaultKeyword && this.PeekToken(1).Kind != SyntaxKind.OpenParenToken); 9932if (this.CurrentToken.Kind == SyntaxKind.CaseKeyword) 9936if (this.CurrentToken.Kind == SyntaxKind.ColonToken) 9951if (node.Kind == SyntaxKind.DiscardPattern) 9973Debug.Assert(this.CurrentToken.Kind == SyntaxKind.DefaultKeyword); 9995Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ThrowKeyword); 9999this.CurrentToken.Kind != SyntaxKind.SemicolonToken ? this.ParseExpressionCore() : null, 10005Debug.Assert(this.CurrentToken.Kind == SyntaxKind.UnsafeKeyword); 10073if (this.CurrentToken.Kind != SyntaxKind.IdentifierToken) 10080switch (this.PeekToken(1).Kind) 10100if (this.CurrentToken.Kind == SyntaxKind.ColonToken && 10101declaration.Type.Kind == SyntaxKind.NullableType && 10102SyntaxFacts.IsName(((NullableTypeSyntax)declaration.Type).ElementType.Kind) && 10132bool condition1 = st == ScanTypeFlags.MustBeType && this.CurrentToken.Kind != SyntaxKind.DotToken; 10133bool condition2 = st != ScanTypeFlags.NotType && this.CurrentToken.Kind == SyntaxKind.IdentifierToken; 10134bool condition3 = st == ScanTypeFlags.NonGenericTypeOrExpression || this.PeekToken(1).Kind == SyntaxKind.EqualsToken; 10141Debug.Assert(this.CurrentToken.Kind == SyntaxKind.WhileKeyword); 10155Debug.Assert(this.IsTrueIdentifier() && this.PeekToken(1).Kind == SyntaxKind.ColonToken); 10176else if (this.CurrentToken.Kind == SyntaxKind.UsingKeyword) 10284if (this.CurrentToken.Kind is (SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword)) 10313return this.CurrentToken.Kind is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken; 10315else if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 10331if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 10339done = (this.CurrentToken.Kind == SyntaxKind.CloseParenToken); 10352if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 10463if (allowLocalFunctions && localFunction == null && type is PredefinedTypeSyntax { Keyword.Kind: SyntaxKind.VoidKeyword }) 10473switch (this.CurrentToken.Kind) 10525Debug.Assert(this.CurrentToken.Kind == SyntaxKind.IdentifierToken); 10531if (IsDeclarationModifier(this.CurrentToken.Kind) || 10532IsAdditionalLocalFunctionModifier(this.CurrentToken.Kind)) 10539if (ScanType() != ScanTypeFlags.NotType && this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 10623if (type.Kind == SyntaxKind.IdentifierName) 10731if (IsScript && this.CurrentToken.Kind == SyntaxKind.EndOfFileToken) 10775SyntaxKind tk = this.CurrentToken.Kind; 11074switch (next.Kind) 11125_ = GetPrecedence(result.Kind); 11140var tk = this.CurrentToken.Kind; 11236if (this.CurrentToken.Kind == SyntaxKind.QuestionToken && precedence <= Precedence.Conditional) 11267if (newPrecedence > GetPrecedence(leftOperand.Kind)) 11282leftOperand.Kind == SyntaxKind.IsPatternExpression ? ErrorCode.ERR_UnexpectedToken : ErrorCode.WRN_PrecedenceInversion, 11311if (IsExpectedAssignmentOperator(operatorToken.Kind)) 11314if (IsExpectedBinaryOperator(operatorToken.Kind)) 11334if (this.CurrentToken.Kind != SyntaxKind.ColonToken && 11349if (this.CurrentToken.Kind == SyntaxKind.ColonToken) 11361if (this.CurrentToken.Kind == SyntaxKind.EndOfFileToken && this.lexer.InterpolationFollowedByColon) 11395conditionalExpression.WhenTrue.GetFirstToken().Kind == SyntaxKind.OpenBracketToken) 11431&& this.PeekToken(1) is { Kind: SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken } token2 11434if (token2.Kind == SyntaxKind.GreaterThanToken) 11436if (this.PeekToken(2) is { Kind: SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken } token3 11440token1Kind = token3.Kind == SyntaxKind.GreaterThanToken 11463if (token1Kind == SyntaxKind.SwitchKeyword && this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken) 11466if (token1Kind == SyntaxKind.WithKeyword && this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken) 11517Debug.Assert(IsExpectedAssignmentOperator(operatorToken.Kind)); 11522if (operatorExpressionKind == SyntaxKind.SimpleAssignmentExpression && CurrentToken.Kind == SyntaxKind.RefKeyword && 11542if (this.CurrentToken.Kind != SyntaxKind.DotToken) 11546return nextToken.Kind == SyntaxKind.DotToken && NoTriviaBetween(this.CurrentToken, nextToken); 11550=> token1.Kind == SyntaxKind.DotToken && 11551token2.Kind == SyntaxKind.DotToken && 11564if (this.CurrentToken is { Kind: SyntaxKind.DotToken } token3 && 11581if (this.PeekToken(1) is not { Kind: SyntaxKind.DotToken } token4 || 11634var tk = this.CurrentToken.Kind; 11688else if (IsCurrentTokenFieldInKeywordContext() && PeekToken(1).Kind != SyntaxKind.ColonColonToken) 11766if (this.CurrentToken.Kind != SyntaxKind.DotToken || tk == SyntaxKind.VoidKeyword) 11801switch (this.CurrentToken.Kind) 11813expr = _syntaxFactory.PostfixUnaryExpression(SyntaxFacts.GetPostfixUnaryExpression(this.CurrentToken.Kind), expr, this.EatToken()); 11817if (this.PeekToken(1).Kind == SyntaxKind.IdentifierToken) 11849this.PeekToken(1).Kind == SyntaxKind.IdentifierToken && 11882Debug.Assert(this.CurrentToken.Kind == SyntaxKind.BaseKeyword); 11896if (precedence > Precedence.Assignment || !(this.CurrentToken.IsIdentifierVar() || IsPredefinedType(this.CurrentToken.Kind))) 11905this.CurrentToken.Kind == SyntaxKind.OpenParenToken && ScanDesignator() && 11906this.CurrentToken.Kind == SyntaxKind.EqualsToken; 11911switch (this.CurrentToken.Kind) 11930switch (this.CurrentToken.Kind) 11950while (this.PeekToken(tokenIndex).Kind == SyntaxKind.StaticKeyword || 11956return this.PeekToken(tokenIndex).Kind == SyntaxKind.DelegateKeyword && 11957this.PeekToken(tokenIndex + 1).Kind != SyntaxKind.AsteriskToken; 12004if (this.CurrentToken.Kind == SyntaxKind.QuestionToken) 12007var nextTokenKind = nextToken.Kind; 12043return this.CurrentToken.Kind != SyntaxKind.ColonToken; 12056while (this.CurrentToken.Kind == SyntaxKind.ExclamationToken) 12092=> this.CurrentToken.Kind switch 12151openToken = this.CurrentToken.Kind is SyntaxKind.OpenParenToken or SyntaxKind.OpenBracketToken 12158if (this.CurrentToken.Kind != closeKind && this.CurrentToken.Kind != SyntaxKind.SemicolonToken) 12186else if (isIndexer && this.CurrentToken.Kind == closeKind) 12202closeToken = this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken 12211if (@this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken) 12215static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleArgumentExpression(), 12216static (p, closeKind) => p.CurrentToken.Kind == closeKind || p.CurrentToken.Kind == SyntaxKind.SemicolonToken, 12223return this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken; 12228return IsValidArgumentRefKindKeyword(this.CurrentToken.Kind) || this.IsPossibleExpression(); 12246var nameColon = this.CurrentToken.Kind == SyntaxKind.IdentifierToken && this.PeekToken(1).Kind == SyntaxKind.ColonToken 12253if (IsValidArgumentRefKindKeyword(this.CurrentToken.Kind) && 12255!(this.CurrentToken.Kind == SyntaxKind.RefKeyword && 12263if (isIndexer && this.CurrentToken.Kind is SyntaxKind.CommaToken or SyntaxKind.CloseBracketToken) 12267else if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 12279expression = refKindKeyword?.Kind == SyntaxKind.OutKeyword 12299if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 12343Debug.Assert(checkedOrUnchecked.Kind is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword); 12344var kind = checkedOrUnchecked.Kind == SyntaxKind.CheckedKeyword ? SyntaxKind.CheckedExpression : SyntaxKind.UncheckedExpression; 12377Debug.Assert(CurrentToken.Kind == SyntaxKind.OpenParenToken); 12395token.Kind is SyntaxKind.CommaToken || 12401return token.Kind == SyntaxKind.CloseParenToken && 12402this.PeekToken(index).Kind == SyntaxKind.EqualsGreaterThanToken; 12408Debug.Assert(CurrentToken.Kind == SyntaxKind.OpenParenToken); 12460if (this.CurrentToken.Kind == SyntaxKind.OpenBracketToken) 12468switch (this.CurrentToken.Kind) 12474return this.PeekToken(1).Kind == SyntaxKind.EqualsGreaterThanToken; 12484Debug.Assert(this.CurrentToken.Kind == SyntaxKind.OpenParenToken); 12512if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 12520if (expression.Kind == SyntaxKind.IdentifierName && this.CurrentToken.Kind == SyntaxKind.ColonToken) 12541while (this.CurrentToken.Kind == SyntaxKind.CommaToken) 12546var argument = expression.Kind != SyntaxKind.IdentifierName || this.CurrentToken.Kind != SyntaxKind.ColonToken 12572if (this.CurrentToken.Kind != SyntaxKind.OpenParenToken) 12585if (this.CurrentToken.Kind != SyntaxKind.CloseParenToken) 12592if (forPattern && this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 12614return !forPattern || this.CurrentToken.Kind switch 12639return this.CurrentToken.Kind == SyntaxKind.OpenBracketToken || CanFollowCast(this.CurrentToken.Kind); 12645if (this.CurrentToken.Kind == SyntaxKind.OpenBracketToken && 12646this.PeekToken(1).Kind == SyntaxKind.CloseBracketToken) 12654return CanFollowCast(this.CurrentToken.Kind); 12706if (token1.Kind == SyntaxKind.EqualsGreaterThanToken) 12714if (CurrentToken.Kind == SyntaxKind.OpenBracketToken) 12730if (this.CurrentToken.Kind == SyntaxKind.StaticKeyword) 12736this.PeekToken(1).Kind == SyntaxKind.StaticKeyword) 12749if (this.CurrentToken.Kind == SyntaxKind.EqualsGreaterThanToken) 12759if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 12767if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken && 12768this.PeekToken(1).Kind == SyntaxKind.EqualsGreaterThanToken) 12787if (st == ScanTypeFlags.NotType || this.CurrentToken.Kind != SyntaxKind.OpenParenToken) 12804if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken && 12805this.PeekToken(1).Kind == SyntaxKind.EqualsGreaterThanToken) 12812if (this.CurrentToken.Kind != SyntaxKind.OpenParenToken) 12884Debug.Assert(this.CurrentToken.Kind == SyntaxKind.NewKeyword); 12903Debug.Assert(this.CurrentToken.Kind == SyntaxKind.OpenBracketToken); 12924static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleCollectionElement(), 12925static (p, closeKind) => p.CurrentToken.Kind == closeKind, 12944return this.CurrentToken.Kind == SyntaxKind.NewKeyword && this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken; 12952Debug.Assert(this.CurrentToken.Kind == SyntaxKind.OpenBraceToken); 12989return this.CurrentToken.Kind == SyntaxKind.OpenBraceToken; 12994return IsTrueIdentifier() && this.PeekToken(1).Kind == SyntaxKind.EqualsToken; 12999return this.CurrentToken.Kind == SyntaxKind.OpenBracketToken; 13012if (type.Kind == SyntaxKind.ArrayType) 13015if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken) 13025if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 13030if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken) 13052if (this.CurrentToken.Kind != SyntaxKind.OpenParenToken) 13063switch (this.CurrentToken.Kind) 13136Kind: SyntaxKind.SimpleAssignmentExpression, 13137Left.Kind: SyntaxKind.IdentifierName or SyntaxKind.ImplicitElementAccess, 13182static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleExpression(), 13183static (p, closeKind) => p.CurrentToken.Kind == closeKind, 13193this.CurrentToken.Kind == SyntaxKind.OpenBraceToken 13204this.CurrentToken.Kind == SyntaxKind.OpenBraceToken 13232Debug.Assert(this.CurrentToken.Kind is SyntaxKind.NewKeyword or SyntaxKind.StackAllocKeyword); 13233return this.PeekToken(1).Kind == SyntaxKind.OpenBracketToken; 13259if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 13299static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleVariableInitializer(), 13300static (p, closeKind) => p.CurrentToken.Kind == closeKind, 13326if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 13348this.CurrentToken.Kind == SyntaxKind.OpenBraceToken ? this.ParseArrayInitializer() : null); 13376if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 13389if (this.CurrentToken.Kind != SyntaxKind.OpenBraceToken) 13420if (this.CurrentToken.Kind == SyntaxKind.StaticKeyword) 13443switch (this.PeekToken(1).Kind) 13466if (this.CurrentToken.Kind == SyntaxKind.ColonToken && 13503if (CurrentToken.Kind != SyntaxKind.OpenParenToken) 13510if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 13523var identifier = (this.CurrentToken.Kind != SyntaxKind.IdentifierToken && this.PeekToken(1).Kind == SyntaxKind.EqualsGreaterThanToken) 13540=> CurrentToken.Kind == SyntaxKind.OpenBraceToken 13571static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleLambdaParameter(), 13572static (p, closeKind) => p.CurrentToken.Kind == closeKind, 13579switch (this.CurrentToken.Kind) 13597return IsPredefinedType(this.CurrentToken.Kind); 13635if (IsPredefinedType(this.CurrentToken.Kind)) 13641if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 13663if (peek1.Kind 13728var pk1 = this.PeekToken(1).Kind; 13736var pk2 = this.PeekToken(2).Kind; 13773return this.ScanType() != ScanTypeFlags.NotType && this.CurrentToken.Kind is SyntaxKind.IdentifierToken or SyntaxKind.InKeyword; 13844var type = this.PeekToken(1).Kind != SyntaxKind.InKeyword 13850(this.CurrentToken.Kind != SyntaxKind.IdentifierToken || SyntaxFacts.IsQueryContextualKeyword(this.CurrentToken.ContextualKind))) 13877type: this.PeekToken(1).Kind != SyntaxKind.InKeyword 13920while (this.CurrentToken.Kind == SyntaxKind.CommaToken) 13922if (this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken) 13926else if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 13947static p => p.CurrentToken.Kind != SyntaxKind.CommaToken, 13948static (p, _) => p.CurrentToken.Kind == SyntaxKind.CloseParenToken 13949|| p.CurrentToken.Kind == SyntaxKind.SemicolonToken 13964if (direction.Kind == SyntaxKind.DescendingKeyword) 14124if (requireOneElement || this.CurrentToken.Kind != closeTokenKind) 14141if (this.CurrentToken.Kind == closeTokenKind) 14147nodes.AddSeparator(this.CurrentToken.Kind == SyntaxKind.SemicolonToken 14154if (this.CurrentToken.Kind == closeTokenKind) 14189if (this.CurrentToken.Kind == separatorTokenKind) 14194if (allowSemicolonAsSeparator && this.CurrentToken.Kind is SyntaxKind.SemicolonToken) 14283if (this.CurrentToken.Kind == SyntaxKind.EndOfFileToken) return node; 14285while (this.CurrentToken.Kind != SyntaxKind.EndOfFileToken)
Parser\LanguageParser_InterpolatedString.cs (3)
40Debug.Assert(this.CurrentToken.Kind == SyntaxKind.InterpolatedStringToken); 410if (this.CurrentToken.Kind != SyntaxKind.CommaToken) 468Debug.Assert(token.Kind == SyntaxKind.StringLiteralToken);
Parser\LanguageParser_Patterns.cs (29)
40case MemberAccessExpressionSyntax { Expression: var expr, OperatorToken: { Kind: SyntaxKind.DotToken } dotToken, Name: var simpleName } 78var tk = CurrentToken.Kind; 85(this.CurrentToken.ContextualKind != SyntaxKind.NameOfKeyword || this.PeekToken(1).Kind != SyntaxKind.OpenParenToken)) 121switch (this.CurrentToken.Kind) 143switch (this.CurrentToken.Kind) 175var tk = this.CurrentToken.Kind; 192switch (CurrentToken.Kind) 244switch (this.CurrentToken.Kind) 271if (type?.Kind == SyntaxKind.IdentifierName) 276(this.CurrentToken.Kind == SyntaxKind.OpenParenToken || this.IsValidPatternDesignation(inSwitchArmPattern))) 285if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken && (type != null || !looksLikeCast())) 360if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken) 386if (CurrentToken.Kind == SyntaxKind.IdentifierToken) 394var tk = PeekToken(1).Kind; 477if (this.CurrentToken.Kind != SyntaxKind.OpenParenToken) 509if (this.CurrentToken.Kind == SyntaxKind.ColonToken && ConvertPatternToExpressionIfPossible(pattern, permitTypeArguments: true) is ExpressionSyntax expr) 530this.CurrentToken.Kind is 543if (@this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.CloseBraceToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken) 550if (@this._termState.HasFlag(TerminatorState.IsExpressionOrPatternInCaseLabelOfSwitchStatement) && @this.CurrentToken.Kind is SyntaxKind.ColonToken) 559if (@this._termState.HasFlag(TerminatorState.IsPatternInSwitchExpressionArm) && @this.CurrentToken.Kind is SyntaxKind.EqualsGreaterThanToken or SyntaxKind.ColonToken) 563static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleSubpatternElement(), 564static (p, closeKind) => p.CurrentToken.Kind == closeKind || p.CurrentToken.Kind == SyntaxKind.SemicolonToken, 584while (this.CurrentToken.Kind != SyntaxKind.CloseBraceToken) 590var errantCase = this.CurrentToken.Kind == SyntaxKind.CaseKeyword 609this.CurrentToken.Kind == SyntaxKind.ColonToken 615if (errantCase is null && switchExpressionCase.FullWidth == 0 && this.CurrentToken.Kind != SyntaxKind.CommaToken) 622if (this.CurrentToken.Kind != SyntaxKind.CloseBraceToken) 624var commaToken = this.CurrentToken.Kind == SyntaxKind.SemicolonToken
Parser\Lexer.cs (3)
2383if (directive.Kind == SyntaxKind.EndIfDirectiveTrivia || (branching != null && branching.BranchTaken)) 2387else if (directive.Kind == SyntaxKind.IfDirectiveTrivia) 2742else if (tr.Kind == SyntaxKind.EndOfLineTrivia)
Parser\SyntaxParser.cs (13)
151if (token.Kind == SyntaxKind.EndOfFileToken) 498=> this.CurrentToken.Kind == kind ? this.EatToken() : null; 526if (ct.Kind == kind) 533return CreateMissingToken(kind, this.CurrentToken.Kind, reportError: true); 542if (ct.Kind == expected) 548var replacement = CreateMissingToken(expected, this.CurrentToken.Kind, reportError: true); 584if (this.CurrentToken.Kind != kind) 598if (this.CurrentToken.Kind != kind) 612if (token.Kind != kind) 614token = WithAdditionalDiagnostics(token, this.GetExpectedTokenError(kind, token.Kind)); 796if (trivia.Kind == SyntaxKind.SkippedTokensTrivia) 1098if (token.Kind != token.ContextualKind) 1119var identifier = SyntaxToken.Identifier(token.Kind, token.LeadingTrivia.Node, token.Text, token.ValueText, token.TrailingTrivia.Node);
Syntax.xml.Internal.Generated.cs (1444)
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); 2036var 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); 2194var 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); 2283var 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); 2777var 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); 2866var 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); 3184var 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); 3665var 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); 5487var 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); 6781=> new QueryExpressionSyntax(this.Kind, this.fromClause, this.body, diagnostics, GetAnnotations()); 6784=> new QueryExpressionSyntax(this.Kind, this.fromClause, this.body, GetDiagnostics(), annotations); 6884=> new QueryBodySyntax(this.Kind, this.clauses, this.selectOrGroup, this.continuation, diagnostics, GetAnnotations()); 6887=> new QueryBodySyntax(this.Kind, this.clauses, this.selectOrGroup, this.continuation, GetDiagnostics(), annotations); 6997=> new FromClauseSyntax(this.Kind, this.fromKeyword, this.type, this.identifier, this.inKeyword, this.expression, diagnostics, GetAnnotations()); 7000=> new FromClauseSyntax(this.Kind, this.fromKeyword, this.type, this.identifier, this.inKeyword, this.expression, GetDiagnostics(), annotations); 7092=> new LetClauseSyntax(this.Kind, this.letKeyword, this.identifier, this.equalsToken, this.expression, diagnostics, GetAnnotations()); 7095=> new LetClauseSyntax(this.Kind, this.letKeyword, this.identifier, this.equalsToken, this.expression, GetDiagnostics(), annotations); 7259=> 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()); 7262=> 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); 7336=> new JoinIntoClauseSyntax(this.Kind, this.intoKeyword, this.identifier, diagnostics, GetAnnotations()); 7339=> new JoinIntoClauseSyntax(this.Kind, this.intoKeyword, this.identifier, GetDiagnostics(), annotations); 7412=> new WhereClauseSyntax(this.Kind, this.whereKeyword, this.condition, diagnostics, GetAnnotations()); 7415=> new WhereClauseSyntax(this.Kind, this.whereKeyword, this.condition, GetDiagnostics(), annotations); 7497=> new OrderByClauseSyntax(this.Kind, this.orderByKeyword, this.orderings, diagnostics, GetAnnotations()); 7500=> new OrderByClauseSyntax(this.Kind, this.orderByKeyword, this.orderings, GetDiagnostics(), annotations); 7568var newNode = SyntaxFactory.Ordering(this.Kind, expression, ascendingOrDescendingKeyword); 7582=> new OrderingSyntax(this.Kind, this.expression, this.ascendingOrDescendingKeyword, diagnostics, GetAnnotations()); 7585=> new OrderingSyntax(this.Kind, this.expression, this.ascendingOrDescendingKeyword, GetDiagnostics(), annotations); 7658=> new SelectClauseSyntax(this.Kind, this.selectKeyword, this.expression, diagnostics, GetAnnotations()); 7661=> new SelectClauseSyntax(this.Kind, this.selectKeyword, this.expression, GetDiagnostics(), annotations); 7752=> new GroupClauseSyntax(this.Kind, this.groupKeyword, this.groupExpression, this.byKeyword, this.byExpression, diagnostics, GetAnnotations()); 7755=> new GroupClauseSyntax(this.Kind, this.groupKeyword, this.groupExpression, this.byKeyword, this.byExpression, GetDiagnostics(), annotations); 7838=> new QueryContinuationSyntax(this.Kind, this.intoKeyword, this.identifier, this.body, diagnostics, GetAnnotations()); 7841=> new QueryContinuationSyntax(this.Kind, this.intoKeyword, this.identifier, this.body, GetDiagnostics(), annotations); 7903=> new OmittedArraySizeExpressionSyntax(this.Kind, this.omittedArraySizeExpressionToken, diagnostics, GetAnnotations()); 7906=> new OmittedArraySizeExpressionSyntax(this.Kind, this.omittedArraySizeExpressionToken, GetDiagnostics(), annotations); 8000=> new InterpolatedStringExpressionSyntax(this.Kind, this.stringStartToken, this.contents, this.stringEndToken, diagnostics, GetAnnotations()); 8003=> new InterpolatedStringExpressionSyntax(this.Kind, this.stringStartToken, this.contents, this.stringEndToken, GetDiagnostics(), annotations); 8088=> new IsPatternExpressionSyntax(this.Kind, this.expression, this.isKeyword, this.pattern, diagnostics, GetAnnotations()); 8091=> new IsPatternExpressionSyntax(this.Kind, this.expression, this.isKeyword, this.pattern, GetDiagnostics(), annotations); 8164=> new ThrowExpressionSyntax(this.Kind, this.throwKeyword, this.expression, diagnostics, GetAnnotations()); 8167=> new ThrowExpressionSyntax(this.Kind, this.throwKeyword, this.expression, GetDiagnostics(), annotations); 8240=> new WhenClauseSyntax(this.Kind, this.whenKeyword, this.condition, diagnostics, GetAnnotations()); 8243=> new WhenClauseSyntax(this.Kind, this.whenKeyword, this.condition, GetDiagnostics(), annotations); 8316=> new DiscardPatternSyntax(this.Kind, this.underscoreToken, diagnostics, GetAnnotations()); 8319=> new DiscardPatternSyntax(this.Kind, this.underscoreToken, GetDiagnostics(), annotations); 8392=> new DeclarationPatternSyntax(this.Kind, this.type, this.designation, diagnostics, GetAnnotations()); 8395=> new DeclarationPatternSyntax(this.Kind, this.type, this.designation, GetDiagnostics(), annotations); 8468=> new VarPatternSyntax(this.Kind, this.varKeyword, this.designation, diagnostics, GetAnnotations()); 8471=> new VarPatternSyntax(this.Kind, this.varKeyword, this.designation, GetDiagnostics(), annotations); 8598=> new RecursivePatternSyntax(this.Kind, this.type, this.positionalPatternClause, this.propertyPatternClause, this.designation, diagnostics, GetAnnotations()); 8601=> new RecursivePatternSyntax(this.Kind, this.type, this.positionalPatternClause, this.propertyPatternClause, this.designation, GetDiagnostics(), annotations); 8692=> new PositionalPatternClauseSyntax(this.Kind, this.openParenToken, this.subpatterns, this.closeParenToken, diagnostics, GetAnnotations()); 8695=> new PositionalPatternClauseSyntax(this.Kind, this.openParenToken, this.subpatterns, this.closeParenToken, GetDiagnostics(), annotations); 8786=> new PropertyPatternClauseSyntax(this.Kind, this.openBraceToken, this.subpatterns, this.closeBraceToken, diagnostics, GetAnnotations()); 8789=> new PropertyPatternClauseSyntax(this.Kind, this.openBraceToken, this.subpatterns, this.closeBraceToken, GetDiagnostics(), annotations); 8871=> new SubpatternSyntax(this.Kind, this.expressionColon, this.pattern, diagnostics, GetAnnotations()); 8874=> new SubpatternSyntax(this.Kind, this.expressionColon, this.pattern, GetDiagnostics(), annotations); 8935=> new ConstantPatternSyntax(this.Kind, this.expression, diagnostics, GetAnnotations()); 8938=> new ConstantPatternSyntax(this.Kind, this.expression, GetDiagnostics(), annotations); 9020=> new ParenthesizedPatternSyntax(this.Kind, this.openParenToken, this.pattern, this.closeParenToken, diagnostics, GetAnnotations()); 9023=> new ParenthesizedPatternSyntax(this.Kind, this.openParenToken, this.pattern, this.closeParenToken, GetDiagnostics(), annotations); 9097=> new RelationalPatternSyntax(this.Kind, this.operatorToken, this.expression, diagnostics, GetAnnotations()); 9100=> new RelationalPatternSyntax(this.Kind, this.operatorToken, this.expression, GetDiagnostics(), annotations); 9161=> new TypePatternSyntax(this.Kind, this.type, diagnostics, GetAnnotations()); 9164=> new TypePatternSyntax(this.Kind, this.type, GetDiagnostics(), annotations); 9232var newNode = SyntaxFactory.BinaryPattern(this.Kind, left, operatorToken, right); 9246=> new BinaryPatternSyntax(this.Kind, this.left, this.operatorToken, this.right, diagnostics, GetAnnotations()); 9249=> new BinaryPatternSyntax(this.Kind, this.left, this.operatorToken, this.right, GetDiagnostics(), annotations); 9322=> new UnaryPatternSyntax(this.Kind, this.operatorToken, this.pattern, diagnostics, GetAnnotations()); 9325=> new UnaryPatternSyntax(this.Kind, this.operatorToken, this.pattern, GetDiagnostics(), annotations); 9434=> new ListPatternSyntax(this.Kind, this.openBracketToken, this.patterns, this.closeBracketToken, this.designation, diagnostics, GetAnnotations()); 9437=> new ListPatternSyntax(this.Kind, this.openBracketToken, this.patterns, this.closeBracketToken, this.designation, GetDiagnostics(), annotations); 9519=> new SlicePatternSyntax(this.Kind, this.dotDotToken, this.pattern, diagnostics, GetAnnotations()); 9522=> new SlicePatternSyntax(this.Kind, this.dotDotToken, this.pattern, GetDiagnostics(), annotations); 9596=> new InterpolatedStringTextSyntax(this.Kind, this.textToken, diagnostics, GetAnnotations()); 9599=> new InterpolatedStringTextSyntax(this.Kind, this.textToken, GetDiagnostics(), annotations); 9721=> new InterpolationSyntax(this.Kind, this.openBraceToken, this.expression, this.alignmentClause, this.formatClause, this.closeBraceToken, diagnostics, GetAnnotations()); 9724=> new InterpolationSyntax(this.Kind, this.openBraceToken, this.expression, this.alignmentClause, this.formatClause, this.closeBraceToken, GetDiagnostics(), annotations); 9797=> new InterpolationAlignmentClauseSyntax(this.Kind, this.commaToken, this.value, diagnostics, GetAnnotations()); 9800=> new InterpolationAlignmentClauseSyntax(this.Kind, this.commaToken, this.value, GetDiagnostics(), annotations); 9874=> new InterpolationFormatClauseSyntax(this.Kind, this.colonToken, this.formatStringToken, diagnostics, GetAnnotations()); 9877=> new InterpolationFormatClauseSyntax(this.Kind, this.colonToken, this.formatStringToken, GetDiagnostics(), annotations); 9977=> new GlobalStatementSyntax(this.Kind, this.attributeLists, this.modifiers, this.statement, diagnostics, GetAnnotations()); 9980=> new GlobalStatementSyntax(this.Kind, this.attributeLists, this.modifiers, this.statement, GetDiagnostics(), annotations); 10105=> new BlockSyntax(this.Kind, this.attributeLists, this.openBraceToken, this.statements, this.closeBraceToken, diagnostics, GetAnnotations()); 10108=> new BlockSyntax(this.Kind, this.attributeLists, this.openBraceToken, this.statements, this.closeBraceToken, GetDiagnostics(), annotations); 10318=> 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()); 10321=> 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); 10467=> new LocalDeclarationStatementSyntax(this.Kind, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.modifiers, this.declaration, this.semicolonToken, diagnostics, GetAnnotations()); 10470=> new LocalDeclarationStatementSyntax(this.Kind, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.modifiers, this.declaration, this.semicolonToken, GetDiagnostics(), annotations); 10552=> new VariableDeclarationSyntax(this.Kind, this.type, this.variables, diagnostics, GetAnnotations()); 10555=> new VariableDeclarationSyntax(this.Kind, this.type, this.variables, GetDiagnostics(), annotations); 10656=> new VariableDeclaratorSyntax(this.Kind, this.identifier, this.argumentList, this.initializer, diagnostics, GetAnnotations()); 10659=> new VariableDeclaratorSyntax(this.Kind, this.identifier, this.argumentList, this.initializer, GetDiagnostics(), annotations); 10732=> new EqualsValueClauseSyntax(this.Kind, this.equalsToken, this.value, diagnostics, GetAnnotations()); 10735=> new EqualsValueClauseSyntax(this.Kind, this.equalsToken, this.value, GetDiagnostics(), annotations); 10808=> new SingleVariableDesignationSyntax(this.Kind, this.identifier, diagnostics, GetAnnotations()); 10811=> new SingleVariableDesignationSyntax(this.Kind, this.identifier, GetDiagnostics(), annotations); 10871=> new DiscardDesignationSyntax(this.Kind, this.underscoreToken, diagnostics, GetAnnotations()); 10874=> new DiscardDesignationSyntax(this.Kind, this.underscoreToken, GetDiagnostics(), annotations); 10965=> new ParenthesizedVariableDesignationSyntax(this.Kind, this.openParenToken, this.variables, this.closeParenToken, diagnostics, GetAnnotations()); 10968=> new ParenthesizedVariableDesignationSyntax(this.Kind, this.openParenToken, this.variables, this.closeParenToken, GetDiagnostics(), annotations); 11059=> new ExpressionStatementSyntax(this.Kind, this.attributeLists, this.expression, this.semicolonToken, diagnostics, GetAnnotations()); 11062=> new ExpressionStatementSyntax(this.Kind, this.attributeLists, this.expression, this.semicolonToken, GetDiagnostics(), annotations); 11144=> new EmptyStatementSyntax(this.Kind, this.attributeLists, this.semicolonToken, diagnostics, GetAnnotations()); 11147=> new EmptyStatementSyntax(this.Kind, this.attributeLists, this.semicolonToken, GetDiagnostics(), annotations); 11250=> new LabeledStatementSyntax(this.Kind, this.attributeLists, this.identifier, this.colonToken, this.statement, diagnostics, GetAnnotations()); 11253=> new LabeledStatementSyntax(this.Kind, this.attributeLists, this.identifier, this.colonToken, this.statement, GetDiagnostics(), annotations); 11381var newNode = SyntaxFactory.GotoStatement(this.Kind, attributeLists, gotoKeyword, caseOrDefaultKeyword, expression, semicolonToken); 11395=> new GotoStatementSyntax(this.Kind, this.attributeLists, this.gotoKeyword, this.caseOrDefaultKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations()); 11398=> new GotoStatementSyntax(this.Kind, this.attributeLists, this.gotoKeyword, this.caseOrDefaultKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations); 11489=> new BreakStatementSyntax(this.Kind, this.attributeLists, this.breakKeyword, this.semicolonToken, diagnostics, GetAnnotations()); 11492=> new BreakStatementSyntax(this.Kind, this.attributeLists, this.breakKeyword, this.semicolonToken, GetDiagnostics(), annotations); 11583=> new ContinueStatementSyntax(this.Kind, this.attributeLists, this.continueKeyword, this.semicolonToken, diagnostics, GetAnnotations()); 11586=> new ContinueStatementSyntax(this.Kind, this.attributeLists, this.continueKeyword, this.semicolonToken, GetDiagnostics(), annotations); 11695=> new ReturnStatementSyntax(this.Kind, this.attributeLists, this.returnKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations()); 11698=> new ReturnStatementSyntax(this.Kind, this.attributeLists, this.returnKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations); 11807=> new ThrowStatementSyntax(this.Kind, this.attributeLists, this.throwKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations()); 11810=> new ThrowStatementSyntax(this.Kind, this.attributeLists, this.throwKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations); 11914var newNode = SyntaxFactory.YieldStatement(this.Kind, attributeLists, yieldKeyword, returnOrBreakKeyword, expression, semicolonToken); 11928=> new YieldStatementSyntax(this.Kind, this.attributeLists, this.yieldKeyword, this.returnOrBreakKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations()); 11931=> new YieldStatementSyntax(this.Kind, this.attributeLists, this.yieldKeyword, this.returnOrBreakKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations); 12049=> new WhileStatementSyntax(this.Kind, this.attributeLists, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, diagnostics, GetAnnotations()); 12052=> new WhileStatementSyntax(this.Kind, this.attributeLists, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, GetDiagnostics(), annotations); 12188=> new DoStatementSyntax(this.Kind, this.attributeLists, this.doKeyword, this.statement, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.semicolonToken, diagnostics, GetAnnotations()); 12191=> new DoStatementSyntax(this.Kind, this.attributeLists, this.doKeyword, this.statement, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.semicolonToken, GetDiagnostics(), annotations); 12390=> 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()); 12393=> 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); 12584=> 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()); 12587=> 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); 12747=> new ForEachVariableStatementSyntax(this.Kind, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.variable, this.inKeyword, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations()); 12750=> new ForEachVariableStatementSyntax(this.Kind, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.variable, this.inKeyword, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations); 12913=> new UsingStatementSyntax(this.Kind, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.openParenToken, this.declaration, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations()); 12916=> new UsingStatementSyntax(this.Kind, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.openParenToken, this.declaration, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations); 13034=> new FixedStatementSyntax(this.Kind, this.attributeLists, this.fixedKeyword, this.openParenToken, this.declaration, this.closeParenToken, this.statement, diagnostics, GetAnnotations()); 13037=> new FixedStatementSyntax(this.Kind, this.attributeLists, this.fixedKeyword, this.openParenToken, this.declaration, this.closeParenToken, this.statement, GetDiagnostics(), annotations); 13114var newNode = SyntaxFactory.CheckedStatement(this.Kind, attributeLists, keyword, block); 13128=> new CheckedStatementSyntax(this.Kind, this.attributeLists, this.keyword, this.block, diagnostics, GetAnnotations()); 13131=> new CheckedStatementSyntax(this.Kind, this.attributeLists, this.keyword, this.block, GetDiagnostics(), annotations); 13222=> new UnsafeStatementSyntax(this.Kind, this.attributeLists, this.unsafeKeyword, this.block, diagnostics, GetAnnotations()); 13225=> new UnsafeStatementSyntax(this.Kind, this.attributeLists, this.unsafeKeyword, this.block, GetDiagnostics(), annotations); 13343=> new LockStatementSyntax(this.Kind, this.attributeLists, this.lockKeyword, this.openParenToken, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations()); 13346=> new LockStatementSyntax(this.Kind, this.attributeLists, this.lockKeyword, this.openParenToken, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations); 13503=> new IfStatementSyntax(this.Kind, this.attributeLists, this.ifKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, this.@else, diagnostics, GetAnnotations()); 13506=> new IfStatementSyntax(this.Kind, this.attributeLists, this.ifKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, this.@else, GetDiagnostics(), annotations); 13583=> new ElseClauseSyntax(this.Kind, this.elseKeyword, this.statement, diagnostics, GetAnnotations()); 13586=> new ElseClauseSyntax(this.Kind, this.elseKeyword, this.statement, GetDiagnostics(), annotations); 13771=> new SwitchStatementSyntax(this.Kind, this.attributeLists, this.switchKeyword, this.openParenToken, this.expression, this.closeParenToken, this.openBraceToken, this.sections, this.closeBraceToken, diagnostics, GetAnnotations()); 13774=> new SwitchStatementSyntax(this.Kind, this.attributeLists, this.switchKeyword, this.openParenToken, this.expression, this.closeParenToken, this.openBraceToken, this.sections, this.closeBraceToken, GetDiagnostics(), annotations); 13872=> new SwitchSectionSyntax(this.Kind, this.labels, this.statements, diagnostics, GetAnnotations()); 13875=> new SwitchSectionSyntax(this.Kind, this.labels, this.statements, GetDiagnostics(), annotations); 14004=> new CasePatternSwitchLabelSyntax(this.Kind, this.keyword, this.pattern, this.whenClause, this.colonToken, diagnostics, GetAnnotations()); 14007=> new CasePatternSwitchLabelSyntax(this.Kind, this.keyword, this.pattern, this.whenClause, this.colonToken, GetDiagnostics(), annotations); 14094=> new CaseSwitchLabelSyntax(this.Kind, this.keyword, this.value, this.colonToken, diagnostics, GetAnnotations()); 14097=> new CaseSwitchLabelSyntax(this.Kind, this.keyword, this.value, this.colonToken, GetDiagnostics(), annotations); 14172=> new DefaultSwitchLabelSyntax(this.Kind, this.keyword, this.colonToken, diagnostics, GetAnnotations()); 14175=> new DefaultSwitchLabelSyntax(this.Kind, this.keyword, this.colonToken, GetDiagnostics(), annotations); 14284=> new SwitchExpressionSyntax(this.Kind, this.governingExpression, this.switchKeyword, this.openBraceToken, this.arms, this.closeBraceToken, diagnostics, GetAnnotations()); 14287=> new SwitchExpressionSyntax(this.Kind, this.governingExpression, this.switchKeyword, this.openBraceToken, this.arms, this.closeBraceToken, GetDiagnostics(), annotations); 14387=> new SwitchExpressionArmSyntax(this.Kind, this.pattern, this.whenClause, this.equalsGreaterThanToken, this.expression, diagnostics, GetAnnotations()); 14390=> new SwitchExpressionArmSyntax(this.Kind, this.pattern, this.whenClause, this.equalsGreaterThanToken, this.expression, GetDiagnostics(), annotations); 14517=> new TryStatementSyntax(this.Kind, this.attributeLists, this.tryKeyword, this.block, this.catches, this.@finally, diagnostics, GetAnnotations()); 14520=> new TryStatementSyntax(this.Kind, this.attributeLists, this.tryKeyword, this.block, this.catches, this.@finally, GetDiagnostics(), annotations); 14629=> new CatchClauseSyntax(this.Kind, this.catchKeyword, this.declaration, this.filter, this.block, diagnostics, GetAnnotations()); 14632=> new CatchClauseSyntax(this.Kind, this.catchKeyword, this.declaration, this.filter, this.block, GetDiagnostics(), annotations); 14732=> new CatchDeclarationSyntax(this.Kind, this.openParenToken, this.type, this.identifier, this.closeParenToken, diagnostics, GetAnnotations()); 14735=> new CatchDeclarationSyntax(this.Kind, this.openParenToken, this.type, this.identifier, this.closeParenToken, GetDiagnostics(), annotations); 14826=> new CatchFilterClauseSyntax(this.Kind, this.whenKeyword, this.openParenToken, this.filterExpression, this.closeParenToken, diagnostics, GetAnnotations()); 14829=> new CatchFilterClauseSyntax(this.Kind, this.whenKeyword, this.openParenToken, this.filterExpression, this.closeParenToken, GetDiagnostics(), annotations); 14902=> new FinallyClauseSyntax(this.Kind, this.finallyKeyword, this.block, diagnostics, GetAnnotations()); 14905=> new FinallyClauseSyntax(this.Kind, this.finallyKeyword, this.block, GetDiagnostics(), annotations); 15042=> new CompilationUnitSyntax(this.Kind, this.externs, this.usings, this.attributeLists, this.members, this.endOfFileToken, diagnostics, GetAnnotations()); 15045=> new CompilationUnitSyntax(this.Kind, this.externs, this.usings, this.attributeLists, this.members, this.endOfFileToken, GetDiagnostics(), annotations); 15143=> new ExternAliasDirectiveSyntax(this.Kind, this.externKeyword, this.aliasKeyword, this.identifier, this.semicolonToken, diagnostics, GetAnnotations()); 15146=> new ExternAliasDirectiveSyntax(this.Kind, this.externKeyword, this.aliasKeyword, this.identifier, this.semicolonToken, GetDiagnostics(), annotations); 15300=> new UsingDirectiveSyntax(this.Kind, this.globalKeyword, this.usingKeyword, this.staticKeyword, this.unsafeKeyword, this.alias, this.namespaceOrType, this.semicolonToken, diagnostics, GetAnnotations()); 15303=> new UsingDirectiveSyntax(this.Kind, this.globalKeyword, this.usingKeyword, this.staticKeyword, this.unsafeKeyword, this.alias, this.namespaceOrType, this.semicolonToken, GetDiagnostics(), annotations); 15546=> 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()); 15549=> 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); 15721=> new FileScopedNamespaceDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.semicolonToken, this.externs, this.usings, this.members, diagnostics, GetAnnotations()); 15724=> new FileScopedNamespaceDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.semicolonToken, this.externs, this.usings, this.members, GetDiagnostics(), annotations); 15838=> new AttributeListSyntax(this.Kind, this.openBracketToken, this.target, this.attributes, this.closeBracketToken, diagnostics, GetAnnotations()); 15841=> new AttributeListSyntax(this.Kind, this.openBracketToken, this.target, this.attributes, this.closeBracketToken, GetDiagnostics(), annotations); 15917=> new AttributeTargetSpecifierSyntax(this.Kind, this.identifier, this.colonToken, diagnostics, GetAnnotations()); 15920=> new AttributeTargetSpecifierSyntax(this.Kind, this.identifier, this.colonToken, GetDiagnostics(), annotations); 16007=> new AttributeSyntax(this.Kind, this.name, this.argumentList, diagnostics, GetAnnotations()); 16010=> new AttributeSyntax(this.Kind, this.name, this.argumentList, GetDiagnostics(), annotations); 16105=> new AttributeArgumentListSyntax(this.Kind, this.openParenToken, this.arguments, this.closeParenToken, diagnostics, GetAnnotations()); 16108=> new AttributeArgumentListSyntax(this.Kind, this.openParenToken, this.arguments, this.closeParenToken, GetDiagnostics(), annotations); 16210=> new AttributeArgumentSyntax(this.Kind, this.nameEquals, this.nameColon, this.expression, diagnostics, GetAnnotations()); 16213=> new AttributeArgumentSyntax(this.Kind, this.nameEquals, this.nameColon, this.expression, GetDiagnostics(), annotations); 16288=> new NameEqualsSyntax(this.Kind, this.name, this.equalsToken, diagnostics, GetAnnotations()); 16291=> new NameEqualsSyntax(this.Kind, this.name, this.equalsToken, GetDiagnostics(), annotations); 16386=> new TypeParameterListSyntax(this.Kind, this.lessThanToken, this.parameters, this.greaterThanToken, diagnostics, GetAnnotations()); 16389=> new TypeParameterListSyntax(this.Kind, this.lessThanToken, this.parameters, this.greaterThanToken, GetDiagnostics(), annotations); 16492=> new TypeParameterSyntax(this.Kind, this.attributeLists, this.varianceKeyword, this.identifier, diagnostics, GetAnnotations()); 16495=> new TypeParameterSyntax(this.Kind, this.attributeLists, this.varianceKeyword, this.identifier, GetDiagnostics(), annotations); 16806=> 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()); 16809=> 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); 17064=> 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()); 17067=> 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); 17322=> 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()); 17325=> 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); 17582var newNode = SyntaxFactory.RecordDeclaration(this.Kind, attributeLists, modifiers, keyword, classOrStructKeyword, identifier, typeParameterList, parameterList, baseList, constraintClauses, openBraceToken, members, closeBraceToken, semicolonToken); 17596=> 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()); 17599=> 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); 17802=> new EnumDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.enumKeyword, this.identifier, this.baseList, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations()); 17805=> new EnumDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.enumKeyword, this.identifier, this.baseList, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations); 17984=> new DelegateDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.delegateKeyword, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.semicolonToken, diagnostics, GetAnnotations()); 17987=> new DelegateDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.delegateKeyword, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.semicolonToken, GetDiagnostics(), annotations); 18106=> new EnumMemberDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.identifier, this.equalsValue, diagnostics, GetAnnotations()); 18109=> new EnumMemberDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.identifier, this.equalsValue, GetDiagnostics(), annotations); 18336=> 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()); 18339=> 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); 18424=> new BaseListSyntax(this.Kind, this.colonToken, this.types, diagnostics, GetAnnotations()); 18427=> new BaseListSyntax(this.Kind, this.colonToken, this.types, GetDiagnostics(), annotations); 18503=> new SimpleBaseTypeSyntax(this.Kind, this.type, diagnostics, GetAnnotations()); 18506=> new SimpleBaseTypeSyntax(this.Kind, this.type, GetDiagnostics(), annotations); 18579=> new PrimaryConstructorBaseTypeSyntax(this.Kind, this.type, this.argumentList, diagnostics, GetAnnotations()); 18582=> new PrimaryConstructorBaseTypeSyntax(this.Kind, this.type, this.argumentList, GetDiagnostics(), annotations); 18686=> new TypeParameterConstraintClauseSyntax(this.Kind, this.whereKeyword, this.name, this.colonToken, this.constraints, diagnostics, GetAnnotations()); 18689=> new TypeParameterConstraintClauseSyntax(this.Kind, this.whereKeyword, this.name, this.colonToken, this.constraints, GetDiagnostics(), annotations); 18789=> new ConstructorConstraintSyntax(this.Kind, this.newKeyword, this.openParenToken, this.closeParenToken, diagnostics, GetAnnotations()); 18792=> new ConstructorConstraintSyntax(this.Kind, this.newKeyword, this.openParenToken, this.closeParenToken, GetDiagnostics(), annotations); 18863var newNode = SyntaxFactory.ClassOrStructConstraint(this.Kind, classOrStructKeyword, questionToken); 18877=> new ClassOrStructConstraintSyntax(this.Kind, this.classOrStructKeyword, this.questionToken, diagnostics, GetAnnotations()); 18880=> new ClassOrStructConstraintSyntax(this.Kind, this.classOrStructKeyword, this.questionToken, GetDiagnostics(), annotations); 18942=> new TypeConstraintSyntax(this.Kind, this.type, diagnostics, GetAnnotations()); 18945=> new TypeConstraintSyntax(this.Kind, this.type, GetDiagnostics(), annotations); 19007=> new DefaultConstraintSyntax(this.Kind, this.defaultKeyword, diagnostics, GetAnnotations()); 19010=> new DefaultConstraintSyntax(this.Kind, this.defaultKeyword, GetDiagnostics(), annotations); 19094=> new AllowsConstraintClauseSyntax(this.Kind, this.allowsKeyword, this.constraints, diagnostics, GetAnnotations()); 19097=> new AllowsConstraintClauseSyntax(this.Kind, this.allowsKeyword, this.constraints, GetDiagnostics(), annotations); 19187=> new RefStructConstraintSyntax(this.Kind, this.refKeyword, this.structKeyword, diagnostics, GetAnnotations()); 19190=> new RefStructConstraintSyntax(this.Kind, this.refKeyword, this.structKeyword, GetDiagnostics(), annotations); 19316=> new FieldDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.declaration, this.semicolonToken, diagnostics, GetAnnotations()); 19319=> new FieldDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.declaration, this.semicolonToken, GetDiagnostics(), annotations); 19437=> new EventFieldDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.eventKeyword, this.declaration, this.semicolonToken, diagnostics, GetAnnotations()); 19440=> new EventFieldDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.eventKeyword, this.declaration, this.semicolonToken, GetDiagnostics(), annotations); 19513=> new ExplicitInterfaceSpecifierSyntax(this.Kind, this.name, this.dotToken, diagnostics, GetAnnotations()); 19516=> new ExplicitInterfaceSpecifierSyntax(this.Kind, this.name, this.dotToken, GetDiagnostics(), annotations); 19771=> 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()); 19774=> 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); 19997=> 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()); 20000=> 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); 20223=> 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()); 20226=> 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); 20410=> new ConstructorDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.identifier, this.parameterList, this.initializer, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations()); 20413=> new ConstructorDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.identifier, this.parameterList, this.initializer, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations); 20484var newNode = SyntaxFactory.ConstructorInitializer(this.Kind, colonToken, thisOrBaseKeyword, argumentList); 20498=> new ConstructorInitializerSyntax(this.Kind, this.colonToken, this.thisOrBaseKeyword, this.argumentList, diagnostics, GetAnnotations()); 20501=> new ConstructorInitializerSyntax(this.Kind, this.colonToken, this.thisOrBaseKeyword, this.argumentList, GetDiagnostics(), annotations); 20677=> new DestructorDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.tildeToken, this.identifier, this.parameterList, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations()); 20680=> new DestructorDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.tildeToken, this.identifier, this.parameterList, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations); 20902=> new PropertyDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.expressionBody, this.initializer, this.semicolonToken, diagnostics, GetAnnotations()); 20905=> new PropertyDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.expressionBody, this.initializer, this.semicolonToken, GetDiagnostics(), annotations); 20979=> new ArrowExpressionClauseSyntax(this.Kind, this.arrowToken, this.expression, diagnostics, GetAnnotations()); 20982=> new ArrowExpressionClauseSyntax(this.Kind, this.arrowToken, this.expression, GetDiagnostics(), annotations); 21155=> new EventDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.eventKeyword, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.semicolonToken, diagnostics, GetAnnotations()); 21158=> new EventDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.eventKeyword, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.semicolonToken, GetDiagnostics(), annotations); 21349=> new IndexerDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.thisKeyword, this.parameterList, this.accessorList, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations()); 21352=> new IndexerDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.thisKeyword, this.parameterList, this.accessorList, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations); 21443=> new AccessorListSyntax(this.Kind, this.openBraceToken, this.accessors, this.closeBraceToken, diagnostics, GetAnnotations()); 21446=> new AccessorListSyntax(this.Kind, this.openBraceToken, this.accessors, this.closeBraceToken, GetDiagnostics(), annotations); 21592var newNode = SyntaxFactory.AccessorDeclaration(this.Kind, attributeLists, modifiers, keyword, body, expressionBody, semicolonToken); 21606=> new AccessorDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.keyword, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations()); 21609=> new AccessorDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.keyword, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations); 21720=> new ParameterListSyntax(this.Kind, this.openParenToken, this.parameters, this.closeParenToken, diagnostics, GetAnnotations()); 21723=> new ParameterListSyntax(this.Kind, this.openParenToken, this.parameters, this.closeParenToken, GetDiagnostics(), annotations); 21817=> new BracketedParameterListSyntax(this.Kind, this.openBracketToken, this.parameters, this.closeBracketToken, diagnostics, GetAnnotations()); 21820=> new BracketedParameterListSyntax(this.Kind, this.openBracketToken, this.parameters, this.closeBracketToken, GetDiagnostics(), annotations); 21991=> new ParameterSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, this.identifier, this.@default, diagnostics, GetAnnotations()); 21994=> new ParameterSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, this.identifier, this.@default, GetDiagnostics(), annotations); 22097=> new FunctionPointerParameterSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, diagnostics, GetAnnotations()); 22100=> new FunctionPointerParameterSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, GetDiagnostics(), annotations); 22209=> new IncompleteMemberSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, diagnostics, GetAnnotations()); 22212=> new IncompleteMemberSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, GetDiagnostics(), annotations); 22281=> new SkippedTokensTriviaSyntax(this.Kind, this.tokens, diagnostics, GetAnnotations()); 22284=> new SkippedTokensTriviaSyntax(this.Kind, this.tokens, GetDiagnostics(), annotations); 22352var newNode = SyntaxFactory.DocumentationCommentTrivia(this.Kind, content, endOfComment); 22366=> new DocumentationCommentTriviaSyntax(this.Kind, this.content, this.endOfComment, diagnostics, GetAnnotations()); 22369=> new DocumentationCommentTriviaSyntax(this.Kind, this.content, this.endOfComment, GetDiagnostics(), annotations); 22453=> new TypeCrefSyntax(this.Kind, this.type, diagnostics, GetAnnotations()); 22456=> new TypeCrefSyntax(this.Kind, this.type, GetDiagnostics(), annotations); 22545=> new QualifiedCrefSyntax(this.Kind, this.container, this.dotToken, this.member, diagnostics, GetAnnotations()); 22548=> new QualifiedCrefSyntax(this.Kind, this.container, this.dotToken, this.member, GetDiagnostics(), annotations); 22656=> new NameMemberCrefSyntax(this.Kind, this.name, this.parameters, diagnostics, GetAnnotations()); 22659=> new NameMemberCrefSyntax(this.Kind, this.name, this.parameters, GetDiagnostics(), annotations); 22768=> new ExtensionMemberCrefSyntax(this.Kind, this.extensionKeyword, this.typeArgumentList, this.parameters, this.dotToken, this.member, diagnostics, GetAnnotations()); 22771=> new ExtensionMemberCrefSyntax(this.Kind, this.extensionKeyword, this.typeArgumentList, this.parameters, this.dotToken, this.member, GetDiagnostics(), annotations); 22857=> new IndexerMemberCrefSyntax(this.Kind, this.thisKeyword, this.parameters, diagnostics, GetAnnotations()); 22860=> new IndexerMemberCrefSyntax(this.Kind, this.thisKeyword, this.parameters, GetDiagnostics(), annotations); 22975=> new OperatorMemberCrefSyntax(this.Kind, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameters, diagnostics, GetAnnotations()); 22978=> new OperatorMemberCrefSyntax(this.Kind, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameters, GetDiagnostics(), annotations); 23100=> new ConversionOperatorMemberCrefSyntax(this.Kind, this.implicitOrExplicitKeyword, this.operatorKeyword, this.checkedKeyword, this.type, this.parameters, diagnostics, GetAnnotations()); 23103=> new ConversionOperatorMemberCrefSyntax(this.Kind, this.implicitOrExplicitKeyword, this.operatorKeyword, this.checkedKeyword, this.type, this.parameters, GetDiagnostics(), annotations); 23219=> new CrefParameterListSyntax(this.Kind, this.openParenToken, this.parameters, this.closeParenToken, diagnostics, GetAnnotations()); 23222=> new CrefParameterListSyntax(this.Kind, this.openParenToken, this.parameters, this.closeParenToken, GetDiagnostics(), annotations); 23318=> new CrefBracketedParameterListSyntax(this.Kind, this.openBracketToken, this.parameters, this.closeBracketToken, diagnostics, GetAnnotations()); 23321=> new CrefBracketedParameterListSyntax(this.Kind, this.openBracketToken, this.parameters, this.closeBracketToken, GetDiagnostics(), annotations); 23427=> new CrefParameterSyntax(this.Kind, this.refKindKeyword, this.readOnlyKeyword, this.type, diagnostics, GetAnnotations()); 23430=> new CrefParameterSyntax(this.Kind, this.refKindKeyword, this.readOnlyKeyword, this.type, GetDiagnostics(), annotations); 23534=> new XmlElementSyntax(this.Kind, this.startTag, this.content, this.endTag, diagnostics, GetAnnotations()); 23537=> new XmlElementSyntax(this.Kind, this.startTag, this.content, this.endTag, GetDiagnostics(), annotations); 23637=> new XmlElementStartTagSyntax(this.Kind, this.lessThanToken, this.name, this.attributes, this.greaterThanToken, diagnostics, GetAnnotations()); 23640=> new XmlElementStartTagSyntax(this.Kind, this.lessThanToken, this.name, this.attributes, this.greaterThanToken, GetDiagnostics(), annotations); 23722=> new XmlElementEndTagSyntax(this.Kind, this.lessThanSlashToken, this.name, this.greaterThanToken, diagnostics, GetAnnotations()); 23725=> new XmlElementEndTagSyntax(this.Kind, this.lessThanSlashToken, this.name, this.greaterThanToken, GetDiagnostics(), annotations); 23825=> new XmlEmptyElementSyntax(this.Kind, this.lessThanToken, this.name, this.attributes, this.slashGreaterThanToken, diagnostics, GetAnnotations()); 23828=> new XmlEmptyElementSyntax(this.Kind, this.lessThanToken, this.name, this.attributes, this.slashGreaterThanToken, GetDiagnostics(), annotations); 23910=> new XmlNameSyntax(this.Kind, this.prefix, this.localName, diagnostics, GetAnnotations()); 23913=> new XmlNameSyntax(this.Kind, this.prefix, this.localName, GetDiagnostics(), annotations); 23986=> new XmlPrefixSyntax(this.Kind, this.prefix, this.colonToken, diagnostics, GetAnnotations()); 23989=> new XmlPrefixSyntax(this.Kind, this.prefix, this.colonToken, GetDiagnostics(), annotations); 24119=> new XmlTextAttributeSyntax(this.Kind, this.name, this.equalsToken, this.startQuoteToken, this.textTokens, this.endQuoteToken, diagnostics, GetAnnotations()); 24122=> new XmlTextAttributeSyntax(this.Kind, this.name, this.equalsToken, this.startQuoteToken, this.textTokens, this.endQuoteToken, GetDiagnostics(), annotations); 24222=> new XmlCrefAttributeSyntax(this.Kind, this.name, this.equalsToken, this.startQuoteToken, this.cref, this.endQuoteToken, diagnostics, GetAnnotations()); 24225=> new XmlCrefAttributeSyntax(this.Kind, this.name, this.equalsToken, this.startQuoteToken, this.cref, this.endQuoteToken, GetDiagnostics(), annotations); 24325=> new XmlNameAttributeSyntax(this.Kind, this.name, this.equalsToken, this.startQuoteToken, this.identifier, this.endQuoteToken, diagnostics, GetAnnotations()); 24328=> new XmlNameAttributeSyntax(this.Kind, this.name, this.equalsToken, this.startQuoteToken, this.identifier, this.endQuoteToken, GetDiagnostics(), annotations); 24397=> new XmlTextSyntax(this.Kind, this.textTokens, diagnostics, GetAnnotations()); 24400=> new XmlTextSyntax(this.Kind, this.textTokens, GetDiagnostics(), annotations); 24491=> new XmlCDataSectionSyntax(this.Kind, this.startCDataToken, this.textTokens, this.endCDataToken, diagnostics, GetAnnotations()); 24494=> new XmlCDataSectionSyntax(this.Kind, this.startCDataToken, this.textTokens, this.endCDataToken, GetDiagnostics(), annotations); 24594=> new XmlProcessingInstructionSyntax(this.Kind, this.startProcessingInstructionToken, this.name, this.textTokens, this.endProcessingInstructionToken, diagnostics, GetAnnotations()); 24597=> new XmlProcessingInstructionSyntax(this.Kind, this.startProcessingInstructionToken, this.name, this.textTokens, this.endProcessingInstructionToken, GetDiagnostics(), annotations); 24688=> new XmlCommentSyntax(this.Kind, this.lessThanExclamationMinusMinusToken, this.textTokens, this.minusMinusGreaterThanToken, diagnostics, GetAnnotations()); 24691=> new XmlCommentSyntax(this.Kind, this.lessThanExclamationMinusMinusToken, this.textTokens, this.minusMinusGreaterThanToken, GetDiagnostics(), annotations); 24850=> new IfDirectiveTriviaSyntax(this.Kind, this.hashToken, this.ifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, diagnostics, GetAnnotations()); 24853=> new IfDirectiveTriviaSyntax(this.Kind, this.hashToken, this.ifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, GetDiagnostics(), annotations); 24959=> new ElifDirectiveTriviaSyntax(this.Kind, this.hashToken, this.elifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, diagnostics, GetAnnotations()); 24962=> new ElifDirectiveTriviaSyntax(this.Kind, this.hashToken, this.elifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, GetDiagnostics(), annotations); 25054=> new ElseDirectiveTriviaSyntax(this.Kind, this.hashToken, this.elseKeyword, this.endOfDirectiveToken, this.isActive, this.branchTaken, diagnostics, GetAnnotations()); 25057=> new ElseDirectiveTriviaSyntax(this.Kind, this.hashToken, this.elseKeyword, this.endOfDirectiveToken, this.isActive, this.branchTaken, GetDiagnostics(), annotations); 25144=> new EndIfDirectiveTriviaSyntax(this.Kind, this.hashToken, this.endIfKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25147=> new EndIfDirectiveTriviaSyntax(this.Kind, this.hashToken, this.endIfKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 25234=> new RegionDirectiveTriviaSyntax(this.Kind, this.hashToken, this.regionKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25237=> new RegionDirectiveTriviaSyntax(this.Kind, this.hashToken, this.regionKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 25324=> new EndRegionDirectiveTriviaSyntax(this.Kind, this.hashToken, this.endRegionKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25327=> new EndRegionDirectiveTriviaSyntax(this.Kind, this.hashToken, this.endRegionKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 25414=> new ErrorDirectiveTriviaSyntax(this.Kind, this.hashToken, this.errorKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25417=> new ErrorDirectiveTriviaSyntax(this.Kind, this.hashToken, this.errorKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 25504=> new WarningDirectiveTriviaSyntax(this.Kind, this.hashToken, this.warningKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25507=> new WarningDirectiveTriviaSyntax(this.Kind, this.hashToken, this.warningKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 25594=> new BadDirectiveTriviaSyntax(this.Kind, this.hashToken, this.identifier, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25597=> new BadDirectiveTriviaSyntax(this.Kind, this.hashToken, this.identifier, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 25693=> new DefineDirectiveTriviaSyntax(this.Kind, this.hashToken, this.defineKeyword, this.name, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25696=> new DefineDirectiveTriviaSyntax(this.Kind, this.hashToken, this.defineKeyword, this.name, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 25792=> new UndefDirectiveTriviaSyntax(this.Kind, this.hashToken, this.undefKeyword, this.name, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25795=> new UndefDirectiveTriviaSyntax(this.Kind, this.hashToken, this.undefKeyword, this.name, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 25926=> new LineDirectiveTriviaSyntax(this.Kind, this.hashToken, this.lineKeyword, this.line, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25929=> new LineDirectiveTriviaSyntax(this.Kind, this.hashToken, this.lineKeyword, this.line, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26029=> new LineDirectivePositionSyntax(this.Kind, this.openParenToken, this.line, this.commaToken, this.character, this.closeParenToken, diagnostics, GetAnnotations()); 26032=> new LineDirectivePositionSyntax(this.Kind, this.openParenToken, this.line, this.commaToken, this.character, this.closeParenToken, GetDiagnostics(), annotations); 26173=> new LineSpanDirectiveTriviaSyntax(this.Kind, this.hashToken, this.lineKeyword, this.start, this.minusToken, this.end, this.characterOffset, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26176=> new LineSpanDirectiveTriviaSyntax(this.Kind, this.hashToken, this.lineKeyword, this.start, this.minusToken, this.end, this.characterOffset, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26299=> new PragmaWarningDirectiveTriviaSyntax(this.Kind, this.hashToken, this.pragmaKeyword, this.warningKeyword, this.disableOrRestoreKeyword, this.errorCodes, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26302=> new PragmaWarningDirectiveTriviaSyntax(this.Kind, this.hashToken, this.pragmaKeyword, this.warningKeyword, this.disableOrRestoreKeyword, this.errorCodes, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26425=> new PragmaChecksumDirectiveTriviaSyntax(this.Kind, this.hashToken, this.pragmaKeyword, this.checksumKeyword, this.file, this.guid, this.bytes, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26428=> new PragmaChecksumDirectiveTriviaSyntax(this.Kind, this.hashToken, this.pragmaKeyword, this.checksumKeyword, this.file, this.guid, this.bytes, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26524=> new ReferenceDirectiveTriviaSyntax(this.Kind, this.hashToken, this.referenceKeyword, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26527=> new ReferenceDirectiveTriviaSyntax(this.Kind, this.hashToken, this.referenceKeyword, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26623=> new LoadDirectiveTriviaSyntax(this.Kind, this.hashToken, this.loadKeyword, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26626=> new LoadDirectiveTriviaSyntax(this.Kind, this.hashToken, this.loadKeyword, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26713=> new ShebangDirectiveTriviaSyntax(this.Kind, this.hashToken, this.exclamationToken, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26716=> new ShebangDirectiveTriviaSyntax(this.Kind, this.hashToken, this.exclamationToken, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26821=> new IgnoredDirectiveTriviaSyntax(this.Kind, this.hashToken, this.colonToken, this.content, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26824=> new IgnoredDirectiveTriviaSyntax(this.Kind, this.hashToken, this.colonToken, this.content, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26938=> new NullableDirectiveTriviaSyntax(this.Kind, this.hashToken, this.nullableKeyword, this.settingToken, this.targetToken, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26941=> new NullableDirectiveTriviaSyntax(this.Kind, this.hashToken, this.nullableKeyword, this.settingToken, this.targetToken, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 28202switch (identifier.Kind) 28228if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 28249if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 28270if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 28272if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 28293if (colonColonToken.Kind != SyntaxKind.ColonColonToken) throw new ArgumentException(nameof(colonColonToken)); 28314switch (keyword.Kind) 28372if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 28374if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 28395if (asteriskToken.Kind != SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken)); 28415if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 28417if (asteriskToken.Kind != SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken)); 28428if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 28430if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 28450switch (managedOrUnmanagedKeyword.Kind) 28475if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 28477if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 28497if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 28518if (questionToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken)); 28538if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 28540if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 28562switch (identifier.Kind) 28588if (omittedTypeArgumentToken.Kind != SyntaxKind.OmittedTypeArgumentToken) throw new ArgumentException(nameof(omittedTypeArgumentToken)); 28608if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 28611switch (readOnlyKeyword.Kind) 28638if (scopedKeyword.Kind != SyntaxKind.ScopedKeyword) throw new ArgumentException(nameof(scopedKeyword)); 28659if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 28662if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 28682if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 28684if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 28717switch (operatorToken.Kind) 28750if (awaitKeyword.Kind != SyntaxKind.AwaitKeyword) throw new ArgumentException(nameof(awaitKeyword)); 28779switch (operatorToken.Kind) 28812switch (operatorToken.Kind) 28839if (operatorToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(operatorToken)); 28860if (operatorToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(operatorToken)); 28900if (operatorToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken)); 28966switch (operatorToken.Kind) 29030switch (operatorToken.Kind) 29068if (questionToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken)); 29071if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 29082if (token.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token)); 29102if (token.Kind != SyntaxKind.BaseKeyword) throw new ArgumentException(nameof(token)); 29135switch (token.Kind) 29171if (token.Kind != SyntaxKind.FieldKeyword) throw new ArgumentException(nameof(token)); 29191if (keyword.Kind != SyntaxKind.MakeRefKeyword) throw new ArgumentException(nameof(keyword)); 29193if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29196if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29206if (keyword.Kind != SyntaxKind.RefTypeKeyword) throw new ArgumentException(nameof(keyword)); 29208if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29211if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29221if (keyword.Kind != SyntaxKind.RefValueKeyword) throw new ArgumentException(nameof(keyword)); 29223if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29226if (comma.Kind != SyntaxKind.CommaToken) throw new ArgumentException(nameof(comma)); 29229if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29245switch (keyword.Kind) 29252if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29255if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29265if (keyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword)); 29267if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29270if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29280if (keyword.Kind != SyntaxKind.TypeOfKeyword) throw new ArgumentException(nameof(keyword)); 29282if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29285if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29295if (keyword.Kind != SyntaxKind.SizeOfKeyword) throw new ArgumentException(nameof(keyword)); 29297if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29300if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29350if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29352if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29372if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 29374if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 29395switch (refKindKeyword.Kind) 29484if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29487if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29498if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 29510if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 29520if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 29542if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 29561if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 29563if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 29583if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 29604if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 29616if (withKeyword.Kind != SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword)); 29656if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 29658if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 29660if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 29670if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 29691if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 29693if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 29695if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 29706if (stackAllocKeyword.Kind != SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword)); 29727if (stackAllocKeyword.Kind != SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword)); 29729if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 29731if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 29742if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 29744if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 29783if (operatorToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken)); 29843if (fromKeyword.Kind != SyntaxKind.FromKeyword) throw new ArgumentException(nameof(fromKeyword)); 29845if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 29847if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 29858if (letKeyword.Kind != SyntaxKind.LetKeyword) throw new ArgumentException(nameof(letKeyword)); 29860if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 29862if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 29873if (joinKeyword.Kind != SyntaxKind.JoinKeyword) throw new ArgumentException(nameof(joinKeyword)); 29875if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 29877if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 29880if (onKeyword.Kind != SyntaxKind.OnKeyword) throw new ArgumentException(nameof(onKeyword)); 29883if (equalsKeyword.Kind != SyntaxKind.EqualsKeyword) throw new ArgumentException(nameof(equalsKeyword)); 29894if (intoKeyword.Kind != SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword)); 29896if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 29916if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 29937if (orderByKeyword.Kind != SyntaxKind.OrderByKeyword) throw new ArgumentException(nameof(orderByKeyword)); 29965switch (ascendingOrDescendingKeyword.Kind) 29992if (selectKeyword.Kind != SyntaxKind.SelectKeyword) throw new ArgumentException(nameof(selectKeyword)); 30013if (groupKeyword.Kind != SyntaxKind.GroupKeyword) throw new ArgumentException(nameof(groupKeyword)); 30016if (byKeyword.Kind != SyntaxKind.ByKeyword) throw new ArgumentException(nameof(byKeyword)); 30027if (intoKeyword.Kind != SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword)); 30029if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30050if (omittedArraySizeExpressionToken.Kind != SyntaxKind.OmittedArraySizeExpressionToken) throw new ArgumentException(nameof(omittedArraySizeExpressionToken)); 30070switch (stringStartToken.Kind) 30079switch (stringEndToken.Kind) 30105if (isKeyword.Kind != SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword)); 30126if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 30147if (whenKeyword.Kind != SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword)); 30168if (underscoreToken.Kind != SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken)); 30208if (varKeyword.Kind != SyntaxKind.VarKeyword) throw new ArgumentException(nameof(varKeyword)); 30237if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 30239if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 30259if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 30261if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 30319if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 30322if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 30342switch (operatorToken.Kind) 30398switch (operatorToken.Kind) 30424if (operatorToken.Kind != SyntaxKind.NotKeyword) throw new ArgumentException(nameof(operatorToken)); 30445if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 30447if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 30457if (dotDotToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(dotDotToken)); 30477if (textToken.Kind != SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(textToken)); 30497if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 30500if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 30531if (formatStringToken.Kind != SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(formatStringToken)); 30570if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 30572if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 30583if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30587switch (semicolonToken.Kind) 30604switch (awaitKeyword.Kind) 30613switch (usingKeyword.Kind) 30622if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30651if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30671if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 30692if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30712if (underscoreToken.Kind != SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken)); 30732if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 30734if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 30755if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30775if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30795if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30797if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 30815if (gotoKeyword.Kind != SyntaxKind.GotoKeyword) throw new ArgumentException(nameof(gotoKeyword)); 30818switch (caseOrDefaultKeyword.Kind) 30827if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30837if (breakKeyword.Kind != SyntaxKind.BreakKeyword) throw new ArgumentException(nameof(breakKeyword)); 30839if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30859if (continueKeyword.Kind != SyntaxKind.ContinueKeyword) throw new ArgumentException(nameof(continueKeyword)); 30861if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30881if (returnKeyword.Kind != SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword)); 30883if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30893if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 30895if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30911if (yieldKeyword.Kind != SyntaxKind.YieldKeyword) throw new ArgumentException(nameof(yieldKeyword)); 30913switch (returnOrBreakKeyword.Kind) 30920if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30930if (whileKeyword.Kind != SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword)); 30932if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 30935if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 30946if (doKeyword.Kind != SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword)); 30949if (whileKeyword.Kind != SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword)); 30951if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 30954if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 30956if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30966if (forKeyword.Kind != SyntaxKind.ForKeyword) throw new ArgumentException(nameof(forKeyword)); 30968if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 30970if (firstSemicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(firstSemicolonToken)); 30972if (secondSemicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(secondSemicolonToken)); 30974if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 30986switch (awaitKeyword.Kind) 30994if (forEachKeyword.Kind != SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword)); 30996if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 30999if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31001if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 31004if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31016switch (awaitKeyword.Kind) 31024if (forEachKeyword.Kind != SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword)); 31026if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31029if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 31032if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31044switch (awaitKeyword.Kind) 31052if (usingKeyword.Kind != SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword)); 31054if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31056if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31067if (fixedKeyword.Kind != SyntaxKind.FixedKeyword) throw new ArgumentException(nameof(fixedKeyword)); 31069if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31072if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31089switch (keyword.Kind) 31115if (unsafeKeyword.Kind != SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(unsafeKeyword)); 31136if (lockKeyword.Kind != SyntaxKind.LockKeyword) throw new ArgumentException(nameof(lockKeyword)); 31138if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31141if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31152if (ifKeyword.Kind != SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword)); 31154if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31157if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31168if (elseKeyword.Kind != SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword)); 31189if (switchKeyword.Kind != SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword)); 31192switch (openParenToken.Kind) 31202switch (closeParenToken.Kind) 31210if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 31212if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 31240if (keyword.Kind != SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword)); 31252if (keyword.Kind != SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword)); 31274if (keyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword)); 31296if (switchKeyword.Kind != SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword)); 31298if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 31300if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 31311if (equalsGreaterThanToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(equalsGreaterThanToken)); 31322if (tryKeyword.Kind != SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword)); 31333if (catchKeyword.Kind != SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword)); 31344if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31348switch (identifier.Kind) 31356if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31366if (whenKeyword.Kind != SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword)); 31368if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31371if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31381if (finallyKeyword.Kind != SyntaxKind.FinallyKeyword) throw new ArgumentException(nameof(finallyKeyword)); 31402if (endOfFileToken.Kind != SyntaxKind.EndOfFileToken) throw new ArgumentException(nameof(endOfFileToken)); 31412if (externKeyword.Kind != SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword)); 31414if (aliasKeyword.Kind != SyntaxKind.AliasKeyword) throw new ArgumentException(nameof(aliasKeyword)); 31416if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31418if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31429switch (globalKeyword.Kind) 31437if (usingKeyword.Kind != SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword)); 31440switch (staticKeyword.Kind) 31449switch (unsafeKeyword.Kind) 31458if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31468if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 31471if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 31473if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 31476switch (semicolonToken.Kind) 31492if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 31495if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31505if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 31507if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 31518if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 31547if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31549if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31589if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 31609if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 31611if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 31632switch (varianceKeyword.Kind) 31641if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31661if (keyword.Kind != SyntaxKind.ClassKeyword) throw new ArgumentException(nameof(keyword)); 31663if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31666switch (openBraceToken.Kind) 31675switch (closeBraceToken.Kind) 31684switch (semicolonToken.Kind) 31700if (keyword.Kind != SyntaxKind.StructKeyword) throw new ArgumentException(nameof(keyword)); 31702if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31705switch (openBraceToken.Kind) 31714switch (closeBraceToken.Kind) 31723switch (semicolonToken.Kind) 31739if (keyword.Kind != SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword)); 31741if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31744switch (openBraceToken.Kind) 31753switch (closeBraceToken.Kind) 31762switch (semicolonToken.Kind) 31786switch (classOrStructKeyword.Kind) 31795if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31798switch (openBraceToken.Kind) 31807switch (closeBraceToken.Kind) 31816switch (semicolonToken.Kind) 31832if (enumKeyword.Kind != SyntaxKind.EnumKeyword) throw new ArgumentException(nameof(enumKeyword)); 31834if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31837switch (openBraceToken.Kind) 31846switch (closeBraceToken.Kind) 31855switch (semicolonToken.Kind) 31871if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 31874if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31877if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31887if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31897if (keyword.Kind != SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(keyword)); 31900switch (openBraceToken.Kind) 31909switch (closeBraceToken.Kind) 31918switch (semicolonToken.Kind) 31934if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 31993if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 31996if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 32006if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 32008if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 32010if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 32036switch (classOrStructKeyword.Kind) 32044switch (questionToken.Kind) 32089if (defaultKeyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(defaultKeyword)); 32109if (allowsKeyword.Kind != SyntaxKind.AllowsKeyword) throw new ArgumentException(nameof(allowsKeyword)); 32129if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 32131if (structKeyword.Kind != SyntaxKind.StructKeyword) throw new ArgumentException(nameof(structKeyword)); 32152if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 32162if (eventKeyword.Kind != SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword)); 32165if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 32176if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 32197if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32201switch (semicolonToken.Kind) 32218if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 32221switch (checkedKeyword.Kind) 32229switch (operatorToken.Kind) 32271switch (semicolonToken.Kind) 32287switch (implicitOrExplicitKeyword.Kind) 32294if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 32297switch (checkedKeyword.Kind) 32308switch (semicolonToken.Kind) 32324if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32328switch (semicolonToken.Kind) 32350if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 32352switch (thisOrBaseKeyword.Kind) 32378if (tildeToken.Kind != SyntaxKind.TildeToken) throw new ArgumentException(nameof(tildeToken)); 32380if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32384switch (semicolonToken.Kind) 32401if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32404switch (semicolonToken.Kind) 32420if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 32441if (eventKeyword.Kind != SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword)); 32444if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32447switch (semicolonToken.Kind) 32464if (thisKeyword.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword)); 32468switch (semicolonToken.Kind) 32484if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 32486if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 32516switch (keyword.Kind) 32528switch (semicolonToken.Kind) 32544if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 32546if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 32566if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 32568if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 32589switch (identifier.Kind) 32647if (endOfComment.Kind != SyntaxKind.EndOfDocumentationCommentToken) throw new ArgumentException(nameof(endOfComment)); 32677if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 32717if (extensionKeyword.Kind != SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(extensionKeyword)); 32720if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 32731if (thisKeyword.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword)); 32751if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 32754switch (checkedKeyword.Kind) 32762switch (operatorToken.Kind) 32809switch (implicitOrExplicitKeyword.Kind) 32816if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 32819switch (checkedKeyword.Kind) 32836if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 32838if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 32858if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 32860if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 32881switch (refKindKeyword.Kind) 32892switch (readOnlyKeyword.Kind) 32939if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 32942if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 32952if (lessThanSlashToken.Kind != SyntaxKind.LessThanSlashToken) throw new ArgumentException(nameof(lessThanSlashToken)); 32955if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 32975if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 32978if (slashGreaterThanToken.Kind != SyntaxKind.SlashGreaterThanToken) throw new ArgumentException(nameof(slashGreaterThanToken)); 32988if (localName.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(localName)); 33008if (prefix.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(prefix)); 33010if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 33031if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 33033switch (startQuoteToken.Kind) 33040switch (endQuoteToken.Kind) 33056if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 33058switch (startQuoteToken.Kind) 33066switch (endQuoteToken.Kind) 33082if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 33084switch (startQuoteToken.Kind) 33092switch (endQuoteToken.Kind) 33125if (startCDataToken.Kind != SyntaxKind.XmlCDataStartToken) throw new ArgumentException(nameof(startCDataToken)); 33127if (endCDataToken.Kind != SyntaxKind.XmlCDataEndToken) throw new ArgumentException(nameof(endCDataToken)); 33147if (startProcessingInstructionToken.Kind != SyntaxKind.XmlProcessingInstructionStartToken) throw new ArgumentException(nameof(startProcessingInstructionToken)); 33150if (endProcessingInstructionToken.Kind != SyntaxKind.XmlProcessingInstructionEndToken) throw new ArgumentException(nameof(endProcessingInstructionToken)); 33160if (lessThanExclamationMinusMinusToken.Kind != SyntaxKind.XmlCommentStartToken) throw new ArgumentException(nameof(lessThanExclamationMinusMinusToken)); 33162if (minusMinusGreaterThanToken.Kind != SyntaxKind.XmlCommentEndToken) throw new ArgumentException(nameof(minusMinusGreaterThanToken)); 33182if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33184if (ifKeyword.Kind != SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword)); 33187if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33197if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33199if (elifKeyword.Kind != SyntaxKind.ElifKeyword) throw new ArgumentException(nameof(elifKeyword)); 33202if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33212if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33214if (elseKeyword.Kind != SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword)); 33216if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33226if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33228if (endIfKeyword.Kind != SyntaxKind.EndIfKeyword) throw new ArgumentException(nameof(endIfKeyword)); 33230if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33240if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33242if (regionKeyword.Kind != SyntaxKind.RegionKeyword) throw new ArgumentException(nameof(regionKeyword)); 33244if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33254if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33256if (endRegionKeyword.Kind != SyntaxKind.EndRegionKeyword) throw new ArgumentException(nameof(endRegionKeyword)); 33258if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33268if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33270if (errorKeyword.Kind != SyntaxKind.ErrorKeyword) throw new ArgumentException(nameof(errorKeyword)); 33272if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33282if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33284if (warningKeyword.Kind != SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword)); 33286if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33296if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33299if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33309if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33311if (defineKeyword.Kind != SyntaxKind.DefineKeyword) throw new ArgumentException(nameof(defineKeyword)); 33313if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 33315if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33325if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33327if (undefKeyword.Kind != SyntaxKind.UndefKeyword) throw new ArgumentException(nameof(undefKeyword)); 33329if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 33331if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33341if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33343if (lineKeyword.Kind != SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword)); 33345switch (line.Kind) 33354switch (file.Kind) 33362if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33372if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 33374if (line.Kind != SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(line)); 33376if (commaToken.Kind != SyntaxKind.CommaToken) throw new ArgumentException(nameof(commaToken)); 33378if (character.Kind != SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(character)); 33380if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 33390if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33392if (lineKeyword.Kind != SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword)); 33395if (minusToken.Kind != SyntaxKind.MinusToken) throw new ArgumentException(nameof(minusToken)); 33399switch (characterOffset.Kind) 33407if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 33409if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33419if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33421if (pragmaKeyword.Kind != SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword)); 33423if (warningKeyword.Kind != SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword)); 33425switch (disableOrRestoreKeyword.Kind) 33432if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33442if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33444if (pragmaKeyword.Kind != SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword)); 33446if (checksumKeyword.Kind != SyntaxKind.ChecksumKeyword) throw new ArgumentException(nameof(checksumKeyword)); 33448if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 33450if (guid.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(guid)); 33452if (bytes.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(bytes)); 33454if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33464if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33466if (referenceKeyword.Kind != SyntaxKind.ReferenceKeyword) throw new ArgumentException(nameof(referenceKeyword)); 33468if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 33470if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33480if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33482if (loadKeyword.Kind != SyntaxKind.LoadKeyword) throw new ArgumentException(nameof(loadKeyword)); 33484if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 33486if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33496if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33498if (exclamationToken.Kind != SyntaxKind.ExclamationToken) throw new ArgumentException(nameof(exclamationToken)); 33500if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33510if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33512if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 33515switch (content.Kind) 33523if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33533if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33535if (nullableKeyword.Kind != SyntaxKind.NullableKeyword) throw new ArgumentException(nameof(nullableKeyword)); 33537switch (settingToken.Kind) 33546switch (targetToken.Kind) 33555if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33569switch (identifier.Kind) 33595if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 33616if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 33637if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 33639if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 33660if (colonColonToken.Kind != SyntaxKind.ColonColonToken) throw new ArgumentException(nameof(colonColonToken)); 33681switch (keyword.Kind) 33739if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 33741if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 33762if (asteriskToken.Kind != SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken)); 33782if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 33784if (asteriskToken.Kind != SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken)); 33795if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 33797if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 33817switch (managedOrUnmanagedKeyword.Kind) 33842if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 33844if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 33864if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 33885if (questionToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken)); 33905if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 33907if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 33929switch (identifier.Kind) 33955if (omittedTypeArgumentToken.Kind != SyntaxKind.OmittedTypeArgumentToken) throw new ArgumentException(nameof(omittedTypeArgumentToken)); 33975if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 33978switch (readOnlyKeyword.Kind) 34005if (scopedKeyword.Kind != SyntaxKind.ScopedKeyword) throw new ArgumentException(nameof(scopedKeyword)); 34026if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34029if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34049if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34051if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34084switch (operatorToken.Kind) 34117if (awaitKeyword.Kind != SyntaxKind.AwaitKeyword) throw new ArgumentException(nameof(awaitKeyword)); 34146switch (operatorToken.Kind) 34179switch (operatorToken.Kind) 34206if (operatorToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(operatorToken)); 34227if (operatorToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(operatorToken)); 34267if (operatorToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken)); 34333switch (operatorToken.Kind) 34397switch (operatorToken.Kind) 34435if (questionToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken)); 34438if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 34449if (token.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token)); 34469if (token.Kind != SyntaxKind.BaseKeyword) throw new ArgumentException(nameof(token)); 34502switch (token.Kind) 34538if (token.Kind != SyntaxKind.FieldKeyword) throw new ArgumentException(nameof(token)); 34558if (keyword.Kind != SyntaxKind.MakeRefKeyword) throw new ArgumentException(nameof(keyword)); 34560if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34563if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34573if (keyword.Kind != SyntaxKind.RefTypeKeyword) throw new ArgumentException(nameof(keyword)); 34575if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34578if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34588if (keyword.Kind != SyntaxKind.RefValueKeyword) throw new ArgumentException(nameof(keyword)); 34590if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34593if (comma.Kind != SyntaxKind.CommaToken) throw new ArgumentException(nameof(comma)); 34596if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34612switch (keyword.Kind) 34619if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34622if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34632if (keyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword)); 34634if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34637if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34647if (keyword.Kind != SyntaxKind.TypeOfKeyword) throw new ArgumentException(nameof(keyword)); 34649if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34652if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34662if (keyword.Kind != SyntaxKind.SizeOfKeyword) throw new ArgumentException(nameof(keyword)); 34664if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34667if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34717if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34719if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34739if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 34741if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 34762switch (refKindKeyword.Kind) 34851if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34854if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34865if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 34877if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 34887if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 34909if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 34928if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 34930if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 34950if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 34971if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 34983if (withKeyword.Kind != SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword)); 35023if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 35025if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 35027if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 35037if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 35058if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 35060if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 35062if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 35073if (stackAllocKeyword.Kind != SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword)); 35094if (stackAllocKeyword.Kind != SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword)); 35096if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 35098if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 35109if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 35111if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 35150if (operatorToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken)); 35210if (fromKeyword.Kind != SyntaxKind.FromKeyword) throw new ArgumentException(nameof(fromKeyword)); 35212if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35214if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 35225if (letKeyword.Kind != SyntaxKind.LetKeyword) throw new ArgumentException(nameof(letKeyword)); 35227if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35229if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 35240if (joinKeyword.Kind != SyntaxKind.JoinKeyword) throw new ArgumentException(nameof(joinKeyword)); 35242if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35244if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 35247if (onKeyword.Kind != SyntaxKind.OnKeyword) throw new ArgumentException(nameof(onKeyword)); 35250if (equalsKeyword.Kind != SyntaxKind.EqualsKeyword) throw new ArgumentException(nameof(equalsKeyword)); 35261if (intoKeyword.Kind != SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword)); 35263if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35283if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 35304if (orderByKeyword.Kind != SyntaxKind.OrderByKeyword) throw new ArgumentException(nameof(orderByKeyword)); 35332switch (ascendingOrDescendingKeyword.Kind) 35359if (selectKeyword.Kind != SyntaxKind.SelectKeyword) throw new ArgumentException(nameof(selectKeyword)); 35380if (groupKeyword.Kind != SyntaxKind.GroupKeyword) throw new ArgumentException(nameof(groupKeyword)); 35383if (byKeyword.Kind != SyntaxKind.ByKeyword) throw new ArgumentException(nameof(byKeyword)); 35394if (intoKeyword.Kind != SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword)); 35396if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35417if (omittedArraySizeExpressionToken.Kind != SyntaxKind.OmittedArraySizeExpressionToken) throw new ArgumentException(nameof(omittedArraySizeExpressionToken)); 35437switch (stringStartToken.Kind) 35446switch (stringEndToken.Kind) 35472if (isKeyword.Kind != SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword)); 35493if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 35514if (whenKeyword.Kind != SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword)); 35535if (underscoreToken.Kind != SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken)); 35575if (varKeyword.Kind != SyntaxKind.VarKeyword) throw new ArgumentException(nameof(varKeyword)); 35604if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 35606if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 35626if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 35628if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 35686if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 35689if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 35709switch (operatorToken.Kind) 35765switch (operatorToken.Kind) 35791if (operatorToken.Kind != SyntaxKind.NotKeyword) throw new ArgumentException(nameof(operatorToken)); 35812if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 35814if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 35824if (dotDotToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(dotDotToken)); 35844if (textToken.Kind != SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(textToken)); 35864if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 35867if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 35898if (formatStringToken.Kind != SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(formatStringToken)); 35937if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 35939if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 35950if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35954switch (semicolonToken.Kind) 35971switch (awaitKeyword.Kind) 35980switch (usingKeyword.Kind) 35989if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36018if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36038if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 36059if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36079if (underscoreToken.Kind != SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken)); 36099if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36101if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36122if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36142if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36162if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36164if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 36182if (gotoKeyword.Kind != SyntaxKind.GotoKeyword) throw new ArgumentException(nameof(gotoKeyword)); 36185switch (caseOrDefaultKeyword.Kind) 36194if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36204if (breakKeyword.Kind != SyntaxKind.BreakKeyword) throw new ArgumentException(nameof(breakKeyword)); 36206if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36226if (continueKeyword.Kind != SyntaxKind.ContinueKeyword) throw new ArgumentException(nameof(continueKeyword)); 36228if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36248if (returnKeyword.Kind != SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword)); 36250if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36260if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 36262if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36278if (yieldKeyword.Kind != SyntaxKind.YieldKeyword) throw new ArgumentException(nameof(yieldKeyword)); 36280switch (returnOrBreakKeyword.Kind) 36287if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36297if (whileKeyword.Kind != SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword)); 36299if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36302if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36313if (doKeyword.Kind != SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword)); 36316if (whileKeyword.Kind != SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword)); 36318if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36321if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36323if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36333if (forKeyword.Kind != SyntaxKind.ForKeyword) throw new ArgumentException(nameof(forKeyword)); 36335if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36337if (firstSemicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(firstSemicolonToken)); 36339if (secondSemicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(secondSemicolonToken)); 36341if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36353switch (awaitKeyword.Kind) 36361if (forEachKeyword.Kind != SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword)); 36363if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36366if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36368if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 36371if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36383switch (awaitKeyword.Kind) 36391if (forEachKeyword.Kind != SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword)); 36393if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36396if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 36399if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36411switch (awaitKeyword.Kind) 36419if (usingKeyword.Kind != SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword)); 36421if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36423if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36434if (fixedKeyword.Kind != SyntaxKind.FixedKeyword) throw new ArgumentException(nameof(fixedKeyword)); 36436if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36439if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36456switch (keyword.Kind) 36482if (unsafeKeyword.Kind != SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(unsafeKeyword)); 36503if (lockKeyword.Kind != SyntaxKind.LockKeyword) throw new ArgumentException(nameof(lockKeyword)); 36505if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36508if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36519if (ifKeyword.Kind != SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword)); 36521if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36524if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36535if (elseKeyword.Kind != SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword)); 36556if (switchKeyword.Kind != SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword)); 36559switch (openParenToken.Kind) 36569switch (closeParenToken.Kind) 36577if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 36579if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 36607if (keyword.Kind != SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword)); 36619if (keyword.Kind != SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword)); 36641if (keyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword)); 36663if (switchKeyword.Kind != SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword)); 36665if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 36667if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 36678if (equalsGreaterThanToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(equalsGreaterThanToken)); 36689if (tryKeyword.Kind != SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword)); 36700if (catchKeyword.Kind != SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword)); 36711if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36715switch (identifier.Kind) 36723if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36733if (whenKeyword.Kind != SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword)); 36735if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36738if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36748if (finallyKeyword.Kind != SyntaxKind.FinallyKeyword) throw new ArgumentException(nameof(finallyKeyword)); 36769if (endOfFileToken.Kind != SyntaxKind.EndOfFileToken) throw new ArgumentException(nameof(endOfFileToken)); 36779if (externKeyword.Kind != SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword)); 36781if (aliasKeyword.Kind != SyntaxKind.AliasKeyword) throw new ArgumentException(nameof(aliasKeyword)); 36783if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36785if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36796switch (globalKeyword.Kind) 36804if (usingKeyword.Kind != SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword)); 36807switch (staticKeyword.Kind) 36816switch (unsafeKeyword.Kind) 36825if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36835if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 36838if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 36840if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 36843switch (semicolonToken.Kind) 36859if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 36862if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36872if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 36874if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 36885if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 36914if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36916if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36956if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 36976if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 36978if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 36999switch (varianceKeyword.Kind) 37008if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37028if (keyword.Kind != SyntaxKind.ClassKeyword) throw new ArgumentException(nameof(keyword)); 37030if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37033switch (openBraceToken.Kind) 37042switch (closeBraceToken.Kind) 37051switch (semicolonToken.Kind) 37067if (keyword.Kind != SyntaxKind.StructKeyword) throw new ArgumentException(nameof(keyword)); 37069if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37072switch (openBraceToken.Kind) 37081switch (closeBraceToken.Kind) 37090switch (semicolonToken.Kind) 37106if (keyword.Kind != SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword)); 37108if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37111switch (openBraceToken.Kind) 37120switch (closeBraceToken.Kind) 37129switch (semicolonToken.Kind) 37153switch (classOrStructKeyword.Kind) 37162if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37165switch (openBraceToken.Kind) 37174switch (closeBraceToken.Kind) 37183switch (semicolonToken.Kind) 37199if (enumKeyword.Kind != SyntaxKind.EnumKeyword) throw new ArgumentException(nameof(enumKeyword)); 37201if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37204switch (openBraceToken.Kind) 37213switch (closeBraceToken.Kind) 37222switch (semicolonToken.Kind) 37238if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 37241if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37244if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 37254if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37264if (keyword.Kind != SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(keyword)); 37267switch (openBraceToken.Kind) 37276switch (closeBraceToken.Kind) 37285switch (semicolonToken.Kind) 37301if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 37360if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 37363if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 37373if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 37375if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 37377if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 37403switch (classOrStructKeyword.Kind) 37411switch (questionToken.Kind) 37456if (defaultKeyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(defaultKeyword)); 37476if (allowsKeyword.Kind != SyntaxKind.AllowsKeyword) throw new ArgumentException(nameof(allowsKeyword)); 37496if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 37498if (structKeyword.Kind != SyntaxKind.StructKeyword) throw new ArgumentException(nameof(structKeyword)); 37519if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 37529if (eventKeyword.Kind != SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword)); 37532if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 37543if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 37564if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37568switch (semicolonToken.Kind) 37585if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 37588switch (checkedKeyword.Kind) 37596switch (operatorToken.Kind) 37638switch (semicolonToken.Kind) 37654switch (implicitOrExplicitKeyword.Kind) 37661if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 37664switch (checkedKeyword.Kind) 37675switch (semicolonToken.Kind) 37691if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37695switch (semicolonToken.Kind) 37717if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 37719switch (thisOrBaseKeyword.Kind) 37745if (tildeToken.Kind != SyntaxKind.TildeToken) throw new ArgumentException(nameof(tildeToken)); 37747if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37751switch (semicolonToken.Kind) 37768if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37771switch (semicolonToken.Kind) 37787if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 37808if (eventKeyword.Kind != SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword)); 37811if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37814switch (semicolonToken.Kind) 37831if (thisKeyword.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword)); 37835switch (semicolonToken.Kind) 37851if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 37853if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 37883switch (keyword.Kind) 37895switch (semicolonToken.Kind) 37911if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 37913if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 37933if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 37935if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 37956switch (identifier.Kind) 38014if (endOfComment.Kind != SyntaxKind.EndOfDocumentationCommentToken) throw new ArgumentException(nameof(endOfComment)); 38044if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 38084if (extensionKeyword.Kind != SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(extensionKeyword)); 38087if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 38098if (thisKeyword.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword)); 38118if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38121switch (checkedKeyword.Kind) 38129switch (operatorToken.Kind) 38176switch (implicitOrExplicitKeyword.Kind) 38183if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38186switch (checkedKeyword.Kind) 38203if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 38205if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 38225if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 38227if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 38248switch (refKindKeyword.Kind) 38259switch (readOnlyKeyword.Kind) 38306if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 38309if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 38319if (lessThanSlashToken.Kind != SyntaxKind.LessThanSlashToken) throw new ArgumentException(nameof(lessThanSlashToken)); 38322if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 38342if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 38345if (slashGreaterThanToken.Kind != SyntaxKind.SlashGreaterThanToken) throw new ArgumentException(nameof(slashGreaterThanToken)); 38355if (localName.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(localName)); 38375if (prefix.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(prefix)); 38377if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 38398if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 38400switch (startQuoteToken.Kind) 38407switch (endQuoteToken.Kind) 38423if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 38425switch (startQuoteToken.Kind) 38433switch (endQuoteToken.Kind) 38449if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 38451switch (startQuoteToken.Kind) 38459switch (endQuoteToken.Kind) 38492if (startCDataToken.Kind != SyntaxKind.XmlCDataStartToken) throw new ArgumentException(nameof(startCDataToken)); 38494if (endCDataToken.Kind != SyntaxKind.XmlCDataEndToken) throw new ArgumentException(nameof(endCDataToken)); 38514if (startProcessingInstructionToken.Kind != SyntaxKind.XmlProcessingInstructionStartToken) throw new ArgumentException(nameof(startProcessingInstructionToken)); 38517if (endProcessingInstructionToken.Kind != SyntaxKind.XmlProcessingInstructionEndToken) throw new ArgumentException(nameof(endProcessingInstructionToken)); 38527if (lessThanExclamationMinusMinusToken.Kind != SyntaxKind.XmlCommentStartToken) throw new ArgumentException(nameof(lessThanExclamationMinusMinusToken)); 38529if (minusMinusGreaterThanToken.Kind != SyntaxKind.XmlCommentEndToken) throw new ArgumentException(nameof(minusMinusGreaterThanToken)); 38549if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38551if (ifKeyword.Kind != SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword)); 38554if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38564if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38566if (elifKeyword.Kind != SyntaxKind.ElifKeyword) throw new ArgumentException(nameof(elifKeyword)); 38569if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38579if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38581if (elseKeyword.Kind != SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword)); 38583if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38593if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38595if (endIfKeyword.Kind != SyntaxKind.EndIfKeyword) throw new ArgumentException(nameof(endIfKeyword)); 38597if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38607if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38609if (regionKeyword.Kind != SyntaxKind.RegionKeyword) throw new ArgumentException(nameof(regionKeyword)); 38611if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38621if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38623if (endRegionKeyword.Kind != SyntaxKind.EndRegionKeyword) throw new ArgumentException(nameof(endRegionKeyword)); 38625if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38635if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38637if (errorKeyword.Kind != SyntaxKind.ErrorKeyword) throw new ArgumentException(nameof(errorKeyword)); 38639if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38649if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38651if (warningKeyword.Kind != SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword)); 38653if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38663if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38666if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38676if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38678if (defineKeyword.Kind != SyntaxKind.DefineKeyword) throw new ArgumentException(nameof(defineKeyword)); 38680if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 38682if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38692if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38694if (undefKeyword.Kind != SyntaxKind.UndefKeyword) throw new ArgumentException(nameof(undefKeyword)); 38696if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 38698if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38708if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38710if (lineKeyword.Kind != SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword)); 38712switch (line.Kind) 38721switch (file.Kind) 38729if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38739if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 38741if (line.Kind != SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(line)); 38743if (commaToken.Kind != SyntaxKind.CommaToken) throw new ArgumentException(nameof(commaToken)); 38745if (character.Kind != SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(character)); 38747if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 38757if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38759if (lineKeyword.Kind != SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword)); 38762if (minusToken.Kind != SyntaxKind.MinusToken) throw new ArgumentException(nameof(minusToken)); 38766switch (characterOffset.Kind) 38774if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 38776if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38786if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38788if (pragmaKeyword.Kind != SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword)); 38790if (warningKeyword.Kind != SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword)); 38792switch (disableOrRestoreKeyword.Kind) 38799if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38809if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38811if (pragmaKeyword.Kind != SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword)); 38813if (checksumKeyword.Kind != SyntaxKind.ChecksumKeyword) throw new ArgumentException(nameof(checksumKeyword)); 38815if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 38817if (guid.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(guid)); 38819if (bytes.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(bytes)); 38821if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38831if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38833if (referenceKeyword.Kind != SyntaxKind.ReferenceKeyword) throw new ArgumentException(nameof(referenceKeyword)); 38835if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 38837if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38847if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38849if (loadKeyword.Kind != SyntaxKind.LoadKeyword) throw new ArgumentException(nameof(loadKeyword)); 38851if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 38853if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38863if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38865if (exclamationToken.Kind != SyntaxKind.ExclamationToken) throw new ArgumentException(nameof(exclamationToken)); 38867if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38877if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38879if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 38882switch (content.Kind) 38890if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38900if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38902if (nullableKeyword.Kind != SyntaxKind.NullableKeyword) throw new ArgumentException(nameof(nullableKeyword)); 38904switch (settingToken.Kind) 38913switch (targetToken.Kind) 38922if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
Syntax\InternalSyntax\CSharpSyntaxNode.cs (5)
67public override string KindText => this.Kind.ToString(); 77public override bool IsSkippedTokensTrivia => this.Kind == SyntaxKind.SkippedTokensTrivia; 78public override bool IsDocumentationCommentTrivia => SyntaxFacts.IsDocumentationCommentTrivia(this.Kind); 248return this.Kind == SyntaxKind.EndOfLineTrivia 249|| this.Kind == SyntaxKind.SingleLineCommentTrivia;
Syntax\InternalSyntax\CSharpSyntaxRewriter.cs (1)
57Debug.Assert(visited != null && visited.Kind != SyntaxKind.None, "Cannot remove node using Syntax.InternalSyntax.SyntaxRewriter.");
Syntax\InternalSyntax\StructuredTriviaSyntax.cs (1)
18if (this.Kind == SyntaxKind.SkippedTokensTrivia)
Syntax\InternalSyntax\SyntaxToken.cs (7)
255return this.Kind; 269get { return SyntaxFacts.GetText(this.Kind); } 286switch (this.Kind) 349return new SyntaxTokenWithTrivia(this.Kind, trivia, null, this.GetDiagnostics(), this.GetAnnotations()); 359return new SyntaxTokenWithTrivia(this.Kind, null, trivia, this.GetDiagnostics(), this.GetAnnotations()); 365return new SyntaxToken(this.Kind, this.FullWidth, diagnostics, this.GetAnnotations()); 371return new SyntaxToken(this.Kind, this.FullWidth, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.MissingTokenWithTrivia.cs (5)
37switch (this.Kind) 49return new MissingTokenWithTrivia(this.Kind, trivia, this.TrailingField, this.GetDiagnostics(), this.GetAnnotations()); 54return new MissingTokenWithTrivia(this.Kind, this.LeadingField, trivia, this.GetDiagnostics(), this.GetAnnotations()); 59return new MissingTokenWithTrivia(this.Kind, this.LeadingField, this.TrailingField, diagnostics, this.GetAnnotations()); 64return new MissingTokenWithTrivia(this.Kind, this.LeadingField, this.TrailingField, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.SyntaxIdentifier.cs (2)
46return new SyntaxIdentifierWithTrivia(this.Kind, this.TextField, this.TextField, trivia, null, this.GetDiagnostics(), this.GetAnnotations()); 51return new SyntaxIdentifierWithTrivia(this.Kind, this.TextField, this.TextField, null, trivia, this.GetDiagnostics(), this.GetAnnotations());
Syntax\InternalSyntax\SyntaxToken.SyntaxIdentifierWithTrailingTrivia.cs (1)
42return new SyntaxIdentifierWithTrivia(this.Kind, this.TextField, this.TextField, trivia, _trailing, this.GetDiagnostics(), this.GetAnnotations());
Syntax\InternalSyntax\SyntaxToken.SyntaxLiteral.cs (4)
59return new SyntaxTokenWithValueAndTrivia<T>(this.Kind, this.TextField, this.ValueField, trivia, null, this.GetDiagnostics(), this.GetAnnotations()); 64return new SyntaxTokenWithValueAndTrivia<T>(this.Kind, this.TextField, this.ValueField, null, trivia, this.GetDiagnostics(), this.GetAnnotations()); 69return new SyntaxTokenWithValue<T>(this.Kind, this.TextField, this.ValueField, diagnostics, this.GetAnnotations()); 74return new SyntaxTokenWithValue<T>(this.Kind, this.TextField, this.ValueField, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.SyntaxLiteralWithTrivia.cs (4)
65return new SyntaxTokenWithValueAndTrivia<T>(this.Kind, this.TextField, this.ValueField, trivia, _trailing, this.GetDiagnostics(), this.GetAnnotations()); 70return new SyntaxTokenWithValueAndTrivia<T>(this.Kind, this.TextField, this.ValueField, _leading, trivia, this.GetDiagnostics(), this.GetAnnotations()); 75return new SyntaxTokenWithValueAndTrivia<T>(this.Kind, this.TextField, this.ValueField, _leading, _trailing, diagnostics, this.GetAnnotations()); 80return new SyntaxTokenWithValueAndTrivia<T>(this.Kind, this.TextField, this.ValueField, _leading, _trailing, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxToken.SyntaxTokenWithTrivia.cs (4)
58return new SyntaxTokenWithTrivia(this.Kind, trivia, this.TrailingField, this.GetDiagnostics(), this.GetAnnotations()); 63return new SyntaxTokenWithTrivia(this.Kind, this.LeadingField, trivia, this.GetDiagnostics(), this.GetAnnotations()); 68return new SyntaxTokenWithTrivia(this.Kind, this.LeadingField, this.TrailingField, diagnostics, this.GetAnnotations()); 73return new SyntaxTokenWithTrivia(this.Kind, this.LeadingField, this.TrailingField, this.GetDiagnostics(), annotations);
Syntax\InternalSyntax\SyntaxTrivia.cs (2)
67return new SyntaxTrivia(this.Kind, this.Text, diagnostics, GetAnnotations()); 72return new SyntaxTrivia(this.Kind, this.Text, GetDiagnostics(), annotations);
Syntax\InternalSyntax\TypeSyntax.cs (1)
19public bool IsRef => Kind == SyntaxKind.RefType;
Syntax\ShebangDirectiveTriviaSyntax.cs (2)
41if (content.Kind is SyntaxKind.StringLiteralToken) 45else if (content.Kind is not SyntaxKind.None)
Syntax\SyntaxEquivalence.cs (1)
284if (current.Kind == SyntaxKind.NullableDirectiveTrivia)
Syntax\SyntaxFactory.cs (1)
1667if (token.Kind == SyntaxKind.EndOfFileToken)
Syntax\SyntaxFacts.cs (1)
450return node.IsIdentifierVar() || IsPredefinedType(node.Kind);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (430)
Generated\Syntax.Test.xml.Generated.cs (417)
761Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 772Assert.Equal(SyntaxKind.DotToken, node.DotToken.Kind); 783Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 794Assert.Equal(SyntaxKind.LessThanToken, node.LessThanToken.Kind); 796Assert.Equal(SyntaxKind.GreaterThanToken, node.GreaterThanToken.Kind); 807Assert.Equal(SyntaxKind.ColonColonToken, node.ColonColonToken.Kind); 818Assert.Equal(SyntaxKind.BoolKeyword, node.Keyword.Kind); 839Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 841Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 852Assert.Equal(SyntaxKind.AsteriskToken, node.AsteriskToken.Kind); 862Assert.Equal(SyntaxKind.DelegateKeyword, node.DelegateKeyword.Kind); 863Assert.Equal(SyntaxKind.AsteriskToken, node.AsteriskToken.Kind); 875Assert.Equal(SyntaxKind.LessThanToken, node.LessThanToken.Kind); 877Assert.Equal(SyntaxKind.GreaterThanToken, node.GreaterThanToken.Kind); 887Assert.Equal(SyntaxKind.ManagedKeyword, node.ManagedOrUnmanagedKeyword.Kind); 898Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 900Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 910Assert.Equal(SyntaxKind.IdentifierToken, node.Name.Kind); 921Assert.Equal(SyntaxKind.QuestionToken, node.QuestionToken.Kind); 931Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 933Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 954Assert.Equal(SyntaxKind.OmittedTypeArgumentToken, node.OmittedTypeArgumentToken.Kind); 964Assert.Equal(SyntaxKind.RefKeyword, node.RefKeyword.Kind); 976Assert.Equal(SyntaxKind.ScopedKeyword, node.ScopedKeyword.Kind); 987Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 989Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 999Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1001Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1011Assert.Equal(SyntaxKind.PlusToken, node.OperatorToken.Kind); 1022Assert.Equal(SyntaxKind.AwaitKeyword, node.AwaitKeyword.Kind); 1034Assert.Equal(SyntaxKind.PlusPlusToken, node.OperatorToken.Kind); 1045Assert.Equal(SyntaxKind.DotToken, node.OperatorToken.Kind); 1057Assert.Equal(SyntaxKind.QuestionToken, node.OperatorToken.Kind); 1068Assert.Equal(SyntaxKind.DotToken, node.OperatorToken.Kind); 1090Assert.Equal(SyntaxKind.DotDotToken, node.OperatorToken.Kind); 1112Assert.Equal(SyntaxKind.PlusToken, node.OperatorToken.Kind); 1124Assert.Equal(SyntaxKind.EqualsToken, node.OperatorToken.Kind); 1136Assert.Equal(SyntaxKind.QuestionToken, node.QuestionToken.Kind); 1138Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 1149Assert.Equal(SyntaxKind.ThisKeyword, node.Token.Kind); 1159Assert.Equal(SyntaxKind.BaseKeyword, node.Token.Kind); 1169Assert.Equal(SyntaxKind.ArgListKeyword, node.Token.Kind); 1179Assert.Equal(SyntaxKind.FieldKeyword, node.Token.Kind); 1189Assert.Equal(SyntaxKind.MakeRefKeyword, node.Keyword.Kind); 1190Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1192Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1202Assert.Equal(SyntaxKind.RefTypeKeyword, node.Keyword.Kind); 1203Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1205Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1215Assert.Equal(SyntaxKind.RefValueKeyword, node.Keyword.Kind); 1216Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1218Assert.Equal(SyntaxKind.CommaToken, node.Comma.Kind); 1220Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1230Assert.Equal(SyntaxKind.CheckedKeyword, node.Keyword.Kind); 1231Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1233Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1243Assert.Equal(SyntaxKind.DefaultKeyword, node.Keyword.Kind); 1244Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1246Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1256Assert.Equal(SyntaxKind.TypeOfKeyword, node.Keyword.Kind); 1257Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1259Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1269Assert.Equal(SyntaxKind.SizeOfKeyword, node.Keyword.Kind); 1270Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1272Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1304Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1306Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1316Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 1318Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 1341Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 1352Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 1373Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1375Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1387Assert.Equal(SyntaxKind.DelegateKeyword, node.DelegateKeyword.Kind); 1403Assert.Equal(SyntaxKind.EqualsGreaterThanToken, node.ArrowToken.Kind); 1415Assert.Equal(SyntaxKind.RefKeyword, node.RefKeyword.Kind); 1430Assert.Equal(SyntaxKind.EqualsGreaterThanToken, node.ArrowToken.Kind); 1442Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 1444Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 1454Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1466Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1480Assert.Equal(SyntaxKind.WithKeyword, node.WithKeyword.Kind); 1502Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1503Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 1505Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 1515Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1527Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1528Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 1530Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 1541Assert.Equal(SyntaxKind.StackAllocKeyword, node.StackAllocKeyword.Kind); 1553Assert.Equal(SyntaxKind.StackAllocKeyword, node.StackAllocKeyword.Kind); 1554Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 1555Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 1566Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 1568Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 1588Assert.Equal(SyntaxKind.DotDotToken, node.OperatorToken.Kind); 1622Assert.Equal(SyntaxKind.FromKeyword, node.FromKeyword.Kind); 1624Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 1625Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind); 1636Assert.Equal(SyntaxKind.LetKeyword, node.LetKeyword.Kind); 1637Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 1638Assert.Equal(SyntaxKind.EqualsToken, node.EqualsToken.Kind); 1649Assert.Equal(SyntaxKind.JoinKeyword, node.JoinKeyword.Kind); 1651Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 1652Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind); 1654Assert.Equal(SyntaxKind.OnKeyword, node.OnKeyword.Kind); 1656Assert.Equal(SyntaxKind.EqualsKeyword, node.EqualsKeyword.Kind); 1668Assert.Equal(SyntaxKind.IntoKeyword, node.IntoKeyword.Kind); 1669Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 1679Assert.Equal(SyntaxKind.WhereKeyword, node.WhereKeyword.Kind); 1690Assert.Equal(SyntaxKind.OrderByKeyword, node.OrderByKeyword.Kind); 1712Assert.Equal(SyntaxKind.SelectKeyword, node.SelectKeyword.Kind); 1723Assert.Equal(SyntaxKind.GroupKeyword, node.GroupKeyword.Kind); 1725Assert.Equal(SyntaxKind.ByKeyword, node.ByKeyword.Kind); 1736Assert.Equal(SyntaxKind.IntoKeyword, node.IntoKeyword.Kind); 1737Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 1748Assert.Equal(SyntaxKind.OmittedArraySizeExpressionToken, node.OmittedArraySizeExpressionToken.Kind); 1758Assert.Equal(SyntaxKind.InterpolatedStringStartToken, node.StringStartToken.Kind); 1760Assert.Equal(SyntaxKind.InterpolatedStringEndToken, node.StringEndToken.Kind); 1771Assert.Equal(SyntaxKind.IsKeyword, node.IsKeyword.Kind); 1782Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind); 1793Assert.Equal(SyntaxKind.WhenKeyword, node.WhenKeyword.Kind); 1804Assert.Equal(SyntaxKind.UnderscoreToken, node.UnderscoreToken.Kind); 1825Assert.Equal(SyntaxKind.VarKeyword, node.VarKeyword.Kind); 1849Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1851Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1861Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 1863Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 1894Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1896Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1906Assert.Equal(SyntaxKind.EqualsEqualsToken, node.OperatorToken.Kind); 1928Assert.Equal(SyntaxKind.OrKeyword, node.OperatorToken.Kind); 1939Assert.Equal(SyntaxKind.NotKeyword, node.OperatorToken.Kind); 1950Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 1952Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 1963Assert.Equal(SyntaxKind.DotDotToken, node.DotDotToken.Kind); 1974Assert.Equal(SyntaxKind.InterpolatedStringTextToken, node.TextToken.Kind); 1984Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 1988Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 1998Assert.Equal(SyntaxKind.IdentifierToken, node.CommaToken.Kind); 2009Assert.Equal(SyntaxKind.IdentifierToken, node.ColonToken.Kind); 2010Assert.Equal(SyntaxKind.InterpolatedStringTextToken, node.FormatStringToken.Kind); 2033Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 2035Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 2048Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2069Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2090Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2102Assert.Equal(SyntaxKind.EqualsToken, node.EqualsToken.Kind); 2113Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2123Assert.Equal(SyntaxKind.UnderscoreToken, node.UnderscoreToken.Kind); 2133Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2135Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2147Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2158Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2169Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2170Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 2182Assert.Equal(SyntaxKind.GotoKeyword, node.GotoKeyword.Kind); 2185Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2196Assert.Equal(SyntaxKind.BreakKeyword, node.BreakKeyword.Kind); 2197Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2208Assert.Equal(SyntaxKind.ContinueKeyword, node.ContinueKeyword.Kind); 2209Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2220Assert.Equal(SyntaxKind.ReturnKeyword, node.ReturnKeyword.Kind); 2222Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2233Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind); 2235Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2246Assert.Equal(SyntaxKind.YieldKeyword, node.YieldKeyword.Kind); 2247Assert.Equal(SyntaxKind.ReturnKeyword, node.ReturnOrBreakKeyword.Kind); 2249Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2260Assert.Equal(SyntaxKind.WhileKeyword, node.WhileKeyword.Kind); 2261Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2263Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2275Assert.Equal(SyntaxKind.DoKeyword, node.DoKeyword.Kind); 2277Assert.Equal(SyntaxKind.WhileKeyword, node.WhileKeyword.Kind); 2278Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2280Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2281Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2292Assert.Equal(SyntaxKind.ForKeyword, node.ForKeyword.Kind); 2293Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2296Assert.Equal(SyntaxKind.SemicolonToken, node.FirstSemicolonToken.Kind); 2298Assert.Equal(SyntaxKind.SemicolonToken, node.SecondSemicolonToken.Kind); 2300Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2313Assert.Equal(SyntaxKind.ForEachKeyword, node.ForEachKeyword.Kind); 2314Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2316Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2317Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind); 2319Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2332Assert.Equal(SyntaxKind.ForEachKeyword, node.ForEachKeyword.Kind); 2333Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2335Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind); 2337Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2350Assert.Equal(SyntaxKind.UsingKeyword, node.UsingKeyword.Kind); 2351Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2354Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2366Assert.Equal(SyntaxKind.FixedKeyword, node.FixedKeyword.Kind); 2367Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2369Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2381Assert.Equal(SyntaxKind.CheckedKeyword, node.Keyword.Kind); 2393Assert.Equal(SyntaxKind.UnsafeKeyword, node.UnsafeKeyword.Kind); 2405Assert.Equal(SyntaxKind.LockKeyword, node.LockKeyword.Kind); 2406Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2408Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2420Assert.Equal(SyntaxKind.IfKeyword, node.IfKeyword.Kind); 2421Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2423Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2435Assert.Equal(SyntaxKind.ElseKeyword, node.ElseKeyword.Kind); 2447Assert.Equal(SyntaxKind.SwitchKeyword, node.SwitchKeyword.Kind); 2451Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 2453Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 2474Assert.Equal(SyntaxKind.CaseKeyword, node.Keyword.Kind); 2477Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 2487Assert.Equal(SyntaxKind.CaseKeyword, node.Keyword.Kind); 2489Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 2499Assert.Equal(SyntaxKind.DefaultKeyword, node.Keyword.Kind); 2500Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 2511Assert.Equal(SyntaxKind.SwitchKeyword, node.SwitchKeyword.Kind); 2512Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 2514Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 2526Assert.Equal(SyntaxKind.EqualsGreaterThanToken, node.EqualsGreaterThanToken.Kind); 2538Assert.Equal(SyntaxKind.TryKeyword, node.TryKeyword.Kind); 2551Assert.Equal(SyntaxKind.CatchKeyword, node.CatchKeyword.Kind); 2564Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2567Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2577Assert.Equal(SyntaxKind.WhenKeyword, node.WhenKeyword.Kind); 2578Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2580Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2590Assert.Equal(SyntaxKind.FinallyKeyword, node.FinallyKeyword.Kind); 2605Assert.Equal(SyntaxKind.EndOfFileToken, node.EndOfFileToken.Kind); 2615Assert.Equal(SyntaxKind.ExternKeyword, node.ExternKeyword.Kind); 2616Assert.Equal(SyntaxKind.AliasKeyword, node.AliasKeyword.Kind); 2617Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2618Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2629Assert.Equal(SyntaxKind.UsingKeyword, node.UsingKeyword.Kind); 2634Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2646Assert.Equal(SyntaxKind.NamespaceKeyword, node.NamespaceKeyword.Kind); 2648Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 2652Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 2665Assert.Equal(SyntaxKind.NamespaceKeyword, node.NamespaceKeyword.Kind); 2667Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2680Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 2683Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 2693Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2694Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 2715Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2717Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2740Assert.Equal(SyntaxKind.EqualsToken, node.EqualsToken.Kind); 2750Assert.Equal(SyntaxKind.LessThanToken, node.LessThanToken.Kind); 2752Assert.Equal(SyntaxKind.GreaterThanToken, node.GreaterThanToken.Kind); 2764Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2776Assert.Equal(SyntaxKind.ClassKeyword, node.Keyword.Kind); 2777Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2797Assert.Equal(SyntaxKind.StructKeyword, node.Keyword.Kind); 2798Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2818Assert.Equal(SyntaxKind.InterfaceKeyword, node.Keyword.Kind); 2819Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2839Assert.Equal(SyntaxKind.IdentifierToken, node.Keyword.Kind); 2841Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2861Assert.Equal(SyntaxKind.EnumKeyword, node.EnumKeyword.Kind); 2862Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2879Assert.Equal(SyntaxKind.DelegateKeyword, node.DelegateKeyword.Kind); 2881Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2885Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2897Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2910Assert.Equal(SyntaxKind.ExtensionKeyword, node.Keyword.Kind); 2927Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 2959Assert.Equal(SyntaxKind.WhereKeyword, node.WhereKeyword.Kind); 2961Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 2972Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 2973Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2974Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2984Assert.Equal(SyntaxKind.ClassKeyword, node.ClassOrStructKeyword.Kind); 3005Assert.Equal(SyntaxKind.DefaultKeyword, node.DefaultKeyword.Kind); 3015Assert.Equal(SyntaxKind.AllowsKeyword, node.AllowsKeyword.Kind); 3026Assert.Equal(SyntaxKind.RefKeyword, node.RefKeyword.Kind); 3027Assert.Equal(SyntaxKind.StructKeyword, node.StructKeyword.Kind); 3040Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 3052Assert.Equal(SyntaxKind.EventKeyword, node.EventKeyword.Kind); 3054Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 3065Assert.Equal(SyntaxKind.DotToken, node.DotToken.Kind); 3079Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 3099Assert.Equal(SyntaxKind.OperatorKeyword, node.OperatorKeyword.Kind); 3101Assert.Equal(SyntaxKind.PlusToken, node.OperatorToken.Kind); 3117Assert.Equal(SyntaxKind.ImplicitKeyword, node.ImplicitOrExplicitKeyword.Kind); 3119Assert.Equal(SyntaxKind.OperatorKeyword, node.OperatorKeyword.Kind); 3137Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 3152Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 3153Assert.Equal(SyntaxKind.BaseKeyword, node.ThisOrBaseKeyword.Kind); 3166Assert.Equal(SyntaxKind.TildeToken, node.TildeToken.Kind); 3167Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 3185Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 3199Assert.Equal(SyntaxKind.EqualsGreaterThanToken, node.ArrowToken.Kind); 3212Assert.Equal(SyntaxKind.EventKeyword, node.EventKeyword.Kind); 3215Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 3231Assert.Equal(SyntaxKind.ThisKeyword, node.ThisKeyword.Kind); 3245Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 3247Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 3259Assert.Equal(SyntaxKind.GetKeyword, node.Keyword.Kind); 3272Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 3274Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 3284Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 3286Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 3345Assert.Equal(SyntaxKind.EndOfDocumentationCommentToken, node.EndOfComment.Kind); 3366Assert.Equal(SyntaxKind.DotToken, node.DotToken.Kind); 3388Assert.Equal(SyntaxKind.ExtensionKeyword, node.ExtensionKeyword.Kind); 3391Assert.Equal(SyntaxKind.DotToken, node.DotToken.Kind); 3402Assert.Equal(SyntaxKind.ThisKeyword, node.ThisKeyword.Kind); 3413Assert.Equal(SyntaxKind.OperatorKeyword, node.OperatorKeyword.Kind); 3415Assert.Equal(SyntaxKind.PlusToken, node.OperatorToken.Kind); 3426Assert.Equal(SyntaxKind.ImplicitKeyword, node.ImplicitOrExplicitKeyword.Kind); 3427Assert.Equal(SyntaxKind.OperatorKeyword, node.OperatorKeyword.Kind); 3440Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 3442Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 3452Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 3454Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 3488Assert.Equal(SyntaxKind.LessThanToken, node.LessThanToken.Kind); 3491Assert.Equal(SyntaxKind.GreaterThanToken, node.GreaterThanToken.Kind); 3501Assert.Equal(SyntaxKind.LessThanSlashToken, node.LessThanSlashToken.Kind); 3503Assert.Equal(SyntaxKind.GreaterThanToken, node.GreaterThanToken.Kind); 3513Assert.Equal(SyntaxKind.LessThanToken, node.LessThanToken.Kind); 3516Assert.Equal(SyntaxKind.SlashGreaterThanToken, node.SlashGreaterThanToken.Kind); 3527Assert.Equal(SyntaxKind.IdentifierToken, node.LocalName.Kind); 3537Assert.Equal(SyntaxKind.IdentifierToken, node.Prefix.Kind); 3538Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 3549Assert.Equal(SyntaxKind.EqualsToken, node.EqualsToken.Kind); 3550Assert.Equal(SyntaxKind.SingleQuoteToken, node.StartQuoteToken.Kind); 3552Assert.Equal(SyntaxKind.SingleQuoteToken, node.EndQuoteToken.Kind); 3563Assert.Equal(SyntaxKind.EqualsToken, node.EqualsToken.Kind); 3564Assert.Equal(SyntaxKind.SingleQuoteToken, node.StartQuoteToken.Kind); 3566Assert.Equal(SyntaxKind.SingleQuoteToken, node.EndQuoteToken.Kind); 3577Assert.Equal(SyntaxKind.EqualsToken, node.EqualsToken.Kind); 3578Assert.Equal(SyntaxKind.SingleQuoteToken, node.StartQuoteToken.Kind); 3580Assert.Equal(SyntaxKind.SingleQuoteToken, node.EndQuoteToken.Kind); 3600Assert.Equal(SyntaxKind.XmlCDataStartToken, node.StartCDataToken.Kind); 3602Assert.Equal(SyntaxKind.XmlCDataEndToken, node.EndCDataToken.Kind); 3612Assert.Equal(SyntaxKind.XmlProcessingInstructionStartToken, node.StartProcessingInstructionToken.Kind); 3615Assert.Equal(SyntaxKind.XmlProcessingInstructionEndToken, node.EndProcessingInstructionToken.Kind); 3625Assert.Equal(SyntaxKind.XmlCommentStartToken, node.LessThanExclamationMinusMinusToken.Kind); 3627Assert.Equal(SyntaxKind.XmlCommentEndToken, node.MinusMinusGreaterThanToken.Kind); 3637Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3638Assert.Equal(SyntaxKind.IfKeyword, node.IfKeyword.Kind); 3640Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3653Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3654Assert.Equal(SyntaxKind.ElifKeyword, node.ElifKeyword.Kind); 3656Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3669Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3670Assert.Equal(SyntaxKind.ElseKeyword, node.ElseKeyword.Kind); 3671Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3683Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3684Assert.Equal(SyntaxKind.EndIfKeyword, node.EndIfKeyword.Kind); 3685Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3696Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3697Assert.Equal(SyntaxKind.RegionKeyword, node.RegionKeyword.Kind); 3698Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3709Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3710Assert.Equal(SyntaxKind.EndRegionKeyword, node.EndRegionKeyword.Kind); 3711Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3722Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3723Assert.Equal(SyntaxKind.ErrorKeyword, node.ErrorKeyword.Kind); 3724Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3735Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3736Assert.Equal(SyntaxKind.WarningKeyword, node.WarningKeyword.Kind); 3737Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3748Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3749Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 3750Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3761Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3762Assert.Equal(SyntaxKind.DefineKeyword, node.DefineKeyword.Kind); 3763Assert.Equal(SyntaxKind.IdentifierToken, node.Name.Kind); 3764Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3775Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3776Assert.Equal(SyntaxKind.UndefKeyword, node.UndefKeyword.Kind); 3777Assert.Equal(SyntaxKind.IdentifierToken, node.Name.Kind); 3778Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3789Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3790Assert.Equal(SyntaxKind.LineKeyword, node.LineKeyword.Kind); 3791Assert.Equal(SyntaxKind.NumericLiteralToken, node.Line.Kind); 3793Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3804Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 3805Assert.Equal(SyntaxKind.NumericLiteralToken, node.Line.Kind); 3806Assert.Equal(SyntaxKind.CommaToken, node.CommaToken.Kind); 3807Assert.Equal(SyntaxKind.NumericLiteralToken, node.Character.Kind); 3808Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 3818Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3819Assert.Equal(SyntaxKind.LineKeyword, node.LineKeyword.Kind); 3821Assert.Equal(SyntaxKind.MinusToken, node.MinusToken.Kind); 3824Assert.Equal(SyntaxKind.StringLiteralToken, node.File.Kind); 3825Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3836Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3837Assert.Equal(SyntaxKind.PragmaKeyword, node.PragmaKeyword.Kind); 3838Assert.Equal(SyntaxKind.WarningKeyword, node.WarningKeyword.Kind); 3839Assert.Equal(SyntaxKind.DisableKeyword, node.DisableOrRestoreKeyword.Kind); 3841Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3852Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3853Assert.Equal(SyntaxKind.PragmaKeyword, node.PragmaKeyword.Kind); 3854Assert.Equal(SyntaxKind.ChecksumKeyword, node.ChecksumKeyword.Kind); 3855Assert.Equal(SyntaxKind.StringLiteralToken, node.File.Kind); 3856Assert.Equal(SyntaxKind.StringLiteralToken, node.Guid.Kind); 3857Assert.Equal(SyntaxKind.StringLiteralToken, node.Bytes.Kind); 3858Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3869Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3870Assert.Equal(SyntaxKind.ReferenceKeyword, node.ReferenceKeyword.Kind); 3871Assert.Equal(SyntaxKind.StringLiteralToken, node.File.Kind); 3872Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3883Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3884Assert.Equal(SyntaxKind.LoadKeyword, node.LoadKeyword.Kind); 3885Assert.Equal(SyntaxKind.StringLiteralToken, node.File.Kind); 3886Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3897Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3898Assert.Equal(SyntaxKind.ExclamationToken, node.ExclamationToken.Kind); 3899Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3910Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3911Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 3913Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3924Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3925Assert.Equal(SyntaxKind.NullableKeyword, node.NullableKeyword.Kind); 3926Assert.Equal(SyntaxKind.EnableKeyword, node.SettingToken.Kind); 3928Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind);
LexicalAndXml\CrefLexerTests.cs (1)
450if (token.Kind == SyntaxKind.SingleQuoteToken)
LexicalAndXml\DocumentationCommentLexerTestBase.cs (4)
64Assert.Equal(expectedToken.Kind, actualToken.Kind); 81var canonicalText = SyntaxFacts.GetText(token.Kind); 85builder.AppendFormat("Token(SyntaxKind.{0}", token.Kind); 95if (token.ContextualKind != token.Kind)
LexicalAndXml\LexicalTests.cs (5)
97while (result.Token.Kind != SyntaxKind.EndOfFileToken); 4616Assert.Equal(SyntaxKind.SemicolonToken, token1.Kind); 4621Assert.Equal(SyntaxKind.DotToken, token2.Kind); 4625Assert.Equal(SyntaxKind.DotToken, token3.Kind); 4633Assert.Equal(SyntaxKind.NumericLiteralToken, token4.Kind);
LexicalAndXml\NameAttributeValueLexerTests.cs (1)
414if (token.Kind == SyntaxKind.SingleQuoteToken)
Parsing\ParsingTests.cs (1)
494while (lexer.Lex(Syntax.InternalSyntax.LexerMode.Syntax) is var token && token.Kind != SyntaxKind.EndOfFileToken)
Syntax\GreenNodeTests.cs (1)
29return InternalSyntax.SyntaxFactory.MissingToken(token.Kind);