2856 references to Kind
Microsoft.CodeAnalysis.CSharp (2425)
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) 377switch (this.CurrentToken.Kind) 386if (isActive && !line.IsMissing && line.Kind == SyntaxKind.NumericLiteralToken) 398if (this.CurrentToken.Kind == SyntaxKind.StringLiteralToken && 414Debug.Assert(CurrentToken.Kind == SyntaxKind.OpenParenToken); 433var characterOffset = (CurrentToken.Kind == SyntaxKind.NumericLiteralToken) ? 487else if (token.Kind == SyntaxKind.NumericLiteralToken) 546SyntaxToken setting = this.CurrentToken.Kind switch 554SyntaxToken target = this.CurrentToken.Kind switch 579if (this.CurrentToken.Kind == SyntaxKind.DisableKeyword || this.CurrentToken.Kind == SyntaxKind.RestoreKeyword) 584while (this.CurrentToken.Kind != SyntaxKind.EndOfDirectiveToken) 589if (this.CurrentToken.Kind == SyntaxKind.NumericLiteralToken) 601else if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 622if (this.CurrentToken.Kind != SyntaxKind.CommaToken) 640else if (this.CurrentToken.Kind == SyntaxKind.ChecksumKeyword) 729if (this.CurrentToken.Kind != SyntaxKind.EndOfDirectiveToken && 730this.CurrentToken.Kind != SyntaxKind.EndOfFileToken) 749while (this.CurrentToken.Kind != SyntaxKind.EndOfDirectiveToken && 750this.CurrentToken.Kind != SyntaxKind.EndOfFileToken) 757SyntaxToken endOfDirective = this.CurrentToken.Kind == SyntaxKind.EndOfDirectiveToken 778while (this.CurrentToken.Kind == SyntaxKind.BarBarToken) 791while (this.CurrentToken.Kind == SyntaxKind.AmpersandAmpersandToken) 804while (this.CurrentToken.Kind == SyntaxKind.EqualsEqualsToken || this.CurrentToken.Kind == SyntaxKind.ExclamationEqualsToken) 808left = SyntaxFactory.BinaryExpression(SyntaxFacts.GetBinaryExpression(op.Kind), left, op, right); 816if (this.CurrentToken.Kind == SyntaxKind.ExclamationToken) 827var k = this.CurrentToken.Kind; 876switch (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)) 1035if (SyntaxFacts.IsUnaryOperatorDeclarationToken(CurrentToken.Kind) || SyntaxFacts.IsBinaryExpressionOperatorToken(CurrentToken.Kind)) 1048if (operatorToken.Kind == SyntaxKind.GreaterThanToken && LanguageParser.NoTriviaBetween(operatorToken, CurrentToken)) 1050if (CurrentToken.Kind == SyntaxKind.GreaterThanToken) 1055CurrentToken.Kind is (SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken)) 1059if (operatorToken3.Kind == SyntaxKind.GreaterThanToken) 1091else if (CurrentToken.Kind == SyntaxKind.EqualsToken) 1101else if (CurrentToken.Kind == SyntaxKind.GreaterThanEqualsToken) 1114switch (operatorToken.Kind) 1151Debug.Assert(SyntaxFacts.IsAnyOverloadableOperator(operatorToken.Kind)); 1159if (LanguageParser.NoTriviaBetween(operatorToken, CurrentToken) && CurrentToken.Kind == SyntaxKind.EqualsToken) 1181(isConversion || SyntaxFacts.IsAnyOverloadableOperator(CurrentToken.Kind))) 1190if (CurrentToken.Kind == SyntaxKind.UncheckedKeyword) 1207Debug.Assert(CurrentToken.Kind == SyntaxKind.ExplicitKeyword || 1208CurrentToken.Kind == SyntaxKind.ImplicitKeyword); 1245if (CurrentToken.Kind != openKind) 1255while (CurrentToken.Kind == SyntaxKind.CommaToken || IsPossibleCrefParameter()) 1259if (CurrentToken.Kind != closeKind) 1270Debug.Assert(CurrentToken.Kind != SyntaxKind.CommaToken); 1295SyntaxKind kind = this.CurrentToken.Kind; 1317switch (CurrentToken.Kind) 1327if (CurrentToken.Kind == SyntaxKind.ReadOnlyKeyword && refKindOpt is not null) 1329if (refKindOpt.Kind != SyntaxKind.RefKeyword) 1354if (CurrentToken.Kind != SyntaxKind.LessThanToken) 1364Debug.Assert(CurrentToken.Kind == SyntaxKind.LessThanToken); 1374if (typeArgumentsMustBeIdentifiers && typeSyntax.Kind != SyntaxKind.IdentifierName) 1382var currentKind = CurrentToken.Kind; 1384SyntaxFacts.IsPredefinedType(CurrentToken.Kind)) 1444if (SyntaxFacts.IsPredefinedType(CurrentToken.Kind)) 1453else if (CurrentToken.Kind == SyntaxKind.IdentifierToken && PeekToken(1).Kind == SyntaxKind.ColonColonToken) 1473if (checkForMember && (leftName.IsMissing || CurrentToken.Kind != SyntaxKind.DotToken)) 1485while (CurrentToken.Kind == SyntaxKind.DotToken) 1494if (checkForMember && (rightName.IsMissing || CurrentToken.Kind != SyntaxKind.DotToken)) 1516if (CurrentToken.Kind == SyntaxKind.QuestionToken) 1521while (CurrentToken.Kind == SyntaxKind.AsteriskToken) 1526if (CurrentToken.Kind == SyntaxKind.OpenBracketToken) 1532while (CurrentToken.Kind == SyntaxKind.OpenBracketToken) 1538while (this.CurrentToken.Kind != SyntaxKind.CloseBracketToken) 1540if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 1590switch (CurrentToken.Kind) 1658switch (CurrentToken.Kind)
Parser\LanguageParser.cs (743)
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) 750else if (memberOrStatement.Kind == SyntaxKind.IncompleteMember && seen < NamespaceParts.MembersAndStatements) 778switch (memberOrStatement.Kind) 870switch (this.CurrentToken.Kind) 879return IsPossibleStartOfTypeDeclaration(this.CurrentToken.Kind); 891else if (this.PeekToken(1).Kind == SyntaxKind.NamespaceKeyword) 902return this.CurrentToken.Kind == SyntaxKind.CloseBraceToken; 927return this.CurrentToken.Kind == SyntaxKind.ExternKeyword 928&& this.PeekToken(1) is { Kind: SyntaxKind.IdentifierToken, ContextualKind: SyntaxKind.AliasKeyword } 929&& this.PeekToken(2).Kind == SyntaxKind.IdentifierToken 930&& this.PeekToken(3).Kind == SyntaxKind.SemicolonToken; 940Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ExternKeyword); 968Debug.Assert(this.CurrentToken.Kind == SyntaxKind.UsingKeyword); 975if (staticToken is null && unsafeToken != null && this.CurrentToken.Kind == SyntaxKind.StaticKeyword) 987var isAliasToFunctionPointer = alias != null && this.CurrentToken.Kind == SyntaxKind.DelegateKeyword; 1006type = _syntaxFactory.IdentifierName(CreateMissingToken(SyntaxKind.IdentifierToken, this.CurrentToken.Kind)); 1018if (type.IsMissing && this.PeekToken(1).Kind == SyntaxKind.SemicolonToken) 1029return this.CurrentToken.Kind == SyntaxKind.OpenBracketToken 1031&& this.PeekToken(2).Kind == SyntaxKind.ColonToken; 1049if (this.CurrentToken.Kind != SyntaxKind.OpenBracketToken) 1067if (SyntaxFacts.IsLiteralExpression(this.CurrentToken.Kind)) 1111return this.CurrentToken.Kind == SyntaxKind.CloseBracketToken 1116=> IsSomeWord(this.CurrentToken.Kind) && this.PeekToken(1).Kind == SyntaxKind.ColonToken; 1161if (this.CurrentToken.Kind == SyntaxKind.DotToken) 1167if (this.CurrentToken.Kind == SyntaxKind.MinusGreaterThanToken) 1172if (this.CurrentToken.Kind == SyntaxKind.QuestionToken && 1173this.PeekToken(1).Kind == SyntaxKind.DotToken) 1185static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleAttribute(), 1186static (p, closeKind) => p.CurrentToken.Kind == closeKind, 1215if (this.CurrentToken.Kind != SyntaxKind.OpenParenToken) 1240static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleAttributeArgument(), 1241static (p, closeKind) => p.CurrentToken.Kind == closeKind, 1250if (argument.expression is LiteralExpressionSyntax { Kind: SyntaxKind.StringLiteralExpression, Token: var literalToken } && 1256if (argument.expression is InterpolatedStringExpressionSyntax { StringStartToken.Kind: SyntaxKind.InterpolatedStringStartToken, StringEndToken.IsMissing: true }) 1275if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 1277switch (this.PeekToken(1).Kind) 1299=> GetModifierExcludingScoped(token.Kind, token.ContextualKind); 1395else if (nextToken.Kind == SyntaxKind.NamespaceKeyword) 1401nextToken.Kind is SyntaxKind.EnumKeyword or SyntaxKind.DelegateKeyword || 1402(IsPossibleStartOfTypeDeclaration(nextToken.Kind) && GetModifierExcludingScoped(nextToken) != DeclarationModifiers.None)) 1477Debug.Assert(modTok.Kind is not (SyntaxKind.OutKeyword or SyntaxKind.InKeyword)); 1483if (token.Kind == SyntaxKind.StructKeyword) 1503Debug.Assert(this.CurrentToken.Kind == SyntaxKind.IdentifierToken && GetModifierExcludingScoped(this.CurrentToken) != DeclarationModifiers.None); 1539var currentTokenKind = this.CurrentToken.Kind; 1542(currentTokenKind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && PeekToken(1).Kind == SyntaxKind.OperatorKeyword)) 1561var currentTokenKind = this.CurrentToken.Kind; 1579if (SyntaxFacts.IsPredefinedType(this.CurrentToken.Kind)) 1623switch (nextToken.Kind) 1649if (this.PeekToken(1).Kind == SyntaxKind.EventKeyword) 1656if (this.PeekToken(1).Kind == SyntaxKind.IdentifierToken && 1657this.PeekToken(2).Kind == SyntaxKind.OpenParenToken) 1678switch (this.CurrentToken.Kind) 1681if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.UsingKeyword) 1701switch (this.CurrentToken.Kind) 1723throw ExceptionUtilities.UnexpectedValue(this.CurrentToken.Kind); 1729Debug.Assert(this.CurrentToken.Kind is SyntaxKind.ClassKeyword or SyntaxKind.StructKeyword or SyntaxKind.InterfaceKeyword || 1740bool isExtension = keyword.Kind == SyntaxKind.ExtensionKeyword; 1751if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 1764var paramList = CurrentToken.Kind == SyntaxKind.OpenParenToken || isExtension 1787if (CurrentToken.Kind == SyntaxKind.SemicolonToken) 1811SyntaxKind kind = this.CurrentToken.Kind; 1819var member = this.ParseMemberDeclaration(keyword.Kind); 1847? this.CreateMissingToken(SyntaxKind.CloseBraceToken, this.CurrentToken.Kind) 1873recordModifier = this.CurrentToken.Kind is SyntaxKind.ClassKeyword or SyntaxKind.StructKeyword 1880if (this.CurrentToken.Kind is SyntaxKind.StructKeyword or SyntaxKind.ClassKeyword && 1882this.PeekToken(2).Kind is SyntaxKind.IdentifierToken) 1893recordModifier = SyntaxFactory.MissingToken(misplacedToken.Kind); 1909switch (keyword.Kind) 1964SyntaxKind declarationKind = recordModifier?.Kind == SyntaxKind.StructKeyword ? SyntaxKind.RecordStructDeclaration : SyntaxKind.RecordDeclaration; 1997throw ExceptionUtilities.UnexpectedValue(keyword.Kind); 2034SyntaxKind kind = this.CurrentToken.Kind; 2038!(kind == SyntaxKind.DelegateKeyword && this.PeekToken(1).Kind is SyntaxKind.OpenBraceToken or SyntaxKind.OpenParenToken)) 2082return this.IsPossibleMemberStart() || this.CurrentToken.Kind == SyntaxKind.CloseBraceToken; 2087return this.CurrentToken.Kind is SyntaxKind.ColonToken or SyntaxKind.OpenBraceToken 2104list.Add(this.CurrentToken.Kind == SyntaxKind.OpenParenToken 2111if (this.CurrentToken.Kind is SyntaxKind.OpenBraceToken or SyntaxKind.SemicolonToken || 2117if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 2154static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleAttribute(), 2155static (p, _) => p.CurrentToken.Kind == SyntaxKind.OpenBraceToken || p.IsCurrentTokenWhereOfConstraintClause(), 2164this.PeekToken(1).Kind == SyntaxKind.IdentifierToken && 2165this.PeekToken(2).Kind == SyntaxKind.ColonToken; 2188if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken || this.IsCurrentTokenWhereOfConstraintClause()) 2202if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken 2203|| ((_termState & TerminatorState.IsEndOfTypeSignature) != 0 && this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 2204|| this.CurrentToken.Kind == SyntaxKind.EqualsGreaterThanToken 2209else if (haveComma = (this.CurrentToken.Kind == SyntaxKind.CommaToken) || this.IsPossibleTypeParameterConstraint()) 2213if (constraint.Kind == SyntaxKind.AllowsConstraintClause && haveComma && !this.IsPossibleTypeParameterConstraint()) 2249static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleTypeParameterConstraint(), 2250static (p, _) => p.CurrentToken.Kind == SyntaxKind.OpenBraceToken || p.IsCurrentTokenWhereOfConstraintClause(), 2257switch (this.CurrentToken.Kind) 2266return (this.CurrentToken.ContextualKind == SyntaxKind.AllowsKeyword && PeekToken(1).Kind == SyntaxKind.RefKeyword) || this.IsTrueIdentifier(); 2268return IsPredefinedType(this.CurrentToken.Kind); 2274return this.CurrentToken.Kind switch 2286this.CurrentToken.Kind == SyntaxKind.QuestionToken 2307PeekToken(1).Kind == SyntaxKind.AsteriskToken 2319PeekToken(1).Kind == SyntaxKind.RefKeyword) 2332if (this.CurrentToken.Kind == SyntaxKind.CommaToken && PeekToken(1).Kind == SyntaxKind.RefKeyword) 2350return CanStartMember(this.CurrentToken.Kind); 2411switch (this.CurrentToken.Kind) 2558switch (this.CurrentToken.Kind) 2561if (this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken) 2568if (this.PeekToken(1).Kind == SyntaxKind.OpenParenToken) 2600if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken && this.PeekToken(1).Kind == SyntaxKind.OpenParenToken) 2634if (this.CurrentToken.Kind == SyntaxKind.ConstKeyword) 2647if (this.CurrentToken.Kind == SyntaxKind.EventKeyword) 2653if (this.CurrentToken.Kind == SyntaxKind.FixedKeyword) 2665if (this.CurrentToken.Kind == SyntaxKind.NamespaceKeyword) 2683if ((!haveAttributes || !IsScript) && !haveModifiers && (type.Kind == SyntaxKind.RefType || !IsOperatorStart(out _, advanceParser: false))) 2687if (this.CurrentToken.Kind is not SyntaxKind.CloseBraceToken and not SyntaxKind.EndOfFileToken && 2775!type.IsMissing && type.Kind != SyntaxKind.RefType && 2906switch (statement?.Kind) 2914statement is ExpressionStatementSyntax { Expression.Kind: SyntaxKind.IdentifierName, SemicolonToken.IsMissing: true }: 2928if (CurrentToken.Kind == SyntaxKind.UsingKeyword) 2933if (CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.UsingKeyword) 2989if (attributes.Count == 0 && modifiers.Count == 0 && type.IsMissing && type.Kind != SyntaxKind.RefType) 3079if (type.Kind != SyntaxKind.RefType && 3082|| this.CurrentToken.Kind is not SyntaxKind.OpenParenToken and not SyntaxKind.OpenBraceToken and not SyntaxKind.EqualsGreaterThanToken) && 3107if (identifierOrThisOpt?.Kind == SyntaxKind.ThisKeyword) 3128var kind = this.PeekToken(index).Kind; 3137kind = this.PeekToken(index + 1).Kind; 3190if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken && this.PeekToken(1).Kind == SyntaxKind.OpenParenToken) 3196if (this.CurrentToken.Kind == SyntaxKind.TildeToken) 3202if (this.CurrentToken.Kind == SyntaxKind.ConstKeyword) 3208if (this.CurrentToken.Kind == SyntaxKind.EventKeyword) 3214if (this.CurrentToken.Kind == SyntaxKind.FixedKeyword) 3254if (type.Kind != SyntaxKind.RefType) 3323(IsFeatureEnabled(MessageID.IDS_FeatureExtensions) || this.PeekToken(1).Kind == SyntaxKind.LessThanToken); 3334if (type.Kind != SyntaxKind.IdentifierName) 3337if (identifierOrThisOpt.Kind != SyntaxKind.IdentifierToken) 3354if (this.CurrentToken.Kind != SyntaxKind.IdentifierToken) 3359if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).Kind == SyntaxKind.UsingKeyword) 3380switch (this.PeekToken(1).Kind) 3397return this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.OperatorKeyword; 3419if (token.Kind != SyntaxKind.None) 3455var currentTokenKind = this.CurrentToken.Kind; 3458this.PeekToken(1).Kind is SyntaxKind.ThisKeyword or SyntaxKind.BaseKeyword && 3459this.PeekToken(2).Kind is SyntaxKind.OpenParenToken); 3472Debug.Assert(this.CurrentToken.Kind is SyntaxKind.ColonToken or SyntaxKind.EqualsGreaterThanToken); 3475var token = this.CurrentToken.Kind is SyntaxKind.BaseKeyword or SyntaxKind.ThisKeyword 3479var argumentList = this.CurrentToken.Kind == SyntaxKind.OpenParenToken 3487token.Kind == SyntaxKind.BaseKeyword 3497Debug.Assert(this.CurrentToken.Kind == SyntaxKind.TildeToken); 3523if (this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 3531blockBody = this.CurrentToken.Kind == SyntaxKind.OpenBraceToken 3535expressionBody = this.CurrentToken.Kind == SyntaxKind.EqualsGreaterThanToken 3546else if (parseSemicolonAfterBlock && this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 3558if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 3564if (this.CurrentToken.Kind == SyntaxKind.ColonToken) 3570if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken) 3586=> this.CurrentToken.Kind is SyntaxKind.SemicolonToken or SyntaxKind.OpenBraceToken; 3590return this.CurrentToken.Kind is SyntaxKind.SemicolonToken or SyntaxKind.OpenBraceToken; 3594=> this.CurrentToken.Kind is SyntaxKind.DotToken or SyntaxKind.ColonColonToken; 3597=> this.CurrentToken.Kind == (errored ? SyntaxKind.CloseParenToken : SyntaxKind.GreaterThanToken); 3600=> this.CurrentToken.Kind == SyntaxKind.CloseBracketToken; 3622else if (this.CurrentToken.Kind == SyntaxKind.ColonToken) 3672switch (this.CurrentToken.Kind) 3691if (this.CurrentToken.Kind is not (SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)) 3695if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 3705if (this.CurrentToken.Kind == SyntaxKind.OperatorKeyword) 3719(IsMakingProgress(ref lastTokenPosition, assertIfFalse: false) && this.CurrentToken.Kind != SyntaxKind.OpenParenToken)) 3725separatorKind = this.CurrentToken.Kind; 3747if (this.CurrentToken.Kind != SyntaxKind.OperatorKeyword || 3752else if (this.PeekToken(1).Kind is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword) 3754possibleConversion = !SyntaxFacts.IsAnyOverloadableOperator(this.PeekToken(2).Kind); 3758possibleConversion = !SyntaxFacts.IsAnyOverloadableOperator(this.PeekToken(1).Kind); 3769var style = this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword 3779if (!style.IsMissing && explicitInterfaceOpt is not null && this.CurrentToken.Kind != SyntaxKind.OperatorKeyword && style.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia)) 3811bool couldBeParameterList = this.CurrentToken.Kind == SyntaxKind.OpenParenToken; 3816this.CurrentToken.Kind != SyntaxKind.OpenParenToken) 3847if (this.CurrentToken.Kind != SyntaxKind.IdentifierToken) 3864if (this.CurrentToken.Kind == SyntaxKind.OperatorKeyword) 3874(IsMakingProgress(ref lastTokenPosition, assertIfFalse: false) && this.CurrentToken.Kind != SyntaxKind.OpenParenToken); 3881if (separator?.Kind == SyntaxKind.ColonColonToken) 3901if (separator.Kind != SyntaxKind.DotToken) 3903separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 3913if (CurrentToken.Kind == SyntaxKind.UncheckedKeyword) 3933if (firstToken.Kind is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword && 3934this.PeekToken(1).Kind is SyntaxKind.OperatorKeyword) 3965if (SyntaxFacts.IsAnyOverloadableOperator(this.CurrentToken.Kind)) 3974if (this.CurrentToken.Kind is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword) 4007if (opToken.Kind == SyntaxKind.GreaterThanToken) 4011if (tk.Kind == SyntaxKind.GreaterThanToken) 4018if (tk.Kind == SyntaxKind.GreaterThanToken && 4025else if (tk.Kind == SyntaxKind.GreaterThanEqualsToken && 4039else if (tk.Kind == SyntaxKind.GreaterThanEqualsToken && 4048var opKind = opToken.Kind; 4132Debug.Assert(thisKeyword.Kind == SyntaxKind.ThisKeyword); 4148if (this.CurrentToken.Kind == SyntaxKind.EqualsGreaterThanToken) 4156if (this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 4165if (this.CurrentToken.Kind == SyntaxKind.EqualsGreaterThanToken 4200if (this.CurrentToken.Kind is SyntaxKind.SemicolonToken) 4208var accessorList = this.CurrentToken.Kind == SyntaxKind.OpenBraceToken 4216if (this.CurrentToken.Kind == SyntaxKind.EqualsGreaterThanToken) 4222else if (this.CurrentToken.Kind == SyntaxKind.EqualsToken) 4234else if (this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 4319if (this.CurrentToken.Kind == SyntaxKind.CloseBraceToken) 4354var refKeyword = this.CurrentToken.Kind == SyntaxKind.RefKeyword && !this.IsPossibleLambdaExpression(Precedence.Expression) 4365static p => p.CurrentToken.Kind != SyntaxKind.CloseBraceToken && !p.IsPossibleAccessor(), 4372return this.CurrentToken.Kind == SyntaxKind.IdentifierToken 4375|| this.CurrentToken.Kind == SyntaxKind.OpenBraceToken // for accessor blocks w/ missing keyword 4376|| this.CurrentToken.Kind == SyntaxKind.SemicolonToken // for empty body accessors w/ missing keyword 4410if (token.Kind is SyntaxKind.CloseBraceToken or SyntaxKind.EndOfFileToken) 4628bool currentTokenIsSemicolon = this.CurrentToken.Kind == SyntaxKind.SemicolonToken; 4629bool currentTokenIsArrow = this.CurrentToken.Kind == SyntaxKind.EqualsGreaterThanToken; 4630bool currentTokenIsOpenBraceToken = this.CurrentToken.Kind == SyntaxKind.OpenBraceToken; 4812static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleParameter(), 4813static (p, closeKind) => p.CurrentToken.Kind == closeKind, 4820return this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken; 4825switch (this.CurrentToken.Kind) 4839IsPredefinedType(this.CurrentToken.Kind); 4899if (this.CurrentToken.Kind == SyntaxKind.ArgListKeyword) 4910if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken && IsCurrentTokenWhereOfConstraintClause()) 4917identifier = allowOptionalIdentifier && this.CurrentToken.Kind != SyntaxKind.IdentifierToken 4923if (identifier is not null && this.CurrentToken.Kind is SyntaxKind.OpenBracketToken && this.PeekToken(1).Kind is SyntaxKind.CloseBracketToken) 4950switch (token.Kind) 5000if (this.PeekToken(1).Kind is not (SyntaxKind.CloseParenToken or SyntaxKind.CommaToken or SyntaxKind.EqualsToken)) 5018Debug.Assert(this.CurrentToken.Kind == SyntaxKind.FixedKeyword); 5036Debug.Assert(this.CurrentToken.Kind == SyntaxKind.EventKeyword); 5060if (explicitInterfaceOpt != null && this.CurrentToken.Kind is not SyntaxKind.OpenBraceToken and not SyntaxKind.SemicolonToken) 5085else if (identifierOrThisOpt.Kind != SyntaxKind.IdentifierToken) 5087Debug.Assert(identifierOrThisOpt.Kind == SyntaxKind.ThisKeyword); 5096Debug.Assert(identifier.Kind == SyntaxKind.IdentifierToken); 5112if (explicitInterfaceOpt != null && this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 5139if (this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 5158if (modifiers is [.., SyntaxToken { Kind: SyntaxKind.ScopedKeyword } scopedKeyword]) 5192if (this.CurrentToken.Kind == SyntaxKind.DotToken) 5208return this.CurrentToken.Kind == SyntaxKind.SemicolonToken; 5273if (this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 5277else if (stopOnCloseParen && this.CurrentToken.Kind == SyntaxKind.CloseParenToken) 5281else if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 5296if (flags.HasFlag(VariableFlags.ForStatement) && this.PeekToken(1).Kind != SyntaxKind.SemicolonToken) 5300this.PeekToken(2).Kind is SyntaxKind.CommaToken or SyntaxKind.EqualsToken or SyntaxKind.SemicolonToken; 5331static p => p.CurrentToken.Kind != SyntaxKind.CommaToken, 5332static (p, _) => p.CurrentToken.Kind == SyntaxKind.SemicolonToken, 5486var currentTokenKind = this.CurrentToken.Kind; 5497currentTokenKind = this.CurrentToken.Kind; 5547switch (this.CurrentToken.Kind) 5558var refKeyword = isLocalOrField && !isConst && this.CurrentToken.Kind == SyntaxKind.RefKeyword && !this.IsPossibleLambdaExpression(Precedence.Expression) 5616bool isOmitted = expression.Kind == SyntaxKind.OmittedArraySizeExpression; 5635if (this.CurrentToken.Kind == SyntaxKind.EqualsToken) 5653Debug.Assert(this.CurrentToken.Kind != SyntaxKind.EqualsToken); 5670if (parentType.Kind == SyntaxKind.ArrayType) 5693if (this.CurrentToken.Kind == SyntaxKind.EqualsToken) 5707this.CurrentToken.Kind == SyntaxKind.IdentifierToken && 5708this.PeekToken(1).Kind is SyntaxKind.IdentifierToken or SyntaxKind.CommaToken or SyntaxKind.EqualsToken or SyntaxKind.SemicolonToken or SyntaxKind.CloseParenToken or SyntaxKind.EndOfFileToken; 5732Debug.Assert(this.CurrentToken.Kind is SyntaxKind.OpenParenToken or SyntaxKind.LessThanToken); 5740(this.CurrentToken.Kind is SyntaxKind.OpenBraceToken or SyntaxKind.EqualsGreaterThanToken || 5751switch (this.CurrentToken.Kind) 5763return this.CurrentToken.Kind == SyntaxKind.OpenBraceToken 5770return this.CurrentToken.Kind == SyntaxKind.OpenBraceToken || this.IsPossibleExpression(); 5789Debug.Assert(this.CurrentToken.Kind == SyntaxKind.DelegateKeyword); 5822Debug.Assert(this.CurrentToken.Kind == SyntaxKind.EnumKeyword); 5837if (this.CurrentToken.Kind == SyntaxKind.ColonToken) 5853if (CurrentToken.Kind == SyntaxKind.SemicolonToken) 5898static p => p.CurrentToken.Kind is not SyntaxKind.CommaToken and not SyntaxKind.SemicolonToken && !p.IsPossibleEnumMemberDeclaration(), 5899static (p, closeKind) => p.CurrentToken.Kind == closeKind, 5914if (this.CurrentToken.Kind == SyntaxKind.EqualsToken) 5919this.CurrentToken.Kind is SyntaxKind.CommaToken or SyntaxKind.CloseBraceToken 5929return this.CurrentToken.Kind == SyntaxKind.OpenBracketToken || this.IsTrueIdentifier(); 5934return this.CurrentToken.Kind is SyntaxKind.DotToken or SyntaxKind.ColonColonToken; 5973if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 5993token.Kind == SyntaxKind.IdentifierToken && 6013var ctk = this.CurrentToken.Kind; 6071if (this.CurrentToken.Kind != SyntaxKind.LessThanToken) 6101static p => p.CurrentToken.Kind != SyntaxKind.CommaToken, 6102static (p, closeKind) => p.CurrentToken.Kind == closeKind, 6114if (this.CurrentToken.Kind is SyntaxKind.OpenBracketToken or SyntaxKind.InKeyword or SyntaxKind.OutKeyword) 6123if (this.CurrentToken.Kind == SyntaxKind.OpenBracketToken) 6142this.CurrentToken.Kind is SyntaxKind.InKeyword or SyntaxKind.OutKeyword ? EatToken() : null, 6159if (this.CurrentToken.Kind == SyntaxKind.LessThanToken) 6169Debug.Assert(this.CurrentToken.Kind == SyntaxKind.LessThanToken); 6194if (this.CurrentToken.Kind != SyntaxKind.LessThanToken) 6242Debug.Assert(greaterThanToken.Kind == SyntaxKind.GreaterThanToken); 6244switch (this.CurrentToken.Kind) 6278case SyntaxKind.GreaterThanToken when ((options & NameOptions.AfterIs) != 0) && this.PeekToken(1).Kind != SyntaxKind.GreaterThanToken: 6299(options & NameOptions.AfterTupleComma) != 0 && this.PeekToken(1).Kind is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken || 6300(options & NameOptions.FirstElementOfPossibleTupleLiteral) != 0 && this.PeekToken(1).Kind == SyntaxKind.CommaToken) 6326Debug.Assert(this.CurrentToken.Kind == SyntaxKind.LessThanToken); 6336while (this.CurrentToken.Kind == SyntaxKind.CommaToken) 6339Debug.Assert(start.Kind == SyntaxKind.LessThanToken); 6340Debug.Assert(greaterThanToken.Kind == SyntaxKind.GreaterThanToken); 6353if (this.CurrentToken.Kind == SyntaxKind.OpenBracketToken) 6359if (this.CurrentToken.Kind == SyntaxKind.GreaterThanToken) 6368if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 6403isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.Kind is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken; 6430isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.Kind is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken; 6452isDefinitelyTypeArgumentList = this.CurrentToken.Kind == SyntaxKind.CommaToken; 6470while (this.CurrentToken.Kind == SyntaxKind.CommaToken); 6472if (this.CurrentToken.Kind != SyntaxKind.GreaterThanToken) 6478if (this.CurrentToken.Kind is SyntaxKind.IdentifierToken) 6487if (lastScannedType is ScanTypeFlags.TupleType && this.CurrentToken.Kind is SyntaxKind.OpenParenToken) 6500isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.Kind is SyntaxKind.CloseParenToken; 6512Debug.Assert(this.CurrentToken.Kind == SyntaxKind.LessThanToken); 6522while (this.CurrentToken.Kind == SyntaxKind.CommaToken) 6539if (this.CurrentToken.Kind == SyntaxKind.GreaterThanToken) 6555if (this.CurrentToken.Kind is SyntaxKind.IdentifierToken && tokenBreaksTypeArgumentList(this.PeekToken(1))) 6564if (this.CurrentToken.Kind is SyntaxKind.IdentifierToken 6565&& this.PeekToken(1).Kind is SyntaxKind.CloseBracketToken) 6570if (this.CurrentToken.Kind == SyntaxKind.CommaToken || this.IsPossibleType()) 6595switch (token.Kind) 6640static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleType(), 6641static (p, _) => p.CurrentToken.Kind == SyntaxKind.GreaterThanToken, 6649if (this.CurrentToken.Kind == SyntaxKind.OpenBracketToken && this.PeekToken(1).Kind != SyntaxKind.CloseBracketToken) 6665var varianceToken = this.CurrentToken.Kind is SyntaxKind.InKeyword or SyntaxKind.OutKeyword 6692this.CurrentToken.Kind is not SyntaxKind.CommaToken and not SyntaxKind.GreaterThanToken && 6693this.PeekToken(1).Kind is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken) 6714=> this.CurrentToken.Kind == SyntaxKind.GreaterThanToken; 6718Debug.Assert(this.CurrentToken.Kind == SyntaxKind.LessThanToken); 6720while (this.PeekToken(n).Kind == SyntaxKind.CommaToken) 6723return this.PeekToken(n).Kind == SyntaxKind.GreaterThanToken; 6756if (this.CurrentToken.Kind == SyntaxKind.ThisKeyword) 6782if (separator != null && separator.Kind == SyntaxKind.ColonColonToken) 6801if (separator.Kind != SyntaxKind.DotToken) 6803separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 6807if (isEvent && this.CurrentToken.Kind is not SyntaxKind.OpenBraceToken and not SyntaxKind.SemicolonToken) 6878separator = this.CurrentToken.Kind == SyntaxKind.ColonColonToken 6891if (this.CurrentToken.Kind == SyntaxKind.ColonColonToken) 6920if (this.CurrentToken.Kind != SyntaxKind.IdentifierToken) 6956if (separator != null && separator.Kind == SyntaxKind.ColonColonToken) 6983if (separator.Kind != SyntaxKind.DotToken) 6985separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.Kind, separator.GetLeadingTriviaWidth(), separator.Width)); 6996return this.CurrentToken.Kind == SyntaxKind.ColonColonToken 7008if (this.PeekToken(1).Kind == SyntaxKind.ThisKeyword) 7025Debug.Assert(separator.Kind is SyntaxKind.DotToken or SyntaxKind.ColonColonToken); 7028switch (separator.Kind) 7034if (left.Kind != SyntaxKind.IdentifierName) 7126var tk = this.CurrentToken.Kind; 7147if (this.CurrentToken.Kind != SyntaxKind.IdentifierToken || !this.IsTrueIdentifier()) 7154if (this.CurrentToken.Kind == SyntaxKind.LessThanToken) 7169if (this.CurrentToken.Kind == SyntaxKind.RefKeyword) 7174if (this.CurrentToken.Kind == SyntaxKind.ReadOnlyKeyword) 7181if (this.CurrentToken.Kind is SyntaxKind.IdentifierToken or SyntaxKind.ColonColonToken) 7184if (this.CurrentToken.Kind is SyntaxKind.ColonColonToken) 7198Debug.Assert(this.CurrentToken.Kind is SyntaxKind.IdentifierToken); 7201isAlias = this.PeekToken(1).Kind == SyntaxKind.ColonColonToken; 7238else if (IsPredefinedType(this.CurrentToken.Kind)) 7244else if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 7249if (result == ScanTypeFlags.NotType || mode == ParseTypeMode.DefinitePattern && this.CurrentToken.Kind != SyntaxKind.OpenBracketToken) 7269switch (this.CurrentToken.Kind) 7272when lastTokenOfType.Kind is not SyntaxKind.QuestionToken // don't allow `Type??` 7310while (this.CurrentToken.Kind == SyntaxKind.CommaToken) 7315if (this.CurrentToken.Kind != SyntaxKind.CloseBracketToken) 7348if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 7366while (this.CurrentToken.Kind == SyntaxKind.CommaToken); 7368if (this.CurrentToken.Kind == SyntaxKind.CloseParenToken) 7390if (CurrentToken.Kind == SyntaxKind.IdentifierToken) 7398case var _ when peek1.Kind == SyntaxKind.OpenBracketToken: 7408if (CurrentToken.Kind == SyntaxKind.OpenBracketToken) 7425Debug.Assert(CurrentToken.Kind == SyntaxKind.CommaToken); 7448var validStartingToken = EatToken().Kind == SyntaxKind.LessThanToken; 7478if (!validStartingToken && CurrentToken.Kind == SyntaxKind.CloseParenToken) 7492isNotExpectedFunction: static p => p.CurrentToken.Kind != SyntaxKind.CommaToken, 7513if (this.CurrentToken.Kind == SyntaxKind.VoidKeyword && this.PeekToken(1).Kind != SyntaxKind.AsteriskToken) 7538if (this.CurrentToken.Kind == SyntaxKind.RefKeyword) 7542this.CurrentToken.Kind == SyntaxKind.ReadOnlyKeyword ? this.EatToken() : null, 7586switch (this.CurrentToken.Kind) 7634while (this.CurrentToken.Kind == SyntaxKind.OpenBracketToken); 7655Debug.Assert(this.CurrentToken.Kind == SyntaxKind.QuestionToken); 7661if (typeParsedSoFar.Kind is SyntaxKind.NullableType or SyntaxKind.PointerType) 7678if (mode == ParseTypeMode.AfterIs && this.CurrentToken.Kind is SyntaxKind.OpenBracketToken) 7688switch (this.PeekToken(1).Kind) 7705return this.CurrentToken.Kind != SyntaxKind.ColonToken; 7750var nextTokenKind = nextToken.Kind; 7795if (this.CurrentToken.Kind is SyntaxKind.OpenBracketToken) 7804this.CurrentToken.Kind is SyntaxKind.OpenParenToken or // ctor parameters 7818switch (this.PeekToken(i).Kind) 7839while (IsMakingProgress(ref lastTokenPosition) && this.CurrentToken.Kind != SyntaxKind.CloseBracketToken) 7841if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 7854if (this.CurrentToken.Kind != SyntaxKind.CloseBracketToken) 7895if (this.CurrentToken.Kind != SyntaxKind.CloseParenToken) 7899while (this.CurrentToken.Kind == SyntaxKind.CommaToken) 7934static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleExpression(), 7935static (p, _) => p.CurrentToken.Kind == SyntaxKind.CloseBracketToken, 7941if (IsPredefinedType(this.CurrentToken.Kind)) 7945if (token.Kind == SyntaxKind.VoidKeyword && this.CurrentToken.Kind != SyntaxKind.AsteriskToken) 7954if (IsTrueIdentifier() || this.CurrentToken.Kind == SyntaxKind.ColonColonToken) 7959if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 8025Debug.Assert(CurrentToken.Kind == SyntaxKind.CommaToken); 8036lessThanToken.IsMissing && CurrentToken.Kind == SyntaxKind.CloseParenToken 8051isNotExpectedFunction: static p => p.CurrentToken.Kind != SyntaxKind.CommaToken, 8059if (CurrentToken.Kind == SyntaxKind.IdentifierToken) 8075case var _ when peek1.Kind == SyntaxKind.OpenBracketToken: 8087if (CurrentToken.Kind == SyntaxKind.OpenBracketToken) 8105Debug.Assert(CurrentToken.Kind == SyntaxKind.CommaToken); 8121if (managedSpecifier.Kind == SyntaxKind.ManagedKeyword && unmanagedCallingConventions != null) 8135=> CurrentToken.Kind == SyntaxKind.DelegateKeyword && PeekToken(1).Kind == SyntaxKind.AsteriskToken; 8140=> token.Kind == SyntaxKind.LessThanToken || token.Kind == SyntaxKind.OpenParenToken; 8146while (this.CurrentToken.Kind == SyntaxKind.AsteriskToken) 8166if (this.CurrentToken.Kind != SyntaxKind.OpenBracketToken) 8180while (this.CurrentToken.Kind == SyntaxKind.OpenBracketToken) 8190var isCollectionExpression = this.CurrentToken.Kind 8203|| IsExpectedBinaryOperator(this.CurrentToken.Kind) 8204|| IsExpectedAssignmentOperator(this.CurrentToken.Kind) 8205|| (this.CurrentToken.ContextualKind is SyntaxKind.SwitchKeyword or SyntaxKind.WithKeyword && this.PeekToken(1).Kind is SyntaxKind.OpenBraceToken); 8209this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 8268switch (this.CurrentToken.Kind) 8400this.PeekToken(1).Kind == SyntaxKind.ForEachKeyword) 8406if (PeekToken(2).Kind == SyntaxKind.OpenParenToken) 8433=> PeekToken(1).Kind == SyntaxKind.OpenParenToken ? ParseUsingStatement(attributes) : ParseLocalDeclarationStatement(attributes); 8440=> CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword && PeekToken(1).Kind == SyntaxKind.UsingKeyword; 8444return this.PeekToken(1).Kind == SyntaxKind.ColonToken && this.IsTrueIdentifier(); 8449return this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken; 8455this.PeekToken(1).Kind is SyntaxKind.ReturnKeyword or SyntaxKind.BreakKeyword; 8464var tk = this.CurrentToken.Kind; 8468this.PeekToken(1).Kind is not SyntaxKind.DotToken // e.g. `int.Parse()` is an expression 8477Debug.Assert(PeekToken(1).Kind != SyntaxKind.OpenParenToken); 8483Debug.Assert(PeekToken(2).Kind != SyntaxKind.OpenParenToken); 8533if (token1.Kind == SyntaxKind.DotToken && 8536if (PeekToken(2).Kind == SyntaxKind.IdentifierToken && 8537PeekToken(3).Kind == SyntaxKind.IdentifierToken) 8552var token4Kind = PeekToken(4).Kind; 8572if (st == ScanTypeFlags.MustBeType && this.CurrentToken.Kind is not SyntaxKind.DotToken and not SyntaxKind.OpenParenToken) 8582if (this.CurrentToken.Kind != SyntaxKind.IdentifierToken) 8590return st == ScanTypeFlags.GenericTypeOrExpression && (IsDefiniteStatement() || IsTypeDeclarationStart() || IsAccessibilityModifier(CurrentToken.Kind)); 8611if (this.CurrentToken.Kind != SyntaxKind.UsingKeyword) 8616var tk = PeekToken(1).Kind; 8677if (this.CurrentToken.Kind is SyntaxKind.OpenBraceToken) 8683if (identifierOrThisOpt.Kind == SyntaxKind.ThisKeyword) 8698if (this.CurrentToken.Kind != SyntaxKind.IdentifierToken) 8705if (this.CurrentToken.Kind == SyntaxKind.EqualsToken) 8714return this.CurrentToken.Kind is SyntaxKind.CommaToken or SyntaxKind.SemicolonToken; 8732if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken || this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword) 8739if (this.CurrentToken.Kind == SyntaxKind.ColonToken) 8764if (parameter.Modifiers[i].Kind == SyntaxKind.ParamsKeyword) 8774if (parameter.Identifier.Kind == SyntaxKind.ArgListKeyword) 8779else if (parameter.Type.Kind == SyntaxKind.NullableType) 8799else if (parameter.Type.Kind == SyntaxKind.IdentifierName && 8831Debug.Assert(this.CurrentToken.Kind == SyntaxKind.DelegateKeyword); 8836if (nextToken.Kind == SyntaxKind.OpenBraceToken) 8842if (nextToken.Kind != SyntaxKind.OpenParenToken) 8859Debug.Assert(this.CurrentToken.Kind == SyntaxKind.OpenParenToken); 8868if (scanResult == ScanTypeFlags.TupleType && this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 8879Debug.Assert(this.CurrentToken.Kind == SyntaxKind.NewKeyword); 8886switch (nextToken.Kind) 8914if (SyntaxFacts.GetBaseTypeDeclarationKind(nextToken.Kind) != SyntaxKind.None) 8922if (SyntaxFacts.IsPredefinedType(PeekToken(2).Kind)) 8929if (IsTypeModifierOrTypeKeyword(PeekToken(2).Kind)) 8967switch (next.Kind) 9024CSharpSyntaxNode openBrace = isAccessorBody && this.CurrentToken.Kind != SyntaxKind.OpenBraceToken 9105while (this.CurrentToken.Kind is not SyntaxKind.CloseBraceToken and not SyntaxKind.EndOfFileToken 9137return this.CurrentToken.Kind == SyntaxKind.SemicolonToken 9149static (p, _) => p.CurrentToken.Kind == SyntaxKind.CloseBraceToken, 9157var tk = this.CurrentToken.Kind; 9194var tk = this.CurrentToken.Kind; 9239return this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.OpenBraceToken or SyntaxKind.SemicolonToken; 9265if (statement.Kind == SyntaxKind.ExpressionStatement && 9302Debug.Assert(this.CurrentToken.Kind is SyntaxKind.TryKeyword or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword); 9315Debug.Assert(this.CurrentToken.Kind is SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword); 9329if (this.CurrentToken.Kind == SyntaxKind.CatchKeyword) 9332while (this.CurrentToken.Kind == SyntaxKind.CatchKeyword) 9338if (this.CurrentToken.Kind == SyntaxKind.FinallyKeyword) 9373return this.CurrentToken.Kind is SyntaxKind.CloseBraceToken or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword; 9378Debug.Assert(this.CurrentToken.Kind == SyntaxKind.CatchKeyword); 9385if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 9437return this.CurrentToken.Kind is SyntaxKind.CloseParenToken 9446return this.CurrentToken.Kind is SyntaxKind.CloseParenToken 9454return this.CurrentToken.Kind is SyntaxKind.CloseBraceToken 9461Debug.Assert(this.CurrentToken.Kind is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword); 9463if (this.PeekToken(1).Kind == SyntaxKind.OpenParenToken) 9470SyntaxFacts.GetCheckStatement(keyword.Kind), 9478Debug.Assert(this.CurrentToken.Kind == SyntaxKind.DoKeyword); 9502return this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken; 9519Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ForKeyword); 9521if (this.EatToken().Kind == SyntaxKind.OpenParenToken && 9523this.EatToken().Kind == SyntaxKind.IdentifierToken && 9524this.EatToken().Kind == SyntaxKind.InKeyword) 9540Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ForKeyword); 9550var condition = this.CurrentToken.Kind is not SyntaxKind.SemicolonToken and not SyntaxKind.CommaToken 9559var incrementors = this.CurrentToken.Kind != SyntaxKind.CloseParenToken 9590if (this.PeekToken(1).Kind == SyntaxKind.RefKeyword) 9597isDeclaration = ScanType() != ScanTypeFlags.NotType && this.CurrentToken.Kind == SyntaxKind.IdentifierToken; 9601else if (this.CurrentToken.Kind == SyntaxKind.RefKeyword) 9618else if (this.CurrentToken.Kind != SyntaxKind.SemicolonToken) 9633=> this.CurrentToken.Kind is SyntaxKind.CommaToken 9641while (this.CurrentToken.Kind is SyntaxKind.SemicolonToken or SyntaxKind.CommaToken) 9665if (@this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken) 9669static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleExpression(), 9670static (p, closeKind) => p.CurrentToken.Kind == closeKind || p.CurrentToken.Kind == SyntaxKind.SemicolonToken, 9677return this.CurrentToken.Kind is SyntaxKind.SemicolonToken or SyntaxKind.CloseParenToken or SyntaxKind.OpenBraceToken; 9684Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ForEachKeyword || this.CurrentToken.Kind == SyntaxKind.ForKeyword); 9695if (this.CurrentToken.Kind == SyntaxKind.ForKeyword) 9721if (decl.designation.Kind != SyntaxKind.ParenthesizedVariableDesignation) 9725switch (decl.designation.Kind) 9733Debug.Assert(discard.Kind == SyntaxKind.UnderscoreToken); 9737throw ExceptionUtilities.UnexpectedValue(decl.designation.Kind); 9800if (ScanType() != ScanTypeFlags.NotType && this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 9805if (this.PeekToken(1).Kind == SyntaxKind.CommaToken) 9813if (this.PeekToken(1).Kind is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken) 9839if (!ScanDesignation(permitTupleDesignation && (typeIsVar || IsPredefinedType(lastTokenOfType.Kind)))) 9847return this.CurrentToken.Kind == SyntaxKind.CommaToken; 9849return this.CurrentToken.Kind is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken; 9867switch (this.PeekToken(1).Kind) 9883switch (variable.Kind) 9901Debug.Assert(this.CurrentToken.Kind == SyntaxKind.GotoKeyword); 9909if (this.CurrentToken.Kind is SyntaxKind.CaseKeyword or SyntaxKind.DefaultKeyword) 9912if (caseOrDefault.Kind == SyntaxKind.CaseKeyword) 9937if (this.CurrentToken.Kind != SyntaxKind.CloseParenToken) 9948if (this.CurrentToken.Kind == SyntaxKind.CloseParenToken && 9949this.PeekToken(1).Kind != SyntaxKind.EqualsGreaterThanToken && 9967Debug.Assert(this.CurrentToken.Kind == SyntaxKind.IfKeyword); 9980var elseKeyword = this.CurrentToken.Kind != SyntaxKind.ElseKeyword ? 9991if (this.CurrentToken.Kind != SyntaxKind.IfKeyword) 10032Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ElseKeyword); 10046return this.CurrentToken.Kind != SyntaxKind.ElseKeyword 10055Debug.Assert(this.CurrentToken.Kind == SyntaxKind.LockKeyword); 10067Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ReturnKeyword); 10071this.CurrentToken.Kind != SyntaxKind.SemicolonToken ? this.ParsePossibleRefExpression() : null, 10084if (this.CurrentToken.Kind == SyntaxKind.BreakKeyword) 10093if (this.CurrentToken.Kind == SyntaxKind.SemicolonToken) 10114Debug.Assert(this.CurrentToken.Kind is SyntaxKind.SwitchKeyword or SyntaxKind.CaseKeyword); 10139if (this.CurrentToken.Kind is SyntaxKind.CaseKeyword) 10153if (expression.Kind == SyntaxKind.ParenthesizedExpression) 10162else if (expression.Kind == SyntaxKind.TupleExpression) 10184return this.CurrentToken.Kind == SyntaxKind.CaseKeyword || 10185(this.CurrentToken.Kind == SyntaxKind.DefaultKeyword && this.PeekToken(1).Kind != SyntaxKind.OpenParenToken); 10199if (this.CurrentToken.Kind == SyntaxKind.CaseKeyword) 10203if (this.CurrentToken.Kind == SyntaxKind.ColonToken) 10218if (node.Kind == SyntaxKind.DiscardPattern) 10240Debug.Assert(this.CurrentToken.Kind == SyntaxKind.DefaultKeyword); 10262Debug.Assert(this.CurrentToken.Kind == SyntaxKind.ThrowKeyword); 10266this.CurrentToken.Kind != SyntaxKind.SemicolonToken ? this.ParseExpressionCore() : null, 10272Debug.Assert(this.CurrentToken.Kind == SyntaxKind.UnsafeKeyword); 10340if (this.CurrentToken.Kind != SyntaxKind.IdentifierToken) 10347switch (this.PeekToken(1).Kind) 10367if (this.CurrentToken.Kind == SyntaxKind.ColonToken && 10368declaration.Type.Kind == SyntaxKind.NullableType && 10369SyntaxFacts.IsName(((NullableTypeSyntax)declaration.Type).ElementType.Kind) && 10399bool condition1 = st == ScanTypeFlags.MustBeType && this.CurrentToken.Kind != SyntaxKind.DotToken; 10400bool condition2 = st != ScanTypeFlags.NotType && this.CurrentToken.Kind == SyntaxKind.IdentifierToken; 10401bool condition3 = st == ScanTypeFlags.NonGenericTypeOrExpression || this.PeekToken(1).Kind == SyntaxKind.EqualsToken; 10408Debug.Assert(this.CurrentToken.Kind == SyntaxKind.WhileKeyword); 10422Debug.Assert(this.IsTrueIdentifier() && this.PeekToken(1).Kind == SyntaxKind.ColonToken); 10443else if (this.CurrentToken.Kind == SyntaxKind.UsingKeyword) 10573return this.CurrentToken.Kind is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken; 10575else if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 10600if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 10608done = (this.CurrentToken.Kind == SyntaxKind.CloseParenToken); 10621if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 10732if (allowLocalFunctions && localFunction == null && type is PredefinedTypeSyntax { Keyword.Kind: SyntaxKind.VoidKeyword }) 10742switch (this.CurrentToken.Kind) 10792Debug.Assert(this.CurrentToken.Kind == SyntaxKind.IdentifierToken); 10798if (IsDeclarationModifier(this.CurrentToken.Kind) || 10799IsAdditionalLocalFunctionModifier(this.CurrentToken.Kind)) 10806if (ScanType() != ScanTypeFlags.NotType && this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 10890if (type.Kind == SyntaxKind.IdentifierName) 10993if (IsScript && this.CurrentToken.Kind == SyntaxKind.EndOfFileToken) 11037SyntaxKind tk = this.CurrentToken.Kind; 11336switch (next.Kind) 11387_ = GetPrecedence(result.Kind); 11402var tk = this.CurrentToken.Kind; 11498if (this.CurrentToken.Kind == SyntaxKind.QuestionToken && precedence <= Precedence.Conditional) 11529if (newPrecedence > GetPrecedence(leftOperand.Kind)) 11544leftOperand.Kind == SyntaxKind.IsPatternExpression ? ErrorCode.ERR_UnexpectedToken : ErrorCode.WRN_PrecedenceInversion, 11573if (IsExpectedAssignmentOperator(operatorToken.Kind)) 11576if (IsExpectedBinaryOperator(operatorToken.Kind)) 11596if (this.CurrentToken.Kind != SyntaxKind.ColonToken && 11614if (this.CurrentToken.Kind == SyntaxKind.ColonToken) 11626if (this.CurrentToken.Kind == SyntaxKind.EndOfFileToken && this.lexer.InterpolationFollowedByColon) 11660conditionalExpression.WhenTrue.GetFirstToken().Kind == SyntaxKind.OpenBracketToken) 11696&& this.PeekToken(1) is { Kind: SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken } token2 11699if (token2.Kind == SyntaxKind.GreaterThanToken) 11701if (this.PeekToken(2) is { Kind: SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken } token3 11705token1Kind = token3.Kind == SyntaxKind.GreaterThanToken 11728if (token1Kind == SyntaxKind.SwitchKeyword && this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken) 11731if (token1Kind == SyntaxKind.WithKeyword && this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken) 11782Debug.Assert(IsExpectedAssignmentOperator(operatorToken.Kind)); 11787if (operatorExpressionKind == SyntaxKind.SimpleAssignmentExpression && CurrentToken.Kind == SyntaxKind.RefKeyword && 11807if (this.CurrentToken.Kind != SyntaxKind.DotToken) 11811return nextToken.Kind == SyntaxKind.DotToken && NoTriviaBetween(this.CurrentToken, nextToken); 11815=> token1.Kind == SyntaxKind.DotToken && 11816token2.Kind == SyntaxKind.DotToken && 11829if (this.CurrentToken is { Kind: SyntaxKind.DotToken } token3 && 11846if (this.PeekToken(1) is not { Kind: SyntaxKind.DotToken } token4 || 11899var tk = this.CurrentToken.Kind; 11953else if (IsCurrentTokenFieldInKeywordContext() && PeekToken(1).Kind != SyntaxKind.ColonColonToken) 12032if (this.CurrentToken.Kind != SyntaxKind.DotToken || tk == SyntaxKind.VoidKeyword) 12082switch (this.CurrentToken.Kind) 12094expr = _syntaxFactory.PostfixUnaryExpression(SyntaxFacts.GetPostfixUnaryExpression(this.CurrentToken.Kind), expr, this.EatToken()); 12098if (this.PeekToken(1).Kind == SyntaxKind.IdentifierToken) 12130this.PeekToken(1).Kind == SyntaxKind.IdentifierToken && 12163Debug.Assert(this.CurrentToken.Kind == SyntaxKind.BaseKeyword); 12177if (precedence > Precedence.Assignment || !(this.CurrentToken.IsIdentifierVar() || IsPredefinedType(this.CurrentToken.Kind))) 12186this.CurrentToken.Kind == SyntaxKind.OpenParenToken && ScanDesignator() && 12187this.CurrentToken.Kind == SyntaxKind.EqualsToken; 12192switch (this.CurrentToken.Kind) 12211switch (this.CurrentToken.Kind) 12231while (this.PeekToken(tokenIndex).Kind == SyntaxKind.StaticKeyword || 12237return this.PeekToken(tokenIndex).Kind == SyntaxKind.DelegateKeyword && 12238this.PeekToken(tokenIndex + 1).Kind != SyntaxKind.AsteriskToken; 12285if (this.CurrentToken.Kind == SyntaxKind.QuestionToken) 12288var nextTokenKind = nextToken.Kind; 12324return this.CurrentToken.Kind != SyntaxKind.ColonToken; 12337while (this.CurrentToken.Kind == SyntaxKind.ExclamationToken) 12373=> this.CurrentToken.Kind switch 12432openToken = this.CurrentToken.Kind is SyntaxKind.OpenParenToken or SyntaxKind.OpenBracketToken 12439if (this.CurrentToken.Kind != closeKind && this.CurrentToken.Kind != SyntaxKind.SemicolonToken) 12467else if (isIndexer && this.CurrentToken.Kind == closeKind) 12483closeToken = this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken 12492if (@this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken) 12496static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleArgumentExpression(), 12497static (p, closeKind) => p.CurrentToken.Kind == closeKind || p.CurrentToken.Kind == SyntaxKind.SemicolonToken, 12504return this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken; 12509return IsValidArgumentRefKindKeyword(this.CurrentToken.Kind) || this.IsPossibleExpression(); 12527var nameColon = this.CurrentToken.Kind == SyntaxKind.IdentifierToken && this.PeekToken(1).Kind == SyntaxKind.ColonToken 12534if (IsValidArgumentRefKindKeyword(this.CurrentToken.Kind) && 12536!(this.CurrentToken.Kind == SyntaxKind.RefKeyword && 12544if (isIndexer && this.CurrentToken.Kind is SyntaxKind.CommaToken or SyntaxKind.CloseBracketToken) 12548else if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 12560expression = refKindKeyword?.Kind == SyntaxKind.OutKeyword 12580if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 12624Debug.Assert(checkedOrUnchecked.Kind is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword); 12625var kind = checkedOrUnchecked.Kind == SyntaxKind.CheckedKeyword ? SyntaxKind.CheckedExpression : SyntaxKind.UncheckedExpression; 12658Debug.Assert(CurrentToken.Kind == SyntaxKind.OpenParenToken); 12676token.Kind is SyntaxKind.CommaToken || 12682return token.Kind == SyntaxKind.CloseParenToken && 12683this.PeekToken(index).Kind == SyntaxKind.EqualsGreaterThanToken; 12689Debug.Assert(CurrentToken.Kind == SyntaxKind.OpenParenToken); 12741if (this.CurrentToken.Kind == SyntaxKind.OpenBracketToken) 12749switch (this.CurrentToken.Kind) 12755return this.PeekToken(1).Kind == SyntaxKind.EqualsGreaterThanToken; 12765Debug.Assert(this.CurrentToken.Kind == SyntaxKind.OpenParenToken); 12793if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 12801if (expression.Kind == SyntaxKind.IdentifierName && this.CurrentToken.Kind == SyntaxKind.ColonToken) 12822while (this.CurrentToken.Kind == SyntaxKind.CommaToken) 12827var argument = expression.Kind != SyntaxKind.IdentifierName || this.CurrentToken.Kind != SyntaxKind.ColonToken 12855if (this.CurrentToken.Kind != SyntaxKind.OpenParenToken) 12868if (this.CurrentToken.Kind != SyntaxKind.CloseParenToken) 12875if (forPattern && this.CurrentToken.Kind == SyntaxKind.IdentifierToken) 12909return !forPattern || this.CurrentToken.Kind switch 12934return this.CurrentToken.Kind == SyntaxKind.OpenBracketToken || CanFollowCast(this.CurrentToken.Kind); 12940if (this.CurrentToken.Kind == SyntaxKind.OpenBracketToken && 12941this.PeekToken(1).Kind == SyntaxKind.CloseBracketToken) 12949return CanFollowCast(this.CurrentToken.Kind); 13001if (token1.Kind == SyntaxKind.EqualsGreaterThanToken) 13009if (CurrentToken.Kind == SyntaxKind.OpenBracketToken) 13025if (this.CurrentToken.Kind == SyntaxKind.StaticKeyword) 13031this.PeekToken(1).Kind == SyntaxKind.StaticKeyword) 13044if (this.CurrentToken.Kind == SyntaxKind.EqualsGreaterThanToken) 13054if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 13062if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken && 13063this.PeekToken(1).Kind == SyntaxKind.EqualsGreaterThanToken) 13082if (st == ScanTypeFlags.NotType || this.CurrentToken.Kind != SyntaxKind.OpenParenToken) 13099if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken && 13100this.PeekToken(1).Kind == SyntaxKind.EqualsGreaterThanToken) 13107if (this.CurrentToken.Kind != SyntaxKind.OpenParenToken) 13179Debug.Assert(this.CurrentToken.Kind == SyntaxKind.NewKeyword); 13198Debug.Assert(this.CurrentToken.Kind == SyntaxKind.OpenBracketToken); 13219static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleCollectionElement(), 13220static (p, closeKind) => p.CurrentToken.Kind == closeKind, 13235this.PeekToken(1).Kind == SyntaxKind.OpenParenToken) 13252return this.CurrentToken.Kind == SyntaxKind.NewKeyword && this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken; 13260Debug.Assert(this.CurrentToken.Kind == SyntaxKind.OpenBraceToken); 13297return this.CurrentToken.Kind == SyntaxKind.OpenBraceToken; 13302return IsTrueIdentifier() && this.PeekToken(1).Kind == SyntaxKind.EqualsToken; 13307return IsTrueIdentifier() && this.PeekToken(1).Kind is SyntaxKind.EqualsToken or SyntaxKind.ColonToken; 13312return this.CurrentToken.Kind == SyntaxKind.OpenBracketToken; 13325if (type.Kind == SyntaxKind.ArrayType) 13328if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken) 13338if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 13343if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken) 13365if (this.CurrentToken.Kind != SyntaxKind.OpenParenToken) 13376switch (this.CurrentToken.Kind) 13449Kind: SyntaxKind.SimpleAssignmentExpression, 13450Left.Kind: SyntaxKind.IdentifierName or SyntaxKind.ImplicitElementAccess, 13495static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleExpression(), 13496static (p, closeKind) => p.CurrentToken.Kind == closeKind, 13505this.CurrentToken.Kind == SyntaxKind.ColonToken 13508this.CurrentToken.Kind == SyntaxKind.OpenBraceToken 13519this.CurrentToken.Kind == SyntaxKind.OpenBraceToken 13547Debug.Assert(this.CurrentToken.Kind is SyntaxKind.NewKeyword or SyntaxKind.StackAllocKeyword); 13548return this.PeekToken(1).Kind == SyntaxKind.OpenBracketToken; 13574if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 13614static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleVariableInitializer(), 13615static (p, closeKind) => p.CurrentToken.Kind == closeKind, 13641if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 13663this.CurrentToken.Kind == SyntaxKind.OpenBraceToken ? this.ParseArrayInitializer() : null); 13680if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 13693if (this.CurrentToken.Kind != SyntaxKind.OpenBraceToken) 13724if (this.CurrentToken.Kind == SyntaxKind.StaticKeyword) 13747switch (this.PeekToken(1).Kind) 13770if (this.CurrentToken.Kind == SyntaxKind.ColonToken && 13798if (CurrentToken.Kind != SyntaxKind.OpenParenToken) 13805if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 13818var identifier = (this.CurrentToken.Kind != SyntaxKind.IdentifierToken && this.PeekToken(1).Kind == SyntaxKind.EqualsGreaterThanToken) 13835=> CurrentToken.Kind == SyntaxKind.OpenBraceToken 13866static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleLambdaParameter(), 13867static (p, closeKind) => p.CurrentToken.Kind == closeKind, 13874switch (this.CurrentToken.Kind) 13892return IsPredefinedType(this.CurrentToken.Kind); 13930if (IsPredefinedType(this.CurrentToken.Kind)) 13936if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken) 13958if (peek1.Kind 14023var pk1 = this.PeekToken(1).Kind; 14031var pk2 = this.PeekToken(2).Kind; 14068return this.ScanType() != ScanTypeFlags.NotType && this.CurrentToken.Kind is SyntaxKind.IdentifierToken or SyntaxKind.InKeyword; 14135var type = this.PeekToken(1).Kind != SyntaxKind.InKeyword 14141(this.CurrentToken.Kind != SyntaxKind.IdentifierToken || SyntaxFacts.IsQueryContextualKeyword(this.CurrentToken.ContextualKind))) 14168type: this.PeekToken(1).Kind != SyntaxKind.InKeyword 14189SyntaxFacts.IsReservedKeyword(this.CurrentToken.Kind) && this.PeekToken(1).Kind == SyntaxKind.EqualsToken 14214while (this.CurrentToken.Kind == SyntaxKind.CommaToken) 14216if (this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken) 14220else if (this.CurrentToken.Kind == SyntaxKind.CommaToken) 14241static p => p.CurrentToken.Kind != SyntaxKind.CommaToken, 14242static (p, _) => p.CurrentToken.Kind == SyntaxKind.CloseParenToken 14243|| p.CurrentToken.Kind == SyntaxKind.SemicolonToken 14258if (direction.Kind == SyntaxKind.DescendingKeyword) 14418if (requireOneElement || this.CurrentToken.Kind != closeTokenKind) 14435if (this.CurrentToken.Kind == closeTokenKind) 14446nodes.AddSeparator(this.CurrentToken.Kind == SyntaxKind.SemicolonToken 14453if (this.CurrentToken.Kind == closeTokenKind) 14488if (this.CurrentToken.Kind == separatorTokenKind) 14493if (allowSemicolonAsSeparator && this.CurrentToken.Kind is SyntaxKind.SemicolonToken) 14582if (this.CurrentToken.Kind == SyntaxKind.EndOfFileToken) return node; 14584while (this.CurrentToken.Kind != SyntaxKind.EndOfFileToken)
Parser\LanguageParser_InterpolatedString.cs (6)
20var expressionKind = SyntaxFacts.GetLiteralExpression(originalToken.Kind); 34Debug.Assert(interpolatedString.StringStartToken.Kind is SyntaxKind.InterpolatedSingleLineRawStringStartToken or SyntaxKind.InterpolatedMultiLineRawStringStartToken); 44.Literal(originalToken.GetLeadingTrivia(), originalToken.Text, originalToken.Kind, getTokenValue(), originalToken.GetTrailingTrivia()) 112Debug.Assert(this.CurrentToken.Kind == SyntaxKind.InterpolatedStringToken); 537if (this.CurrentToken.Kind != SyntaxKind.CommaToken) 595Debug.Assert(token.Kind == SyntaxKind.StringLiteralToken);
Parser\LanguageParser_Patterns.cs (32)
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) 166else if (this.CurrentToken.Kind == SyntaxKind.EqualsEqualsToken) 172else if (this.CurrentToken.Kind == SyntaxKind.ExclamationEqualsToken) 190var tk = this.CurrentToken.Kind; 207switch (CurrentToken.Kind) 259switch (this.CurrentToken.Kind) 286if (type?.Kind == SyntaxKind.IdentifierName) 291(this.CurrentToken.Kind == SyntaxKind.OpenParenToken || this.IsValidPatternDesignation(inSwitchArmPattern))) 300if (this.CurrentToken.Kind == SyntaxKind.OpenParenToken && (type != null || !looksLikeCast())) 379this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken 383if (this.CurrentToken.Kind == SyntaxKind.OpenBraceToken) 409if (CurrentToken.Kind == SyntaxKind.IdentifierToken) 419var tk = PeekToken(1).Kind; 502if (this.CurrentToken.Kind != SyntaxKind.OpenParenToken) 534if (this.CurrentToken.Kind == SyntaxKind.ColonToken && ConvertPatternToExpressionIfPossible(pattern, permitTypeArguments: true) is ExpressionSyntax expr) 555this.CurrentToken.Kind is 568if (@this.CurrentToken.Kind is SyntaxKind.CloseParenToken or SyntaxKind.CloseBraceToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken) 575if (@this._termState.HasFlag(TerminatorState.IsExpressionOrPatternInCaseLabelOfSwitchStatement) && @this.CurrentToken.Kind is SyntaxKind.ColonToken) 584if (@this._termState.HasFlag(TerminatorState.IsPatternInSwitchExpressionArm) && @this.CurrentToken.Kind is SyntaxKind.EqualsGreaterThanToken or SyntaxKind.ColonToken) 588static p => p.CurrentToken.Kind != SyntaxKind.CommaToken && !p.IsPossibleSubpatternElement(), 589static (p, closeKind) => p.CurrentToken.Kind == closeKind || p.CurrentToken.Kind == SyntaxKind.SemicolonToken, 609while (this.CurrentToken.Kind != SyntaxKind.CloseBraceToken) 615var errantCase = this.CurrentToken.Kind == SyntaxKind.CaseKeyword 634this.CurrentToken.Kind == SyntaxKind.ColonToken 640if (errantCase is null && switchExpressionCase.FullWidth == 0 && this.CurrentToken.Kind != SyntaxKind.CommaToken) 647if (this.CurrentToken.Kind != SyntaxKind.CloseBraceToken) 649var commaToken = this.CurrentToken.Kind == SyntaxKind.SemicolonToken
Parser\Lexer.cs (3)
2368if (directive.Kind == SyntaxKind.EndIfDirectiveTrivia || (branching != null && branching.BranchTaken)) 2372else if (directive.Kind == SyntaxKind.IfDirectiveTrivia) 2727else if (tr.Kind == SyntaxKind.EndOfLineTrivia)
Parser\SyntaxParser.cs (12)
151if (token.Kind == SyntaxKind.EndOfFileToken) 498=> this.CurrentToken.Kind == kind ? this.EatToken() : null; 526if (ct.Kind == kind) 533return CreateMissingToken(kind, this.CurrentToken.Kind); 542if (ct.Kind == expected) 548var replacement = CreateMissingToken(expected, this.CurrentToken.Kind); 578if (this.CurrentToken.Kind != kind) 592if (this.CurrentToken.Kind != kind) 613if (token.Kind != kind) 616token = WithAdditionalDiagnostics(token, this.GetExpectedTokenError(kind, token.Kind, offset, width)); 1106if (token.Kind != token.ContextualKind) 1127var identifier = SyntaxToken.Identifier(token.Kind, token.LeadingTrivia.Node, token.Text, token.ValueText, token.TrailingTrivia.Node);
Syntax.xml.Internal.Generated.cs (1448)
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); 6755=> new WithElementSyntax(this.Kind, this.withKeyword, this.argumentList, diagnostics, GetAnnotations()); 6758=> new WithElementSyntax(this.Kind, this.withKeyword, this.argumentList, GetDiagnostics(), annotations); 6857=> new QueryExpressionSyntax(this.Kind, this.fromClause, this.body, diagnostics, GetAnnotations()); 6860=> new QueryExpressionSyntax(this.Kind, this.fromClause, this.body, GetDiagnostics(), annotations); 6960=> new QueryBodySyntax(this.Kind, this.clauses, this.selectOrGroup, this.continuation, diagnostics, GetAnnotations()); 6963=> new QueryBodySyntax(this.Kind, this.clauses, this.selectOrGroup, this.continuation, GetDiagnostics(), annotations); 7073=> new FromClauseSyntax(this.Kind, this.fromKeyword, this.type, this.identifier, this.inKeyword, this.expression, diagnostics, GetAnnotations()); 7076=> new FromClauseSyntax(this.Kind, this.fromKeyword, this.type, this.identifier, this.inKeyword, this.expression, GetDiagnostics(), annotations); 7168=> new LetClauseSyntax(this.Kind, this.letKeyword, this.identifier, this.equalsToken, this.expression, diagnostics, GetAnnotations()); 7171=> new LetClauseSyntax(this.Kind, this.letKeyword, this.identifier, this.equalsToken, this.expression, GetDiagnostics(), annotations); 7335=> new JoinClauseSyntax(this.Kind, this.joinKeyword, this.type, this.identifier, this.inKeyword, this.inExpression, this.onKeyword, this.leftExpression, this.equalsKeyword, this.rightExpression, this.into, diagnostics, GetAnnotations()); 7338=> new JoinClauseSyntax(this.Kind, this.joinKeyword, this.type, this.identifier, this.inKeyword, this.inExpression, this.onKeyword, this.leftExpression, this.equalsKeyword, this.rightExpression, this.into, GetDiagnostics(), annotations); 7412=> new JoinIntoClauseSyntax(this.Kind, this.intoKeyword, this.identifier, diagnostics, GetAnnotations()); 7415=> new JoinIntoClauseSyntax(this.Kind, this.intoKeyword, this.identifier, GetDiagnostics(), annotations); 7488=> new WhereClauseSyntax(this.Kind, this.whereKeyword, this.condition, diagnostics, GetAnnotations()); 7491=> new WhereClauseSyntax(this.Kind, this.whereKeyword, this.condition, GetDiagnostics(), annotations); 7573=> new OrderByClauseSyntax(this.Kind, this.orderByKeyword, this.orderings, diagnostics, GetAnnotations()); 7576=> new OrderByClauseSyntax(this.Kind, this.orderByKeyword, this.orderings, GetDiagnostics(), annotations); 7644var newNode = SyntaxFactory.Ordering(this.Kind, expression, ascendingOrDescendingKeyword); 7658=> new OrderingSyntax(this.Kind, this.expression, this.ascendingOrDescendingKeyword, diagnostics, GetAnnotations()); 7661=> new OrderingSyntax(this.Kind, this.expression, this.ascendingOrDescendingKeyword, GetDiagnostics(), annotations); 7734=> new SelectClauseSyntax(this.Kind, this.selectKeyword, this.expression, diagnostics, GetAnnotations()); 7737=> new SelectClauseSyntax(this.Kind, this.selectKeyword, this.expression, GetDiagnostics(), annotations); 7828=> new GroupClauseSyntax(this.Kind, this.groupKeyword, this.groupExpression, this.byKeyword, this.byExpression, diagnostics, GetAnnotations()); 7831=> new GroupClauseSyntax(this.Kind, this.groupKeyword, this.groupExpression, this.byKeyword, this.byExpression, GetDiagnostics(), annotations); 7914=> new QueryContinuationSyntax(this.Kind, this.intoKeyword, this.identifier, this.body, diagnostics, GetAnnotations()); 7917=> new QueryContinuationSyntax(this.Kind, this.intoKeyword, this.identifier, this.body, GetDiagnostics(), annotations); 7979=> new OmittedArraySizeExpressionSyntax(this.Kind, this.omittedArraySizeExpressionToken, diagnostics, GetAnnotations()); 7982=> new OmittedArraySizeExpressionSyntax(this.Kind, this.omittedArraySizeExpressionToken, GetDiagnostics(), annotations); 8076=> new InterpolatedStringExpressionSyntax(this.Kind, this.stringStartToken, this.contents, this.stringEndToken, diagnostics, GetAnnotations()); 8079=> new InterpolatedStringExpressionSyntax(this.Kind, this.stringStartToken, this.contents, this.stringEndToken, GetDiagnostics(), annotations); 8164=> new IsPatternExpressionSyntax(this.Kind, this.expression, this.isKeyword, this.pattern, diagnostics, GetAnnotations()); 8167=> new IsPatternExpressionSyntax(this.Kind, this.expression, this.isKeyword, this.pattern, GetDiagnostics(), annotations); 8240=> new ThrowExpressionSyntax(this.Kind, this.throwKeyword, this.expression, diagnostics, GetAnnotations()); 8243=> new ThrowExpressionSyntax(this.Kind, this.throwKeyword, this.expression, GetDiagnostics(), annotations); 8316=> new WhenClauseSyntax(this.Kind, this.whenKeyword, this.condition, diagnostics, GetAnnotations()); 8319=> new WhenClauseSyntax(this.Kind, this.whenKeyword, this.condition, GetDiagnostics(), annotations); 8392=> new DiscardPatternSyntax(this.Kind, this.underscoreToken, diagnostics, GetAnnotations()); 8395=> new DiscardPatternSyntax(this.Kind, this.underscoreToken, GetDiagnostics(), annotations); 8468=> new DeclarationPatternSyntax(this.Kind, this.type, this.designation, diagnostics, GetAnnotations()); 8471=> new DeclarationPatternSyntax(this.Kind, this.type, this.designation, GetDiagnostics(), annotations); 8544=> new VarPatternSyntax(this.Kind, this.varKeyword, this.designation, diagnostics, GetAnnotations()); 8547=> new VarPatternSyntax(this.Kind, this.varKeyword, this.designation, GetDiagnostics(), annotations); 8674=> new RecursivePatternSyntax(this.Kind, this.type, this.positionalPatternClause, this.propertyPatternClause, this.designation, diagnostics, GetAnnotations()); 8677=> new RecursivePatternSyntax(this.Kind, this.type, this.positionalPatternClause, this.propertyPatternClause, this.designation, GetDiagnostics(), annotations); 8768=> new PositionalPatternClauseSyntax(this.Kind, this.openParenToken, this.subpatterns, this.closeParenToken, diagnostics, GetAnnotations()); 8771=> new PositionalPatternClauseSyntax(this.Kind, this.openParenToken, this.subpatterns, this.closeParenToken, GetDiagnostics(), annotations); 8862=> new PropertyPatternClauseSyntax(this.Kind, this.openBraceToken, this.subpatterns, this.closeBraceToken, diagnostics, GetAnnotations()); 8865=> new PropertyPatternClauseSyntax(this.Kind, this.openBraceToken, this.subpatterns, this.closeBraceToken, GetDiagnostics(), annotations); 8947=> new SubpatternSyntax(this.Kind, this.expressionColon, this.pattern, diagnostics, GetAnnotations()); 8950=> new SubpatternSyntax(this.Kind, this.expressionColon, this.pattern, GetDiagnostics(), annotations); 9011=> new ConstantPatternSyntax(this.Kind, this.expression, diagnostics, GetAnnotations()); 9014=> new ConstantPatternSyntax(this.Kind, this.expression, GetDiagnostics(), annotations); 9096=> new ParenthesizedPatternSyntax(this.Kind, this.openParenToken, this.pattern, this.closeParenToken, diagnostics, GetAnnotations()); 9099=> new ParenthesizedPatternSyntax(this.Kind, this.openParenToken, this.pattern, this.closeParenToken, GetDiagnostics(), annotations); 9173=> new RelationalPatternSyntax(this.Kind, this.operatorToken, this.expression, diagnostics, GetAnnotations()); 9176=> new RelationalPatternSyntax(this.Kind, this.operatorToken, this.expression, GetDiagnostics(), annotations); 9237=> new TypePatternSyntax(this.Kind, this.type, diagnostics, GetAnnotations()); 9240=> new TypePatternSyntax(this.Kind, this.type, GetDiagnostics(), annotations); 9308var newNode = SyntaxFactory.BinaryPattern(this.Kind, left, operatorToken, right); 9322=> new BinaryPatternSyntax(this.Kind, this.left, this.operatorToken, this.right, diagnostics, GetAnnotations()); 9325=> new BinaryPatternSyntax(this.Kind, this.left, this.operatorToken, this.right, GetDiagnostics(), annotations); 9398=> new UnaryPatternSyntax(this.Kind, this.operatorToken, this.pattern, diagnostics, GetAnnotations()); 9401=> new UnaryPatternSyntax(this.Kind, this.operatorToken, this.pattern, GetDiagnostics(), annotations); 9510=> new ListPatternSyntax(this.Kind, this.openBracketToken, this.patterns, this.closeBracketToken, this.designation, diagnostics, GetAnnotations()); 9513=> new ListPatternSyntax(this.Kind, this.openBracketToken, this.patterns, this.closeBracketToken, this.designation, GetDiagnostics(), annotations); 9595=> new SlicePatternSyntax(this.Kind, this.dotDotToken, this.pattern, diagnostics, GetAnnotations()); 9598=> new SlicePatternSyntax(this.Kind, this.dotDotToken, this.pattern, GetDiagnostics(), annotations); 9672=> new InterpolatedStringTextSyntax(this.Kind, this.textToken, diagnostics, GetAnnotations()); 9675=> new InterpolatedStringTextSyntax(this.Kind, this.textToken, GetDiagnostics(), annotations); 9797=> new InterpolationSyntax(this.Kind, this.openBraceToken, this.expression, this.alignmentClause, this.formatClause, this.closeBraceToken, diagnostics, GetAnnotations()); 9800=> new InterpolationSyntax(this.Kind, this.openBraceToken, this.expression, this.alignmentClause, this.formatClause, this.closeBraceToken, GetDiagnostics(), annotations); 9873=> new InterpolationAlignmentClauseSyntax(this.Kind, this.commaToken, this.value, diagnostics, GetAnnotations()); 9876=> new InterpolationAlignmentClauseSyntax(this.Kind, this.commaToken, this.value, GetDiagnostics(), annotations); 9950=> new InterpolationFormatClauseSyntax(this.Kind, this.colonToken, this.formatStringToken, diagnostics, GetAnnotations()); 9953=> new InterpolationFormatClauseSyntax(this.Kind, this.colonToken, this.formatStringToken, GetDiagnostics(), annotations); 10054=> new GlobalStatementSyntax(this.Kind, this.attributeLists, this.modifiers, this.statement, diagnostics, GetAnnotations()); 10057=> new GlobalStatementSyntax(this.Kind, this.attributeLists, this.modifiers, this.statement, GetDiagnostics(), annotations); 10182=> new BlockSyntax(this.Kind, this.attributeLists, this.openBraceToken, this.statements, this.closeBraceToken, diagnostics, GetAnnotations()); 10185=> new BlockSyntax(this.Kind, this.attributeLists, this.openBraceToken, this.statements, this.closeBraceToken, GetDiagnostics(), annotations); 10395=> new LocalFunctionStatementSyntax(this.Kind, this.attributeLists, this.modifiers, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations()); 10398=> new LocalFunctionStatementSyntax(this.Kind, this.attributeLists, this.modifiers, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations); 10544=> new LocalDeclarationStatementSyntax(this.Kind, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.modifiers, this.declaration, this.semicolonToken, diagnostics, GetAnnotations()); 10547=> new LocalDeclarationStatementSyntax(this.Kind, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.modifiers, this.declaration, this.semicolonToken, GetDiagnostics(), annotations); 10629=> new VariableDeclarationSyntax(this.Kind, this.type, this.variables, diagnostics, GetAnnotations()); 10632=> new VariableDeclarationSyntax(this.Kind, this.type, this.variables, GetDiagnostics(), annotations); 10733=> new VariableDeclaratorSyntax(this.Kind, this.identifier, this.argumentList, this.initializer, diagnostics, GetAnnotations()); 10736=> new VariableDeclaratorSyntax(this.Kind, this.identifier, this.argumentList, this.initializer, GetDiagnostics(), annotations); 10809=> new EqualsValueClauseSyntax(this.Kind, this.equalsToken, this.value, diagnostics, GetAnnotations()); 10812=> new EqualsValueClauseSyntax(this.Kind, this.equalsToken, this.value, GetDiagnostics(), annotations); 10885=> new SingleVariableDesignationSyntax(this.Kind, this.identifier, diagnostics, GetAnnotations()); 10888=> new SingleVariableDesignationSyntax(this.Kind, this.identifier, GetDiagnostics(), annotations); 10948=> new DiscardDesignationSyntax(this.Kind, this.underscoreToken, diagnostics, GetAnnotations()); 10951=> new DiscardDesignationSyntax(this.Kind, this.underscoreToken, GetDiagnostics(), annotations); 11042=> new ParenthesizedVariableDesignationSyntax(this.Kind, this.openParenToken, this.variables, this.closeParenToken, diagnostics, GetAnnotations()); 11045=> new ParenthesizedVariableDesignationSyntax(this.Kind, this.openParenToken, this.variables, this.closeParenToken, GetDiagnostics(), annotations); 11136=> new ExpressionStatementSyntax(this.Kind, this.attributeLists, this.expression, this.semicolonToken, diagnostics, GetAnnotations()); 11139=> new ExpressionStatementSyntax(this.Kind, this.attributeLists, this.expression, this.semicolonToken, GetDiagnostics(), annotations); 11221=> new EmptyStatementSyntax(this.Kind, this.attributeLists, this.semicolonToken, diagnostics, GetAnnotations()); 11224=> new EmptyStatementSyntax(this.Kind, this.attributeLists, this.semicolonToken, GetDiagnostics(), annotations); 11327=> new LabeledStatementSyntax(this.Kind, this.attributeLists, this.identifier, this.colonToken, this.statement, diagnostics, GetAnnotations()); 11330=> new LabeledStatementSyntax(this.Kind, this.attributeLists, this.identifier, this.colonToken, this.statement, GetDiagnostics(), annotations); 11458var newNode = SyntaxFactory.GotoStatement(this.Kind, attributeLists, gotoKeyword, caseOrDefaultKeyword, expression, semicolonToken); 11472=> new GotoStatementSyntax(this.Kind, this.attributeLists, this.gotoKeyword, this.caseOrDefaultKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations()); 11475=> new GotoStatementSyntax(this.Kind, this.attributeLists, this.gotoKeyword, this.caseOrDefaultKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations); 11566=> new BreakStatementSyntax(this.Kind, this.attributeLists, this.breakKeyword, this.semicolonToken, diagnostics, GetAnnotations()); 11569=> new BreakStatementSyntax(this.Kind, this.attributeLists, this.breakKeyword, this.semicolonToken, GetDiagnostics(), annotations); 11660=> new ContinueStatementSyntax(this.Kind, this.attributeLists, this.continueKeyword, this.semicolonToken, diagnostics, GetAnnotations()); 11663=> new ContinueStatementSyntax(this.Kind, this.attributeLists, this.continueKeyword, this.semicolonToken, GetDiagnostics(), annotations); 11772=> new ReturnStatementSyntax(this.Kind, this.attributeLists, this.returnKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations()); 11775=> new ReturnStatementSyntax(this.Kind, this.attributeLists, this.returnKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations); 11884=> new ThrowStatementSyntax(this.Kind, this.attributeLists, this.throwKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations()); 11887=> new ThrowStatementSyntax(this.Kind, this.attributeLists, this.throwKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations); 11991var newNode = SyntaxFactory.YieldStatement(this.Kind, attributeLists, yieldKeyword, returnOrBreakKeyword, expression, semicolonToken); 12005=> new YieldStatementSyntax(this.Kind, this.attributeLists, this.yieldKeyword, this.returnOrBreakKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations()); 12008=> new YieldStatementSyntax(this.Kind, this.attributeLists, this.yieldKeyword, this.returnOrBreakKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations); 12126=> new WhileStatementSyntax(this.Kind, this.attributeLists, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, diagnostics, GetAnnotations()); 12129=> new WhileStatementSyntax(this.Kind, this.attributeLists, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, GetDiagnostics(), annotations); 12265=> new DoStatementSyntax(this.Kind, this.attributeLists, this.doKeyword, this.statement, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.semicolonToken, diagnostics, GetAnnotations()); 12268=> new DoStatementSyntax(this.Kind, this.attributeLists, this.doKeyword, this.statement, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.semicolonToken, GetDiagnostics(), annotations); 12467=> new ForStatementSyntax(this.Kind, this.attributeLists, this.forKeyword, this.openParenToken, this.declaration, this.initializers, this.firstSemicolonToken, this.condition, this.secondSemicolonToken, this.incrementors, this.closeParenToken, this.statement, diagnostics, GetAnnotations()); 12470=> new ForStatementSyntax(this.Kind, this.attributeLists, this.forKeyword, this.openParenToken, this.declaration, this.initializers, this.firstSemicolonToken, this.condition, this.secondSemicolonToken, this.incrementors, this.closeParenToken, this.statement, GetDiagnostics(), annotations); 12661=> new ForEachStatementSyntax(this.Kind, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.type, this.identifier, this.inKeyword, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations()); 12664=> new ForEachStatementSyntax(this.Kind, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.type, this.identifier, this.inKeyword, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations); 12824=> new ForEachVariableStatementSyntax(this.Kind, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.variable, this.inKeyword, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations()); 12827=> new ForEachVariableStatementSyntax(this.Kind, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.variable, this.inKeyword, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations); 12990=> new UsingStatementSyntax(this.Kind, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.openParenToken, this.declaration, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations()); 12993=> new UsingStatementSyntax(this.Kind, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.openParenToken, this.declaration, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations); 13111=> new FixedStatementSyntax(this.Kind, this.attributeLists, this.fixedKeyword, this.openParenToken, this.declaration, this.closeParenToken, this.statement, diagnostics, GetAnnotations()); 13114=> new FixedStatementSyntax(this.Kind, this.attributeLists, this.fixedKeyword, this.openParenToken, this.declaration, this.closeParenToken, this.statement, GetDiagnostics(), annotations); 13191var newNode = SyntaxFactory.CheckedStatement(this.Kind, attributeLists, keyword, block); 13205=> new CheckedStatementSyntax(this.Kind, this.attributeLists, this.keyword, this.block, diagnostics, GetAnnotations()); 13208=> new CheckedStatementSyntax(this.Kind, this.attributeLists, this.keyword, this.block, GetDiagnostics(), annotations); 13299=> new UnsafeStatementSyntax(this.Kind, this.attributeLists, this.unsafeKeyword, this.block, diagnostics, GetAnnotations()); 13302=> new UnsafeStatementSyntax(this.Kind, this.attributeLists, this.unsafeKeyword, this.block, GetDiagnostics(), annotations); 13420=> new LockStatementSyntax(this.Kind, this.attributeLists, this.lockKeyword, this.openParenToken, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations()); 13423=> new LockStatementSyntax(this.Kind, this.attributeLists, this.lockKeyword, this.openParenToken, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations); 13580=> new IfStatementSyntax(this.Kind, this.attributeLists, this.ifKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, this.@else, diagnostics, GetAnnotations()); 13583=> new IfStatementSyntax(this.Kind, this.attributeLists, this.ifKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, this.@else, GetDiagnostics(), annotations); 13660=> new ElseClauseSyntax(this.Kind, this.elseKeyword, this.statement, diagnostics, GetAnnotations()); 13663=> new ElseClauseSyntax(this.Kind, this.elseKeyword, this.statement, GetDiagnostics(), annotations); 13848=> new SwitchStatementSyntax(this.Kind, this.attributeLists, this.switchKeyword, this.openParenToken, this.expression, this.closeParenToken, this.openBraceToken, this.sections, this.closeBraceToken, diagnostics, GetAnnotations()); 13851=> new SwitchStatementSyntax(this.Kind, this.attributeLists, this.switchKeyword, this.openParenToken, this.expression, this.closeParenToken, this.openBraceToken, this.sections, this.closeBraceToken, GetDiagnostics(), annotations); 13949=> new SwitchSectionSyntax(this.Kind, this.labels, this.statements, diagnostics, GetAnnotations()); 13952=> new SwitchSectionSyntax(this.Kind, this.labels, this.statements, GetDiagnostics(), annotations); 14081=> new CasePatternSwitchLabelSyntax(this.Kind, this.keyword, this.pattern, this.whenClause, this.colonToken, diagnostics, GetAnnotations()); 14084=> new CasePatternSwitchLabelSyntax(this.Kind, this.keyword, this.pattern, this.whenClause, this.colonToken, GetDiagnostics(), annotations); 14171=> new CaseSwitchLabelSyntax(this.Kind, this.keyword, this.value, this.colonToken, diagnostics, GetAnnotations()); 14174=> new CaseSwitchLabelSyntax(this.Kind, this.keyword, this.value, this.colonToken, GetDiagnostics(), annotations); 14249=> new DefaultSwitchLabelSyntax(this.Kind, this.keyword, this.colonToken, diagnostics, GetAnnotations()); 14252=> new DefaultSwitchLabelSyntax(this.Kind, this.keyword, this.colonToken, GetDiagnostics(), annotations); 14361=> new SwitchExpressionSyntax(this.Kind, this.governingExpression, this.switchKeyword, this.openBraceToken, this.arms, this.closeBraceToken, diagnostics, GetAnnotations()); 14364=> new SwitchExpressionSyntax(this.Kind, this.governingExpression, this.switchKeyword, this.openBraceToken, this.arms, this.closeBraceToken, GetDiagnostics(), annotations); 14464=> new SwitchExpressionArmSyntax(this.Kind, this.pattern, this.whenClause, this.equalsGreaterThanToken, this.expression, diagnostics, GetAnnotations()); 14467=> new SwitchExpressionArmSyntax(this.Kind, this.pattern, this.whenClause, this.equalsGreaterThanToken, this.expression, GetDiagnostics(), annotations); 14594=> new TryStatementSyntax(this.Kind, this.attributeLists, this.tryKeyword, this.block, this.catches, this.@finally, diagnostics, GetAnnotations()); 14597=> new TryStatementSyntax(this.Kind, this.attributeLists, this.tryKeyword, this.block, this.catches, this.@finally, GetDiagnostics(), annotations); 14706=> new CatchClauseSyntax(this.Kind, this.catchKeyword, this.declaration, this.filter, this.block, diagnostics, GetAnnotations()); 14709=> new CatchClauseSyntax(this.Kind, this.catchKeyword, this.declaration, this.filter, this.block, GetDiagnostics(), annotations); 14809=> new CatchDeclarationSyntax(this.Kind, this.openParenToken, this.type, this.identifier, this.closeParenToken, diagnostics, GetAnnotations()); 14812=> new CatchDeclarationSyntax(this.Kind, this.openParenToken, this.type, this.identifier, this.closeParenToken, GetDiagnostics(), annotations); 14903=> new CatchFilterClauseSyntax(this.Kind, this.whenKeyword, this.openParenToken, this.filterExpression, this.closeParenToken, diagnostics, GetAnnotations()); 14906=> new CatchFilterClauseSyntax(this.Kind, this.whenKeyword, this.openParenToken, this.filterExpression, this.closeParenToken, GetDiagnostics(), annotations); 14979=> new FinallyClauseSyntax(this.Kind, this.finallyKeyword, this.block, diagnostics, GetAnnotations()); 14982=> new FinallyClauseSyntax(this.Kind, this.finallyKeyword, this.block, GetDiagnostics(), annotations); 15119=> new CompilationUnitSyntax(this.Kind, this.externs, this.usings, this.attributeLists, this.members, this.endOfFileToken, diagnostics, GetAnnotations()); 15122=> new CompilationUnitSyntax(this.Kind, this.externs, this.usings, this.attributeLists, this.members, this.endOfFileToken, GetDiagnostics(), annotations); 15220=> new ExternAliasDirectiveSyntax(this.Kind, this.externKeyword, this.aliasKeyword, this.identifier, this.semicolonToken, diagnostics, GetAnnotations()); 15223=> new ExternAliasDirectiveSyntax(this.Kind, this.externKeyword, this.aliasKeyword, this.identifier, this.semicolonToken, GetDiagnostics(), annotations); 15377=> new UsingDirectiveSyntax(this.Kind, this.globalKeyword, this.usingKeyword, this.staticKeyword, this.unsafeKeyword, this.alias, this.namespaceOrType, this.semicolonToken, diagnostics, GetAnnotations()); 15380=> new UsingDirectiveSyntax(this.Kind, this.globalKeyword, this.usingKeyword, this.staticKeyword, this.unsafeKeyword, this.alias, this.namespaceOrType, this.semicolonToken, GetDiagnostics(), annotations); 15623=> new NamespaceDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.openBraceToken, this.externs, this.usings, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations()); 15626=> new NamespaceDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.openBraceToken, this.externs, this.usings, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations); 15798=> new FileScopedNamespaceDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.semicolonToken, this.externs, this.usings, this.members, diagnostics, GetAnnotations()); 15801=> new FileScopedNamespaceDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.semicolonToken, this.externs, this.usings, this.members, GetDiagnostics(), annotations); 15915=> new AttributeListSyntax(this.Kind, this.openBracketToken, this.target, this.attributes, this.closeBracketToken, diagnostics, GetAnnotations()); 15918=> new AttributeListSyntax(this.Kind, this.openBracketToken, this.target, this.attributes, this.closeBracketToken, GetDiagnostics(), annotations); 15994=> new AttributeTargetSpecifierSyntax(this.Kind, this.identifier, this.colonToken, diagnostics, GetAnnotations()); 15997=> new AttributeTargetSpecifierSyntax(this.Kind, this.identifier, this.colonToken, GetDiagnostics(), annotations); 16084=> new AttributeSyntax(this.Kind, this.name, this.argumentList, diagnostics, GetAnnotations()); 16087=> new AttributeSyntax(this.Kind, this.name, this.argumentList, GetDiagnostics(), annotations); 16182=> new AttributeArgumentListSyntax(this.Kind, this.openParenToken, this.arguments, this.closeParenToken, diagnostics, GetAnnotations()); 16185=> new AttributeArgumentListSyntax(this.Kind, this.openParenToken, this.arguments, this.closeParenToken, GetDiagnostics(), annotations); 16287=> new AttributeArgumentSyntax(this.Kind, this.nameEquals, this.nameColon, this.expression, diagnostics, GetAnnotations()); 16290=> new AttributeArgumentSyntax(this.Kind, this.nameEquals, this.nameColon, this.expression, GetDiagnostics(), annotations); 16365=> new NameEqualsSyntax(this.Kind, this.name, this.equalsToken, diagnostics, GetAnnotations()); 16368=> new NameEqualsSyntax(this.Kind, this.name, this.equalsToken, GetDiagnostics(), annotations); 16463=> new TypeParameterListSyntax(this.Kind, this.lessThanToken, this.parameters, this.greaterThanToken, diagnostics, GetAnnotations()); 16466=> new TypeParameterListSyntax(this.Kind, this.lessThanToken, this.parameters, this.greaterThanToken, GetDiagnostics(), annotations); 16569=> new TypeParameterSyntax(this.Kind, this.attributeLists, this.varianceKeyword, this.identifier, diagnostics, GetAnnotations()); 16572=> new TypeParameterSyntax(this.Kind, this.attributeLists, this.varianceKeyword, this.identifier, GetDiagnostics(), annotations); 16883=> new ClassDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations()); 16886=> new ClassDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations); 17141=> new StructDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations()); 17144=> new StructDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations); 17399=> new 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()); 17402=> 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); 17659var newNode = SyntaxFactory.RecordDeclaration(this.Kind, attributeLists, modifiers, keyword, classOrStructKeyword, identifier, typeParameterList, parameterList, baseList, constraintClauses, openBraceToken, members, closeBraceToken, semicolonToken); 17673=> 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()); 17676=> 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); 17879=> new EnumDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.enumKeyword, this.identifier, this.baseList, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations()); 17882=> new EnumDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.enumKeyword, this.identifier, this.baseList, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations); 18061=> new DelegateDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.delegateKeyword, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.semicolonToken, diagnostics, GetAnnotations()); 18064=> new DelegateDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.delegateKeyword, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.semicolonToken, GetDiagnostics(), annotations); 18183=> new EnumMemberDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.identifier, this.equalsValue, diagnostics, GetAnnotations()); 18186=> new EnumMemberDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.identifier, this.equalsValue, GetDiagnostics(), annotations); 18413=> 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()); 18416=> 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); 18501=> new BaseListSyntax(this.Kind, this.colonToken, this.types, diagnostics, GetAnnotations()); 18504=> new BaseListSyntax(this.Kind, this.colonToken, this.types, GetDiagnostics(), annotations); 18580=> new SimpleBaseTypeSyntax(this.Kind, this.type, diagnostics, GetAnnotations()); 18583=> new SimpleBaseTypeSyntax(this.Kind, this.type, GetDiagnostics(), annotations); 18656=> new PrimaryConstructorBaseTypeSyntax(this.Kind, this.type, this.argumentList, diagnostics, GetAnnotations()); 18659=> new PrimaryConstructorBaseTypeSyntax(this.Kind, this.type, this.argumentList, GetDiagnostics(), annotations); 18763=> new TypeParameterConstraintClauseSyntax(this.Kind, this.whereKeyword, this.name, this.colonToken, this.constraints, diagnostics, GetAnnotations()); 18766=> new TypeParameterConstraintClauseSyntax(this.Kind, this.whereKeyword, this.name, this.colonToken, this.constraints, GetDiagnostics(), annotations); 18866=> new ConstructorConstraintSyntax(this.Kind, this.newKeyword, this.openParenToken, this.closeParenToken, diagnostics, GetAnnotations()); 18869=> new ConstructorConstraintSyntax(this.Kind, this.newKeyword, this.openParenToken, this.closeParenToken, GetDiagnostics(), annotations); 18940var newNode = SyntaxFactory.ClassOrStructConstraint(this.Kind, classOrStructKeyword, questionToken); 18954=> new ClassOrStructConstraintSyntax(this.Kind, this.classOrStructKeyword, this.questionToken, diagnostics, GetAnnotations()); 18957=> new ClassOrStructConstraintSyntax(this.Kind, this.classOrStructKeyword, this.questionToken, GetDiagnostics(), annotations); 19019=> new TypeConstraintSyntax(this.Kind, this.type, diagnostics, GetAnnotations()); 19022=> new TypeConstraintSyntax(this.Kind, this.type, GetDiagnostics(), annotations); 19084=> new DefaultConstraintSyntax(this.Kind, this.defaultKeyword, diagnostics, GetAnnotations()); 19087=> new DefaultConstraintSyntax(this.Kind, this.defaultKeyword, GetDiagnostics(), annotations); 19171=> new AllowsConstraintClauseSyntax(this.Kind, this.allowsKeyword, this.constraints, diagnostics, GetAnnotations()); 19174=> new AllowsConstraintClauseSyntax(this.Kind, this.allowsKeyword, this.constraints, GetDiagnostics(), annotations); 19264=> new RefStructConstraintSyntax(this.Kind, this.refKeyword, this.structKeyword, diagnostics, GetAnnotations()); 19267=> new RefStructConstraintSyntax(this.Kind, this.refKeyword, this.structKeyword, GetDiagnostics(), annotations); 19393=> new FieldDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.declaration, this.semicolonToken, diagnostics, GetAnnotations()); 19396=> new FieldDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.declaration, this.semicolonToken, GetDiagnostics(), annotations); 19514=> new EventFieldDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.eventKeyword, this.declaration, this.semicolonToken, diagnostics, GetAnnotations()); 19517=> new EventFieldDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.eventKeyword, this.declaration, this.semicolonToken, GetDiagnostics(), annotations); 19590=> new ExplicitInterfaceSpecifierSyntax(this.Kind, this.name, this.dotToken, diagnostics, GetAnnotations()); 19593=> new ExplicitInterfaceSpecifierSyntax(this.Kind, this.name, this.dotToken, GetDiagnostics(), annotations); 19848=> 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()); 19851=> 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); 20074=> 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()); 20077=> 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); 20300=> 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()); 20303=> 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); 20487=> new ConstructorDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.identifier, this.parameterList, this.initializer, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations()); 20490=> new ConstructorDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.identifier, this.parameterList, this.initializer, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations); 20561var newNode = SyntaxFactory.ConstructorInitializer(this.Kind, colonToken, thisOrBaseKeyword, argumentList); 20575=> new ConstructorInitializerSyntax(this.Kind, this.colonToken, this.thisOrBaseKeyword, this.argumentList, diagnostics, GetAnnotations()); 20578=> new ConstructorInitializerSyntax(this.Kind, this.colonToken, this.thisOrBaseKeyword, this.argumentList, GetDiagnostics(), annotations); 20754=> new DestructorDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.tildeToken, this.identifier, this.parameterList, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations()); 20757=> new DestructorDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.tildeToken, this.identifier, this.parameterList, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations); 20979=> new PropertyDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.expressionBody, this.initializer, this.semicolonToken, diagnostics, GetAnnotations()); 20982=> new PropertyDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.expressionBody, this.initializer, this.semicolonToken, GetDiagnostics(), annotations); 21056=> new ArrowExpressionClauseSyntax(this.Kind, this.arrowToken, this.expression, diagnostics, GetAnnotations()); 21059=> new ArrowExpressionClauseSyntax(this.Kind, this.arrowToken, this.expression, GetDiagnostics(), annotations); 21232=> new EventDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.eventKeyword, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.semicolonToken, diagnostics, GetAnnotations()); 21235=> new EventDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.eventKeyword, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.semicolonToken, GetDiagnostics(), annotations); 21426=> new IndexerDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.thisKeyword, this.parameterList, this.accessorList, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations()); 21429=> new IndexerDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.thisKeyword, this.parameterList, this.accessorList, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations); 21520=> new AccessorListSyntax(this.Kind, this.openBraceToken, this.accessors, this.closeBraceToken, diagnostics, GetAnnotations()); 21523=> new AccessorListSyntax(this.Kind, this.openBraceToken, this.accessors, this.closeBraceToken, GetDiagnostics(), annotations); 21669var newNode = SyntaxFactory.AccessorDeclaration(this.Kind, attributeLists, modifiers, keyword, body, expressionBody, semicolonToken); 21683=> new AccessorDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.keyword, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations()); 21686=> new AccessorDeclarationSyntax(this.Kind, this.attributeLists, this.modifiers, this.keyword, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations); 21797=> new ParameterListSyntax(this.Kind, this.openParenToken, this.parameters, this.closeParenToken, diagnostics, GetAnnotations()); 21800=> new ParameterListSyntax(this.Kind, this.openParenToken, this.parameters, this.closeParenToken, GetDiagnostics(), annotations); 21894=> new BracketedParameterListSyntax(this.Kind, this.openBracketToken, this.parameters, this.closeBracketToken, diagnostics, GetAnnotations()); 21897=> new BracketedParameterListSyntax(this.Kind, this.openBracketToken, this.parameters, this.closeBracketToken, GetDiagnostics(), annotations); 22068=> new ParameterSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, this.identifier, this.@default, diagnostics, GetAnnotations()); 22071=> new ParameterSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, this.identifier, this.@default, GetDiagnostics(), annotations); 22174=> new FunctionPointerParameterSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, diagnostics, GetAnnotations()); 22177=> new FunctionPointerParameterSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, GetDiagnostics(), annotations); 22286=> new IncompleteMemberSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, diagnostics, GetAnnotations()); 22289=> new IncompleteMemberSyntax(this.Kind, this.attributeLists, this.modifiers, this.type, GetDiagnostics(), annotations); 22358=> new SkippedTokensTriviaSyntax(this.Kind, this.tokens, diagnostics, GetAnnotations()); 22361=> new SkippedTokensTriviaSyntax(this.Kind, this.tokens, GetDiagnostics(), annotations); 22429var newNode = SyntaxFactory.DocumentationCommentTrivia(this.Kind, content, endOfComment); 22443=> new DocumentationCommentTriviaSyntax(this.Kind, this.content, this.endOfComment, diagnostics, GetAnnotations()); 22446=> new DocumentationCommentTriviaSyntax(this.Kind, this.content, this.endOfComment, GetDiagnostics(), annotations); 22530=> new TypeCrefSyntax(this.Kind, this.type, diagnostics, GetAnnotations()); 22533=> new TypeCrefSyntax(this.Kind, this.type, GetDiagnostics(), annotations); 22622=> new QualifiedCrefSyntax(this.Kind, this.container, this.dotToken, this.member, diagnostics, GetAnnotations()); 22625=> new QualifiedCrefSyntax(this.Kind, this.container, this.dotToken, this.member, GetDiagnostics(), annotations); 22733=> new NameMemberCrefSyntax(this.Kind, this.name, this.parameters, diagnostics, GetAnnotations()); 22736=> new NameMemberCrefSyntax(this.Kind, this.name, this.parameters, GetDiagnostics(), annotations); 22845=> new ExtensionMemberCrefSyntax(this.Kind, this.extensionKeyword, this.typeArgumentList, this.parameters, this.dotToken, this.member, diagnostics, GetAnnotations()); 22848=> new ExtensionMemberCrefSyntax(this.Kind, this.extensionKeyword, this.typeArgumentList, this.parameters, this.dotToken, this.member, GetDiagnostics(), annotations); 22934=> new IndexerMemberCrefSyntax(this.Kind, this.thisKeyword, this.parameters, diagnostics, GetAnnotations()); 22937=> new IndexerMemberCrefSyntax(this.Kind, this.thisKeyword, this.parameters, GetDiagnostics(), annotations); 23052=> new OperatorMemberCrefSyntax(this.Kind, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameters, diagnostics, GetAnnotations()); 23055=> new OperatorMemberCrefSyntax(this.Kind, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameters, GetDiagnostics(), annotations); 23177=> new ConversionOperatorMemberCrefSyntax(this.Kind, this.implicitOrExplicitKeyword, this.operatorKeyword, this.checkedKeyword, this.type, this.parameters, diagnostics, GetAnnotations()); 23180=> new ConversionOperatorMemberCrefSyntax(this.Kind, this.implicitOrExplicitKeyword, this.operatorKeyword, this.checkedKeyword, this.type, this.parameters, GetDiagnostics(), annotations); 23296=> new CrefParameterListSyntax(this.Kind, this.openParenToken, this.parameters, this.closeParenToken, diagnostics, GetAnnotations()); 23299=> new CrefParameterListSyntax(this.Kind, this.openParenToken, this.parameters, this.closeParenToken, GetDiagnostics(), annotations); 23395=> new CrefBracketedParameterListSyntax(this.Kind, this.openBracketToken, this.parameters, this.closeBracketToken, diagnostics, GetAnnotations()); 23398=> new CrefBracketedParameterListSyntax(this.Kind, this.openBracketToken, this.parameters, this.closeBracketToken, GetDiagnostics(), annotations); 23504=> new CrefParameterSyntax(this.Kind, this.refKindKeyword, this.readOnlyKeyword, this.type, diagnostics, GetAnnotations()); 23507=> new CrefParameterSyntax(this.Kind, this.refKindKeyword, this.readOnlyKeyword, this.type, GetDiagnostics(), annotations); 23611=> new XmlElementSyntax(this.Kind, this.startTag, this.content, this.endTag, diagnostics, GetAnnotations()); 23614=> new XmlElementSyntax(this.Kind, this.startTag, this.content, this.endTag, GetDiagnostics(), annotations); 23714=> new XmlElementStartTagSyntax(this.Kind, this.lessThanToken, this.name, this.attributes, this.greaterThanToken, diagnostics, GetAnnotations()); 23717=> new XmlElementStartTagSyntax(this.Kind, this.lessThanToken, this.name, this.attributes, this.greaterThanToken, GetDiagnostics(), annotations); 23799=> new XmlElementEndTagSyntax(this.Kind, this.lessThanSlashToken, this.name, this.greaterThanToken, diagnostics, GetAnnotations()); 23802=> new XmlElementEndTagSyntax(this.Kind, this.lessThanSlashToken, this.name, this.greaterThanToken, GetDiagnostics(), annotations); 23902=> new XmlEmptyElementSyntax(this.Kind, this.lessThanToken, this.name, this.attributes, this.slashGreaterThanToken, diagnostics, GetAnnotations()); 23905=> new XmlEmptyElementSyntax(this.Kind, this.lessThanToken, this.name, this.attributes, this.slashGreaterThanToken, GetDiagnostics(), annotations); 23987=> new XmlNameSyntax(this.Kind, this.prefix, this.localName, diagnostics, GetAnnotations()); 23990=> new XmlNameSyntax(this.Kind, this.prefix, this.localName, GetDiagnostics(), annotations); 24063=> new XmlPrefixSyntax(this.Kind, this.prefix, this.colonToken, diagnostics, GetAnnotations()); 24066=> new XmlPrefixSyntax(this.Kind, this.prefix, this.colonToken, GetDiagnostics(), annotations); 24196=> new XmlTextAttributeSyntax(this.Kind, this.name, this.equalsToken, this.startQuoteToken, this.textTokens, this.endQuoteToken, diagnostics, GetAnnotations()); 24199=> new XmlTextAttributeSyntax(this.Kind, this.name, this.equalsToken, this.startQuoteToken, this.textTokens, this.endQuoteToken, GetDiagnostics(), annotations); 24299=> new XmlCrefAttributeSyntax(this.Kind, this.name, this.equalsToken, this.startQuoteToken, this.cref, this.endQuoteToken, diagnostics, GetAnnotations()); 24302=> new XmlCrefAttributeSyntax(this.Kind, this.name, this.equalsToken, this.startQuoteToken, this.cref, this.endQuoteToken, GetDiagnostics(), annotations); 24402=> new XmlNameAttributeSyntax(this.Kind, this.name, this.equalsToken, this.startQuoteToken, this.identifier, this.endQuoteToken, diagnostics, GetAnnotations()); 24405=> new XmlNameAttributeSyntax(this.Kind, this.name, this.equalsToken, this.startQuoteToken, this.identifier, this.endQuoteToken, GetDiagnostics(), annotations); 24474=> new XmlTextSyntax(this.Kind, this.textTokens, diagnostics, GetAnnotations()); 24477=> new XmlTextSyntax(this.Kind, this.textTokens, GetDiagnostics(), annotations); 24568=> new XmlCDataSectionSyntax(this.Kind, this.startCDataToken, this.textTokens, this.endCDataToken, diagnostics, GetAnnotations()); 24571=> new XmlCDataSectionSyntax(this.Kind, this.startCDataToken, this.textTokens, this.endCDataToken, GetDiagnostics(), annotations); 24671=> new XmlProcessingInstructionSyntax(this.Kind, this.startProcessingInstructionToken, this.name, this.textTokens, this.endProcessingInstructionToken, diagnostics, GetAnnotations()); 24674=> new XmlProcessingInstructionSyntax(this.Kind, this.startProcessingInstructionToken, this.name, this.textTokens, this.endProcessingInstructionToken, GetDiagnostics(), annotations); 24765=> new XmlCommentSyntax(this.Kind, this.lessThanExclamationMinusMinusToken, this.textTokens, this.minusMinusGreaterThanToken, diagnostics, GetAnnotations()); 24768=> new XmlCommentSyntax(this.Kind, this.lessThanExclamationMinusMinusToken, this.textTokens, this.minusMinusGreaterThanToken, GetDiagnostics(), annotations); 24927=> new IfDirectiveTriviaSyntax(this.Kind, this.hashToken, this.ifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, diagnostics, GetAnnotations()); 24930=> new IfDirectiveTriviaSyntax(this.Kind, this.hashToken, this.ifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, GetDiagnostics(), annotations); 25036=> new ElifDirectiveTriviaSyntax(this.Kind, this.hashToken, this.elifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, diagnostics, GetAnnotations()); 25039=> new ElifDirectiveTriviaSyntax(this.Kind, this.hashToken, this.elifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, GetDiagnostics(), annotations); 25131=> new ElseDirectiveTriviaSyntax(this.Kind, this.hashToken, this.elseKeyword, this.endOfDirectiveToken, this.isActive, this.branchTaken, diagnostics, GetAnnotations()); 25134=> new ElseDirectiveTriviaSyntax(this.Kind, this.hashToken, this.elseKeyword, this.endOfDirectiveToken, this.isActive, this.branchTaken, GetDiagnostics(), annotations); 25221=> new EndIfDirectiveTriviaSyntax(this.Kind, this.hashToken, this.endIfKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25224=> new EndIfDirectiveTriviaSyntax(this.Kind, this.hashToken, this.endIfKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 25311=> new RegionDirectiveTriviaSyntax(this.Kind, this.hashToken, this.regionKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25314=> new RegionDirectiveTriviaSyntax(this.Kind, this.hashToken, this.regionKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 25401=> new EndRegionDirectiveTriviaSyntax(this.Kind, this.hashToken, this.endRegionKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25404=> new EndRegionDirectiveTriviaSyntax(this.Kind, this.hashToken, this.endRegionKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 25491=> new ErrorDirectiveTriviaSyntax(this.Kind, this.hashToken, this.errorKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25494=> new ErrorDirectiveTriviaSyntax(this.Kind, this.hashToken, this.errorKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 25581=> new WarningDirectiveTriviaSyntax(this.Kind, this.hashToken, this.warningKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25584=> new WarningDirectiveTriviaSyntax(this.Kind, this.hashToken, this.warningKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 25671=> new BadDirectiveTriviaSyntax(this.Kind, this.hashToken, this.identifier, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25674=> new BadDirectiveTriviaSyntax(this.Kind, this.hashToken, this.identifier, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 25770=> new DefineDirectiveTriviaSyntax(this.Kind, this.hashToken, this.defineKeyword, this.name, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25773=> new DefineDirectiveTriviaSyntax(this.Kind, this.hashToken, this.defineKeyword, this.name, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 25869=> new UndefDirectiveTriviaSyntax(this.Kind, this.hashToken, this.undefKeyword, this.name, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 25872=> new UndefDirectiveTriviaSyntax(this.Kind, this.hashToken, this.undefKeyword, this.name, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26003=> new LineDirectiveTriviaSyntax(this.Kind, this.hashToken, this.lineKeyword, this.line, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26006=> new LineDirectiveTriviaSyntax(this.Kind, this.hashToken, this.lineKeyword, this.line, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26106=> new LineDirectivePositionSyntax(this.Kind, this.openParenToken, this.line, this.commaToken, this.character, this.closeParenToken, diagnostics, GetAnnotations()); 26109=> new LineDirectivePositionSyntax(this.Kind, this.openParenToken, this.line, this.commaToken, this.character, this.closeParenToken, GetDiagnostics(), annotations); 26250=> new LineSpanDirectiveTriviaSyntax(this.Kind, this.hashToken, this.lineKeyword, this.start, this.minusToken, this.end, this.characterOffset, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26253=> new LineSpanDirectiveTriviaSyntax(this.Kind, this.hashToken, this.lineKeyword, this.start, this.minusToken, this.end, this.characterOffset, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26376=> new PragmaWarningDirectiveTriviaSyntax(this.Kind, this.hashToken, this.pragmaKeyword, this.warningKeyword, this.disableOrRestoreKeyword, this.errorCodes, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26379=> new PragmaWarningDirectiveTriviaSyntax(this.Kind, this.hashToken, this.pragmaKeyword, this.warningKeyword, this.disableOrRestoreKeyword, this.errorCodes, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26502=> new PragmaChecksumDirectiveTriviaSyntax(this.Kind, this.hashToken, this.pragmaKeyword, this.checksumKeyword, this.file, this.guid, this.bytes, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26505=> new PragmaChecksumDirectiveTriviaSyntax(this.Kind, this.hashToken, this.pragmaKeyword, this.checksumKeyword, this.file, this.guid, this.bytes, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26601=> new ReferenceDirectiveTriviaSyntax(this.Kind, this.hashToken, this.referenceKeyword, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26604=> new ReferenceDirectiveTriviaSyntax(this.Kind, this.hashToken, this.referenceKeyword, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26700=> new LoadDirectiveTriviaSyntax(this.Kind, this.hashToken, this.loadKeyword, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26703=> new LoadDirectiveTriviaSyntax(this.Kind, this.hashToken, this.loadKeyword, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26790=> new ShebangDirectiveTriviaSyntax(this.Kind, this.hashToken, this.exclamationToken, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26793=> new ShebangDirectiveTriviaSyntax(this.Kind, this.hashToken, this.exclamationToken, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 26898=> new IgnoredDirectiveTriviaSyntax(this.Kind, this.hashToken, this.colonToken, this.content, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 26901=> new IgnoredDirectiveTriviaSyntax(this.Kind, this.hashToken, this.colonToken, this.content, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 27015=> new NullableDirectiveTriviaSyntax(this.Kind, this.hashToken, this.nullableKeyword, this.settingToken, this.targetToken, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations()); 27018=> new NullableDirectiveTriviaSyntax(this.Kind, this.hashToken, this.nullableKeyword, this.settingToken, this.targetToken, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations); 28284switch (identifier.Kind) 28310if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 28331if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 28352if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 28354if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 28375if (colonColonToken.Kind != SyntaxKind.ColonColonToken) throw new ArgumentException(nameof(colonColonToken)); 28396switch (keyword.Kind) 28454if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 28456if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 28477if (asteriskToken.Kind != SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken)); 28497if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 28499if (asteriskToken.Kind != SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken)); 28510if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 28512if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 28532switch (managedOrUnmanagedKeyword.Kind) 28557if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 28559if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 28579if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 28600if (questionToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken)); 28620if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 28622if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 28644switch (identifier.Kind) 28670if (omittedTypeArgumentToken.Kind != SyntaxKind.OmittedTypeArgumentToken) throw new ArgumentException(nameof(omittedTypeArgumentToken)); 28690if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 28693switch (readOnlyKeyword.Kind) 28720if (scopedKeyword.Kind != SyntaxKind.ScopedKeyword) throw new ArgumentException(nameof(scopedKeyword)); 28741if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 28744if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 28764if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 28766if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 28799switch (operatorToken.Kind) 28832if (awaitKeyword.Kind != SyntaxKind.AwaitKeyword) throw new ArgumentException(nameof(awaitKeyword)); 28861switch (operatorToken.Kind) 28894switch (operatorToken.Kind) 28921if (operatorToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(operatorToken)); 28942if (operatorToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(operatorToken)); 28982if (operatorToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken)); 29048switch (operatorToken.Kind) 29112switch (operatorToken.Kind) 29150if (questionToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken)); 29153if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 29164if (token.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token)); 29184if (token.Kind != SyntaxKind.BaseKeyword) throw new ArgumentException(nameof(token)); 29217switch (token.Kind) 29253if (token.Kind != SyntaxKind.FieldKeyword) throw new ArgumentException(nameof(token)); 29273if (keyword.Kind != SyntaxKind.MakeRefKeyword) throw new ArgumentException(nameof(keyword)); 29275if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29278if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29288if (keyword.Kind != SyntaxKind.RefTypeKeyword) throw new ArgumentException(nameof(keyword)); 29290if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29293if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29303if (keyword.Kind != SyntaxKind.RefValueKeyword) throw new ArgumentException(nameof(keyword)); 29305if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29308if (comma.Kind != SyntaxKind.CommaToken) throw new ArgumentException(nameof(comma)); 29311if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29327switch (keyword.Kind) 29334if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29337if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29347if (keyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword)); 29349if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29352if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29362if (keyword.Kind != SyntaxKind.TypeOfKeyword) throw new ArgumentException(nameof(keyword)); 29364if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29367if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29377if (keyword.Kind != SyntaxKind.SizeOfKeyword) throw new ArgumentException(nameof(keyword)); 29379if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29382if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29432if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29434if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29454if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 29456if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 29477switch (refKindKeyword.Kind) 29566if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 29569if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 29580if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 29592if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 29602if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 29624if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 29643if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 29645if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 29665if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 29686if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 29698if (withKeyword.Kind != SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword)); 29738if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 29740if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 29742if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 29752if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 29773if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 29775if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 29777if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 29788if (stackAllocKeyword.Kind != SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword)); 29809if (stackAllocKeyword.Kind != SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword)); 29811if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 29813if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 29824if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 29826if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 29865if (operatorToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken)); 29886if (withKeyword.Kind != SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword)); 29946if (fromKeyword.Kind != SyntaxKind.FromKeyword) throw new ArgumentException(nameof(fromKeyword)); 29948if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 29950if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 29961if (letKeyword.Kind != SyntaxKind.LetKeyword) throw new ArgumentException(nameof(letKeyword)); 29963if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 29965if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 29976if (joinKeyword.Kind != SyntaxKind.JoinKeyword) throw new ArgumentException(nameof(joinKeyword)); 29978if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 29980if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 29983if (onKeyword.Kind != SyntaxKind.OnKeyword) throw new ArgumentException(nameof(onKeyword)); 29986if (equalsKeyword.Kind != SyntaxKind.EqualsKeyword) throw new ArgumentException(nameof(equalsKeyword)); 29997if (intoKeyword.Kind != SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword)); 29999if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30019if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 30040if (orderByKeyword.Kind != SyntaxKind.OrderByKeyword) throw new ArgumentException(nameof(orderByKeyword)); 30068switch (ascendingOrDescendingKeyword.Kind) 30095if (selectKeyword.Kind != SyntaxKind.SelectKeyword) throw new ArgumentException(nameof(selectKeyword)); 30116if (groupKeyword.Kind != SyntaxKind.GroupKeyword) throw new ArgumentException(nameof(groupKeyword)); 30119if (byKeyword.Kind != SyntaxKind.ByKeyword) throw new ArgumentException(nameof(byKeyword)); 30130if (intoKeyword.Kind != SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword)); 30132if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30153if (omittedArraySizeExpressionToken.Kind != SyntaxKind.OmittedArraySizeExpressionToken) throw new ArgumentException(nameof(omittedArraySizeExpressionToken)); 30173switch (stringStartToken.Kind) 30182switch (stringEndToken.Kind) 30208if (isKeyword.Kind != SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword)); 30229if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 30250if (whenKeyword.Kind != SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword)); 30271if (underscoreToken.Kind != SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken)); 30311if (varKeyword.Kind != SyntaxKind.VarKeyword) throw new ArgumentException(nameof(varKeyword)); 30340if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 30342if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 30362if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 30364if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 30422if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 30425if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 30445switch (operatorToken.Kind) 30501switch (operatorToken.Kind) 30527if (operatorToken.Kind != SyntaxKind.NotKeyword) throw new ArgumentException(nameof(operatorToken)); 30548if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 30550if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 30560if (dotDotToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(dotDotToken)); 30580if (textToken.Kind != SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(textToken)); 30600if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 30603if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 30634if (formatStringToken.Kind != SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(formatStringToken)); 30673if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 30675if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 30686if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30690switch (semicolonToken.Kind) 30707switch (awaitKeyword.Kind) 30716switch (usingKeyword.Kind) 30725if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30754if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30774if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 30795if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30815if (underscoreToken.Kind != SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken)); 30835if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 30837if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 30858if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30878if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30898if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 30900if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 30918if (gotoKeyword.Kind != SyntaxKind.GotoKeyword) throw new ArgumentException(nameof(gotoKeyword)); 30921switch (caseOrDefaultKeyword.Kind) 30930if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30940if (breakKeyword.Kind != SyntaxKind.BreakKeyword) throw new ArgumentException(nameof(breakKeyword)); 30942if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30962if (continueKeyword.Kind != SyntaxKind.ContinueKeyword) throw new ArgumentException(nameof(continueKeyword)); 30964if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30984if (returnKeyword.Kind != SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword)); 30986if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 30996if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 30998if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31014if (yieldKeyword.Kind != SyntaxKind.YieldKeyword) throw new ArgumentException(nameof(yieldKeyword)); 31016switch (returnOrBreakKeyword.Kind) 31023if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31033if (whileKeyword.Kind != SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword)); 31035if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31038if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31049if (doKeyword.Kind != SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword)); 31052if (whileKeyword.Kind != SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword)); 31054if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31057if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31059if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31069if (forKeyword.Kind != SyntaxKind.ForKeyword) throw new ArgumentException(nameof(forKeyword)); 31071if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31073if (firstSemicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(firstSemicolonToken)); 31075if (secondSemicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(secondSemicolonToken)); 31077if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31089switch (awaitKeyword.Kind) 31097if (forEachKeyword.Kind != SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword)); 31099if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31102if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31104if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 31107if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31119switch (awaitKeyword.Kind) 31127if (forEachKeyword.Kind != SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword)); 31129if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31132if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 31135if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31147switch (awaitKeyword.Kind) 31155if (usingKeyword.Kind != SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword)); 31157if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31159if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31170if (fixedKeyword.Kind != SyntaxKind.FixedKeyword) throw new ArgumentException(nameof(fixedKeyword)); 31172if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31175if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31192switch (keyword.Kind) 31218if (unsafeKeyword.Kind != SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(unsafeKeyword)); 31239if (lockKeyword.Kind != SyntaxKind.LockKeyword) throw new ArgumentException(nameof(lockKeyword)); 31241if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31244if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31255if (ifKeyword.Kind != SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword)); 31257if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31260if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31271if (elseKeyword.Kind != SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword)); 31292if (switchKeyword.Kind != SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword)); 31295switch (openParenToken.Kind) 31305switch (closeParenToken.Kind) 31313if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 31315if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 31343if (keyword.Kind != SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword)); 31355if (keyword.Kind != SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword)); 31377if (keyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword)); 31399if (switchKeyword.Kind != SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword)); 31401if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 31403if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 31414if (equalsGreaterThanToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(equalsGreaterThanToken)); 31425if (tryKeyword.Kind != SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword)); 31436if (catchKeyword.Kind != SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword)); 31447if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31451switch (identifier.Kind) 31459if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31469if (whenKeyword.Kind != SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword)); 31471if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31474if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31484if (finallyKeyword.Kind != SyntaxKind.FinallyKeyword) throw new ArgumentException(nameof(finallyKeyword)); 31505if (endOfFileToken.Kind != SyntaxKind.EndOfFileToken) throw new ArgumentException(nameof(endOfFileToken)); 31515if (externKeyword.Kind != SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword)); 31517if (aliasKeyword.Kind != SyntaxKind.AliasKeyword) throw new ArgumentException(nameof(aliasKeyword)); 31519if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31521if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31532switch (globalKeyword.Kind) 31540if (usingKeyword.Kind != SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword)); 31543switch (staticKeyword.Kind) 31552switch (unsafeKeyword.Kind) 31561if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31571if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 31574if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 31576if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 31579switch (semicolonToken.Kind) 31595if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 31598if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31608if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 31610if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 31621if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 31650if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 31652if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 31692if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 31712if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 31714if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 31735switch (varianceKeyword.Kind) 31744if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31764if (keyword.Kind != SyntaxKind.ClassKeyword) throw new ArgumentException(nameof(keyword)); 31766if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31769switch (openBraceToken.Kind) 31778switch (closeBraceToken.Kind) 31787switch (semicolonToken.Kind) 31803if (keyword.Kind != SyntaxKind.StructKeyword) throw new ArgumentException(nameof(keyword)); 31805if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31808switch (openBraceToken.Kind) 31817switch (closeBraceToken.Kind) 31826switch (semicolonToken.Kind) 31842if (keyword.Kind != SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword)); 31844if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31847switch (openBraceToken.Kind) 31856switch (closeBraceToken.Kind) 31865switch (semicolonToken.Kind) 31889switch (classOrStructKeyword.Kind) 31898if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31901switch (openBraceToken.Kind) 31910switch (closeBraceToken.Kind) 31919switch (semicolonToken.Kind) 31935if (enumKeyword.Kind != SyntaxKind.EnumKeyword) throw new ArgumentException(nameof(enumKeyword)); 31937if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31940switch (openBraceToken.Kind) 31949switch (closeBraceToken.Kind) 31958switch (semicolonToken.Kind) 31974if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 31977if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 31980if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 31990if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32000if (keyword.Kind != SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(keyword)); 32003switch (openBraceToken.Kind) 32012switch (closeBraceToken.Kind) 32021switch (semicolonToken.Kind) 32037if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 32096if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 32099if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 32109if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 32111if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 32113if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 32139switch (classOrStructKeyword.Kind) 32147switch (questionToken.Kind) 32192if (defaultKeyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(defaultKeyword)); 32212if (allowsKeyword.Kind != SyntaxKind.AllowsKeyword) throw new ArgumentException(nameof(allowsKeyword)); 32232if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 32234if (structKeyword.Kind != SyntaxKind.StructKeyword) throw new ArgumentException(nameof(structKeyword)); 32255if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 32265if (eventKeyword.Kind != SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword)); 32268if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 32279if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 32300if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32304switch (semicolonToken.Kind) 32321if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 32324switch (checkedKeyword.Kind) 32332switch (operatorToken.Kind) 32374switch (semicolonToken.Kind) 32390switch (implicitOrExplicitKeyword.Kind) 32397if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 32400switch (checkedKeyword.Kind) 32411switch (semicolonToken.Kind) 32427if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32431switch (semicolonToken.Kind) 32453if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 32455switch (thisOrBaseKeyword.Kind) 32481if (tildeToken.Kind != SyntaxKind.TildeToken) throw new ArgumentException(nameof(tildeToken)); 32483if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32487switch (semicolonToken.Kind) 32504if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32507switch (semicolonToken.Kind) 32523if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 32544if (eventKeyword.Kind != SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword)); 32547if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 32550switch (semicolonToken.Kind) 32567if (thisKeyword.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword)); 32571switch (semicolonToken.Kind) 32587if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 32589if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 32619switch (keyword.Kind) 32631switch (semicolonToken.Kind) 32647if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 32649if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 32669if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 32671if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 32692switch (identifier.Kind) 32750if (endOfComment.Kind != SyntaxKind.EndOfDocumentationCommentToken) throw new ArgumentException(nameof(endOfComment)); 32780if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 32820if (extensionKeyword.Kind != SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(extensionKeyword)); 32823if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 32834if (thisKeyword.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword)); 32854if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 32857switch (checkedKeyword.Kind) 32865switch (operatorToken.Kind) 32912switch (implicitOrExplicitKeyword.Kind) 32919if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 32922switch (checkedKeyword.Kind) 32939if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 32941if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 32961if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 32963if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 32984switch (refKindKeyword.Kind) 32995switch (readOnlyKeyword.Kind) 33042if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 33045if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 33055if (lessThanSlashToken.Kind != SyntaxKind.LessThanSlashToken) throw new ArgumentException(nameof(lessThanSlashToken)); 33058if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 33078if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 33081if (slashGreaterThanToken.Kind != SyntaxKind.SlashGreaterThanToken) throw new ArgumentException(nameof(slashGreaterThanToken)); 33091if (localName.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(localName)); 33111if (prefix.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(prefix)); 33113if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 33134if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 33136switch (startQuoteToken.Kind) 33143switch (endQuoteToken.Kind) 33159if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 33161switch (startQuoteToken.Kind) 33169switch (endQuoteToken.Kind) 33185if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 33187switch (startQuoteToken.Kind) 33195switch (endQuoteToken.Kind) 33228if (startCDataToken.Kind != SyntaxKind.XmlCDataStartToken) throw new ArgumentException(nameof(startCDataToken)); 33230if (endCDataToken.Kind != SyntaxKind.XmlCDataEndToken) throw new ArgumentException(nameof(endCDataToken)); 33250if (startProcessingInstructionToken.Kind != SyntaxKind.XmlProcessingInstructionStartToken) throw new ArgumentException(nameof(startProcessingInstructionToken)); 33253if (endProcessingInstructionToken.Kind != SyntaxKind.XmlProcessingInstructionEndToken) throw new ArgumentException(nameof(endProcessingInstructionToken)); 33263if (lessThanExclamationMinusMinusToken.Kind != SyntaxKind.XmlCommentStartToken) throw new ArgumentException(nameof(lessThanExclamationMinusMinusToken)); 33265if (minusMinusGreaterThanToken.Kind != SyntaxKind.XmlCommentEndToken) throw new ArgumentException(nameof(minusMinusGreaterThanToken)); 33285if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33287if (ifKeyword.Kind != SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword)); 33290if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33300if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33302if (elifKeyword.Kind != SyntaxKind.ElifKeyword) throw new ArgumentException(nameof(elifKeyword)); 33305if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33315if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33317if (elseKeyword.Kind != SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword)); 33319if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33329if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33331if (endIfKeyword.Kind != SyntaxKind.EndIfKeyword) throw new ArgumentException(nameof(endIfKeyword)); 33333if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33343if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33345if (regionKeyword.Kind != SyntaxKind.RegionKeyword) throw new ArgumentException(nameof(regionKeyword)); 33347if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33357if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33359if (endRegionKeyword.Kind != SyntaxKind.EndRegionKeyword) throw new ArgumentException(nameof(endRegionKeyword)); 33361if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33371if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33373if (errorKeyword.Kind != SyntaxKind.ErrorKeyword) throw new ArgumentException(nameof(errorKeyword)); 33375if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33385if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33387if (warningKeyword.Kind != SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword)); 33389if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33399if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33402if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33412if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33414if (defineKeyword.Kind != SyntaxKind.DefineKeyword) throw new ArgumentException(nameof(defineKeyword)); 33416if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 33418if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33428if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33430if (undefKeyword.Kind != SyntaxKind.UndefKeyword) throw new ArgumentException(nameof(undefKeyword)); 33432if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 33434if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33444if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33446if (lineKeyword.Kind != SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword)); 33448switch (line.Kind) 33457switch (file.Kind) 33465if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33475if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 33477if (line.Kind != SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(line)); 33479if (commaToken.Kind != SyntaxKind.CommaToken) throw new ArgumentException(nameof(commaToken)); 33481if (character.Kind != SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(character)); 33483if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 33493if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33495if (lineKeyword.Kind != SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword)); 33498if (minusToken.Kind != SyntaxKind.MinusToken) throw new ArgumentException(nameof(minusToken)); 33502switch (characterOffset.Kind) 33510if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 33512if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33522if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33524if (pragmaKeyword.Kind != SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword)); 33526if (warningKeyword.Kind != SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword)); 33528switch (disableOrRestoreKeyword.Kind) 33535if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33545if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33547if (pragmaKeyword.Kind != SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword)); 33549if (checksumKeyword.Kind != SyntaxKind.ChecksumKeyword) throw new ArgumentException(nameof(checksumKeyword)); 33551if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 33553if (guid.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(guid)); 33555if (bytes.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(bytes)); 33557if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33567if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33569if (referenceKeyword.Kind != SyntaxKind.ReferenceKeyword) throw new ArgumentException(nameof(referenceKeyword)); 33571if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 33573if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33583if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33585if (loadKeyword.Kind != SyntaxKind.LoadKeyword) throw new ArgumentException(nameof(loadKeyword)); 33587if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 33589if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33599if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33601if (exclamationToken.Kind != SyntaxKind.ExclamationToken) throw new ArgumentException(nameof(exclamationToken)); 33603if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33613if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33615if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 33618switch (content.Kind) 33626if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33636if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 33638if (nullableKeyword.Kind != SyntaxKind.NullableKeyword) throw new ArgumentException(nameof(nullableKeyword)); 33640switch (settingToken.Kind) 33649switch (targetToken.Kind) 33658if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 33672switch (identifier.Kind) 33698if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 33719if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 33740if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 33742if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 33763if (colonColonToken.Kind != SyntaxKind.ColonColonToken) throw new ArgumentException(nameof(colonColonToken)); 33784switch (keyword.Kind) 33842if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 33844if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 33865if (asteriskToken.Kind != SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken)); 33885if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 33887if (asteriskToken.Kind != SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken)); 33898if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 33900if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 33920switch (managedOrUnmanagedKeyword.Kind) 33945if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 33947if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 33967if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 33988if (questionToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken)); 34008if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34010if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34032switch (identifier.Kind) 34058if (omittedTypeArgumentToken.Kind != SyntaxKind.OmittedTypeArgumentToken) throw new ArgumentException(nameof(omittedTypeArgumentToken)); 34078if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 34081switch (readOnlyKeyword.Kind) 34108if (scopedKeyword.Kind != SyntaxKind.ScopedKeyword) throw new ArgumentException(nameof(scopedKeyword)); 34129if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34132if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34152if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34154if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34187switch (operatorToken.Kind) 34220if (awaitKeyword.Kind != SyntaxKind.AwaitKeyword) throw new ArgumentException(nameof(awaitKeyword)); 34249switch (operatorToken.Kind) 34282switch (operatorToken.Kind) 34309if (operatorToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(operatorToken)); 34330if (operatorToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(operatorToken)); 34370if (operatorToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken)); 34436switch (operatorToken.Kind) 34500switch (operatorToken.Kind) 34538if (questionToken.Kind != SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken)); 34541if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 34552if (token.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token)); 34572if (token.Kind != SyntaxKind.BaseKeyword) throw new ArgumentException(nameof(token)); 34605switch (token.Kind) 34641if (token.Kind != SyntaxKind.FieldKeyword) throw new ArgumentException(nameof(token)); 34661if (keyword.Kind != SyntaxKind.MakeRefKeyword) throw new ArgumentException(nameof(keyword)); 34663if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34666if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34676if (keyword.Kind != SyntaxKind.RefTypeKeyword) throw new ArgumentException(nameof(keyword)); 34678if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34681if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34691if (keyword.Kind != SyntaxKind.RefValueKeyword) throw new ArgumentException(nameof(keyword)); 34693if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34696if (comma.Kind != SyntaxKind.CommaToken) throw new ArgumentException(nameof(comma)); 34699if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34715switch (keyword.Kind) 34722if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34725if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34735if (keyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword)); 34737if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34740if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34750if (keyword.Kind != SyntaxKind.TypeOfKeyword) throw new ArgumentException(nameof(keyword)); 34752if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34755if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34765if (keyword.Kind != SyntaxKind.SizeOfKeyword) throw new ArgumentException(nameof(keyword)); 34767if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34770if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34820if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34822if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34842if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 34844if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 34865switch (refKindKeyword.Kind) 34954if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 34957if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 34968if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 34980if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 34990if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 35012if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 35031if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 35033if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 35053if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 35074if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 35086if (withKeyword.Kind != SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword)); 35126if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 35128if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 35130if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 35140if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 35161if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 35163if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 35165if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 35176if (stackAllocKeyword.Kind != SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword)); 35197if (stackAllocKeyword.Kind != SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword)); 35199if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 35201if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 35212if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 35214if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 35253if (operatorToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken)); 35274if (withKeyword.Kind != SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword)); 35334if (fromKeyword.Kind != SyntaxKind.FromKeyword) throw new ArgumentException(nameof(fromKeyword)); 35336if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35338if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 35349if (letKeyword.Kind != SyntaxKind.LetKeyword) throw new ArgumentException(nameof(letKeyword)); 35351if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35353if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 35364if (joinKeyword.Kind != SyntaxKind.JoinKeyword) throw new ArgumentException(nameof(joinKeyword)); 35366if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35368if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 35371if (onKeyword.Kind != SyntaxKind.OnKeyword) throw new ArgumentException(nameof(onKeyword)); 35374if (equalsKeyword.Kind != SyntaxKind.EqualsKeyword) throw new ArgumentException(nameof(equalsKeyword)); 35385if (intoKeyword.Kind != SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword)); 35387if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35407if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 35428if (orderByKeyword.Kind != SyntaxKind.OrderByKeyword) throw new ArgumentException(nameof(orderByKeyword)); 35456switch (ascendingOrDescendingKeyword.Kind) 35483if (selectKeyword.Kind != SyntaxKind.SelectKeyword) throw new ArgumentException(nameof(selectKeyword)); 35504if (groupKeyword.Kind != SyntaxKind.GroupKeyword) throw new ArgumentException(nameof(groupKeyword)); 35507if (byKeyword.Kind != SyntaxKind.ByKeyword) throw new ArgumentException(nameof(byKeyword)); 35518if (intoKeyword.Kind != SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword)); 35520if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 35541if (omittedArraySizeExpressionToken.Kind != SyntaxKind.OmittedArraySizeExpressionToken) throw new ArgumentException(nameof(omittedArraySizeExpressionToken)); 35561switch (stringStartToken.Kind) 35570switch (stringEndToken.Kind) 35596if (isKeyword.Kind != SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword)); 35617if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 35638if (whenKeyword.Kind != SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword)); 35659if (underscoreToken.Kind != SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken)); 35699if (varKeyword.Kind != SyntaxKind.VarKeyword) throw new ArgumentException(nameof(varKeyword)); 35728if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 35730if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 35750if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 35752if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 35810if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 35813if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 35833switch (operatorToken.Kind) 35889switch (operatorToken.Kind) 35915if (operatorToken.Kind != SyntaxKind.NotKeyword) throw new ArgumentException(nameof(operatorToken)); 35936if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 35938if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 35948if (dotDotToken.Kind != SyntaxKind.DotDotToken) throw new ArgumentException(nameof(dotDotToken)); 35968if (textToken.Kind != SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(textToken)); 35988if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 35991if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 36022if (formatStringToken.Kind != SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(formatStringToken)); 36061if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 36063if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 36074if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36078switch (semicolonToken.Kind) 36095switch (awaitKeyword.Kind) 36104switch (usingKeyword.Kind) 36113if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36142if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36162if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 36183if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36203if (underscoreToken.Kind != SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken)); 36223if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36225if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36246if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36266if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36286if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36288if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 36306if (gotoKeyword.Kind != SyntaxKind.GotoKeyword) throw new ArgumentException(nameof(gotoKeyword)); 36309switch (caseOrDefaultKeyword.Kind) 36318if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36328if (breakKeyword.Kind != SyntaxKind.BreakKeyword) throw new ArgumentException(nameof(breakKeyword)); 36330if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36350if (continueKeyword.Kind != SyntaxKind.ContinueKeyword) throw new ArgumentException(nameof(continueKeyword)); 36352if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36372if (returnKeyword.Kind != SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword)); 36374if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36384if (throwKeyword.Kind != SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword)); 36386if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36402if (yieldKeyword.Kind != SyntaxKind.YieldKeyword) throw new ArgumentException(nameof(yieldKeyword)); 36404switch (returnOrBreakKeyword.Kind) 36411if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36421if (whileKeyword.Kind != SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword)); 36423if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36426if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36437if (doKeyword.Kind != SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword)); 36440if (whileKeyword.Kind != SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword)); 36442if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36445if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36447if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36457if (forKeyword.Kind != SyntaxKind.ForKeyword) throw new ArgumentException(nameof(forKeyword)); 36459if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36461if (firstSemicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(firstSemicolonToken)); 36463if (secondSemicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(secondSemicolonToken)); 36465if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36477switch (awaitKeyword.Kind) 36485if (forEachKeyword.Kind != SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword)); 36487if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36490if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36492if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 36495if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36507switch (awaitKeyword.Kind) 36515if (forEachKeyword.Kind != SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword)); 36517if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36520if (inKeyword.Kind != SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword)); 36523if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36535switch (awaitKeyword.Kind) 36543if (usingKeyword.Kind != SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword)); 36545if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36547if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36558if (fixedKeyword.Kind != SyntaxKind.FixedKeyword) throw new ArgumentException(nameof(fixedKeyword)); 36560if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36563if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36580switch (keyword.Kind) 36606if (unsafeKeyword.Kind != SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(unsafeKeyword)); 36627if (lockKeyword.Kind != SyntaxKind.LockKeyword) throw new ArgumentException(nameof(lockKeyword)); 36629if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36632if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36643if (ifKeyword.Kind != SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword)); 36645if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36648if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36659if (elseKeyword.Kind != SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword)); 36680if (switchKeyword.Kind != SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword)); 36683switch (openParenToken.Kind) 36693switch (closeParenToken.Kind) 36701if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 36703if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 36731if (keyword.Kind != SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword)); 36743if (keyword.Kind != SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword)); 36765if (keyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword)); 36787if (switchKeyword.Kind != SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword)); 36789if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 36791if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 36802if (equalsGreaterThanToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(equalsGreaterThanToken)); 36813if (tryKeyword.Kind != SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword)); 36824if (catchKeyword.Kind != SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword)); 36835if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36839switch (identifier.Kind) 36847if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36857if (whenKeyword.Kind != SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword)); 36859if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 36862if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 36872if (finallyKeyword.Kind != SyntaxKind.FinallyKeyword) throw new ArgumentException(nameof(finallyKeyword)); 36893if (endOfFileToken.Kind != SyntaxKind.EndOfFileToken) throw new ArgumentException(nameof(endOfFileToken)); 36903if (externKeyword.Kind != SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword)); 36905if (aliasKeyword.Kind != SyntaxKind.AliasKeyword) throw new ArgumentException(nameof(aliasKeyword)); 36907if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 36909if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36920switch (globalKeyword.Kind) 36928if (usingKeyword.Kind != SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword)); 36931switch (staticKeyword.Kind) 36940switch (unsafeKeyword.Kind) 36949if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36959if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 36962if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 36964if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 36967switch (semicolonToken.Kind) 36983if (namespaceKeyword.Kind != SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword)); 36986if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 36996if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 36998if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 37009if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 37038if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 37040if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 37080if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 37100if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 37102if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 37123switch (varianceKeyword.Kind) 37132if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37152if (keyword.Kind != SyntaxKind.ClassKeyword) throw new ArgumentException(nameof(keyword)); 37154if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37157switch (openBraceToken.Kind) 37166switch (closeBraceToken.Kind) 37175switch (semicolonToken.Kind) 37191if (keyword.Kind != SyntaxKind.StructKeyword) throw new ArgumentException(nameof(keyword)); 37193if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37196switch (openBraceToken.Kind) 37205switch (closeBraceToken.Kind) 37214switch (semicolonToken.Kind) 37230if (keyword.Kind != SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword)); 37232if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37235switch (openBraceToken.Kind) 37244switch (closeBraceToken.Kind) 37253switch (semicolonToken.Kind) 37277switch (classOrStructKeyword.Kind) 37286if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37289switch (openBraceToken.Kind) 37298switch (closeBraceToken.Kind) 37307switch (semicolonToken.Kind) 37323if (enumKeyword.Kind != SyntaxKind.EnumKeyword) throw new ArgumentException(nameof(enumKeyword)); 37325if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37328switch (openBraceToken.Kind) 37337switch (closeBraceToken.Kind) 37346switch (semicolonToken.Kind) 37362if (delegateKeyword.Kind != SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword)); 37365if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37368if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 37378if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37388if (keyword.Kind != SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(keyword)); 37391switch (openBraceToken.Kind) 37400switch (closeBraceToken.Kind) 37409switch (semicolonToken.Kind) 37425if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 37484if (whereKeyword.Kind != SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword)); 37487if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 37497if (newKeyword.Kind != SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword)); 37499if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 37501if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 37527switch (classOrStructKeyword.Kind) 37535switch (questionToken.Kind) 37580if (defaultKeyword.Kind != SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(defaultKeyword)); 37600if (allowsKeyword.Kind != SyntaxKind.AllowsKeyword) throw new ArgumentException(nameof(allowsKeyword)); 37620if (refKeyword.Kind != SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword)); 37622if (structKeyword.Kind != SyntaxKind.StructKeyword) throw new ArgumentException(nameof(structKeyword)); 37643if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 37653if (eventKeyword.Kind != SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword)); 37656if (semicolonToken.Kind != SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken)); 37667if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 37688if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37692switch (semicolonToken.Kind) 37709if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 37712switch (checkedKeyword.Kind) 37720switch (operatorToken.Kind) 37762switch (semicolonToken.Kind) 37778switch (implicitOrExplicitKeyword.Kind) 37785if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 37788switch (checkedKeyword.Kind) 37799switch (semicolonToken.Kind) 37815if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37819switch (semicolonToken.Kind) 37841if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 37843switch (thisOrBaseKeyword.Kind) 37869if (tildeToken.Kind != SyntaxKind.TildeToken) throw new ArgumentException(nameof(tildeToken)); 37871if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37875switch (semicolonToken.Kind) 37892if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37895switch (semicolonToken.Kind) 37911if (arrowToken.Kind != SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken)); 37932if (eventKeyword.Kind != SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword)); 37935if (identifier.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier)); 37938switch (semicolonToken.Kind) 37955if (thisKeyword.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword)); 37959switch (semicolonToken.Kind) 37975if (openBraceToken.Kind != SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken)); 37977if (closeBraceToken.Kind != SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken)); 38007switch (keyword.Kind) 38019switch (semicolonToken.Kind) 38035if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 38037if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 38057if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 38059if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 38080switch (identifier.Kind) 38138if (endOfComment.Kind != SyntaxKind.EndOfDocumentationCommentToken) throw new ArgumentException(nameof(endOfComment)); 38168if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 38208if (extensionKeyword.Kind != SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(extensionKeyword)); 38211if (dotToken.Kind != SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken)); 38222if (thisKeyword.Kind != SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword)); 38242if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38245switch (checkedKeyword.Kind) 38253switch (operatorToken.Kind) 38300switch (implicitOrExplicitKeyword.Kind) 38307if (operatorKeyword.Kind != SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword)); 38310switch (checkedKeyword.Kind) 38327if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 38329if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 38349if (openBracketToken.Kind != SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken)); 38351if (closeBracketToken.Kind != SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken)); 38372switch (refKindKeyword.Kind) 38383switch (readOnlyKeyword.Kind) 38430if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 38433if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 38443if (lessThanSlashToken.Kind != SyntaxKind.LessThanSlashToken) throw new ArgumentException(nameof(lessThanSlashToken)); 38446if (greaterThanToken.Kind != SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken)); 38466if (lessThanToken.Kind != SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken)); 38469if (slashGreaterThanToken.Kind != SyntaxKind.SlashGreaterThanToken) throw new ArgumentException(nameof(slashGreaterThanToken)); 38479if (localName.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(localName)); 38499if (prefix.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(prefix)); 38501if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 38522if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 38524switch (startQuoteToken.Kind) 38531switch (endQuoteToken.Kind) 38547if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 38549switch (startQuoteToken.Kind) 38557switch (endQuoteToken.Kind) 38573if (equalsToken.Kind != SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken)); 38575switch (startQuoteToken.Kind) 38583switch (endQuoteToken.Kind) 38616if (startCDataToken.Kind != SyntaxKind.XmlCDataStartToken) throw new ArgumentException(nameof(startCDataToken)); 38618if (endCDataToken.Kind != SyntaxKind.XmlCDataEndToken) throw new ArgumentException(nameof(endCDataToken)); 38638if (startProcessingInstructionToken.Kind != SyntaxKind.XmlProcessingInstructionStartToken) throw new ArgumentException(nameof(startProcessingInstructionToken)); 38641if (endProcessingInstructionToken.Kind != SyntaxKind.XmlProcessingInstructionEndToken) throw new ArgumentException(nameof(endProcessingInstructionToken)); 38651if (lessThanExclamationMinusMinusToken.Kind != SyntaxKind.XmlCommentStartToken) throw new ArgumentException(nameof(lessThanExclamationMinusMinusToken)); 38653if (minusMinusGreaterThanToken.Kind != SyntaxKind.XmlCommentEndToken) throw new ArgumentException(nameof(minusMinusGreaterThanToken)); 38673if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38675if (ifKeyword.Kind != SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword)); 38678if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38688if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38690if (elifKeyword.Kind != SyntaxKind.ElifKeyword) throw new ArgumentException(nameof(elifKeyword)); 38693if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38703if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38705if (elseKeyword.Kind != SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword)); 38707if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38717if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38719if (endIfKeyword.Kind != SyntaxKind.EndIfKeyword) throw new ArgumentException(nameof(endIfKeyword)); 38721if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38731if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38733if (regionKeyword.Kind != SyntaxKind.RegionKeyword) throw new ArgumentException(nameof(regionKeyword)); 38735if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38745if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38747if (endRegionKeyword.Kind != SyntaxKind.EndRegionKeyword) throw new ArgumentException(nameof(endRegionKeyword)); 38749if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38759if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38761if (errorKeyword.Kind != SyntaxKind.ErrorKeyword) throw new ArgumentException(nameof(errorKeyword)); 38763if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38773if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38775if (warningKeyword.Kind != SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword)); 38777if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38787if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38790if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38800if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38802if (defineKeyword.Kind != SyntaxKind.DefineKeyword) throw new ArgumentException(nameof(defineKeyword)); 38804if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 38806if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38816if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38818if (undefKeyword.Kind != SyntaxKind.UndefKeyword) throw new ArgumentException(nameof(undefKeyword)); 38820if (name.Kind != SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name)); 38822if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38832if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38834if (lineKeyword.Kind != SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword)); 38836switch (line.Kind) 38845switch (file.Kind) 38853if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38863if (openParenToken.Kind != SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken)); 38865if (line.Kind != SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(line)); 38867if (commaToken.Kind != SyntaxKind.CommaToken) throw new ArgumentException(nameof(commaToken)); 38869if (character.Kind != SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(character)); 38871if (closeParenToken.Kind != SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken)); 38881if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38883if (lineKeyword.Kind != SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword)); 38886if (minusToken.Kind != SyntaxKind.MinusToken) throw new ArgumentException(nameof(minusToken)); 38890switch (characterOffset.Kind) 38898if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 38900if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38910if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38912if (pragmaKeyword.Kind != SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword)); 38914if (warningKeyword.Kind != SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword)); 38916switch (disableOrRestoreKeyword.Kind) 38923if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38933if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38935if (pragmaKeyword.Kind != SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword)); 38937if (checksumKeyword.Kind != SyntaxKind.ChecksumKeyword) throw new ArgumentException(nameof(checksumKeyword)); 38939if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 38941if (guid.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(guid)); 38943if (bytes.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(bytes)); 38945if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38955if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38957if (referenceKeyword.Kind != SyntaxKind.ReferenceKeyword) throw new ArgumentException(nameof(referenceKeyword)); 38959if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 38961if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38971if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38973if (loadKeyword.Kind != SyntaxKind.LoadKeyword) throw new ArgumentException(nameof(loadKeyword)); 38975if (file.Kind != SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file)); 38977if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 38987if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 38989if (exclamationToken.Kind != SyntaxKind.ExclamationToken) throw new ArgumentException(nameof(exclamationToken)); 38991if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39001if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39003if (colonToken.Kind != SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken)); 39006switch (content.Kind) 39014if (endOfDirectiveToken.Kind != SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken)); 39024if (hashToken.Kind != SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken)); 39026if (nullableKeyword.Kind != SyntaxKind.NullableKeyword) throw new ArgumentException(nameof(nullableKeyword)); 39028switch (settingToken.Kind) 39037switch (targetToken.Kind) 39046if (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)
1697if (token.Kind == SyntaxKind.EndOfFileToken)
Syntax\SyntaxFacts.cs (1)
450return node.IsIdentifierVar() || IsPredefinedType(node.Kind);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (431)
Generated\Syntax.Test.xml.Generated.cs (418)
764Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 775Assert.Equal(SyntaxKind.DotToken, node.DotToken.Kind); 786Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 797Assert.Equal(SyntaxKind.LessThanToken, node.LessThanToken.Kind); 799Assert.Equal(SyntaxKind.GreaterThanToken, node.GreaterThanToken.Kind); 810Assert.Equal(SyntaxKind.ColonColonToken, node.ColonColonToken.Kind); 821Assert.Equal(SyntaxKind.BoolKeyword, node.Keyword.Kind); 842Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 844Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 855Assert.Equal(SyntaxKind.AsteriskToken, node.AsteriskToken.Kind); 865Assert.Equal(SyntaxKind.DelegateKeyword, node.DelegateKeyword.Kind); 866Assert.Equal(SyntaxKind.AsteriskToken, node.AsteriskToken.Kind); 878Assert.Equal(SyntaxKind.LessThanToken, node.LessThanToken.Kind); 880Assert.Equal(SyntaxKind.GreaterThanToken, node.GreaterThanToken.Kind); 890Assert.Equal(SyntaxKind.ManagedKeyword, node.ManagedOrUnmanagedKeyword.Kind); 901Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 903Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 913Assert.Equal(SyntaxKind.IdentifierToken, node.Name.Kind); 924Assert.Equal(SyntaxKind.QuestionToken, node.QuestionToken.Kind); 934Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 936Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 957Assert.Equal(SyntaxKind.OmittedTypeArgumentToken, node.OmittedTypeArgumentToken.Kind); 967Assert.Equal(SyntaxKind.RefKeyword, node.RefKeyword.Kind); 979Assert.Equal(SyntaxKind.ScopedKeyword, node.ScopedKeyword.Kind); 990Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 992Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1002Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1004Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1014Assert.Equal(SyntaxKind.PlusToken, node.OperatorToken.Kind); 1025Assert.Equal(SyntaxKind.AwaitKeyword, node.AwaitKeyword.Kind); 1037Assert.Equal(SyntaxKind.PlusPlusToken, node.OperatorToken.Kind); 1048Assert.Equal(SyntaxKind.DotToken, node.OperatorToken.Kind); 1060Assert.Equal(SyntaxKind.QuestionToken, node.OperatorToken.Kind); 1071Assert.Equal(SyntaxKind.DotToken, node.OperatorToken.Kind); 1093Assert.Equal(SyntaxKind.DotDotToken, node.OperatorToken.Kind); 1115Assert.Equal(SyntaxKind.PlusToken, node.OperatorToken.Kind); 1127Assert.Equal(SyntaxKind.EqualsToken, node.OperatorToken.Kind); 1139Assert.Equal(SyntaxKind.QuestionToken, node.QuestionToken.Kind); 1141Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 1152Assert.Equal(SyntaxKind.ThisKeyword, node.Token.Kind); 1162Assert.Equal(SyntaxKind.BaseKeyword, node.Token.Kind); 1172Assert.Equal(SyntaxKind.ArgListKeyword, node.Token.Kind); 1182Assert.Equal(SyntaxKind.FieldKeyword, node.Token.Kind); 1192Assert.Equal(SyntaxKind.MakeRefKeyword, node.Keyword.Kind); 1193Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1195Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1205Assert.Equal(SyntaxKind.RefTypeKeyword, node.Keyword.Kind); 1206Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1208Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1218Assert.Equal(SyntaxKind.RefValueKeyword, node.Keyword.Kind); 1219Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1221Assert.Equal(SyntaxKind.CommaToken, node.Comma.Kind); 1223Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1233Assert.Equal(SyntaxKind.CheckedKeyword, node.Keyword.Kind); 1234Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1236Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1246Assert.Equal(SyntaxKind.DefaultKeyword, node.Keyword.Kind); 1247Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1249Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1259Assert.Equal(SyntaxKind.TypeOfKeyword, node.Keyword.Kind); 1260Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1262Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1272Assert.Equal(SyntaxKind.SizeOfKeyword, node.Keyword.Kind); 1273Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1275Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1307Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1309Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1319Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 1321Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 1344Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 1355Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 1376Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1378Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1390Assert.Equal(SyntaxKind.DelegateKeyword, node.DelegateKeyword.Kind); 1406Assert.Equal(SyntaxKind.EqualsGreaterThanToken, node.ArrowToken.Kind); 1418Assert.Equal(SyntaxKind.RefKeyword, node.RefKeyword.Kind); 1433Assert.Equal(SyntaxKind.EqualsGreaterThanToken, node.ArrowToken.Kind); 1445Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 1447Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 1457Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1469Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1483Assert.Equal(SyntaxKind.WithKeyword, node.WithKeyword.Kind); 1505Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1506Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 1508Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 1518Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1530Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1531Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 1533Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 1544Assert.Equal(SyntaxKind.StackAllocKeyword, node.StackAllocKeyword.Kind); 1556Assert.Equal(SyntaxKind.StackAllocKeyword, node.StackAllocKeyword.Kind); 1557Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 1558Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 1569Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 1571Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 1591Assert.Equal(SyntaxKind.DotDotToken, node.OperatorToken.Kind); 1602Assert.Equal(SyntaxKind.WithKeyword, node.WithKeyword.Kind); 1636Assert.Equal(SyntaxKind.FromKeyword, node.FromKeyword.Kind); 1638Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 1639Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind); 1650Assert.Equal(SyntaxKind.LetKeyword, node.LetKeyword.Kind); 1651Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 1652Assert.Equal(SyntaxKind.EqualsToken, node.EqualsToken.Kind); 1663Assert.Equal(SyntaxKind.JoinKeyword, node.JoinKeyword.Kind); 1665Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 1666Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind); 1668Assert.Equal(SyntaxKind.OnKeyword, node.OnKeyword.Kind); 1670Assert.Equal(SyntaxKind.EqualsKeyword, node.EqualsKeyword.Kind); 1682Assert.Equal(SyntaxKind.IntoKeyword, node.IntoKeyword.Kind); 1683Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 1693Assert.Equal(SyntaxKind.WhereKeyword, node.WhereKeyword.Kind); 1704Assert.Equal(SyntaxKind.OrderByKeyword, node.OrderByKeyword.Kind); 1726Assert.Equal(SyntaxKind.SelectKeyword, node.SelectKeyword.Kind); 1737Assert.Equal(SyntaxKind.GroupKeyword, node.GroupKeyword.Kind); 1739Assert.Equal(SyntaxKind.ByKeyword, node.ByKeyword.Kind); 1750Assert.Equal(SyntaxKind.IntoKeyword, node.IntoKeyword.Kind); 1751Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 1762Assert.Equal(SyntaxKind.OmittedArraySizeExpressionToken, node.OmittedArraySizeExpressionToken.Kind); 1772Assert.Equal(SyntaxKind.InterpolatedStringStartToken, node.StringStartToken.Kind); 1774Assert.Equal(SyntaxKind.InterpolatedStringEndToken, node.StringEndToken.Kind); 1785Assert.Equal(SyntaxKind.IsKeyword, node.IsKeyword.Kind); 1796Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind); 1807Assert.Equal(SyntaxKind.WhenKeyword, node.WhenKeyword.Kind); 1818Assert.Equal(SyntaxKind.UnderscoreToken, node.UnderscoreToken.Kind); 1839Assert.Equal(SyntaxKind.VarKeyword, node.VarKeyword.Kind); 1863Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1865Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1875Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 1877Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 1908Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 1910Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 1920Assert.Equal(SyntaxKind.EqualsEqualsToken, node.OperatorToken.Kind); 1942Assert.Equal(SyntaxKind.OrKeyword, node.OperatorToken.Kind); 1953Assert.Equal(SyntaxKind.NotKeyword, node.OperatorToken.Kind); 1964Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 1966Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 1977Assert.Equal(SyntaxKind.DotDotToken, node.DotDotToken.Kind); 1988Assert.Equal(SyntaxKind.InterpolatedStringTextToken, node.TextToken.Kind); 1998Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 2002Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 2012Assert.Equal(SyntaxKind.IdentifierToken, node.CommaToken.Kind); 2023Assert.Equal(SyntaxKind.IdentifierToken, node.ColonToken.Kind); 2024Assert.Equal(SyntaxKind.InterpolatedStringTextToken, node.FormatStringToken.Kind); 2047Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 2049Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 2062Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2083Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2104Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2116Assert.Equal(SyntaxKind.EqualsToken, node.EqualsToken.Kind); 2127Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2137Assert.Equal(SyntaxKind.UnderscoreToken, node.UnderscoreToken.Kind); 2147Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2149Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2161Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2172Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2183Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2184Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 2196Assert.Equal(SyntaxKind.GotoKeyword, node.GotoKeyword.Kind); 2199Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2210Assert.Equal(SyntaxKind.BreakKeyword, node.BreakKeyword.Kind); 2211Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2222Assert.Equal(SyntaxKind.ContinueKeyword, node.ContinueKeyword.Kind); 2223Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2234Assert.Equal(SyntaxKind.ReturnKeyword, node.ReturnKeyword.Kind); 2236Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2247Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.Kind); 2249Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2260Assert.Equal(SyntaxKind.YieldKeyword, node.YieldKeyword.Kind); 2261Assert.Equal(SyntaxKind.ReturnKeyword, node.ReturnOrBreakKeyword.Kind); 2263Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2274Assert.Equal(SyntaxKind.WhileKeyword, node.WhileKeyword.Kind); 2275Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2277Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2289Assert.Equal(SyntaxKind.DoKeyword, node.DoKeyword.Kind); 2291Assert.Equal(SyntaxKind.WhileKeyword, node.WhileKeyword.Kind); 2292Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2294Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2295Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2306Assert.Equal(SyntaxKind.ForKeyword, node.ForKeyword.Kind); 2307Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2310Assert.Equal(SyntaxKind.SemicolonToken, node.FirstSemicolonToken.Kind); 2312Assert.Equal(SyntaxKind.SemicolonToken, node.SecondSemicolonToken.Kind); 2314Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2327Assert.Equal(SyntaxKind.ForEachKeyword, node.ForEachKeyword.Kind); 2328Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2330Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2331Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind); 2333Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2346Assert.Equal(SyntaxKind.ForEachKeyword, node.ForEachKeyword.Kind); 2347Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2349Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.Kind); 2351Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2364Assert.Equal(SyntaxKind.UsingKeyword, node.UsingKeyword.Kind); 2365Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2368Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2380Assert.Equal(SyntaxKind.FixedKeyword, node.FixedKeyword.Kind); 2381Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2383Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2395Assert.Equal(SyntaxKind.CheckedKeyword, node.Keyword.Kind); 2407Assert.Equal(SyntaxKind.UnsafeKeyword, node.UnsafeKeyword.Kind); 2419Assert.Equal(SyntaxKind.LockKeyword, node.LockKeyword.Kind); 2420Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2422Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2434Assert.Equal(SyntaxKind.IfKeyword, node.IfKeyword.Kind); 2435Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2437Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2449Assert.Equal(SyntaxKind.ElseKeyword, node.ElseKeyword.Kind); 2461Assert.Equal(SyntaxKind.SwitchKeyword, node.SwitchKeyword.Kind); 2465Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 2467Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 2488Assert.Equal(SyntaxKind.CaseKeyword, node.Keyword.Kind); 2491Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 2501Assert.Equal(SyntaxKind.CaseKeyword, node.Keyword.Kind); 2503Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 2513Assert.Equal(SyntaxKind.DefaultKeyword, node.Keyword.Kind); 2514Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 2525Assert.Equal(SyntaxKind.SwitchKeyword, node.SwitchKeyword.Kind); 2526Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 2528Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 2540Assert.Equal(SyntaxKind.EqualsGreaterThanToken, node.EqualsGreaterThanToken.Kind); 2552Assert.Equal(SyntaxKind.TryKeyword, node.TryKeyword.Kind); 2565Assert.Equal(SyntaxKind.CatchKeyword, node.CatchKeyword.Kind); 2578Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2581Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2591Assert.Equal(SyntaxKind.WhenKeyword, node.WhenKeyword.Kind); 2592Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2594Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2604Assert.Equal(SyntaxKind.FinallyKeyword, node.FinallyKeyword.Kind); 2619Assert.Equal(SyntaxKind.EndOfFileToken, node.EndOfFileToken.Kind); 2629Assert.Equal(SyntaxKind.ExternKeyword, node.ExternKeyword.Kind); 2630Assert.Equal(SyntaxKind.AliasKeyword, node.AliasKeyword.Kind); 2631Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2632Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2643Assert.Equal(SyntaxKind.UsingKeyword, node.UsingKeyword.Kind); 2648Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2660Assert.Equal(SyntaxKind.NamespaceKeyword, node.NamespaceKeyword.Kind); 2662Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 2666Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 2679Assert.Equal(SyntaxKind.NamespaceKeyword, node.NamespaceKeyword.Kind); 2681Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2694Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 2697Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 2707Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2708Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 2729Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2731Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2754Assert.Equal(SyntaxKind.EqualsToken, node.EqualsToken.Kind); 2764Assert.Equal(SyntaxKind.LessThanToken, node.LessThanToken.Kind); 2766Assert.Equal(SyntaxKind.GreaterThanToken, node.GreaterThanToken.Kind); 2778Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2790Assert.Equal(SyntaxKind.ClassKeyword, node.Keyword.Kind); 2791Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2811Assert.Equal(SyntaxKind.StructKeyword, node.Keyword.Kind); 2812Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2832Assert.Equal(SyntaxKind.InterfaceKeyword, node.Keyword.Kind); 2833Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2853Assert.Equal(SyntaxKind.IdentifierToken, node.Keyword.Kind); 2855Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2875Assert.Equal(SyntaxKind.EnumKeyword, node.EnumKeyword.Kind); 2876Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2893Assert.Equal(SyntaxKind.DelegateKeyword, node.DelegateKeyword.Kind); 2895Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2899Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 2911Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 2924Assert.Equal(SyntaxKind.ExtensionKeyword, node.Keyword.Kind); 2941Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 2973Assert.Equal(SyntaxKind.WhereKeyword, node.WhereKeyword.Kind); 2975Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 2986Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 2987Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 2988Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 2998Assert.Equal(SyntaxKind.ClassKeyword, node.ClassOrStructKeyword.Kind); 3019Assert.Equal(SyntaxKind.DefaultKeyword, node.DefaultKeyword.Kind); 3029Assert.Equal(SyntaxKind.AllowsKeyword, node.AllowsKeyword.Kind); 3040Assert.Equal(SyntaxKind.RefKeyword, node.RefKeyword.Kind); 3041Assert.Equal(SyntaxKind.StructKeyword, node.StructKeyword.Kind); 3054Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 3066Assert.Equal(SyntaxKind.EventKeyword, node.EventKeyword.Kind); 3068Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind); 3079Assert.Equal(SyntaxKind.DotToken, node.DotToken.Kind); 3093Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 3113Assert.Equal(SyntaxKind.OperatorKeyword, node.OperatorKeyword.Kind); 3115Assert.Equal(SyntaxKind.PlusToken, node.OperatorToken.Kind); 3131Assert.Equal(SyntaxKind.ImplicitKeyword, node.ImplicitOrExplicitKeyword.Kind); 3133Assert.Equal(SyntaxKind.OperatorKeyword, node.OperatorKeyword.Kind); 3151Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 3166Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 3167Assert.Equal(SyntaxKind.BaseKeyword, node.ThisOrBaseKeyword.Kind); 3180Assert.Equal(SyntaxKind.TildeToken, node.TildeToken.Kind); 3181Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 3199Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 3213Assert.Equal(SyntaxKind.EqualsGreaterThanToken, node.ArrowToken.Kind); 3226Assert.Equal(SyntaxKind.EventKeyword, node.EventKeyword.Kind); 3229Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 3245Assert.Equal(SyntaxKind.ThisKeyword, node.ThisKeyword.Kind); 3259Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.Kind); 3261Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.Kind); 3273Assert.Equal(SyntaxKind.GetKeyword, node.Keyword.Kind); 3286Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 3288Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 3298Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 3300Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 3359Assert.Equal(SyntaxKind.EndOfDocumentationCommentToken, node.EndOfComment.Kind); 3380Assert.Equal(SyntaxKind.DotToken, node.DotToken.Kind); 3402Assert.Equal(SyntaxKind.ExtensionKeyword, node.ExtensionKeyword.Kind); 3405Assert.Equal(SyntaxKind.DotToken, node.DotToken.Kind); 3416Assert.Equal(SyntaxKind.ThisKeyword, node.ThisKeyword.Kind); 3427Assert.Equal(SyntaxKind.OperatorKeyword, node.OperatorKeyword.Kind); 3429Assert.Equal(SyntaxKind.PlusToken, node.OperatorToken.Kind); 3440Assert.Equal(SyntaxKind.ImplicitKeyword, node.ImplicitOrExplicitKeyword.Kind); 3441Assert.Equal(SyntaxKind.OperatorKeyword, node.OperatorKeyword.Kind); 3454Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 3456Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 3466Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.Kind); 3468Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.Kind); 3502Assert.Equal(SyntaxKind.LessThanToken, node.LessThanToken.Kind); 3505Assert.Equal(SyntaxKind.GreaterThanToken, node.GreaterThanToken.Kind); 3515Assert.Equal(SyntaxKind.LessThanSlashToken, node.LessThanSlashToken.Kind); 3517Assert.Equal(SyntaxKind.GreaterThanToken, node.GreaterThanToken.Kind); 3527Assert.Equal(SyntaxKind.LessThanToken, node.LessThanToken.Kind); 3530Assert.Equal(SyntaxKind.SlashGreaterThanToken, node.SlashGreaterThanToken.Kind); 3541Assert.Equal(SyntaxKind.IdentifierToken, node.LocalName.Kind); 3551Assert.Equal(SyntaxKind.IdentifierToken, node.Prefix.Kind); 3552Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.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); 3591Assert.Equal(SyntaxKind.EqualsToken, node.EqualsToken.Kind); 3592Assert.Equal(SyntaxKind.SingleQuoteToken, node.StartQuoteToken.Kind); 3594Assert.Equal(SyntaxKind.SingleQuoteToken, node.EndQuoteToken.Kind); 3614Assert.Equal(SyntaxKind.XmlCDataStartToken, node.StartCDataToken.Kind); 3616Assert.Equal(SyntaxKind.XmlCDataEndToken, node.EndCDataToken.Kind); 3626Assert.Equal(SyntaxKind.XmlProcessingInstructionStartToken, node.StartProcessingInstructionToken.Kind); 3629Assert.Equal(SyntaxKind.XmlProcessingInstructionEndToken, node.EndProcessingInstructionToken.Kind); 3639Assert.Equal(SyntaxKind.XmlCommentStartToken, node.LessThanExclamationMinusMinusToken.Kind); 3641Assert.Equal(SyntaxKind.XmlCommentEndToken, node.MinusMinusGreaterThanToken.Kind); 3651Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3652Assert.Equal(SyntaxKind.IfKeyword, node.IfKeyword.Kind); 3654Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3667Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3668Assert.Equal(SyntaxKind.ElifKeyword, node.ElifKeyword.Kind); 3670Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3683Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3684Assert.Equal(SyntaxKind.ElseKeyword, node.ElseKeyword.Kind); 3685Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3697Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3698Assert.Equal(SyntaxKind.EndIfKeyword, node.EndIfKeyword.Kind); 3699Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3710Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3711Assert.Equal(SyntaxKind.RegionKeyword, node.RegionKeyword.Kind); 3712Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3723Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3724Assert.Equal(SyntaxKind.EndRegionKeyword, node.EndRegionKeyword.Kind); 3725Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3736Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3737Assert.Equal(SyntaxKind.ErrorKeyword, node.ErrorKeyword.Kind); 3738Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3749Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3750Assert.Equal(SyntaxKind.WarningKeyword, node.WarningKeyword.Kind); 3751Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3762Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3763Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.Kind); 3764Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3775Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3776Assert.Equal(SyntaxKind.DefineKeyword, node.DefineKeyword.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.UndefKeyword, node.UndefKeyword.Kind); 3791Assert.Equal(SyntaxKind.IdentifierToken, node.Name.Kind); 3792Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3803Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3804Assert.Equal(SyntaxKind.LineKeyword, node.LineKeyword.Kind); 3805Assert.Equal(SyntaxKind.NumericLiteralToken, node.Line.Kind); 3807Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3818Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.Kind); 3819Assert.Equal(SyntaxKind.NumericLiteralToken, node.Line.Kind); 3820Assert.Equal(SyntaxKind.CommaToken, node.CommaToken.Kind); 3821Assert.Equal(SyntaxKind.NumericLiteralToken, node.Character.Kind); 3822Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.Kind); 3832Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3833Assert.Equal(SyntaxKind.LineKeyword, node.LineKeyword.Kind); 3835Assert.Equal(SyntaxKind.MinusToken, node.MinusToken.Kind); 3838Assert.Equal(SyntaxKind.StringLiteralToken, node.File.Kind); 3839Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3850Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3851Assert.Equal(SyntaxKind.PragmaKeyword, node.PragmaKeyword.Kind); 3852Assert.Equal(SyntaxKind.WarningKeyword, node.WarningKeyword.Kind); 3853Assert.Equal(SyntaxKind.DisableKeyword, node.DisableOrRestoreKeyword.Kind); 3855Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3866Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3867Assert.Equal(SyntaxKind.PragmaKeyword, node.PragmaKeyword.Kind); 3868Assert.Equal(SyntaxKind.ChecksumKeyword, node.ChecksumKeyword.Kind); 3869Assert.Equal(SyntaxKind.StringLiteralToken, node.File.Kind); 3870Assert.Equal(SyntaxKind.StringLiteralToken, node.Guid.Kind); 3871Assert.Equal(SyntaxKind.StringLiteralToken, node.Bytes.Kind); 3872Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3883Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3884Assert.Equal(SyntaxKind.ReferenceKeyword, node.ReferenceKeyword.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.LoadKeyword, node.LoadKeyword.Kind); 3899Assert.Equal(SyntaxKind.StringLiteralToken, node.File.Kind); 3900Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3911Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3912Assert.Equal(SyntaxKind.ExclamationToken, node.ExclamationToken.Kind); 3913Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3924Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3925Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.Kind); 3927Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.Kind); 3938Assert.Equal(SyntaxKind.HashToken, node.HashToken.Kind); 3939Assert.Equal(SyntaxKind.NullableKeyword, node.NullableKeyword.Kind); 3940Assert.Equal(SyntaxKind.EnableKeyword, node.SettingToken.Kind); 3942Assert.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);