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