2836 references to Kind
Microsoft.CodeAnalysis.CSharp (2406)
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)
376
switch (this.CurrentToken.
Kind
)
385
if (isActive && !line.IsMissing && line.
Kind
== SyntaxKind.NumericLiteralToken)
397
if (this.CurrentToken.
Kind
== SyntaxKind.StringLiteralToken &&
413
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
432
var characterOffset = (CurrentToken.
Kind
== SyntaxKind.NumericLiteralToken) ?
486
else if (token.
Kind
== SyntaxKind.NumericLiteralToken)
545
SyntaxToken setting = this.CurrentToken.
Kind
switch
553
SyntaxToken target = this.CurrentToken.
Kind
switch
578
if (this.CurrentToken.
Kind
== SyntaxKind.DisableKeyword || this.CurrentToken.
Kind
== SyntaxKind.RestoreKeyword)
583
while (this.CurrentToken.
Kind
!= SyntaxKind.EndOfDirectiveToken)
588
if (this.CurrentToken.
Kind
== SyntaxKind.NumericLiteralToken)
600
else if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
621
if (this.CurrentToken.
Kind
!= SyntaxKind.CommaToken)
639
else if (this.CurrentToken.
Kind
== SyntaxKind.ChecksumKeyword)
728
if (this.CurrentToken.
Kind
!= SyntaxKind.EndOfDirectiveToken &&
729
this.CurrentToken.
Kind
!= SyntaxKind.EndOfFileToken)
748
while (this.CurrentToken.
Kind
!= SyntaxKind.EndOfDirectiveToken &&
749
this.CurrentToken.
Kind
!= SyntaxKind.EndOfFileToken)
756
SyntaxToken endOfDirective = this.CurrentToken.
Kind
== SyntaxKind.EndOfDirectiveToken
777
while (this.CurrentToken.
Kind
== SyntaxKind.BarBarToken)
790
while (this.CurrentToken.
Kind
== SyntaxKind.AmpersandAmpersandToken)
803
while (this.CurrentToken.
Kind
== SyntaxKind.EqualsEqualsToken || this.CurrentToken.
Kind
== SyntaxKind.ExclamationEqualsToken)
807
left = SyntaxFactory.BinaryExpression(SyntaxFacts.GetBinaryExpression(op.
Kind
), left, op, right);
815
if (this.CurrentToken.
Kind
== SyntaxKind.ExclamationToken)
826
var k = this.CurrentToken.
Kind
;
875
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 (734)
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
)
2563
switch (this.CurrentToken.
Kind
)
2566
if (this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken)
2573
if (this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
2580
switch (this.PeekToken(1).
Kind
)
2609
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
2643
if (this.CurrentToken.
Kind
== SyntaxKind.ConstKeyword)
2656
if (this.CurrentToken.
Kind
== SyntaxKind.EventKeyword)
2662
if (this.CurrentToken.
Kind
== SyntaxKind.FixedKeyword)
2674
if (this.CurrentToken.
Kind
== SyntaxKind.NamespaceKeyword)
2692
if ((!haveAttributes || !IsScript) && !haveModifiers && (type.
Kind
== SyntaxKind.RefType || !IsOperatorStart(out _, advanceParser: false)))
2696
if (this.CurrentToken.
Kind
is not SyntaxKind.CloseBraceToken and not SyntaxKind.EndOfFileToken &&
2786
!type.IsMissing && type.
Kind
!= SyntaxKind.RefType &&
2919
switch (statement?.
Kind
)
2927
statement is ExpressionStatementSyntax { Expression.
Kind
: SyntaxKind.IdentifierName, SemicolonToken.IsMissing: true }:
2941
if (CurrentToken.
Kind
== SyntaxKind.UsingKeyword)
2946
if (CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).
Kind
== SyntaxKind.UsingKeyword)
2990
if (attributes.Count == 0 && modifiers.Count == 0 && type.IsMissing && type.
Kind
!= SyntaxKind.RefType)
3033
if (type.
Kind
!= SyntaxKind.RefType &&
3036
|| this.CurrentToken.
Kind
is not SyntaxKind.OpenParenToken and not SyntaxKind.OpenBraceToken and not SyntaxKind.EqualsGreaterThanToken) &&
3056
if (identifierOrThisOpt.
Kind
== SyntaxKind.ThisKeyword)
3064
if (IsStartOfPropertyBody(this.CurrentToken.
Kind
) ||
3065
(this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken && IsStartOfPropertyBody(this.PeekToken(1).
Kind
)))
3123
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
3129
if (this.CurrentToken.
Kind
== SyntaxKind.TildeToken)
3135
if (this.CurrentToken.
Kind
== SyntaxKind.ConstKeyword)
3141
if (this.CurrentToken.
Kind
== SyntaxKind.EventKeyword)
3147
if (this.CurrentToken.
Kind
== SyntaxKind.FixedKeyword)
3187
if (type.
Kind
!= SyntaxKind.RefType)
3255
(IsFeatureEnabled(MessageID.IDS_FeatureExtensions) || this.PeekToken(1).
Kind
== SyntaxKind.LessThanToken);
3266
if (type.
Kind
!= SyntaxKind.IdentifierName)
3269
if (identifierOrThisOpt.
Kind
!= SyntaxKind.IdentifierToken)
3286
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
3291
if (this.CurrentToken.ContextualKind == SyntaxKind.GlobalKeyword && this.PeekToken(1).
Kind
== SyntaxKind.UsingKeyword)
3302
var kind = this.PeekToken(1).
Kind
;
3309
IsStartOfPropertyBody(this.PeekToken(2).
Kind
))
3331
return this.CurrentToken.
Kind
is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword or SyntaxKind.OperatorKeyword;
3353
if (token.
Kind
!= SyntaxKind.None)
3373
var initializer = this.CurrentToken.
Kind
== SyntaxKind.ColonToken
3392
var kind = this.CurrentToken.
Kind
== SyntaxKind.BaseKeyword
3397
if (this.CurrentToken.
Kind
is SyntaxKind.BaseKeyword or SyntaxKind.ThisKeyword)
3409
var argumentList = this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken
3421
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.TildeToken);
3447
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
3455
blockBody = this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
3459
expressionBody = this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken
3470
else if (parseSemicolonAfterBlock && this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
3482
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
3488
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
3494
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
3510
=> this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.OpenBraceToken;
3514
return this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.OpenBraceToken;
3518
=> this.CurrentToken.
Kind
is SyntaxKind.DotToken or SyntaxKind.ColonColonToken;
3521
=> this.CurrentToken.
Kind
== (errored ? SyntaxKind.CloseParenToken : SyntaxKind.GreaterThanToken);
3524
=> this.CurrentToken.
Kind
== SyntaxKind.CloseBracketToken;
3546
else if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
3599
switch (this.CurrentToken.
Kind
)
3618
if (this.CurrentToken.
Kind
is not (SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword))
3622
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
3632
if (this.CurrentToken.
Kind
== SyntaxKind.OperatorKeyword)
3646
(IsMakingProgress(ref lastTokenPosition, assertIfFalse: false) && this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken))
3652
separatorKind = this.CurrentToken.
Kind
;
3674
if (this.CurrentToken.
Kind
!= SyntaxKind.OperatorKeyword ||
3679
else if (this.PeekToken(1).
Kind
is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword)
3681
possibleConversion = !SyntaxFacts.IsAnyOverloadableOperator(this.PeekToken(2).
Kind
);
3685
possibleConversion = !SyntaxFacts.IsAnyOverloadableOperator(this.PeekToken(1).
Kind
);
3696
var style = this.CurrentToken.
Kind
is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword
3706
if (!style.IsMissing && explicitInterfaceOpt is not null && this.CurrentToken.
Kind
!= SyntaxKind.OperatorKeyword && style.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia))
3738
bool couldBeParameterList = this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken;
3743
this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
3774
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
3791
if (this.CurrentToken.
Kind
== SyntaxKind.OperatorKeyword)
3801
(IsMakingProgress(ref lastTokenPosition, assertIfFalse: false) && this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken);
3808
if (separator?.
Kind
== SyntaxKind.ColonColonToken)
3828
if (separator.
Kind
!= SyntaxKind.DotToken)
3830
separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.
Kind
, separator.GetLeadingTriviaWidth(), separator.Width));
3840
if (CurrentToken.
Kind
== SyntaxKind.UncheckedKeyword)
3860
if (firstToken.
Kind
is SyntaxKind.ExplicitKeyword or SyntaxKind.ImplicitKeyword &&
3861
this.PeekToken(1).
Kind
is SyntaxKind.OperatorKeyword)
3892
if (SyntaxFacts.IsAnyOverloadableOperator(this.CurrentToken.
Kind
))
3901
if (this.CurrentToken.
Kind
is SyntaxKind.ImplicitKeyword or SyntaxKind.ExplicitKeyword)
3934
if (opToken.
Kind
== SyntaxKind.GreaterThanToken)
3938
if (tk.
Kind
== SyntaxKind.GreaterThanToken)
3945
if (tk.
Kind
== SyntaxKind.GreaterThanToken &&
3952
else if (tk.
Kind
== SyntaxKind.GreaterThanEqualsToken &&
3966
else if (tk.
Kind
== SyntaxKind.GreaterThanEqualsToken &&
3975
var opKind = opToken.
Kind
;
4059
Debug.Assert(thisKeyword.
Kind
== SyntaxKind.ThisKeyword);
4075
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken)
4083
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
4092
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken
4127
if (this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken)
4133
Debug.Assert(IsStartOfPropertyBody(this.CurrentToken.
Kind
));
4135
var accessorList = this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
4143
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken)
4151
else if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
4163
else if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
4217
if (this.CurrentToken.
Kind
== SyntaxKind.CloseBraceToken)
4252
var refKeyword = this.CurrentToken.
Kind
== SyntaxKind.RefKeyword && !this.IsPossibleLambdaExpression(Precedence.Expression)
4263
static p => p.CurrentToken.
Kind
!= SyntaxKind.CloseBraceToken && !p.IsPossibleAccessor(),
4270
return this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken
4273
|| this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken // for accessor blocks w/ missing keyword
4274
|| this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken // for empty body accessors w/ missing keyword
4308
if (token.
Kind
is SyntaxKind.CloseBraceToken or SyntaxKind.EndOfFileToken)
4526
bool currentTokenIsSemicolon = this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken;
4527
bool currentTokenIsArrow = this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken;
4528
bool currentTokenIsOpenBraceToken = this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken;
4711
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleParameter(),
4712
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
4719
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken;
4724
switch (this.CurrentToken.
Kind
)
4736
return IsParameterModifierExcludingScoped(this.CurrentToken) || IsPossibleScopedKeyword(isFunctionPointerParameter: false) || IsPredefinedType(this.CurrentToken.
Kind
);
4796
if (this.CurrentToken.
Kind
== SyntaxKind.ArgListKeyword)
4807
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && IsCurrentTokenWhereOfConstraintClause())
4814
identifier = allowOptionalIdentifier && this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken
4820
if (identifier is not null && this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken && this.PeekToken(1).
Kind
is SyntaxKind.CloseBracketToken)
4847
switch (token.
Kind
)
4867
if (this.CurrentToken.
Kind
is SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword)
4884
while (this.CurrentToken.
Kind
is SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword)
4897
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.FixedKeyword);
4915
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.EventKeyword);
4939
if (explicitInterfaceOpt != null && this.CurrentToken.
Kind
is not SyntaxKind.OpenBraceToken and not SyntaxKind.SemicolonToken)
4964
else if (identifierOrThisOpt.
Kind
!= SyntaxKind.IdentifierToken)
4966
Debug.Assert(identifierOrThisOpt.
Kind
== SyntaxKind.ThisKeyword);
4975
Debug.Assert(identifier.
Kind
== SyntaxKind.IdentifierToken);
4991
if (explicitInterfaceOpt != null && this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5018
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5037
if (modifiers is [.., SyntaxToken {
Kind
: SyntaxKind.ScopedKeyword } scopedKeyword])
5071
if (this.CurrentToken.
Kind
== SyntaxKind.DotToken)
5087
return this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken;
5152
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5156
else if (stopOnCloseParen && this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken)
5160
else if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
5175
if (flags.HasFlag(VariableFlags.ForStatement) && this.PeekToken(1).
Kind
!= SyntaxKind.SemicolonToken)
5179
this.PeekToken(2).
Kind
is SyntaxKind.CommaToken or SyntaxKind.EqualsToken or SyntaxKind.SemicolonToken;
5210
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
5211
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
5365
var currentTokenKind = this.CurrentToken.
Kind
;
5376
currentTokenKind = this.CurrentToken.
Kind
;
5426
switch (this.CurrentToken.
Kind
)
5437
var refKeyword = isLocalOrField && !isConst && this.CurrentToken.
Kind
== SyntaxKind.RefKeyword && !this.IsPossibleLambdaExpression(Precedence.Expression)
5495
bool isOmitted = expression.
Kind
== SyntaxKind.OmittedArraySizeExpression;
5514
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
5529
if (parentType.
Kind
== SyntaxKind.ArrayType)
5550
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken or SyntaxKind.LessThanToken);
5558
(this.CurrentToken.
Kind
is SyntaxKind.OpenBraceToken or SyntaxKind.EqualsGreaterThanToken ||
5569
switch (this.CurrentToken.
Kind
)
5581
return this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
5588
return this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken || this.IsPossibleExpression();
5607
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DelegateKeyword);
5640
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.EnumKeyword);
5655
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
5671
if (CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5716
static p => p.CurrentToken.
Kind
is not SyntaxKind.CommaToken and not SyntaxKind.SemicolonToken && !p.IsPossibleEnumMemberDeclaration(),
5717
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
5732
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
5737
this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseBraceToken
5747
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken || this.IsTrueIdentifier();
5752
return this.CurrentToken.
Kind
is SyntaxKind.DotToken or SyntaxKind.ColonColonToken;
5791
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
5811
token.
Kind
== SyntaxKind.IdentifierToken &&
5831
var ctk = this.CurrentToken.
Kind
;
5889
if (this.CurrentToken.
Kind
!= SyntaxKind.LessThanToken)
5919
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
5920
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
5931
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken && this.PeekToken(1).
Kind
!= SyntaxKind.CloseBracketToken)
5935
if (this.CurrentToken.
Kind
is SyntaxKind.InKeyword or SyntaxKind.OutKeyword)
5952
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken && this.PeekToken(1).
Kind
!= SyntaxKind.CloseBracketToken)
5962
this.CurrentToken.
Kind
is SyntaxKind.InKeyword or SyntaxKind.OutKeyword ? EatToken() : null,
5979
if (this.CurrentToken.
Kind
== SyntaxKind.LessThanToken)
5989
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6014
if (this.CurrentToken.
Kind
!= SyntaxKind.LessThanToken)
6062
Debug.Assert(greaterThanToken.
Kind
== SyntaxKind.GreaterThanToken);
6064
switch (this.CurrentToken.
Kind
)
6098
case SyntaxKind.GreaterThanToken when ((options & NameOptions.AfterIs) != 0) && this.PeekToken(1).
Kind
!= SyntaxKind.GreaterThanToken:
6119
(options & NameOptions.AfterTupleComma) != 0 && this.PeekToken(1).
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken ||
6120
(options & NameOptions.FirstElementOfPossibleTupleLiteral) != 0 && this.PeekToken(1).
Kind
== SyntaxKind.CommaToken)
6146
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6156
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
6159
Debug.Assert(start.
Kind
== SyntaxKind.LessThanToken);
6160
Debug.Assert(greaterThanToken.
Kind
== SyntaxKind.GreaterThanToken);
6173
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
6179
if (this.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken)
6188
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
6223
isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken;
6250
isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken;
6272
isDefinitelyTypeArgumentList = this.CurrentToken.
Kind
== SyntaxKind.CommaToken;
6290
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken);
6292
if (this.CurrentToken.
Kind
!= SyntaxKind.GreaterThanToken)
6298
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken)
6307
if (lastScannedType is ScanTypeFlags.TupleType && this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken)
6320
isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken;
6332
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6342
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
6359
if (this.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken)
6375
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken && tokenBreaksTypeArgumentList(this.PeekToken(1)))
6384
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken
6385
&& this.PeekToken(1).
Kind
is SyntaxKind.CloseBracketToken)
6390
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken || this.IsPossibleType())
6415
switch (token.
Kind
)
6460
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleType(),
6461
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken,
6469
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken && this.PeekToken(1).
Kind
!= SyntaxKind.CloseBracketToken)
6485
var varianceToken = this.CurrentToken.
Kind
is SyntaxKind.InKeyword or SyntaxKind.OutKeyword
6512
this.CurrentToken.
Kind
is not SyntaxKind.CommaToken and not SyntaxKind.GreaterThanToken &&
6513
this.PeekToken(1).
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken)
6534
=> this.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken;
6538
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6540
while (this.PeekToken(n).
Kind
== SyntaxKind.CommaToken)
6543
return this.PeekToken(n).
Kind
== SyntaxKind.GreaterThanToken;
6576
if (this.CurrentToken.
Kind
== SyntaxKind.ThisKeyword)
6602
if (separator != null && separator.
Kind
== SyntaxKind.ColonColonToken)
6621
if (separator.
Kind
!= SyntaxKind.DotToken)
6623
separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.
Kind
, separator.GetLeadingTriviaWidth(), separator.Width));
6627
if (isEvent && this.CurrentToken.
Kind
is not SyntaxKind.OpenBraceToken and not SyntaxKind.SemicolonToken)
6698
separator = this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken
6711
if (this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken)
6740
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
6776
if (separator != null && separator.
Kind
== SyntaxKind.ColonColonToken)
6803
if (separator.
Kind
!= SyntaxKind.DotToken)
6805
separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.
Kind
, separator.GetLeadingTriviaWidth(), separator.Width));
6816
return this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken
6828
if (this.PeekToken(1).
Kind
== SyntaxKind.ThisKeyword)
6845
Debug.Assert(separator.
Kind
is SyntaxKind.DotToken or SyntaxKind.ColonColonToken);
6848
switch (separator.
Kind
)
6854
if (left.
Kind
!= SyntaxKind.IdentifierName)
6946
var tk = this.CurrentToken.
Kind
;
6967
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken || !this.IsTrueIdentifier())
6974
if (this.CurrentToken.
Kind
== SyntaxKind.LessThanToken)
6989
if (this.CurrentToken.
Kind
== SyntaxKind.RefKeyword)
6994
if (this.CurrentToken.
Kind
== SyntaxKind.ReadOnlyKeyword)
7001
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken or SyntaxKind.ColonColonToken)
7004
if (this.CurrentToken.
Kind
is SyntaxKind.ColonColonToken)
7018
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken);
7021
isAlias = this.PeekToken(1).
Kind
== SyntaxKind.ColonColonToken;
7058
else if (IsPredefinedType(this.CurrentToken.
Kind
))
7064
else if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
7069
if (result == ScanTypeFlags.NotType || mode == ParseTypeMode.DefinitePattern && this.CurrentToken.
Kind
!= SyntaxKind.OpenBracketToken)
7089
switch (this.CurrentToken.
Kind
)
7092
when lastTokenOfType.
Kind
is not SyntaxKind.QuestionToken // don't allow `Type??`
7130
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7135
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
7168
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7186
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken);
7188
if (this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken)
7210
if (CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
7218
case var _ when peek1.
Kind
== SyntaxKind.OpenBracketToken:
7228
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
7245
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.CommaToken);
7268
var validStartingToken = EatToken().
Kind
== SyntaxKind.LessThanToken;
7298
if (!validStartingToken && CurrentToken.
Kind
== SyntaxKind.CloseParenToken)
7312
isNotExpectedFunction: static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
7333
if (this.CurrentToken.
Kind
== SyntaxKind.VoidKeyword && this.PeekToken(1).
Kind
!= SyntaxKind.AsteriskToken)
7358
if (this.CurrentToken.
Kind
== SyntaxKind.RefKeyword)
7362
this.CurrentToken.
Kind
== SyntaxKind.ReadOnlyKeyword ? this.EatToken() : null,
7406
switch (this.CurrentToken.
Kind
)
7454
while (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken);
7475
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.QuestionToken);
7481
if (typeParsedSoFar.
Kind
is SyntaxKind.NullableType or SyntaxKind.PointerType)
7498
if (mode == ParseTypeMode.AfterIs && this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken)
7508
switch (this.PeekToken(1).
Kind
)
7525
return this.CurrentToken.
Kind
!= SyntaxKind.ColonToken;
7570
var nextTokenKind = nextToken.
Kind
;
7615
if (this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken)
7624
this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken or // ctor parameters
7638
switch (this.PeekToken(i).
Kind
)
7659
while (IsMakingProgress(ref lastTokenPosition) && this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
7661
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7674
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
7715
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken)
7719
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7754
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleExpression(),
7755
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.CloseBracketToken,
7761
if (IsPredefinedType(this.CurrentToken.
Kind
))
7765
if (token.
Kind
== SyntaxKind.VoidKeyword && this.CurrentToken.
Kind
!= SyntaxKind.AsteriskToken)
7774
if (IsTrueIdentifier() || this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken)
7779
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
7845
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.CommaToken);
7856
lessThanToken.IsMissing && CurrentToken.
Kind
== SyntaxKind.CloseParenToken
7871
isNotExpectedFunction: static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
7879
if (CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
7895
case var _ when peek1.
Kind
== SyntaxKind.OpenBracketToken:
7907
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
7925
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.CommaToken);
7941
if (managedSpecifier.
Kind
== SyntaxKind.ManagedKeyword && unmanagedCallingConventions != null)
7955
=> CurrentToken.
Kind
== SyntaxKind.DelegateKeyword && PeekToken(1).
Kind
== SyntaxKind.AsteriskToken;
7960
=> token.
Kind
== SyntaxKind.LessThanToken || token.
Kind
== SyntaxKind.OpenParenToken;
7966
while (this.CurrentToken.
Kind
== SyntaxKind.AsteriskToken)
7986
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenBracketToken)
8000
while (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
8010
var isCollectionExpression = this.CurrentToken.
Kind
8023
|| IsExpectedBinaryOperator(this.CurrentToken.
Kind
)
8024
|| IsExpectedAssignmentOperator(this.CurrentToken.
Kind
)
8025
|| (this.CurrentToken.ContextualKind is SyntaxKind.SwitchKeyword or SyntaxKind.WithKeyword && this.PeekToken(1).
Kind
is SyntaxKind.OpenBraceToken);
8029
this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
8088
switch (this.CurrentToken.
Kind
)
8221
this.PeekToken(1).
Kind
== SyntaxKind.ForEachKeyword)
8227
if (PeekToken(2).
Kind
== SyntaxKind.OpenParenToken)
8254
=> PeekToken(1).
Kind
== SyntaxKind.OpenParenToken ? ParseUsingStatement(attributes) : ParseLocalDeclarationStatement(attributes);
8261
=> CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword && PeekToken(1).
Kind
== SyntaxKind.UsingKeyword;
8265
return this.PeekToken(1).
Kind
== SyntaxKind.ColonToken && this.IsTrueIdentifier();
8270
return this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken;
8276
this.PeekToken(1).
Kind
is SyntaxKind.ReturnKeyword or SyntaxKind.BreakKeyword;
8285
var tk = this.CurrentToken.
Kind
;
8289
this.PeekToken(1).
Kind
is not SyntaxKind.DotToken // e.g. `int.Parse()` is an expression
8298
Debug.Assert(PeekToken(1).
Kind
!= SyntaxKind.OpenParenToken);
8304
Debug.Assert(PeekToken(2).
Kind
!= SyntaxKind.OpenParenToken);
8360
if (token1.
Kind
== SyntaxKind.DotToken &&
8363
if (PeekToken(2).
Kind
== SyntaxKind.IdentifierToken &&
8364
PeekToken(3).
Kind
== SyntaxKind.IdentifierToken)
8379
var token4Kind = PeekToken(4).
Kind
;
8399
if (st == ScanTypeFlags.MustBeType && this.CurrentToken.
Kind
is not SyntaxKind.DotToken and not SyntaxKind.OpenParenToken)
8409
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
8417
return st == ScanTypeFlags.GenericTypeOrExpression && (IsDefiniteStatement() || IsTypeDeclarationStart() || IsAccessibilityModifier(CurrentToken.
Kind
));
8438
if (this.CurrentToken.
Kind
!= SyntaxKind.UsingKeyword)
8443
var tk = PeekToken(1).
Kind
;
8504
if (this.CurrentToken.
Kind
is SyntaxKind.OpenBraceToken)
8510
if (identifierOrThisOpt.
Kind
== SyntaxKind.ThisKeyword)
8525
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
8532
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
8541
return this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.SemicolonToken;
8559
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken || this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword)
8566
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
8591
if (parameter.Modifiers[i].
Kind
== SyntaxKind.ParamsKeyword)
8601
if (parameter.Identifier.
Kind
== SyntaxKind.ArgListKeyword)
8606
else if (parameter.Type.
Kind
== SyntaxKind.NullableType)
8626
else if (parameter.Type.
Kind
== SyntaxKind.IdentifierName &&
8650
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.NewKeyword);
8657
switch (nextToken.
Kind
)
8685
if (SyntaxFacts.GetBaseTypeDeclarationKind(nextToken.
Kind
) != SyntaxKind.None)
8693
if (SyntaxFacts.IsPredefinedType(PeekToken(2).
Kind
))
8700
if (IsTypeModifierOrTypeKeyword(PeekToken(2).
Kind
))
8738
switch (next.
Kind
)
8795
CSharpSyntaxNode openBrace = isAccessorBody && this.CurrentToken.
Kind
!= SyntaxKind.OpenBraceToken
8876
while (this.CurrentToken.
Kind
is not SyntaxKind.CloseBraceToken and not SyntaxKind.EndOfFileToken
8908
return this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
8920
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.CloseBraceToken,
8928
var tk = this.CurrentToken.
Kind
;
8965
var tk = this.CurrentToken.
Kind
;
9010
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.OpenBraceToken or SyntaxKind.SemicolonToken;
9036
if (statement.
Kind
== SyntaxKind.ExpressionStatement &&
9073
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.TryKeyword or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword);
9086
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword);
9100
if (this.CurrentToken.
Kind
== SyntaxKind.CatchKeyword)
9103
while (this.CurrentToken.
Kind
== SyntaxKind.CatchKeyword)
9109
if (this.CurrentToken.
Kind
== SyntaxKind.FinallyKeyword)
9144
return this.CurrentToken.
Kind
is SyntaxKind.CloseBraceToken or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword;
9149
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.CatchKeyword);
9156
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
9208
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken
9217
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken
9225
return this.CurrentToken.
Kind
is SyntaxKind.CloseBraceToken
9232
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword);
9234
if (this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
9241
SyntaxFacts.GetCheckStatement(keyword.
Kind
),
9249
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DoKeyword);
9273
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken;
9290
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ForKeyword);
9292
if (this.EatToken().
Kind
== SyntaxKind.OpenParenToken &&
9294
this.EatToken().
Kind
== SyntaxKind.IdentifierToken &&
9295
this.EatToken().
Kind
== SyntaxKind.InKeyword)
9311
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ForKeyword);
9321
var condition = this.CurrentToken.
Kind
is not SyntaxKind.SemicolonToken and not SyntaxKind.CommaToken
9330
var incrementors = this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken
9361
if (this.PeekToken(1).
Kind
== SyntaxKind.RefKeyword)
9368
isDeclaration = ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken;
9372
else if (this.CurrentToken.
Kind
== SyntaxKind.RefKeyword)
9389
else if (this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken)
9404
=> this.CurrentToken.
Kind
is SyntaxKind.CommaToken
9412
while (this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.CommaToken)
9436
if (@this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken)
9440
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleExpression(),
9441
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind || p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
9448
return this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.CloseParenToken or SyntaxKind.OpenBraceToken;
9455
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ForEachKeyword || this.CurrentToken.
Kind
== SyntaxKind.ForKeyword);
9466
if (this.CurrentToken.
Kind
== SyntaxKind.ForKeyword)
9492
if (decl.designation.
Kind
!= SyntaxKind.ParenthesizedVariableDesignation)
9496
switch (decl.designation.
Kind
)
9504
Debug.Assert(discard.
Kind
== SyntaxKind.UnderscoreToken);
9508
throw ExceptionUtilities.UnexpectedValue(decl.designation.
Kind
);
9571
if (ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
9576
if (this.PeekToken(1).
Kind
== SyntaxKind.CommaToken)
9584
if (this.PeekToken(1).
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken)
9610
if (!ScanDesignation(permitTupleDesignation && (typeIsVar || IsPredefinedType(lastTokenOfType.
Kind
))))
9618
return this.CurrentToken.
Kind
== SyntaxKind.CommaToken;
9620
return this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken;
9638
switch (this.PeekToken(1).
Kind
)
9654
switch (variable.
Kind
)
9672
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.GotoKeyword);
9680
if (this.CurrentToken.
Kind
is SyntaxKind.CaseKeyword or SyntaxKind.DefaultKeyword)
9683
if (caseOrDefault.
Kind
== SyntaxKind.CaseKeyword)
9705
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.IfKeyword);
9718
var elseKeyword = this.CurrentToken.
Kind
!= SyntaxKind.ElseKeyword ?
9729
if (this.CurrentToken.
Kind
!= SyntaxKind.IfKeyword)
9770
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ElseKeyword);
9784
return this.CurrentToken.
Kind
!= SyntaxKind.ElseKeyword
9793
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LockKeyword);
9805
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ReturnKeyword);
9809
this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken ? this.ParsePossibleRefExpression() : null,
9822
if (this.CurrentToken.
Kind
== SyntaxKind.BreakKeyword)
9831
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
9852
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.SwitchKeyword or SyntaxKind.CaseKeyword);
9877
if (this.CurrentToken.
Kind
is SyntaxKind.CaseKeyword)
9891
if (expression.
Kind
== SyntaxKind.ParenthesizedExpression)
9900
else if (expression.
Kind
== SyntaxKind.TupleExpression)
9922
return this.CurrentToken.
Kind
== SyntaxKind.CaseKeyword ||
9923
(this.CurrentToken.
Kind
== SyntaxKind.DefaultKeyword && this.PeekToken(1).
Kind
!= SyntaxKind.OpenParenToken);
9937
if (this.CurrentToken.
Kind
== SyntaxKind.CaseKeyword)
9941
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
9956
if (node.
Kind
== SyntaxKind.DiscardPattern)
9978
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DefaultKeyword);
10000
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ThrowKeyword);
10004
this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken ? this.ParseExpressionCore() : null,
10010
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.UnsafeKeyword);
10078
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
10085
switch (this.PeekToken(1).
Kind
)
10105
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken &&
10106
declaration.Type.
Kind
== SyntaxKind.NullableType &&
10107
SyntaxFacts.IsName(((NullableTypeSyntax)declaration.Type).ElementType.
Kind
) &&
10137
bool condition1 = st == ScanTypeFlags.MustBeType && this.CurrentToken.
Kind
!= SyntaxKind.DotToken;
10138
bool condition2 = st != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken;
10139
bool condition3 = st == ScanTypeFlags.NonGenericTypeOrExpression || this.PeekToken(1).
Kind
== SyntaxKind.EqualsToken;
10146
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.WhileKeyword);
10160
Debug.Assert(this.IsTrueIdentifier() && this.PeekToken(1).
Kind
== SyntaxKind.ColonToken);
10181
else if (this.CurrentToken.
Kind
== SyntaxKind.UsingKeyword)
10289
if (this.CurrentToken.
Kind
is (SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword))
10318
return this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken;
10320
else if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
10336
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
10344
done = (this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken);
10357
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
10468
if (allowLocalFunctions && localFunction == null && type is PredefinedTypeSyntax { Keyword.
Kind
: SyntaxKind.VoidKeyword })
10478
switch (this.CurrentToken.
Kind
)
10530
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken);
10536
if (IsDeclarationModifier(this.CurrentToken.
Kind
) ||
10537
IsAdditionalLocalFunctionModifier(this.CurrentToken.
Kind
))
10544
if (ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
10628
if (type.
Kind
== SyntaxKind.IdentifierName)
10736
if (IsScript && this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken)
10780
SyntaxKind tk = this.CurrentToken.
Kind
;
11079
switch (next.
Kind
)
11130
_ = GetPrecedence(result.
Kind
);
11145
var tk = this.CurrentToken.
Kind
;
11241
if (this.CurrentToken.
Kind
== SyntaxKind.QuestionToken && precedence <= Precedence.Conditional)
11272
if (newPrecedence > GetPrecedence(leftOperand.
Kind
))
11287
leftOperand.
Kind
== SyntaxKind.IsPatternExpression ? ErrorCode.ERR_UnexpectedToken : ErrorCode.WRN_PrecedenceInversion,
11316
if (IsExpectedAssignmentOperator(operatorToken.
Kind
))
11319
if (IsExpectedBinaryOperator(operatorToken.
Kind
))
11339
if (this.CurrentToken.
Kind
!= SyntaxKind.ColonToken &&
11354
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
11366
if (this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken && this.lexer.InterpolationFollowedByColon)
11400
conditionalExpression.WhenTrue.GetFirstToken().
Kind
== SyntaxKind.OpenBracketToken)
11436
&& this.PeekToken(1) is {
Kind
: SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken } token2
11439
if (token2.
Kind
== SyntaxKind.GreaterThanToken)
11441
if (this.PeekToken(2) is {
Kind
: SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken } token3
11445
token1Kind = token3.
Kind
== SyntaxKind.GreaterThanToken
11468
if (token1Kind == SyntaxKind.SwitchKeyword && this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken)
11471
if (token1Kind == SyntaxKind.WithKeyword && this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken)
11522
Debug.Assert(IsExpectedAssignmentOperator(operatorToken.
Kind
));
11527
if (operatorExpressionKind == SyntaxKind.SimpleAssignmentExpression && CurrentToken.
Kind
== SyntaxKind.RefKeyword &&
11547
if (this.CurrentToken.
Kind
!= SyntaxKind.DotToken)
11551
return nextToken.
Kind
== SyntaxKind.DotToken && NoTriviaBetween(this.CurrentToken, nextToken);
11555
=> token1.
Kind
== SyntaxKind.DotToken &&
11556
token2.
Kind
== SyntaxKind.DotToken &&
11569
if (this.CurrentToken is {
Kind
: SyntaxKind.DotToken } token3 &&
11586
if (this.PeekToken(1) is not {
Kind
: SyntaxKind.DotToken } token4 ||
11639
var tk = this.CurrentToken.
Kind
;
11693
else if (IsCurrentTokenFieldInKeywordContext() && PeekToken(1).
Kind
!= SyntaxKind.ColonColonToken)
11771
if (this.CurrentToken.
Kind
!= SyntaxKind.DotToken || tk == SyntaxKind.VoidKeyword)
11806
switch (this.CurrentToken.
Kind
)
11818
expr = _syntaxFactory.PostfixUnaryExpression(SyntaxFacts.GetPostfixUnaryExpression(this.CurrentToken.
Kind
), expr, this.EatToken());
11822
if (this.PeekToken(1).
Kind
== SyntaxKind.IdentifierToken)
11854
this.PeekToken(1).
Kind
== SyntaxKind.IdentifierToken &&
11887
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.BaseKeyword);
11901
if (precedence > Precedence.Assignment || !(this.CurrentToken.IsIdentifierVar() || IsPredefinedType(this.CurrentToken.
Kind
)))
11910
this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken && ScanDesignator() &&
11911
this.CurrentToken.
Kind
== SyntaxKind.EqualsToken;
11916
switch (this.CurrentToken.
Kind
)
11935
switch (this.CurrentToken.
Kind
)
11955
while (this.PeekToken(tokenIndex).
Kind
== SyntaxKind.StaticKeyword ||
11961
return this.PeekToken(tokenIndex).
Kind
== SyntaxKind.DelegateKeyword &&
11962
this.PeekToken(tokenIndex + 1).
Kind
!= SyntaxKind.AsteriskToken;
12009
if (this.CurrentToken.
Kind
== SyntaxKind.QuestionToken)
12012
var nextTokenKind = nextToken.
Kind
;
12048
return this.CurrentToken.
Kind
!= SyntaxKind.ColonToken;
12061
while (this.CurrentToken.
Kind
== SyntaxKind.ExclamationToken)
12097
=> this.CurrentToken.
Kind
switch
12156
openToken = this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken or SyntaxKind.OpenBracketToken
12163
if (this.CurrentToken.
Kind
!= closeKind && this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken)
12191
else if (isIndexer && this.CurrentToken.
Kind
== closeKind)
12207
closeToken = this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken
12216
if (@this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken)
12220
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleArgumentExpression(),
12221
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind || p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
12228
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken;
12233
return IsValidArgumentRefKindKeyword(this.CurrentToken.
Kind
) || this.IsPossibleExpression();
12251
var nameColon = this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.ColonToken
12258
if (IsValidArgumentRefKindKeyword(this.CurrentToken.
Kind
) &&
12260
!(this.CurrentToken.
Kind
== SyntaxKind.RefKeyword &&
12268
if (isIndexer && this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseBracketToken)
12272
else if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
12284
expression = refKindKeyword?.
Kind
== SyntaxKind.OutKeyword
12304
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
12348
Debug.Assert(checkedOrUnchecked.
Kind
is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword);
12349
var kind = checkedOrUnchecked.
Kind
== SyntaxKind.CheckedKeyword ? SyntaxKind.CheckedExpression : SyntaxKind.UncheckedExpression;
12382
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
12400
token.
Kind
is SyntaxKind.CommaToken ||
12406
return token.
Kind
== SyntaxKind.CloseParenToken &&
12407
this.PeekToken(index).
Kind
== SyntaxKind.EqualsGreaterThanToken;
12413
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
12465
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
12473
switch (this.CurrentToken.
Kind
)
12479
return this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken;
12489
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
12517
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
12525
if (expression.
Kind
== SyntaxKind.IdentifierName && this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
12546
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
12551
var argument = expression.
Kind
!= SyntaxKind.IdentifierName || this.CurrentToken.
Kind
!= SyntaxKind.ColonToken
12577
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
12590
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken)
12597
if (forPattern && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
12619
return !forPattern || this.CurrentToken.
Kind
switch
12644
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken || CanFollowCast(this.CurrentToken.
Kind
);
12650
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken &&
12651
this.PeekToken(1).
Kind
== SyntaxKind.CloseBracketToken)
12659
return CanFollowCast(this.CurrentToken.
Kind
);
12711
if (token1.
Kind
== SyntaxKind.EqualsGreaterThanToken)
12719
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
12735
if (this.CurrentToken.
Kind
== SyntaxKind.StaticKeyword)
12741
this.PeekToken(1).
Kind
== SyntaxKind.StaticKeyword)
12754
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken)
12764
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
12772
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken &&
12773
this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken)
12792
if (st == ScanTypeFlags.NotType || this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
12809
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken &&
12810
this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken)
12817
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
12889
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.NewKeyword);
12908
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken);
12929
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleCollectionElement(),
12930
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
12949
return this.CurrentToken.
Kind
== SyntaxKind.NewKeyword && this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken;
12957
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken);
12994
return this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken;
12999
return IsTrueIdentifier() && this.PeekToken(1).
Kind
== SyntaxKind.EqualsToken;
13004
return IsTrueIdentifier() && this.PeekToken(1).
Kind
is SyntaxKind.EqualsToken or SyntaxKind.ColonToken;
13009
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken;
13022
if (type.
Kind
== SyntaxKind.ArrayType)
13025
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
13035
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13040
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
13062
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13073
switch (this.CurrentToken.
Kind
)
13146
Kind
: SyntaxKind.SimpleAssignmentExpression,
13147
Left.
Kind
: SyntaxKind.IdentifierName or SyntaxKind.ImplicitElementAccess,
13192
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleExpression(),
13193
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13202
this.CurrentToken.
Kind
== SyntaxKind.ColonToken
13205
this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
13216
this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
13244
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.NewKeyword or SyntaxKind.StackAllocKeyword);
13245
return this.PeekToken(1).
Kind
== SyntaxKind.OpenBracketToken;
13271
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
13311
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleVariableInitializer(),
13312
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13338
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
13360
this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken ? this.ParseArrayInitializer() : null);
13388
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13401
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenBraceToken)
13432
if (this.CurrentToken.
Kind
== SyntaxKind.StaticKeyword)
13455
switch (this.PeekToken(1).
Kind
)
13478
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken &&
13515
if (CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13522
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13535
var identifier = (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken)
13552
=> CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
13583
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleLambdaParameter(),
13584
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13591
switch (this.CurrentToken.
Kind
)
13609
return IsPredefinedType(this.CurrentToken.
Kind
);
13647
if (IsPredefinedType(this.CurrentToken.
Kind
))
13653
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13675
if (peek1.
Kind
13740
var pk1 = this.PeekToken(1).
Kind
;
13748
var pk2 = this.PeekToken(2).
Kind
;
13785
return this.ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken or SyntaxKind.InKeyword;
13856
var type = this.PeekToken(1).
Kind
!= SyntaxKind.InKeyword
13862
(this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken || SyntaxFacts.IsQueryContextualKeyword(this.CurrentToken.ContextualKind)))
13889
type: this.PeekToken(1).
Kind
!= SyntaxKind.InKeyword
13932
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
13934
if (this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken)
13938
else if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
13959
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
13960
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.CloseParenToken
13961
|| p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
13976
if (direction.
Kind
== SyntaxKind.DescendingKeyword)
14136
if (requireOneElement || this.CurrentToken.
Kind
!= closeTokenKind)
14153
if (this.CurrentToken.
Kind
== closeTokenKind)
14164
nodes.AddSeparator(this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
14171
if (this.CurrentToken.
Kind
== closeTokenKind)
14206
if (this.CurrentToken.
Kind
== separatorTokenKind)
14211
if (allowSemicolonAsSeparator && this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken)
14300
if (this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken) return node;
14302
while (this.CurrentToken.
Kind
!= SyntaxKind.EndOfFileToken)
Parser\LanguageParser_InterpolatedString.cs (3)
40
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.InterpolatedStringToken);
405
if (this.CurrentToken.
Kind
!= SyntaxKind.CommaToken)
463
Debug.Assert(token.
Kind
== SyntaxKind.StringLiteralToken);
Parser\LanguageParser_Patterns.cs (29)
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
)
175
var tk = this.CurrentToken.
Kind
;
192
switch (CurrentToken.
Kind
)
244
switch (this.CurrentToken.
Kind
)
271
if (type?.
Kind
== SyntaxKind.IdentifierName)
276
(this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken || this.IsValidPatternDesignation(inSwitchArmPattern)))
285
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken && (type != null || !looksLikeCast()))
360
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
386
if (CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
394
var tk = PeekToken(1).
Kind
;
477
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
509
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken && ConvertPatternToExpressionIfPossible(pattern, permitTypeArguments: true) is ExpressionSyntax expr)
530
this.CurrentToken.
Kind
is
543
if (@this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBraceToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken)
550
if (@this._termState.HasFlag(TerminatorState.IsExpressionOrPatternInCaseLabelOfSwitchStatement) && @this.CurrentToken.
Kind
is SyntaxKind.ColonToken)
559
if (@this._termState.HasFlag(TerminatorState.IsPatternInSwitchExpressionArm) && @this.CurrentToken.
Kind
is SyntaxKind.EqualsGreaterThanToken or SyntaxKind.ColonToken)
563
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleSubpatternElement(),
564
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind || p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
584
while (this.CurrentToken.
Kind
!= SyntaxKind.CloseBraceToken)
590
var errantCase = this.CurrentToken.
Kind
== SyntaxKind.CaseKeyword
609
this.CurrentToken.
Kind
== SyntaxKind.ColonToken
615
if (errantCase is null && switchExpressionCase.FullWidth == 0 && this.CurrentToken.
Kind
!= SyntaxKind.CommaToken)
622
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseBraceToken)
624
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 (1444)
104
=> new IdentifierNameSyntax(this.
Kind
, this.identifier, diagnostics, GetAnnotations());
107
=> new IdentifierNameSyntax(this.
Kind
, this.identifier, GetDiagnostics(), annotations);
193
=> new QualifiedNameSyntax(this.
Kind
, this.left, this.dotToken, this.right, diagnostics, GetAnnotations());
196
=> new QualifiedNameSyntax(this.
Kind
, this.left, this.dotToken, this.right, GetDiagnostics(), annotations);
272
=> new GenericNameSyntax(this.
Kind
, this.identifier, this.typeArgumentList, diagnostics, GetAnnotations());
275
=> new GenericNameSyntax(this.
Kind
, this.identifier, this.typeArgumentList, GetDiagnostics(), annotations);
370
=> new TypeArgumentListSyntax(this.
Kind
, this.lessThanToken, this.arguments, this.greaterThanToken, diagnostics, GetAnnotations());
373
=> new TypeArgumentListSyntax(this.
Kind
, this.lessThanToken, this.arguments, this.greaterThanToken, GetDiagnostics(), annotations);
459
=> new AliasQualifiedNameSyntax(this.
Kind
, this.alias, this.colonColonToken, this.name, diagnostics, GetAnnotations());
462
=> new AliasQualifiedNameSyntax(this.
Kind
, this.alias, this.colonColonToken, this.name, GetDiagnostics(), annotations);
538
=> new PredefinedTypeSyntax(this.
Kind
, this.keyword, diagnostics, GetAnnotations());
541
=> new PredefinedTypeSyntax(this.
Kind
, this.keyword, GetDiagnostics(), annotations);
626
=> new ArrayTypeSyntax(this.
Kind
, this.elementType, this.rankSpecifiers, diagnostics, GetAnnotations());
629
=> new ArrayTypeSyntax(this.
Kind
, this.elementType, this.rankSpecifiers, GetDiagnostics(), annotations);
720
=> new ArrayRankSpecifierSyntax(this.
Kind
, this.openBracketToken, this.sizes, this.closeBracketToken, diagnostics, GetAnnotations());
723
=> new ArrayRankSpecifierSyntax(this.
Kind
, this.openBracketToken, this.sizes, this.closeBracketToken, GetDiagnostics(), annotations);
799
=> new PointerTypeSyntax(this.
Kind
, this.elementType, this.asteriskToken, diagnostics, GetAnnotations());
802
=> new PointerTypeSyntax(this.
Kind
, this.elementType, this.asteriskToken, GetDiagnostics(), annotations);
906
=> new FunctionPointerTypeSyntax(this.
Kind
, this.delegateKeyword, this.asteriskToken, this.callingConvention, this.parameterList, diagnostics, GetAnnotations());
909
=> new FunctionPointerTypeSyntax(this.
Kind
, this.delegateKeyword, this.asteriskToken, this.callingConvention, this.parameterList, GetDiagnostics(), annotations);
1004
=> new FunctionPointerParameterListSyntax(this.
Kind
, this.lessThanToken, this.parameters, this.greaterThanToken, diagnostics, GetAnnotations());
1007
=> new FunctionPointerParameterListSyntax(this.
Kind
, this.lessThanToken, this.parameters, this.greaterThanToken, GetDiagnostics(), annotations);
1092
=> new FunctionPointerCallingConventionSyntax(this.
Kind
, this.managedOrUnmanagedKeyword, this.unmanagedCallingConventionList, diagnostics, GetAnnotations());
1095
=> new FunctionPointerCallingConventionSyntax(this.
Kind
, this.managedOrUnmanagedKeyword, this.unmanagedCallingConventionList, GetDiagnostics(), annotations);
1190
=> new FunctionPointerUnmanagedCallingConventionListSyntax(this.
Kind
, this.openBracketToken, this.callingConventions, this.closeBracketToken, diagnostics, GetAnnotations());
1193
=> new FunctionPointerUnmanagedCallingConventionListSyntax(this.
Kind
, this.openBracketToken, this.callingConventions, this.closeBracketToken, GetDiagnostics(), annotations);
1255
=> new FunctionPointerUnmanagedCallingConventionSyntax(this.
Kind
, this.name, diagnostics, GetAnnotations());
1258
=> new FunctionPointerUnmanagedCallingConventionSyntax(this.
Kind
, this.name, GetDiagnostics(), annotations);
1334
=> new NullableTypeSyntax(this.
Kind
, this.elementType, this.questionToken, diagnostics, GetAnnotations());
1337
=> new NullableTypeSyntax(this.
Kind
, this.elementType, this.questionToken, GetDiagnostics(), annotations);
1431
=> new TupleTypeSyntax(this.
Kind
, this.openParenToken, this.elements, this.closeParenToken, diagnostics, GetAnnotations());
1434
=> new TupleTypeSyntax(this.
Kind
, this.openParenToken, this.elements, this.closeParenToken, GetDiagnostics(), annotations);
1519
=> new TupleElementSyntax(this.
Kind
, this.type, this.identifier, diagnostics, GetAnnotations());
1522
=> new TupleElementSyntax(this.
Kind
, this.type, this.identifier, GetDiagnostics(), annotations);
1584
=> new OmittedTypeArgumentSyntax(this.
Kind
, this.omittedTypeArgumentToken, diagnostics, GetAnnotations());
1587
=> new OmittedTypeArgumentSyntax(this.
Kind
, this.omittedTypeArgumentToken, GetDiagnostics(), annotations);
1680
=> new RefTypeSyntax(this.
Kind
, this.refKeyword, this.readOnlyKeyword, this.type, diagnostics, GetAnnotations());
1683
=> new RefTypeSyntax(this.
Kind
, this.refKeyword, this.readOnlyKeyword, this.type, GetDiagnostics(), annotations);
1757
=> new ScopedTypeSyntax(this.
Kind
, this.scopedKeyword, this.type, diagnostics, GetAnnotations());
1760
=> new ScopedTypeSyntax(this.
Kind
, this.scopedKeyword, this.type, GetDiagnostics(), annotations);
1873
=> new ParenthesizedExpressionSyntax(this.
Kind
, this.openParenToken, this.expression, this.closeParenToken, diagnostics, GetAnnotations());
1876
=> new ParenthesizedExpressionSyntax(this.
Kind
, this.openParenToken, this.expression, this.closeParenToken, GetDiagnostics(), annotations);
1971
=> new TupleExpressionSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, diagnostics, GetAnnotations());
1974
=> new TupleExpressionSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, GetDiagnostics(), annotations);
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);
6781
=> new QueryExpressionSyntax(this.
Kind
, this.fromClause, this.body, diagnostics, GetAnnotations());
6784
=> new QueryExpressionSyntax(this.
Kind
, this.fromClause, this.body, GetDiagnostics(), annotations);
6884
=> new QueryBodySyntax(this.
Kind
, this.clauses, this.selectOrGroup, this.continuation, diagnostics, GetAnnotations());
6887
=> new QueryBodySyntax(this.
Kind
, this.clauses, this.selectOrGroup, this.continuation, GetDiagnostics(), annotations);
6997
=> new FromClauseSyntax(this.
Kind
, this.fromKeyword, this.type, this.identifier, this.inKeyword, this.expression, diagnostics, GetAnnotations());
7000
=> new FromClauseSyntax(this.
Kind
, this.fromKeyword, this.type, this.identifier, this.inKeyword, this.expression, GetDiagnostics(), annotations);
7092
=> new LetClauseSyntax(this.
Kind
, this.letKeyword, this.identifier, this.equalsToken, this.expression, diagnostics, GetAnnotations());
7095
=> new LetClauseSyntax(this.
Kind
, this.letKeyword, this.identifier, this.equalsToken, this.expression, GetDiagnostics(), annotations);
7259
=> new JoinClauseSyntax(this.
Kind
, this.joinKeyword, this.type, this.identifier, this.inKeyword, this.inExpression, this.onKeyword, this.leftExpression, this.equalsKeyword, this.rightExpression, this.into, diagnostics, GetAnnotations());
7262
=> new JoinClauseSyntax(this.
Kind
, this.joinKeyword, this.type, this.identifier, this.inKeyword, this.inExpression, this.onKeyword, this.leftExpression, this.equalsKeyword, this.rightExpression, this.into, GetDiagnostics(), annotations);
7336
=> new JoinIntoClauseSyntax(this.
Kind
, this.intoKeyword, this.identifier, diagnostics, GetAnnotations());
7339
=> new JoinIntoClauseSyntax(this.
Kind
, this.intoKeyword, this.identifier, GetDiagnostics(), annotations);
7412
=> new WhereClauseSyntax(this.
Kind
, this.whereKeyword, this.condition, diagnostics, GetAnnotations());
7415
=> new WhereClauseSyntax(this.
Kind
, this.whereKeyword, this.condition, GetDiagnostics(), annotations);
7497
=> new OrderByClauseSyntax(this.
Kind
, this.orderByKeyword, this.orderings, diagnostics, GetAnnotations());
7500
=> new OrderByClauseSyntax(this.
Kind
, this.orderByKeyword, this.orderings, GetDiagnostics(), annotations);
7568
var newNode = SyntaxFactory.Ordering(this.
Kind
, expression, ascendingOrDescendingKeyword);
7582
=> new OrderingSyntax(this.
Kind
, this.expression, this.ascendingOrDescendingKeyword, diagnostics, GetAnnotations());
7585
=> new OrderingSyntax(this.
Kind
, this.expression, this.ascendingOrDescendingKeyword, GetDiagnostics(), annotations);
7658
=> new SelectClauseSyntax(this.
Kind
, this.selectKeyword, this.expression, diagnostics, GetAnnotations());
7661
=> new SelectClauseSyntax(this.
Kind
, this.selectKeyword, this.expression, GetDiagnostics(), annotations);
7752
=> new GroupClauseSyntax(this.
Kind
, this.groupKeyword, this.groupExpression, this.byKeyword, this.byExpression, diagnostics, GetAnnotations());
7755
=> new GroupClauseSyntax(this.
Kind
, this.groupKeyword, this.groupExpression, this.byKeyword, this.byExpression, GetDiagnostics(), annotations);
7838
=> new QueryContinuationSyntax(this.
Kind
, this.intoKeyword, this.identifier, this.body, diagnostics, GetAnnotations());
7841
=> new QueryContinuationSyntax(this.
Kind
, this.intoKeyword, this.identifier, this.body, GetDiagnostics(), annotations);
7903
=> new OmittedArraySizeExpressionSyntax(this.
Kind
, this.omittedArraySizeExpressionToken, diagnostics, GetAnnotations());
7906
=> new OmittedArraySizeExpressionSyntax(this.
Kind
, this.omittedArraySizeExpressionToken, GetDiagnostics(), annotations);
8000
=> new InterpolatedStringExpressionSyntax(this.
Kind
, this.stringStartToken, this.contents, this.stringEndToken, diagnostics, GetAnnotations());
8003
=> new InterpolatedStringExpressionSyntax(this.
Kind
, this.stringStartToken, this.contents, this.stringEndToken, GetDiagnostics(), annotations);
8088
=> new IsPatternExpressionSyntax(this.
Kind
, this.expression, this.isKeyword, this.pattern, diagnostics, GetAnnotations());
8091
=> new IsPatternExpressionSyntax(this.
Kind
, this.expression, this.isKeyword, this.pattern, GetDiagnostics(), annotations);
8164
=> new ThrowExpressionSyntax(this.
Kind
, this.throwKeyword, this.expression, diagnostics, GetAnnotations());
8167
=> new ThrowExpressionSyntax(this.
Kind
, this.throwKeyword, this.expression, GetDiagnostics(), annotations);
8240
=> new WhenClauseSyntax(this.
Kind
, this.whenKeyword, this.condition, diagnostics, GetAnnotations());
8243
=> new WhenClauseSyntax(this.
Kind
, this.whenKeyword, this.condition, GetDiagnostics(), annotations);
8316
=> new DiscardPatternSyntax(this.
Kind
, this.underscoreToken, diagnostics, GetAnnotations());
8319
=> new DiscardPatternSyntax(this.
Kind
, this.underscoreToken, GetDiagnostics(), annotations);
8392
=> new DeclarationPatternSyntax(this.
Kind
, this.type, this.designation, diagnostics, GetAnnotations());
8395
=> new DeclarationPatternSyntax(this.
Kind
, this.type, this.designation, GetDiagnostics(), annotations);
8468
=> new VarPatternSyntax(this.
Kind
, this.varKeyword, this.designation, diagnostics, GetAnnotations());
8471
=> new VarPatternSyntax(this.
Kind
, this.varKeyword, this.designation, GetDiagnostics(), annotations);
8598
=> new RecursivePatternSyntax(this.
Kind
, this.type, this.positionalPatternClause, this.propertyPatternClause, this.designation, diagnostics, GetAnnotations());
8601
=> new RecursivePatternSyntax(this.
Kind
, this.type, this.positionalPatternClause, this.propertyPatternClause, this.designation, GetDiagnostics(), annotations);
8692
=> new PositionalPatternClauseSyntax(this.
Kind
, this.openParenToken, this.subpatterns, this.closeParenToken, diagnostics, GetAnnotations());
8695
=> new PositionalPatternClauseSyntax(this.
Kind
, this.openParenToken, this.subpatterns, this.closeParenToken, GetDiagnostics(), annotations);
8786
=> new PropertyPatternClauseSyntax(this.
Kind
, this.openBraceToken, this.subpatterns, this.closeBraceToken, diagnostics, GetAnnotations());
8789
=> new PropertyPatternClauseSyntax(this.
Kind
, this.openBraceToken, this.subpatterns, this.closeBraceToken, GetDiagnostics(), annotations);
8871
=> new SubpatternSyntax(this.
Kind
, this.expressionColon, this.pattern, diagnostics, GetAnnotations());
8874
=> new SubpatternSyntax(this.
Kind
, this.expressionColon, this.pattern, GetDiagnostics(), annotations);
8935
=> new ConstantPatternSyntax(this.
Kind
, this.expression, diagnostics, GetAnnotations());
8938
=> new ConstantPatternSyntax(this.
Kind
, this.expression, GetDiagnostics(), annotations);
9020
=> new ParenthesizedPatternSyntax(this.
Kind
, this.openParenToken, this.pattern, this.closeParenToken, diagnostics, GetAnnotations());
9023
=> new ParenthesizedPatternSyntax(this.
Kind
, this.openParenToken, this.pattern, this.closeParenToken, GetDiagnostics(), annotations);
9097
=> new RelationalPatternSyntax(this.
Kind
, this.operatorToken, this.expression, diagnostics, GetAnnotations());
9100
=> new RelationalPatternSyntax(this.
Kind
, this.operatorToken, this.expression, GetDiagnostics(), annotations);
9161
=> new TypePatternSyntax(this.
Kind
, this.type, diagnostics, GetAnnotations());
9164
=> new TypePatternSyntax(this.
Kind
, this.type, GetDiagnostics(), annotations);
9232
var newNode = SyntaxFactory.BinaryPattern(this.
Kind
, left, operatorToken, right);
9246
=> new BinaryPatternSyntax(this.
Kind
, this.left, this.operatorToken, this.right, diagnostics, GetAnnotations());
9249
=> new BinaryPatternSyntax(this.
Kind
, this.left, this.operatorToken, this.right, GetDiagnostics(), annotations);
9322
=> new UnaryPatternSyntax(this.
Kind
, this.operatorToken, this.pattern, diagnostics, GetAnnotations());
9325
=> new UnaryPatternSyntax(this.
Kind
, this.operatorToken, this.pattern, GetDiagnostics(), annotations);
9434
=> new ListPatternSyntax(this.
Kind
, this.openBracketToken, this.patterns, this.closeBracketToken, this.designation, diagnostics, GetAnnotations());
9437
=> new ListPatternSyntax(this.
Kind
, this.openBracketToken, this.patterns, this.closeBracketToken, this.designation, GetDiagnostics(), annotations);
9519
=> new SlicePatternSyntax(this.
Kind
, this.dotDotToken, this.pattern, diagnostics, GetAnnotations());
9522
=> new SlicePatternSyntax(this.
Kind
, this.dotDotToken, this.pattern, GetDiagnostics(), annotations);
9596
=> new InterpolatedStringTextSyntax(this.
Kind
, this.textToken, diagnostics, GetAnnotations());
9599
=> new InterpolatedStringTextSyntax(this.
Kind
, this.textToken, GetDiagnostics(), annotations);
9721
=> new InterpolationSyntax(this.
Kind
, this.openBraceToken, this.expression, this.alignmentClause, this.formatClause, this.closeBraceToken, diagnostics, GetAnnotations());
9724
=> new InterpolationSyntax(this.
Kind
, this.openBraceToken, this.expression, this.alignmentClause, this.formatClause, this.closeBraceToken, GetDiagnostics(), annotations);
9797
=> new InterpolationAlignmentClauseSyntax(this.
Kind
, this.commaToken, this.value, diagnostics, GetAnnotations());
9800
=> new InterpolationAlignmentClauseSyntax(this.
Kind
, this.commaToken, this.value, GetDiagnostics(), annotations);
9874
=> new InterpolationFormatClauseSyntax(this.
Kind
, this.colonToken, this.formatStringToken, diagnostics, GetAnnotations());
9877
=> new InterpolationFormatClauseSyntax(this.
Kind
, this.colonToken, this.formatStringToken, GetDiagnostics(), annotations);
9977
=> new GlobalStatementSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.statement, diagnostics, GetAnnotations());
9980
=> new GlobalStatementSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.statement, GetDiagnostics(), annotations);
10105
=> new BlockSyntax(this.
Kind
, this.attributeLists, this.openBraceToken, this.statements, this.closeBraceToken, diagnostics, GetAnnotations());
10108
=> new BlockSyntax(this.
Kind
, this.attributeLists, this.openBraceToken, this.statements, this.closeBraceToken, GetDiagnostics(), annotations);
10318
=> new LocalFunctionStatementSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
10321
=> new LocalFunctionStatementSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
10467
=> new LocalDeclarationStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.modifiers, this.declaration, this.semicolonToken, diagnostics, GetAnnotations());
10470
=> new LocalDeclarationStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.modifiers, this.declaration, this.semicolonToken, GetDiagnostics(), annotations);
10552
=> new VariableDeclarationSyntax(this.
Kind
, this.type, this.variables, diagnostics, GetAnnotations());
10555
=> new VariableDeclarationSyntax(this.
Kind
, this.type, this.variables, GetDiagnostics(), annotations);
10656
=> new VariableDeclaratorSyntax(this.
Kind
, this.identifier, this.argumentList, this.initializer, diagnostics, GetAnnotations());
10659
=> new VariableDeclaratorSyntax(this.
Kind
, this.identifier, this.argumentList, this.initializer, GetDiagnostics(), annotations);
10732
=> new EqualsValueClauseSyntax(this.
Kind
, this.equalsToken, this.value, diagnostics, GetAnnotations());
10735
=> new EqualsValueClauseSyntax(this.
Kind
, this.equalsToken, this.value, GetDiagnostics(), annotations);
10808
=> new SingleVariableDesignationSyntax(this.
Kind
, this.identifier, diagnostics, GetAnnotations());
10811
=> new SingleVariableDesignationSyntax(this.
Kind
, this.identifier, GetDiagnostics(), annotations);
10871
=> new DiscardDesignationSyntax(this.
Kind
, this.underscoreToken, diagnostics, GetAnnotations());
10874
=> new DiscardDesignationSyntax(this.
Kind
, this.underscoreToken, GetDiagnostics(), annotations);
10965
=> new ParenthesizedVariableDesignationSyntax(this.
Kind
, this.openParenToken, this.variables, this.closeParenToken, diagnostics, GetAnnotations());
10968
=> new ParenthesizedVariableDesignationSyntax(this.
Kind
, this.openParenToken, this.variables, this.closeParenToken, GetDiagnostics(), annotations);
11059
=> new ExpressionStatementSyntax(this.
Kind
, this.attributeLists, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11062
=> new ExpressionStatementSyntax(this.
Kind
, this.attributeLists, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
11144
=> new EmptyStatementSyntax(this.
Kind
, this.attributeLists, this.semicolonToken, diagnostics, GetAnnotations());
11147
=> new EmptyStatementSyntax(this.
Kind
, this.attributeLists, this.semicolonToken, GetDiagnostics(), annotations);
11250
=> new LabeledStatementSyntax(this.
Kind
, this.attributeLists, this.identifier, this.colonToken, this.statement, diagnostics, GetAnnotations());
11253
=> new LabeledStatementSyntax(this.
Kind
, this.attributeLists, this.identifier, this.colonToken, this.statement, GetDiagnostics(), annotations);
11381
var newNode = SyntaxFactory.GotoStatement(this.
Kind
, attributeLists, gotoKeyword, caseOrDefaultKeyword, expression, semicolonToken);
11395
=> new GotoStatementSyntax(this.
Kind
, this.attributeLists, this.gotoKeyword, this.caseOrDefaultKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11398
=> new GotoStatementSyntax(this.
Kind
, this.attributeLists, this.gotoKeyword, this.caseOrDefaultKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
11489
=> new BreakStatementSyntax(this.
Kind
, this.attributeLists, this.breakKeyword, this.semicolonToken, diagnostics, GetAnnotations());
11492
=> new BreakStatementSyntax(this.
Kind
, this.attributeLists, this.breakKeyword, this.semicolonToken, GetDiagnostics(), annotations);
11583
=> new ContinueStatementSyntax(this.
Kind
, this.attributeLists, this.continueKeyword, this.semicolonToken, diagnostics, GetAnnotations());
11586
=> new ContinueStatementSyntax(this.
Kind
, this.attributeLists, this.continueKeyword, this.semicolonToken, GetDiagnostics(), annotations);
11695
=> new ReturnStatementSyntax(this.
Kind
, this.attributeLists, this.returnKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11698
=> new ReturnStatementSyntax(this.
Kind
, this.attributeLists, this.returnKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
11807
=> new ThrowStatementSyntax(this.
Kind
, this.attributeLists, this.throwKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11810
=> new ThrowStatementSyntax(this.
Kind
, this.attributeLists, this.throwKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
11914
var newNode = SyntaxFactory.YieldStatement(this.
Kind
, attributeLists, yieldKeyword, returnOrBreakKeyword, expression, semicolonToken);
11928
=> new YieldStatementSyntax(this.
Kind
, this.attributeLists, this.yieldKeyword, this.returnOrBreakKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11931
=> new YieldStatementSyntax(this.
Kind
, this.attributeLists, this.yieldKeyword, this.returnOrBreakKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
12049
=> new WhileStatementSyntax(this.
Kind
, this.attributeLists, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
12052
=> new WhileStatementSyntax(this.
Kind
, this.attributeLists, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
12188
=> new DoStatementSyntax(this.
Kind
, this.attributeLists, this.doKeyword, this.statement, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.semicolonToken, diagnostics, GetAnnotations());
12191
=> new DoStatementSyntax(this.
Kind
, this.attributeLists, this.doKeyword, this.statement, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.semicolonToken, GetDiagnostics(), annotations);
12390
=> new ForStatementSyntax(this.
Kind
, this.attributeLists, this.forKeyword, this.openParenToken, this.declaration, this.initializers, this.firstSemicolonToken, this.condition, this.secondSemicolonToken, this.incrementors, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
12393
=> new ForStatementSyntax(this.
Kind
, this.attributeLists, this.forKeyword, this.openParenToken, this.declaration, this.initializers, this.firstSemicolonToken, this.condition, this.secondSemicolonToken, this.incrementors, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
12584
=> new ForEachStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.type, this.identifier, this.inKeyword, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
12587
=> new ForEachStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.type, this.identifier, this.inKeyword, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
12747
=> new ForEachVariableStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.variable, this.inKeyword, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
12750
=> new ForEachVariableStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.variable, this.inKeyword, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
12913
=> new UsingStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.openParenToken, this.declaration, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
12916
=> new UsingStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.openParenToken, this.declaration, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
13034
=> new FixedStatementSyntax(this.
Kind
, this.attributeLists, this.fixedKeyword, this.openParenToken, this.declaration, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
13037
=> new FixedStatementSyntax(this.
Kind
, this.attributeLists, this.fixedKeyword, this.openParenToken, this.declaration, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
13114
var newNode = SyntaxFactory.CheckedStatement(this.
Kind
, attributeLists, keyword, block);
13128
=> new CheckedStatementSyntax(this.
Kind
, this.attributeLists, this.keyword, this.block, diagnostics, GetAnnotations());
13131
=> new CheckedStatementSyntax(this.
Kind
, this.attributeLists, this.keyword, this.block, GetDiagnostics(), annotations);
13222
=> new UnsafeStatementSyntax(this.
Kind
, this.attributeLists, this.unsafeKeyword, this.block, diagnostics, GetAnnotations());
13225
=> new UnsafeStatementSyntax(this.
Kind
, this.attributeLists, this.unsafeKeyword, this.block, GetDiagnostics(), annotations);
13343
=> new LockStatementSyntax(this.
Kind
, this.attributeLists, this.lockKeyword, this.openParenToken, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
13346
=> new LockStatementSyntax(this.
Kind
, this.attributeLists, this.lockKeyword, this.openParenToken, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
13503
=> new IfStatementSyntax(this.
Kind
, this.attributeLists, this.ifKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, this.@else, diagnostics, GetAnnotations());
13506
=> new IfStatementSyntax(this.
Kind
, this.attributeLists, this.ifKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, this.@else, GetDiagnostics(), annotations);
13583
=> new ElseClauseSyntax(this.
Kind
, this.elseKeyword, this.statement, diagnostics, GetAnnotations());
13586
=> new ElseClauseSyntax(this.
Kind
, this.elseKeyword, this.statement, GetDiagnostics(), annotations);
13771
=> new SwitchStatementSyntax(this.
Kind
, this.attributeLists, this.switchKeyword, this.openParenToken, this.expression, this.closeParenToken, this.openBraceToken, this.sections, this.closeBraceToken, diagnostics, GetAnnotations());
13774
=> new SwitchStatementSyntax(this.
Kind
, this.attributeLists, this.switchKeyword, this.openParenToken, this.expression, this.closeParenToken, this.openBraceToken, this.sections, this.closeBraceToken, GetDiagnostics(), annotations);
13872
=> new SwitchSectionSyntax(this.
Kind
, this.labels, this.statements, diagnostics, GetAnnotations());
13875
=> new SwitchSectionSyntax(this.
Kind
, this.labels, this.statements, GetDiagnostics(), annotations);
14004
=> new CasePatternSwitchLabelSyntax(this.
Kind
, this.keyword, this.pattern, this.whenClause, this.colonToken, diagnostics, GetAnnotations());
14007
=> new CasePatternSwitchLabelSyntax(this.
Kind
, this.keyword, this.pattern, this.whenClause, this.colonToken, GetDiagnostics(), annotations);
14094
=> new CaseSwitchLabelSyntax(this.
Kind
, this.keyword, this.value, this.colonToken, diagnostics, GetAnnotations());
14097
=> new CaseSwitchLabelSyntax(this.
Kind
, this.keyword, this.value, this.colonToken, GetDiagnostics(), annotations);
14172
=> new DefaultSwitchLabelSyntax(this.
Kind
, this.keyword, this.colonToken, diagnostics, GetAnnotations());
14175
=> new DefaultSwitchLabelSyntax(this.
Kind
, this.keyword, this.colonToken, GetDiagnostics(), annotations);
14284
=> new SwitchExpressionSyntax(this.
Kind
, this.governingExpression, this.switchKeyword, this.openBraceToken, this.arms, this.closeBraceToken, diagnostics, GetAnnotations());
14287
=> new SwitchExpressionSyntax(this.
Kind
, this.governingExpression, this.switchKeyword, this.openBraceToken, this.arms, this.closeBraceToken, GetDiagnostics(), annotations);
14387
=> new SwitchExpressionArmSyntax(this.
Kind
, this.pattern, this.whenClause, this.equalsGreaterThanToken, this.expression, diagnostics, GetAnnotations());
14390
=> new SwitchExpressionArmSyntax(this.
Kind
, this.pattern, this.whenClause, this.equalsGreaterThanToken, this.expression, GetDiagnostics(), annotations);
14517
=> new TryStatementSyntax(this.
Kind
, this.attributeLists, this.tryKeyword, this.block, this.catches, this.@finally, diagnostics, GetAnnotations());
14520
=> new TryStatementSyntax(this.
Kind
, this.attributeLists, this.tryKeyword, this.block, this.catches, this.@finally, GetDiagnostics(), annotations);
14629
=> new CatchClauseSyntax(this.
Kind
, this.catchKeyword, this.declaration, this.filter, this.block, diagnostics, GetAnnotations());
14632
=> new CatchClauseSyntax(this.
Kind
, this.catchKeyword, this.declaration, this.filter, this.block, GetDiagnostics(), annotations);
14732
=> new CatchDeclarationSyntax(this.
Kind
, this.openParenToken, this.type, this.identifier, this.closeParenToken, diagnostics, GetAnnotations());
14735
=> new CatchDeclarationSyntax(this.
Kind
, this.openParenToken, this.type, this.identifier, this.closeParenToken, GetDiagnostics(), annotations);
14826
=> new CatchFilterClauseSyntax(this.
Kind
, this.whenKeyword, this.openParenToken, this.filterExpression, this.closeParenToken, diagnostics, GetAnnotations());
14829
=> new CatchFilterClauseSyntax(this.
Kind
, this.whenKeyword, this.openParenToken, this.filterExpression, this.closeParenToken, GetDiagnostics(), annotations);
14902
=> new FinallyClauseSyntax(this.
Kind
, this.finallyKeyword, this.block, diagnostics, GetAnnotations());
14905
=> new FinallyClauseSyntax(this.
Kind
, this.finallyKeyword, this.block, GetDiagnostics(), annotations);
15042
=> new CompilationUnitSyntax(this.
Kind
, this.externs, this.usings, this.attributeLists, this.members, this.endOfFileToken, diagnostics, GetAnnotations());
15045
=> new CompilationUnitSyntax(this.
Kind
, this.externs, this.usings, this.attributeLists, this.members, this.endOfFileToken, GetDiagnostics(), annotations);
15143
=> new ExternAliasDirectiveSyntax(this.
Kind
, this.externKeyword, this.aliasKeyword, this.identifier, this.semicolonToken, diagnostics, GetAnnotations());
15146
=> new ExternAliasDirectiveSyntax(this.
Kind
, this.externKeyword, this.aliasKeyword, this.identifier, this.semicolonToken, GetDiagnostics(), annotations);
15300
=> new UsingDirectiveSyntax(this.
Kind
, this.globalKeyword, this.usingKeyword, this.staticKeyword, this.unsafeKeyword, this.alias, this.namespaceOrType, this.semicolonToken, diagnostics, GetAnnotations());
15303
=> new UsingDirectiveSyntax(this.
Kind
, this.globalKeyword, this.usingKeyword, this.staticKeyword, this.unsafeKeyword, this.alias, this.namespaceOrType, this.semicolonToken, GetDiagnostics(), annotations);
15546
=> new NamespaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.openBraceToken, this.externs, this.usings, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
15549
=> new NamespaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.openBraceToken, this.externs, this.usings, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
15721
=> new FileScopedNamespaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.semicolonToken, this.externs, this.usings, this.members, diagnostics, GetAnnotations());
15724
=> new FileScopedNamespaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.semicolonToken, this.externs, this.usings, this.members, GetDiagnostics(), annotations);
15838
=> new AttributeListSyntax(this.
Kind
, this.openBracketToken, this.target, this.attributes, this.closeBracketToken, diagnostics, GetAnnotations());
15841
=> new AttributeListSyntax(this.
Kind
, this.openBracketToken, this.target, this.attributes, this.closeBracketToken, GetDiagnostics(), annotations);
15917
=> new AttributeTargetSpecifierSyntax(this.
Kind
, this.identifier, this.colonToken, diagnostics, GetAnnotations());
15920
=> new AttributeTargetSpecifierSyntax(this.
Kind
, this.identifier, this.colonToken, GetDiagnostics(), annotations);
16007
=> new AttributeSyntax(this.
Kind
, this.name, this.argumentList, diagnostics, GetAnnotations());
16010
=> new AttributeSyntax(this.
Kind
, this.name, this.argumentList, GetDiagnostics(), annotations);
16105
=> new AttributeArgumentListSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, diagnostics, GetAnnotations());
16108
=> new AttributeArgumentListSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, GetDiagnostics(), annotations);
16210
=> new AttributeArgumentSyntax(this.
Kind
, this.nameEquals, this.nameColon, this.expression, diagnostics, GetAnnotations());
16213
=> new AttributeArgumentSyntax(this.
Kind
, this.nameEquals, this.nameColon, this.expression, GetDiagnostics(), annotations);
16288
=> new NameEqualsSyntax(this.
Kind
, this.name, this.equalsToken, diagnostics, GetAnnotations());
16291
=> new NameEqualsSyntax(this.
Kind
, this.name, this.equalsToken, GetDiagnostics(), annotations);
16386
=> new TypeParameterListSyntax(this.
Kind
, this.lessThanToken, this.parameters, this.greaterThanToken, diagnostics, GetAnnotations());
16389
=> new TypeParameterListSyntax(this.
Kind
, this.lessThanToken, this.parameters, this.greaterThanToken, GetDiagnostics(), annotations);
16492
=> new TypeParameterSyntax(this.
Kind
, this.attributeLists, this.varianceKeyword, this.identifier, diagnostics, GetAnnotations());
16495
=> new TypeParameterSyntax(this.
Kind
, this.attributeLists, this.varianceKeyword, this.identifier, GetDiagnostics(), annotations);
16806
=> new ClassDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
16809
=> new ClassDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
17064
=> new StructDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
17067
=> new StructDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
17322
=> new InterfaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
17325
=> new InterfaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
17582
var newNode = SyntaxFactory.RecordDeclaration(this.
Kind
, attributeLists, modifiers, keyword, classOrStructKeyword, identifier, typeParameterList, parameterList, baseList, constraintClauses, openBraceToken, members, closeBraceToken, semicolonToken);
17596
=> new RecordDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.classOrStructKeyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
17599
=> new RecordDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.classOrStructKeyword, this.identifier, this.typeParameterList, this.parameterList, this.baseList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
17802
=> new EnumDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.enumKeyword, this.identifier, this.baseList, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
17805
=> new EnumDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.enumKeyword, this.identifier, this.baseList, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
17984
=> new DelegateDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.delegateKeyword, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.semicolonToken, diagnostics, GetAnnotations());
17987
=> new DelegateDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.delegateKeyword, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.semicolonToken, GetDiagnostics(), annotations);
18106
=> new EnumMemberDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.equalsValue, diagnostics, GetAnnotations());
18109
=> new EnumMemberDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.equalsValue, GetDiagnostics(), annotations);
18336
=> new ExtensionBlockDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.typeParameterList, this.parameterList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
18339
=> new ExtensionBlockDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.typeParameterList, this.parameterList, this.constraintClauses, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
18424
=> new BaseListSyntax(this.
Kind
, this.colonToken, this.types, diagnostics, GetAnnotations());
18427
=> new BaseListSyntax(this.
Kind
, this.colonToken, this.types, GetDiagnostics(), annotations);
18503
=> new SimpleBaseTypeSyntax(this.
Kind
, this.type, diagnostics, GetAnnotations());
18506
=> new SimpleBaseTypeSyntax(this.
Kind
, this.type, GetDiagnostics(), annotations);
18579
=> new PrimaryConstructorBaseTypeSyntax(this.
Kind
, this.type, this.argumentList, diagnostics, GetAnnotations());
18582
=> new PrimaryConstructorBaseTypeSyntax(this.
Kind
, this.type, this.argumentList, GetDiagnostics(), annotations);
18686
=> new TypeParameterConstraintClauseSyntax(this.
Kind
, this.whereKeyword, this.name, this.colonToken, this.constraints, diagnostics, GetAnnotations());
18689
=> new TypeParameterConstraintClauseSyntax(this.
Kind
, this.whereKeyword, this.name, this.colonToken, this.constraints, GetDiagnostics(), annotations);
18789
=> new ConstructorConstraintSyntax(this.
Kind
, this.newKeyword, this.openParenToken, this.closeParenToken, diagnostics, GetAnnotations());
18792
=> new ConstructorConstraintSyntax(this.
Kind
, this.newKeyword, this.openParenToken, this.closeParenToken, GetDiagnostics(), annotations);
18863
var newNode = SyntaxFactory.ClassOrStructConstraint(this.
Kind
, classOrStructKeyword, questionToken);
18877
=> new ClassOrStructConstraintSyntax(this.
Kind
, this.classOrStructKeyword, this.questionToken, diagnostics, GetAnnotations());
18880
=> new ClassOrStructConstraintSyntax(this.
Kind
, this.classOrStructKeyword, this.questionToken, GetDiagnostics(), annotations);
18942
=> new TypeConstraintSyntax(this.
Kind
, this.type, diagnostics, GetAnnotations());
18945
=> new TypeConstraintSyntax(this.
Kind
, this.type, GetDiagnostics(), annotations);
19007
=> new DefaultConstraintSyntax(this.
Kind
, this.defaultKeyword, diagnostics, GetAnnotations());
19010
=> new DefaultConstraintSyntax(this.
Kind
, this.defaultKeyword, GetDiagnostics(), annotations);
19094
=> new AllowsConstraintClauseSyntax(this.
Kind
, this.allowsKeyword, this.constraints, diagnostics, GetAnnotations());
19097
=> new AllowsConstraintClauseSyntax(this.
Kind
, this.allowsKeyword, this.constraints, GetDiagnostics(), annotations);
19187
=> new RefStructConstraintSyntax(this.
Kind
, this.refKeyword, this.structKeyword, diagnostics, GetAnnotations());
19190
=> new RefStructConstraintSyntax(this.
Kind
, this.refKeyword, this.structKeyword, GetDiagnostics(), annotations);
19316
=> new FieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.declaration, this.semicolonToken, diagnostics, GetAnnotations());
19319
=> new FieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.declaration, this.semicolonToken, GetDiagnostics(), annotations);
19437
=> new EventFieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.declaration, this.semicolonToken, diagnostics, GetAnnotations());
19440
=> new EventFieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.declaration, this.semicolonToken, GetDiagnostics(), annotations);
19513
=> new ExplicitInterfaceSpecifierSyntax(this.
Kind
, this.name, this.dotToken, diagnostics, GetAnnotations());
19516
=> new ExplicitInterfaceSpecifierSyntax(this.
Kind
, this.name, this.dotToken, GetDiagnostics(), annotations);
19771
=> new MethodDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.explicitInterfaceSpecifier, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
19774
=> new MethodDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.explicitInterfaceSpecifier, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
19997
=> new OperatorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.explicitInterfaceSpecifier, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameterList, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
20000
=> new OperatorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.returnType, this.explicitInterfaceSpecifier, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameterList, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
20223
=> new ConversionOperatorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.implicitOrExplicitKeyword, this.explicitInterfaceSpecifier, this.operatorKeyword, this.checkedKeyword, this.type, this.parameterList, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
20226
=> new ConversionOperatorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.implicitOrExplicitKeyword, this.explicitInterfaceSpecifier, this.operatorKeyword, this.checkedKeyword, this.type, this.parameterList, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
20410
=> new ConstructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.parameterList, this.initializer, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
20413
=> new ConstructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.parameterList, this.initializer, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
20484
var newNode = SyntaxFactory.ConstructorInitializer(this.
Kind
, colonToken, thisOrBaseKeyword, argumentList);
20498
=> new ConstructorInitializerSyntax(this.
Kind
, this.colonToken, this.thisOrBaseKeyword, this.argumentList, diagnostics, GetAnnotations());
20501
=> new ConstructorInitializerSyntax(this.
Kind
, this.colonToken, this.thisOrBaseKeyword, this.argumentList, GetDiagnostics(), annotations);
20677
=> new DestructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.tildeToken, this.identifier, this.parameterList, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
20680
=> new DestructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.tildeToken, this.identifier, this.parameterList, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
20902
=> new PropertyDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.expressionBody, this.initializer, this.semicolonToken, diagnostics, GetAnnotations());
20905
=> new PropertyDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.expressionBody, this.initializer, this.semicolonToken, GetDiagnostics(), annotations);
20979
=> new ArrowExpressionClauseSyntax(this.
Kind
, this.arrowToken, this.expression, diagnostics, GetAnnotations());
20982
=> new ArrowExpressionClauseSyntax(this.
Kind
, this.arrowToken, this.expression, GetDiagnostics(), annotations);
21155
=> new EventDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.semicolonToken, diagnostics, GetAnnotations());
21158
=> new EventDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.semicolonToken, GetDiagnostics(), annotations);
21349
=> new IndexerDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.thisKeyword, this.parameterList, this.accessorList, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
21352
=> new IndexerDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.thisKeyword, this.parameterList, this.accessorList, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
21443
=> new AccessorListSyntax(this.
Kind
, this.openBraceToken, this.accessors, this.closeBraceToken, diagnostics, GetAnnotations());
21446
=> new AccessorListSyntax(this.
Kind
, this.openBraceToken, this.accessors, this.closeBraceToken, GetDiagnostics(), annotations);
21592
var newNode = SyntaxFactory.AccessorDeclaration(this.
Kind
, attributeLists, modifiers, keyword, body, expressionBody, semicolonToken);
21606
=> new AccessorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
21609
=> new AccessorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
21720
=> new ParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, diagnostics, GetAnnotations());
21723
=> new ParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, GetDiagnostics(), annotations);
21817
=> new BracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, diagnostics, GetAnnotations());
21820
=> new BracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, GetDiagnostics(), annotations);
21991
=> new ParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.identifier, this.@default, diagnostics, GetAnnotations());
21994
=> new ParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.identifier, this.@default, GetDiagnostics(), annotations);
22097
=> new FunctionPointerParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, diagnostics, GetAnnotations());
22100
=> new FunctionPointerParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, GetDiagnostics(), annotations);
22209
=> new IncompleteMemberSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, diagnostics, GetAnnotations());
22212
=> new IncompleteMemberSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, GetDiagnostics(), annotations);
22281
=> new SkippedTokensTriviaSyntax(this.
Kind
, this.tokens, diagnostics, GetAnnotations());
22284
=> new SkippedTokensTriviaSyntax(this.
Kind
, this.tokens, GetDiagnostics(), annotations);
22352
var newNode = SyntaxFactory.DocumentationCommentTrivia(this.
Kind
, content, endOfComment);
22366
=> new DocumentationCommentTriviaSyntax(this.
Kind
, this.content, this.endOfComment, diagnostics, GetAnnotations());
22369
=> new DocumentationCommentTriviaSyntax(this.
Kind
, this.content, this.endOfComment, GetDiagnostics(), annotations);
22453
=> new TypeCrefSyntax(this.
Kind
, this.type, diagnostics, GetAnnotations());
22456
=> new TypeCrefSyntax(this.
Kind
, this.type, GetDiagnostics(), annotations);
22545
=> new QualifiedCrefSyntax(this.
Kind
, this.container, this.dotToken, this.member, diagnostics, GetAnnotations());
22548
=> new QualifiedCrefSyntax(this.
Kind
, this.container, this.dotToken, this.member, GetDiagnostics(), annotations);
22656
=> new NameMemberCrefSyntax(this.
Kind
, this.name, this.parameters, diagnostics, GetAnnotations());
22659
=> new NameMemberCrefSyntax(this.
Kind
, this.name, this.parameters, GetDiagnostics(), annotations);
22768
=> new ExtensionMemberCrefSyntax(this.
Kind
, this.extensionKeyword, this.typeArgumentList, this.parameters, this.dotToken, this.member, diagnostics, GetAnnotations());
22771
=> new ExtensionMemberCrefSyntax(this.
Kind
, this.extensionKeyword, this.typeArgumentList, this.parameters, this.dotToken, this.member, GetDiagnostics(), annotations);
22857
=> new IndexerMemberCrefSyntax(this.
Kind
, this.thisKeyword, this.parameters, diagnostics, GetAnnotations());
22860
=> new IndexerMemberCrefSyntax(this.
Kind
, this.thisKeyword, this.parameters, GetDiagnostics(), annotations);
22975
=> new OperatorMemberCrefSyntax(this.
Kind
, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameters, diagnostics, GetAnnotations());
22978
=> new OperatorMemberCrefSyntax(this.
Kind
, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameters, GetDiagnostics(), annotations);
23100
=> new ConversionOperatorMemberCrefSyntax(this.
Kind
, this.implicitOrExplicitKeyword, this.operatorKeyword, this.checkedKeyword, this.type, this.parameters, diagnostics, GetAnnotations());
23103
=> new ConversionOperatorMemberCrefSyntax(this.
Kind
, this.implicitOrExplicitKeyword, this.operatorKeyword, this.checkedKeyword, this.type, this.parameters, GetDiagnostics(), annotations);
23219
=> new CrefParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, diagnostics, GetAnnotations());
23222
=> new CrefParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, GetDiagnostics(), annotations);
23318
=> new CrefBracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, diagnostics, GetAnnotations());
23321
=> new CrefBracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, GetDiagnostics(), annotations);
23427
=> new CrefParameterSyntax(this.
Kind
, this.refKindKeyword, this.readOnlyKeyword, this.type, diagnostics, GetAnnotations());
23430
=> new CrefParameterSyntax(this.
Kind
, this.refKindKeyword, this.readOnlyKeyword, this.type, GetDiagnostics(), annotations);
23534
=> new XmlElementSyntax(this.
Kind
, this.startTag, this.content, this.endTag, diagnostics, GetAnnotations());
23537
=> new XmlElementSyntax(this.
Kind
, this.startTag, this.content, this.endTag, GetDiagnostics(), annotations);
23637
=> new XmlElementStartTagSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.greaterThanToken, diagnostics, GetAnnotations());
23640
=> new XmlElementStartTagSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.greaterThanToken, GetDiagnostics(), annotations);
23722
=> new XmlElementEndTagSyntax(this.
Kind
, this.lessThanSlashToken, this.name, this.greaterThanToken, diagnostics, GetAnnotations());
23725
=> new XmlElementEndTagSyntax(this.
Kind
, this.lessThanSlashToken, this.name, this.greaterThanToken, GetDiagnostics(), annotations);
23825
=> new XmlEmptyElementSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.slashGreaterThanToken, diagnostics, GetAnnotations());
23828
=> new XmlEmptyElementSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.slashGreaterThanToken, GetDiagnostics(), annotations);
23910
=> new XmlNameSyntax(this.
Kind
, this.prefix, this.localName, diagnostics, GetAnnotations());
23913
=> new XmlNameSyntax(this.
Kind
, this.prefix, this.localName, GetDiagnostics(), annotations);
23986
=> new XmlPrefixSyntax(this.
Kind
, this.prefix, this.colonToken, diagnostics, GetAnnotations());
23989
=> new XmlPrefixSyntax(this.
Kind
, this.prefix, this.colonToken, GetDiagnostics(), annotations);
24119
=> new XmlTextAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.textTokens, this.endQuoteToken, diagnostics, GetAnnotations());
24122
=> new XmlTextAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.textTokens, this.endQuoteToken, GetDiagnostics(), annotations);
24222
=> new XmlCrefAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.cref, this.endQuoteToken, diagnostics, GetAnnotations());
24225
=> new XmlCrefAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.cref, this.endQuoteToken, GetDiagnostics(), annotations);
24325
=> new XmlNameAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.identifier, this.endQuoteToken, diagnostics, GetAnnotations());
24328
=> new XmlNameAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.identifier, this.endQuoteToken, GetDiagnostics(), annotations);
24397
=> new XmlTextSyntax(this.
Kind
, this.textTokens, diagnostics, GetAnnotations());
24400
=> new XmlTextSyntax(this.
Kind
, this.textTokens, GetDiagnostics(), annotations);
24491
=> new XmlCDataSectionSyntax(this.
Kind
, this.startCDataToken, this.textTokens, this.endCDataToken, diagnostics, GetAnnotations());
24494
=> new XmlCDataSectionSyntax(this.
Kind
, this.startCDataToken, this.textTokens, this.endCDataToken, GetDiagnostics(), annotations);
24594
=> new XmlProcessingInstructionSyntax(this.
Kind
, this.startProcessingInstructionToken, this.name, this.textTokens, this.endProcessingInstructionToken, diagnostics, GetAnnotations());
24597
=> new XmlProcessingInstructionSyntax(this.
Kind
, this.startProcessingInstructionToken, this.name, this.textTokens, this.endProcessingInstructionToken, GetDiagnostics(), annotations);
24688
=> new XmlCommentSyntax(this.
Kind
, this.lessThanExclamationMinusMinusToken, this.textTokens, this.minusMinusGreaterThanToken, diagnostics, GetAnnotations());
24691
=> new XmlCommentSyntax(this.
Kind
, this.lessThanExclamationMinusMinusToken, this.textTokens, this.minusMinusGreaterThanToken, GetDiagnostics(), annotations);
24850
=> new IfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.ifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, diagnostics, GetAnnotations());
24853
=> new IfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.ifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, GetDiagnostics(), annotations);
24959
=> new ElifDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, diagnostics, GetAnnotations());
24962
=> new ElifDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, GetDiagnostics(), annotations);
25054
=> new ElseDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elseKeyword, this.endOfDirectiveToken, this.isActive, this.branchTaken, diagnostics, GetAnnotations());
25057
=> new ElseDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elseKeyword, this.endOfDirectiveToken, this.isActive, this.branchTaken, GetDiagnostics(), annotations);
25144
=> new EndIfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endIfKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25147
=> new EndIfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endIfKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25234
=> new RegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.regionKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25237
=> new RegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.regionKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25324
=> new EndRegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endRegionKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25327
=> new EndRegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endRegionKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25414
=> new ErrorDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.errorKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25417
=> new ErrorDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.errorKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25504
=> new WarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.warningKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25507
=> new WarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.warningKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25594
=> new BadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.identifier, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25597
=> new BadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.identifier, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25693
=> new DefineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.defineKeyword, this.name, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25696
=> new DefineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.defineKeyword, this.name, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25792
=> new UndefDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.undefKeyword, this.name, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25795
=> new UndefDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.undefKeyword, this.name, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25926
=> new LineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.line, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25929
=> new LineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.line, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26029
=> new LineDirectivePositionSyntax(this.
Kind
, this.openParenToken, this.line, this.commaToken, this.character, this.closeParenToken, diagnostics, GetAnnotations());
26032
=> new LineDirectivePositionSyntax(this.
Kind
, this.openParenToken, this.line, this.commaToken, this.character, this.closeParenToken, GetDiagnostics(), annotations);
26173
=> new LineSpanDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.start, this.minusToken, this.end, this.characterOffset, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26176
=> new LineSpanDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.start, this.minusToken, this.end, this.characterOffset, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26299
=> new PragmaWarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.warningKeyword, this.disableOrRestoreKeyword, this.errorCodes, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26302
=> new PragmaWarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.warningKeyword, this.disableOrRestoreKeyword, this.errorCodes, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26425
=> new PragmaChecksumDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.checksumKeyword, this.file, this.guid, this.bytes, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26428
=> new PragmaChecksumDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.checksumKeyword, this.file, this.guid, this.bytes, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26524
=> new ReferenceDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.referenceKeyword, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26527
=> new ReferenceDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.referenceKeyword, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26623
=> new LoadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.loadKeyword, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26626
=> new LoadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.loadKeyword, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26713
=> new ShebangDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.exclamationToken, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26716
=> new ShebangDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.exclamationToken, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26821
=> new IgnoredDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.colonToken, this.content, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26824
=> new IgnoredDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.colonToken, this.content, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26938
=> new NullableDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.nullableKeyword, this.settingToken, this.targetToken, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26941
=> new NullableDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.nullableKeyword, this.settingToken, this.targetToken, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
28202
switch (identifier.
Kind
)
28228
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
28249
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
28270
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
28272
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
28293
if (colonColonToken.
Kind
!= SyntaxKind.ColonColonToken) throw new ArgumentException(nameof(colonColonToken));
28314
switch (keyword.
Kind
)
28372
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
28374
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
28395
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
28415
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
28417
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
28428
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
28430
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
28450
switch (managedOrUnmanagedKeyword.
Kind
)
28475
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
28477
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
28497
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
28518
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
28538
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
28540
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
28562
switch (identifier.
Kind
)
28588
if (omittedTypeArgumentToken.
Kind
!= SyntaxKind.OmittedTypeArgumentToken) throw new ArgumentException(nameof(omittedTypeArgumentToken));
28608
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
28611
switch (readOnlyKeyword.
Kind
)
28638
if (scopedKeyword.
Kind
!= SyntaxKind.ScopedKeyword) throw new ArgumentException(nameof(scopedKeyword));
28659
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
28662
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
28682
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
28684
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
28717
switch (operatorToken.
Kind
)
28750
if (awaitKeyword.
Kind
!= SyntaxKind.AwaitKeyword) throw new ArgumentException(nameof(awaitKeyword));
28779
switch (operatorToken.
Kind
)
28812
switch (operatorToken.
Kind
)
28839
if (operatorToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(operatorToken));
28860
if (operatorToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(operatorToken));
28900
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
28966
switch (operatorToken.
Kind
)
29030
switch (operatorToken.
Kind
)
29068
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
29071
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
29082
if (token.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token));
29102
if (token.
Kind
!= SyntaxKind.BaseKeyword) throw new ArgumentException(nameof(token));
29135
switch (token.
Kind
)
29171
if (token.
Kind
!= SyntaxKind.FieldKeyword) throw new ArgumentException(nameof(token));
29191
if (keyword.
Kind
!= SyntaxKind.MakeRefKeyword) throw new ArgumentException(nameof(keyword));
29193
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29196
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29206
if (keyword.
Kind
!= SyntaxKind.RefTypeKeyword) throw new ArgumentException(nameof(keyword));
29208
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29211
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29221
if (keyword.
Kind
!= SyntaxKind.RefValueKeyword) throw new ArgumentException(nameof(keyword));
29223
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29226
if (comma.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(comma));
29229
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29245
switch (keyword.
Kind
)
29252
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29255
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29265
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
29267
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29270
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29280
if (keyword.
Kind
!= SyntaxKind.TypeOfKeyword) throw new ArgumentException(nameof(keyword));
29282
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29285
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29295
if (keyword.
Kind
!= SyntaxKind.SizeOfKeyword) throw new ArgumentException(nameof(keyword));
29297
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29300
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29350
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29352
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29372
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
29374
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
29395
switch (refKindKeyword.
Kind
)
29484
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29487
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29498
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
29510
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
29520
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
29542
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
29561
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
29563
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
29583
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
29604
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
29616
if (withKeyword.
Kind
!= SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword));
29656
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
29658
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
29660
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
29670
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
29691
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
29693
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
29695
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
29706
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
29727
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
29729
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
29731
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
29742
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
29744
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
29783
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
29843
if (fromKeyword.
Kind
!= SyntaxKind.FromKeyword) throw new ArgumentException(nameof(fromKeyword));
29845
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
29847
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
29858
if (letKeyword.
Kind
!= SyntaxKind.LetKeyword) throw new ArgumentException(nameof(letKeyword));
29860
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
29862
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
29873
if (joinKeyword.
Kind
!= SyntaxKind.JoinKeyword) throw new ArgumentException(nameof(joinKeyword));
29875
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
29877
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
29880
if (onKeyword.
Kind
!= SyntaxKind.OnKeyword) throw new ArgumentException(nameof(onKeyword));
29883
if (equalsKeyword.
Kind
!= SyntaxKind.EqualsKeyword) throw new ArgumentException(nameof(equalsKeyword));
29894
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
29896
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
29916
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
29937
if (orderByKeyword.
Kind
!= SyntaxKind.OrderByKeyword) throw new ArgumentException(nameof(orderByKeyword));
29965
switch (ascendingOrDescendingKeyword.
Kind
)
29992
if (selectKeyword.
Kind
!= SyntaxKind.SelectKeyword) throw new ArgumentException(nameof(selectKeyword));
30013
if (groupKeyword.
Kind
!= SyntaxKind.GroupKeyword) throw new ArgumentException(nameof(groupKeyword));
30016
if (byKeyword.
Kind
!= SyntaxKind.ByKeyword) throw new ArgumentException(nameof(byKeyword));
30027
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
30029
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30050
if (omittedArraySizeExpressionToken.
Kind
!= SyntaxKind.OmittedArraySizeExpressionToken) throw new ArgumentException(nameof(omittedArraySizeExpressionToken));
30070
switch (stringStartToken.
Kind
)
30079
switch (stringEndToken.
Kind
)
30105
if (isKeyword.
Kind
!= SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword));
30126
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
30147
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
30168
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
30208
if (varKeyword.
Kind
!= SyntaxKind.VarKeyword) throw new ArgumentException(nameof(varKeyword));
30237
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30239
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30259
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
30261
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
30319
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30322
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30342
switch (operatorToken.
Kind
)
30398
switch (operatorToken.
Kind
)
30424
if (operatorToken.
Kind
!= SyntaxKind.NotKeyword) throw new ArgumentException(nameof(operatorToken));
30445
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
30447
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
30457
if (dotDotToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(dotDotToken));
30477
if (textToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(textToken));
30497
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
30500
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
30531
if (formatStringToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(formatStringToken));
30570
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
30572
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
30583
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30587
switch (semicolonToken.
Kind
)
30604
switch (awaitKeyword.
Kind
)
30613
switch (usingKeyword.
Kind
)
30622
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30651
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30671
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
30692
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30712
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
30732
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30734
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30755
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30775
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30795
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30797
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
30815
if (gotoKeyword.
Kind
!= SyntaxKind.GotoKeyword) throw new ArgumentException(nameof(gotoKeyword));
30818
switch (caseOrDefaultKeyword.
Kind
)
30827
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30837
if (breakKeyword.
Kind
!= SyntaxKind.BreakKeyword) throw new ArgumentException(nameof(breakKeyword));
30839
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30859
if (continueKeyword.
Kind
!= SyntaxKind.ContinueKeyword) throw new ArgumentException(nameof(continueKeyword));
30861
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30881
if (returnKeyword.
Kind
!= SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword));
30883
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30893
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
30895
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30911
if (yieldKeyword.
Kind
!= SyntaxKind.YieldKeyword) throw new ArgumentException(nameof(yieldKeyword));
30913
switch (returnOrBreakKeyword.
Kind
)
30920
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30930
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
30932
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30935
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30946
if (doKeyword.
Kind
!= SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword));
30949
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
30951
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30954
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30956
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30966
if (forKeyword.
Kind
!= SyntaxKind.ForKeyword) throw new ArgumentException(nameof(forKeyword));
30968
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30970
if (firstSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(firstSemicolonToken));
30972
if (secondSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(secondSemicolonToken));
30974
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30986
switch (awaitKeyword.
Kind
)
30994
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
30996
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30999
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31001
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
31004
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31016
switch (awaitKeyword.
Kind
)
31024
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
31026
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31029
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
31032
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31044
switch (awaitKeyword.
Kind
)
31052
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
31054
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31056
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31067
if (fixedKeyword.
Kind
!= SyntaxKind.FixedKeyword) throw new ArgumentException(nameof(fixedKeyword));
31069
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31072
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31089
switch (keyword.
Kind
)
31115
if (unsafeKeyword.
Kind
!= SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(unsafeKeyword));
31136
if (lockKeyword.
Kind
!= SyntaxKind.LockKeyword) throw new ArgumentException(nameof(lockKeyword));
31138
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31141
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31152
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
31154
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31157
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31168
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
31189
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
31192
switch (openParenToken.
Kind
)
31202
switch (closeParenToken.
Kind
)
31210
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
31212
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
31240
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
31252
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
31274
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
31296
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
31298
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
31300
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
31311
if (equalsGreaterThanToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(equalsGreaterThanToken));
31322
if (tryKeyword.
Kind
!= SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword));
31333
if (catchKeyword.
Kind
!= SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword));
31344
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31348
switch (identifier.
Kind
)
31356
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31366
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
31368
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31371
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31381
if (finallyKeyword.
Kind
!= SyntaxKind.FinallyKeyword) throw new ArgumentException(nameof(finallyKeyword));
31402
if (endOfFileToken.
Kind
!= SyntaxKind.EndOfFileToken) throw new ArgumentException(nameof(endOfFileToken));
31412
if (externKeyword.
Kind
!= SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword));
31414
if (aliasKeyword.
Kind
!= SyntaxKind.AliasKeyword) throw new ArgumentException(nameof(aliasKeyword));
31416
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31418
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31429
switch (globalKeyword.
Kind
)
31437
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
31440
switch (staticKeyword.
Kind
)
31449
switch (unsafeKeyword.
Kind
)
31458
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31468
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
31471
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
31473
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
31476
switch (semicolonToken.
Kind
)
31492
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
31495
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31505
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
31507
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
31518
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
31547
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31549
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31589
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
31609
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
31611
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
31632
switch (varianceKeyword.
Kind
)
31641
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31661
if (keyword.
Kind
!= SyntaxKind.ClassKeyword) throw new ArgumentException(nameof(keyword));
31663
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31666
switch (openBraceToken.
Kind
)
31675
switch (closeBraceToken.
Kind
)
31684
switch (semicolonToken.
Kind
)
31700
if (keyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(keyword));
31702
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31705
switch (openBraceToken.
Kind
)
31714
switch (closeBraceToken.
Kind
)
31723
switch (semicolonToken.
Kind
)
31739
if (keyword.
Kind
!= SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword));
31741
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31744
switch (openBraceToken.
Kind
)
31753
switch (closeBraceToken.
Kind
)
31762
switch (semicolonToken.
Kind
)
31786
switch (classOrStructKeyword.
Kind
)
31795
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31798
switch (openBraceToken.
Kind
)
31807
switch (closeBraceToken.
Kind
)
31816
switch (semicolonToken.
Kind
)
31832
if (enumKeyword.
Kind
!= SyntaxKind.EnumKeyword) throw new ArgumentException(nameof(enumKeyword));
31834
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31837
switch (openBraceToken.
Kind
)
31846
switch (closeBraceToken.
Kind
)
31855
switch (semicolonToken.
Kind
)
31871
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
31874
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31877
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31887
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31897
if (keyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(keyword));
31900
switch (openBraceToken.
Kind
)
31909
switch (closeBraceToken.
Kind
)
31918
switch (semicolonToken.
Kind
)
31934
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
31993
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
31996
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
32006
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
32008
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
32010
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
32036
switch (classOrStructKeyword.
Kind
)
32044
switch (questionToken.
Kind
)
32089
if (defaultKeyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(defaultKeyword));
32109
if (allowsKeyword.
Kind
!= SyntaxKind.AllowsKeyword) throw new ArgumentException(nameof(allowsKeyword));
32129
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
32131
if (structKeyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(structKeyword));
32152
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
32162
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
32165
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
32176
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
32197
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32201
switch (semicolonToken.
Kind
)
32218
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
32221
switch (checkedKeyword.
Kind
)
32229
switch (operatorToken.
Kind
)
32271
switch (semicolonToken.
Kind
)
32287
switch (implicitOrExplicitKeyword.
Kind
)
32294
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
32297
switch (checkedKeyword.
Kind
)
32308
switch (semicolonToken.
Kind
)
32324
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32328
switch (semicolonToken.
Kind
)
32350
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
32352
switch (thisOrBaseKeyword.
Kind
)
32378
if (tildeToken.
Kind
!= SyntaxKind.TildeToken) throw new ArgumentException(nameof(tildeToken));
32380
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32384
switch (semicolonToken.
Kind
)
32401
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32404
switch (semicolonToken.
Kind
)
32420
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
32441
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
32444
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32447
switch (semicolonToken.
Kind
)
32464
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
32468
switch (semicolonToken.
Kind
)
32484
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
32486
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
32516
switch (keyword.
Kind
)
32528
switch (semicolonToken.
Kind
)
32544
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
32546
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
32566
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
32568
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
32589
switch (identifier.
Kind
)
32647
if (endOfComment.
Kind
!= SyntaxKind.EndOfDocumentationCommentToken) throw new ArgumentException(nameof(endOfComment));
32677
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
32717
if (extensionKeyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(extensionKeyword));
32720
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
32731
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
32751
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
32754
switch (checkedKeyword.
Kind
)
32762
switch (operatorToken.
Kind
)
32809
switch (implicitOrExplicitKeyword.
Kind
)
32816
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
32819
switch (checkedKeyword.
Kind
)
32836
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
32838
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
32858
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
32860
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
32881
switch (refKindKeyword.
Kind
)
32892
switch (readOnlyKeyword.
Kind
)
32939
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
32942
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
32952
if (lessThanSlashToken.
Kind
!= SyntaxKind.LessThanSlashToken) throw new ArgumentException(nameof(lessThanSlashToken));
32955
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
32975
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
32978
if (slashGreaterThanToken.
Kind
!= SyntaxKind.SlashGreaterThanToken) throw new ArgumentException(nameof(slashGreaterThanToken));
32988
if (localName.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(localName));
33008
if (prefix.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(prefix));
33010
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
33031
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
33033
switch (startQuoteToken.
Kind
)
33040
switch (endQuoteToken.
Kind
)
33056
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
33058
switch (startQuoteToken.
Kind
)
33066
switch (endQuoteToken.
Kind
)
33082
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
33084
switch (startQuoteToken.
Kind
)
33092
switch (endQuoteToken.
Kind
)
33125
if (startCDataToken.
Kind
!= SyntaxKind.XmlCDataStartToken) throw new ArgumentException(nameof(startCDataToken));
33127
if (endCDataToken.
Kind
!= SyntaxKind.XmlCDataEndToken) throw new ArgumentException(nameof(endCDataToken));
33147
if (startProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionStartToken) throw new ArgumentException(nameof(startProcessingInstructionToken));
33150
if (endProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionEndToken) throw new ArgumentException(nameof(endProcessingInstructionToken));
33160
if (lessThanExclamationMinusMinusToken.
Kind
!= SyntaxKind.XmlCommentStartToken) throw new ArgumentException(nameof(lessThanExclamationMinusMinusToken));
33162
if (minusMinusGreaterThanToken.
Kind
!= SyntaxKind.XmlCommentEndToken) throw new ArgumentException(nameof(minusMinusGreaterThanToken));
33182
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33184
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
33187
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33197
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33199
if (elifKeyword.
Kind
!= SyntaxKind.ElifKeyword) throw new ArgumentException(nameof(elifKeyword));
33202
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33212
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33214
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
33216
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33226
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33228
if (endIfKeyword.
Kind
!= SyntaxKind.EndIfKeyword) throw new ArgumentException(nameof(endIfKeyword));
33230
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33240
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33242
if (regionKeyword.
Kind
!= SyntaxKind.RegionKeyword) throw new ArgumentException(nameof(regionKeyword));
33244
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33254
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33256
if (endRegionKeyword.
Kind
!= SyntaxKind.EndRegionKeyword) throw new ArgumentException(nameof(endRegionKeyword));
33258
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33268
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33270
if (errorKeyword.
Kind
!= SyntaxKind.ErrorKeyword) throw new ArgumentException(nameof(errorKeyword));
33272
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33282
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33284
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
33286
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33296
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33299
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33309
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33311
if (defineKeyword.
Kind
!= SyntaxKind.DefineKeyword) throw new ArgumentException(nameof(defineKeyword));
33313
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
33315
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33325
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33327
if (undefKeyword.
Kind
!= SyntaxKind.UndefKeyword) throw new ArgumentException(nameof(undefKeyword));
33329
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
33331
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33341
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33343
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
33345
switch (line.
Kind
)
33354
switch (file.
Kind
)
33362
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33372
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
33374
if (line.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(line));
33376
if (commaToken.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(commaToken));
33378
if (character.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(character));
33380
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
33390
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33392
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
33395
if (minusToken.
Kind
!= SyntaxKind.MinusToken) throw new ArgumentException(nameof(minusToken));
33399
switch (characterOffset.
Kind
)
33407
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
33409
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33419
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33421
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
33423
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
33425
switch (disableOrRestoreKeyword.
Kind
)
33432
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33442
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33444
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
33446
if (checksumKeyword.
Kind
!= SyntaxKind.ChecksumKeyword) throw new ArgumentException(nameof(checksumKeyword));
33448
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
33450
if (guid.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(guid));
33452
if (bytes.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(bytes));
33454
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33464
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33466
if (referenceKeyword.
Kind
!= SyntaxKind.ReferenceKeyword) throw new ArgumentException(nameof(referenceKeyword));
33468
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
33470
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33480
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33482
if (loadKeyword.
Kind
!= SyntaxKind.LoadKeyword) throw new ArgumentException(nameof(loadKeyword));
33484
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
33486
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33496
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33498
if (exclamationToken.
Kind
!= SyntaxKind.ExclamationToken) throw new ArgumentException(nameof(exclamationToken));
33500
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33510
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33512
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
33515
switch (content.
Kind
)
33523
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33533
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33535
if (nullableKeyword.
Kind
!= SyntaxKind.NullableKeyword) throw new ArgumentException(nameof(nullableKeyword));
33537
switch (settingToken.
Kind
)
33546
switch (targetToken.
Kind
)
33555
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33569
switch (identifier.
Kind
)
33595
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
33616
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
33637
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
33639
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
33660
if (colonColonToken.
Kind
!= SyntaxKind.ColonColonToken) throw new ArgumentException(nameof(colonColonToken));
33681
switch (keyword.
Kind
)
33739
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
33741
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
33762
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
33782
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
33784
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
33795
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
33797
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
33817
switch (managedOrUnmanagedKeyword.
Kind
)
33842
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
33844
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
33864
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
33885
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
33905
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
33907
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
33929
switch (identifier.
Kind
)
33955
if (omittedTypeArgumentToken.
Kind
!= SyntaxKind.OmittedTypeArgumentToken) throw new ArgumentException(nameof(omittedTypeArgumentToken));
33975
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
33978
switch (readOnlyKeyword.
Kind
)
34005
if (scopedKeyword.
Kind
!= SyntaxKind.ScopedKeyword) throw new ArgumentException(nameof(scopedKeyword));
34026
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34029
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34049
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34051
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34084
switch (operatorToken.
Kind
)
34117
if (awaitKeyword.
Kind
!= SyntaxKind.AwaitKeyword) throw new ArgumentException(nameof(awaitKeyword));
34146
switch (operatorToken.
Kind
)
34179
switch (operatorToken.
Kind
)
34206
if (operatorToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(operatorToken));
34227
if (operatorToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(operatorToken));
34267
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
34333
switch (operatorToken.
Kind
)
34397
switch (operatorToken.
Kind
)
34435
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
34438
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
34449
if (token.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token));
34469
if (token.
Kind
!= SyntaxKind.BaseKeyword) throw new ArgumentException(nameof(token));
34502
switch (token.
Kind
)
34538
if (token.
Kind
!= SyntaxKind.FieldKeyword) throw new ArgumentException(nameof(token));
34558
if (keyword.
Kind
!= SyntaxKind.MakeRefKeyword) throw new ArgumentException(nameof(keyword));
34560
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34563
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34573
if (keyword.
Kind
!= SyntaxKind.RefTypeKeyword) throw new ArgumentException(nameof(keyword));
34575
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34578
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34588
if (keyword.
Kind
!= SyntaxKind.RefValueKeyword) throw new ArgumentException(nameof(keyword));
34590
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34593
if (comma.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(comma));
34596
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34612
switch (keyword.
Kind
)
34619
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34622
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34632
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
34634
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34637
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34647
if (keyword.
Kind
!= SyntaxKind.TypeOfKeyword) throw new ArgumentException(nameof(keyword));
34649
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34652
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34662
if (keyword.
Kind
!= SyntaxKind.SizeOfKeyword) throw new ArgumentException(nameof(keyword));
34664
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34667
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34717
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34719
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34739
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
34741
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
34762
switch (refKindKeyword.
Kind
)
34851
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34854
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34865
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
34877
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
34887
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
34909
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
34928
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
34930
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
34950
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
34971
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
34983
if (withKeyword.
Kind
!= SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword));
35023
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35025
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
35027
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
35037
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35058
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35060
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35062
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35073
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
35094
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
35096
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35098
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35109
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35111
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35150
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
35210
if (fromKeyword.
Kind
!= SyntaxKind.FromKeyword) throw new ArgumentException(nameof(fromKeyword));
35212
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35214
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
35225
if (letKeyword.
Kind
!= SyntaxKind.LetKeyword) throw new ArgumentException(nameof(letKeyword));
35227
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35229
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
35240
if (joinKeyword.
Kind
!= SyntaxKind.JoinKeyword) throw new ArgumentException(nameof(joinKeyword));
35242
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35244
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
35247
if (onKeyword.
Kind
!= SyntaxKind.OnKeyword) throw new ArgumentException(nameof(onKeyword));
35250
if (equalsKeyword.
Kind
!= SyntaxKind.EqualsKeyword) throw new ArgumentException(nameof(equalsKeyword));
35261
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
35263
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35283
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
35304
if (orderByKeyword.
Kind
!= SyntaxKind.OrderByKeyword) throw new ArgumentException(nameof(orderByKeyword));
35332
switch (ascendingOrDescendingKeyword.
Kind
)
35359
if (selectKeyword.
Kind
!= SyntaxKind.SelectKeyword) throw new ArgumentException(nameof(selectKeyword));
35380
if (groupKeyword.
Kind
!= SyntaxKind.GroupKeyword) throw new ArgumentException(nameof(groupKeyword));
35383
if (byKeyword.
Kind
!= SyntaxKind.ByKeyword) throw new ArgumentException(nameof(byKeyword));
35394
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
35396
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35417
if (omittedArraySizeExpressionToken.
Kind
!= SyntaxKind.OmittedArraySizeExpressionToken) throw new ArgumentException(nameof(omittedArraySizeExpressionToken));
35437
switch (stringStartToken.
Kind
)
35446
switch (stringEndToken.
Kind
)
35472
if (isKeyword.
Kind
!= SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword));
35493
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
35514
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
35535
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
35575
if (varKeyword.
Kind
!= SyntaxKind.VarKeyword) throw new ArgumentException(nameof(varKeyword));
35604
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35606
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35626
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
35628
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
35686
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35689
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35709
switch (operatorToken.
Kind
)
35765
switch (operatorToken.
Kind
)
35791
if (operatorToken.
Kind
!= SyntaxKind.NotKeyword) throw new ArgumentException(nameof(operatorToken));
35812
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35814
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35824
if (dotDotToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(dotDotToken));
35844
if (textToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(textToken));
35864
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
35867
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
35898
if (formatStringToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(formatStringToken));
35937
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
35939
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
35950
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35954
switch (semicolonToken.
Kind
)
35971
switch (awaitKeyword.
Kind
)
35980
switch (usingKeyword.
Kind
)
35989
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36018
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36038
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
36059
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36079
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
36099
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36101
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36122
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36142
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36162
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36164
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
36182
if (gotoKeyword.
Kind
!= SyntaxKind.GotoKeyword) throw new ArgumentException(nameof(gotoKeyword));
36185
switch (caseOrDefaultKeyword.
Kind
)
36194
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36204
if (breakKeyword.
Kind
!= SyntaxKind.BreakKeyword) throw new ArgumentException(nameof(breakKeyword));
36206
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36226
if (continueKeyword.
Kind
!= SyntaxKind.ContinueKeyword) throw new ArgumentException(nameof(continueKeyword));
36228
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36248
if (returnKeyword.
Kind
!= SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword));
36250
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36260
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
36262
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36278
if (yieldKeyword.
Kind
!= SyntaxKind.YieldKeyword) throw new ArgumentException(nameof(yieldKeyword));
36280
switch (returnOrBreakKeyword.
Kind
)
36287
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36297
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
36299
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36302
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36313
if (doKeyword.
Kind
!= SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword));
36316
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
36318
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36321
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36323
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36333
if (forKeyword.
Kind
!= SyntaxKind.ForKeyword) throw new ArgumentException(nameof(forKeyword));
36335
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36337
if (firstSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(firstSemicolonToken));
36339
if (secondSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(secondSemicolonToken));
36341
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36353
switch (awaitKeyword.
Kind
)
36361
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
36363
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36366
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36368
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
36371
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36383
switch (awaitKeyword.
Kind
)
36391
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
36393
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36396
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
36399
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36411
switch (awaitKeyword.
Kind
)
36419
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
36421
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36423
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36434
if (fixedKeyword.
Kind
!= SyntaxKind.FixedKeyword) throw new ArgumentException(nameof(fixedKeyword));
36436
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36439
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36456
switch (keyword.
Kind
)
36482
if (unsafeKeyword.
Kind
!= SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(unsafeKeyword));
36503
if (lockKeyword.
Kind
!= SyntaxKind.LockKeyword) throw new ArgumentException(nameof(lockKeyword));
36505
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36508
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36519
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
36521
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36524
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36535
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
36556
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
36559
switch (openParenToken.
Kind
)
36569
switch (closeParenToken.
Kind
)
36577
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
36579
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
36607
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
36619
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
36641
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
36663
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
36665
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
36667
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
36678
if (equalsGreaterThanToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(equalsGreaterThanToken));
36689
if (tryKeyword.
Kind
!= SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword));
36700
if (catchKeyword.
Kind
!= SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword));
36711
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36715
switch (identifier.
Kind
)
36723
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36733
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
36735
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36738
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36748
if (finallyKeyword.
Kind
!= SyntaxKind.FinallyKeyword) throw new ArgumentException(nameof(finallyKeyword));
36769
if (endOfFileToken.
Kind
!= SyntaxKind.EndOfFileToken) throw new ArgumentException(nameof(endOfFileToken));
36779
if (externKeyword.
Kind
!= SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword));
36781
if (aliasKeyword.
Kind
!= SyntaxKind.AliasKeyword) throw new ArgumentException(nameof(aliasKeyword));
36783
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36785
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36796
switch (globalKeyword.
Kind
)
36804
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
36807
switch (staticKeyword.
Kind
)
36816
switch (unsafeKeyword.
Kind
)
36825
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36835
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
36838
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
36840
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
36843
switch (semicolonToken.
Kind
)
36859
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
36862
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36872
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
36874
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
36885
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
36914
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36916
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36956
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
36976
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
36978
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
36999
switch (varianceKeyword.
Kind
)
37008
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37028
if (keyword.
Kind
!= SyntaxKind.ClassKeyword) throw new ArgumentException(nameof(keyword));
37030
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37033
switch (openBraceToken.
Kind
)
37042
switch (closeBraceToken.
Kind
)
37051
switch (semicolonToken.
Kind
)
37067
if (keyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(keyword));
37069
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37072
switch (openBraceToken.
Kind
)
37081
switch (closeBraceToken.
Kind
)
37090
switch (semicolonToken.
Kind
)
37106
if (keyword.
Kind
!= SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword));
37108
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37111
switch (openBraceToken.
Kind
)
37120
switch (closeBraceToken.
Kind
)
37129
switch (semicolonToken.
Kind
)
37153
switch (classOrStructKeyword.
Kind
)
37162
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37165
switch (openBraceToken.
Kind
)
37174
switch (closeBraceToken.
Kind
)
37183
switch (semicolonToken.
Kind
)
37199
if (enumKeyword.
Kind
!= SyntaxKind.EnumKeyword) throw new ArgumentException(nameof(enumKeyword));
37201
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37204
switch (openBraceToken.
Kind
)
37213
switch (closeBraceToken.
Kind
)
37222
switch (semicolonToken.
Kind
)
37238
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
37241
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37244
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
37254
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37264
if (keyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(keyword));
37267
switch (openBraceToken.
Kind
)
37276
switch (closeBraceToken.
Kind
)
37285
switch (semicolonToken.
Kind
)
37301
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
37360
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
37363
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
37373
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
37375
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
37377
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
37403
switch (classOrStructKeyword.
Kind
)
37411
switch (questionToken.
Kind
)
37456
if (defaultKeyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(defaultKeyword));
37476
if (allowsKeyword.
Kind
!= SyntaxKind.AllowsKeyword) throw new ArgumentException(nameof(allowsKeyword));
37496
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
37498
if (structKeyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(structKeyword));
37519
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
37529
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
37532
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
37543
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
37564
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37568
switch (semicolonToken.
Kind
)
37585
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
37588
switch (checkedKeyword.
Kind
)
37596
switch (operatorToken.
Kind
)
37638
switch (semicolonToken.
Kind
)
37654
switch (implicitOrExplicitKeyword.
Kind
)
37661
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
37664
switch (checkedKeyword.
Kind
)
37675
switch (semicolonToken.
Kind
)
37691
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37695
switch (semicolonToken.
Kind
)
37717
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
37719
switch (thisOrBaseKeyword.
Kind
)
37745
if (tildeToken.
Kind
!= SyntaxKind.TildeToken) throw new ArgumentException(nameof(tildeToken));
37747
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37751
switch (semicolonToken.
Kind
)
37768
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37771
switch (semicolonToken.
Kind
)
37787
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
37808
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
37811
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37814
switch (semicolonToken.
Kind
)
37831
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
37835
switch (semicolonToken.
Kind
)
37851
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
37853
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
37883
switch (keyword.
Kind
)
37895
switch (semicolonToken.
Kind
)
37911
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
37913
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
37933
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
37935
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
37956
switch (identifier.
Kind
)
38014
if (endOfComment.
Kind
!= SyntaxKind.EndOfDocumentationCommentToken) throw new ArgumentException(nameof(endOfComment));
38044
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
38084
if (extensionKeyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(extensionKeyword));
38087
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
38098
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
38118
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
38121
switch (checkedKeyword.
Kind
)
38129
switch (operatorToken.
Kind
)
38176
switch (implicitOrExplicitKeyword.
Kind
)
38183
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
38186
switch (checkedKeyword.
Kind
)
38203
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
38205
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
38225
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
38227
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
38248
switch (refKindKeyword.
Kind
)
38259
switch (readOnlyKeyword.
Kind
)
38306
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
38309
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
38319
if (lessThanSlashToken.
Kind
!= SyntaxKind.LessThanSlashToken) throw new ArgumentException(nameof(lessThanSlashToken));
38322
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
38342
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
38345
if (slashGreaterThanToken.
Kind
!= SyntaxKind.SlashGreaterThanToken) throw new ArgumentException(nameof(slashGreaterThanToken));
38355
if (localName.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(localName));
38375
if (prefix.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(prefix));
38377
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
38398
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
38400
switch (startQuoteToken.
Kind
)
38407
switch (endQuoteToken.
Kind
)
38423
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
38425
switch (startQuoteToken.
Kind
)
38433
switch (endQuoteToken.
Kind
)
38449
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
38451
switch (startQuoteToken.
Kind
)
38459
switch (endQuoteToken.
Kind
)
38492
if (startCDataToken.
Kind
!= SyntaxKind.XmlCDataStartToken) throw new ArgumentException(nameof(startCDataToken));
38494
if (endCDataToken.
Kind
!= SyntaxKind.XmlCDataEndToken) throw new ArgumentException(nameof(endCDataToken));
38514
if (startProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionStartToken) throw new ArgumentException(nameof(startProcessingInstructionToken));
38517
if (endProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionEndToken) throw new ArgumentException(nameof(endProcessingInstructionToken));
38527
if (lessThanExclamationMinusMinusToken.
Kind
!= SyntaxKind.XmlCommentStartToken) throw new ArgumentException(nameof(lessThanExclamationMinusMinusToken));
38529
if (minusMinusGreaterThanToken.
Kind
!= SyntaxKind.XmlCommentEndToken) throw new ArgumentException(nameof(minusMinusGreaterThanToken));
38549
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38551
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
38554
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38564
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38566
if (elifKeyword.
Kind
!= SyntaxKind.ElifKeyword) throw new ArgumentException(nameof(elifKeyword));
38569
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38579
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38581
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
38583
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38593
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38595
if (endIfKeyword.
Kind
!= SyntaxKind.EndIfKeyword) throw new ArgumentException(nameof(endIfKeyword));
38597
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38607
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38609
if (regionKeyword.
Kind
!= SyntaxKind.RegionKeyword) throw new ArgumentException(nameof(regionKeyword));
38611
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38621
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38623
if (endRegionKeyword.
Kind
!= SyntaxKind.EndRegionKeyword) throw new ArgumentException(nameof(endRegionKeyword));
38625
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38635
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38637
if (errorKeyword.
Kind
!= SyntaxKind.ErrorKeyword) throw new ArgumentException(nameof(errorKeyword));
38639
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38649
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38651
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
38653
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38663
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38666
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38676
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38678
if (defineKeyword.
Kind
!= SyntaxKind.DefineKeyword) throw new ArgumentException(nameof(defineKeyword));
38680
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
38682
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38692
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38694
if (undefKeyword.
Kind
!= SyntaxKind.UndefKeyword) throw new ArgumentException(nameof(undefKeyword));
38696
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
38698
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38708
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38710
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
38712
switch (line.
Kind
)
38721
switch (file.
Kind
)
38729
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38739
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
38741
if (line.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(line));
38743
if (commaToken.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(commaToken));
38745
if (character.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(character));
38747
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
38757
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38759
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
38762
if (minusToken.
Kind
!= SyntaxKind.MinusToken) throw new ArgumentException(nameof(minusToken));
38766
switch (characterOffset.
Kind
)
38774
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
38776
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38786
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38788
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
38790
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
38792
switch (disableOrRestoreKeyword.
Kind
)
38799
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38809
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38811
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
38813
if (checksumKeyword.
Kind
!= SyntaxKind.ChecksumKeyword) throw new ArgumentException(nameof(checksumKeyword));
38815
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
38817
if (guid.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(guid));
38819
if (bytes.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(bytes));
38821
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38831
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38833
if (referenceKeyword.
Kind
!= SyntaxKind.ReferenceKeyword) throw new ArgumentException(nameof(referenceKeyword));
38835
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
38837
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38847
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38849
if (loadKeyword.
Kind
!= SyntaxKind.LoadKeyword) throw new ArgumentException(nameof(loadKeyword));
38851
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
38853
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38863
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38865
if (exclamationToken.
Kind
!= SyntaxKind.ExclamationToken) throw new ArgumentException(nameof(exclamationToken));
38867
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38877
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38879
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
38882
switch (content.
Kind
)
38890
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38900
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38902
if (nullableKeyword.
Kind
!= SyntaxKind.NullableKeyword) throw new ArgumentException(nameof(nullableKeyword));
38904
switch (settingToken.
Kind
)
38913
switch (targetToken.
Kind
)
38922
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)
1667
if (token.
Kind
== SyntaxKind.EndOfFileToken)
Syntax\SyntaxFacts.cs (1)
450
return node.IsIdentifierVar() || IsPredefinedType(node.
Kind
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (430)
Generated\Syntax.Test.xml.Generated.cs (417)
761
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
772
Assert.Equal(SyntaxKind.DotToken, node.DotToken.
Kind
);
783
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
794
Assert.Equal(SyntaxKind.LessThanToken, node.LessThanToken.
Kind
);
796
Assert.Equal(SyntaxKind.GreaterThanToken, node.GreaterThanToken.
Kind
);
807
Assert.Equal(SyntaxKind.ColonColonToken, node.ColonColonToken.
Kind
);
818
Assert.Equal(SyntaxKind.BoolKeyword, node.Keyword.
Kind
);
839
Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.
Kind
);
841
Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.
Kind
);
852
Assert.Equal(SyntaxKind.AsteriskToken, node.AsteriskToken.
Kind
);
862
Assert.Equal(SyntaxKind.DelegateKeyword, node.DelegateKeyword.
Kind
);
863
Assert.Equal(SyntaxKind.AsteriskToken, node.AsteriskToken.
Kind
);
875
Assert.Equal(SyntaxKind.LessThanToken, node.LessThanToken.
Kind
);
877
Assert.Equal(SyntaxKind.GreaterThanToken, node.GreaterThanToken.
Kind
);
887
Assert.Equal(SyntaxKind.ManagedKeyword, node.ManagedOrUnmanagedKeyword.
Kind
);
898
Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.
Kind
);
900
Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.
Kind
);
910
Assert.Equal(SyntaxKind.IdentifierToken, node.Name.
Kind
);
921
Assert.Equal(SyntaxKind.QuestionToken, node.QuestionToken.
Kind
);
931
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
933
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
954
Assert.Equal(SyntaxKind.OmittedTypeArgumentToken, node.OmittedTypeArgumentToken.
Kind
);
964
Assert.Equal(SyntaxKind.RefKeyword, node.RefKeyword.
Kind
);
976
Assert.Equal(SyntaxKind.ScopedKeyword, node.ScopedKeyword.
Kind
);
987
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
989
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
999
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
1001
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
1011
Assert.Equal(SyntaxKind.PlusToken, node.OperatorToken.
Kind
);
1022
Assert.Equal(SyntaxKind.AwaitKeyword, node.AwaitKeyword.
Kind
);
1034
Assert.Equal(SyntaxKind.PlusPlusToken, node.OperatorToken.
Kind
);
1045
Assert.Equal(SyntaxKind.DotToken, node.OperatorToken.
Kind
);
1057
Assert.Equal(SyntaxKind.QuestionToken, node.OperatorToken.
Kind
);
1068
Assert.Equal(SyntaxKind.DotToken, node.OperatorToken.
Kind
);
1090
Assert.Equal(SyntaxKind.DotDotToken, node.OperatorToken.
Kind
);
1112
Assert.Equal(SyntaxKind.PlusToken, node.OperatorToken.
Kind
);
1124
Assert.Equal(SyntaxKind.EqualsToken, node.OperatorToken.
Kind
);
1136
Assert.Equal(SyntaxKind.QuestionToken, node.QuestionToken.
Kind
);
1138
Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.
Kind
);
1149
Assert.Equal(SyntaxKind.ThisKeyword, node.Token.
Kind
);
1159
Assert.Equal(SyntaxKind.BaseKeyword, node.Token.
Kind
);
1169
Assert.Equal(SyntaxKind.ArgListKeyword, node.Token.
Kind
);
1179
Assert.Equal(SyntaxKind.FieldKeyword, node.Token.
Kind
);
1189
Assert.Equal(SyntaxKind.MakeRefKeyword, node.Keyword.
Kind
);
1190
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
1192
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
1202
Assert.Equal(SyntaxKind.RefTypeKeyword, node.Keyword.
Kind
);
1203
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
1205
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
1215
Assert.Equal(SyntaxKind.RefValueKeyword, node.Keyword.
Kind
);
1216
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
1218
Assert.Equal(SyntaxKind.CommaToken, node.Comma.
Kind
);
1220
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
1230
Assert.Equal(SyntaxKind.CheckedKeyword, node.Keyword.
Kind
);
1231
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
1233
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
1243
Assert.Equal(SyntaxKind.DefaultKeyword, node.Keyword.
Kind
);
1244
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
1246
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
1256
Assert.Equal(SyntaxKind.TypeOfKeyword, node.Keyword.
Kind
);
1257
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
1259
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
1269
Assert.Equal(SyntaxKind.SizeOfKeyword, node.Keyword.
Kind
);
1270
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
1272
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
1304
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
1306
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
1316
Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.
Kind
);
1318
Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.
Kind
);
1341
Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.
Kind
);
1352
Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.
Kind
);
1373
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
1375
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
1387
Assert.Equal(SyntaxKind.DelegateKeyword, node.DelegateKeyword.
Kind
);
1403
Assert.Equal(SyntaxKind.EqualsGreaterThanToken, node.ArrowToken.
Kind
);
1415
Assert.Equal(SyntaxKind.RefKeyword, node.RefKeyword.
Kind
);
1430
Assert.Equal(SyntaxKind.EqualsGreaterThanToken, node.ArrowToken.
Kind
);
1442
Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.
Kind
);
1444
Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.
Kind
);
1454
Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.
Kind
);
1466
Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.
Kind
);
1480
Assert.Equal(SyntaxKind.WithKeyword, node.WithKeyword.
Kind
);
1502
Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.
Kind
);
1503
Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.
Kind
);
1505
Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.
Kind
);
1515
Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.
Kind
);
1527
Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.
Kind
);
1528
Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.
Kind
);
1530
Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.
Kind
);
1541
Assert.Equal(SyntaxKind.StackAllocKeyword, node.StackAllocKeyword.
Kind
);
1553
Assert.Equal(SyntaxKind.StackAllocKeyword, node.StackAllocKeyword.
Kind
);
1554
Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.
Kind
);
1555
Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.
Kind
);
1566
Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.
Kind
);
1568
Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.
Kind
);
1588
Assert.Equal(SyntaxKind.DotDotToken, node.OperatorToken.
Kind
);
1622
Assert.Equal(SyntaxKind.FromKeyword, node.FromKeyword.
Kind
);
1624
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
1625
Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.
Kind
);
1636
Assert.Equal(SyntaxKind.LetKeyword, node.LetKeyword.
Kind
);
1637
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
1638
Assert.Equal(SyntaxKind.EqualsToken, node.EqualsToken.
Kind
);
1649
Assert.Equal(SyntaxKind.JoinKeyword, node.JoinKeyword.
Kind
);
1651
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
1652
Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.
Kind
);
1654
Assert.Equal(SyntaxKind.OnKeyword, node.OnKeyword.
Kind
);
1656
Assert.Equal(SyntaxKind.EqualsKeyword, node.EqualsKeyword.
Kind
);
1668
Assert.Equal(SyntaxKind.IntoKeyword, node.IntoKeyword.
Kind
);
1669
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
1679
Assert.Equal(SyntaxKind.WhereKeyword, node.WhereKeyword.
Kind
);
1690
Assert.Equal(SyntaxKind.OrderByKeyword, node.OrderByKeyword.
Kind
);
1712
Assert.Equal(SyntaxKind.SelectKeyword, node.SelectKeyword.
Kind
);
1723
Assert.Equal(SyntaxKind.GroupKeyword, node.GroupKeyword.
Kind
);
1725
Assert.Equal(SyntaxKind.ByKeyword, node.ByKeyword.
Kind
);
1736
Assert.Equal(SyntaxKind.IntoKeyword, node.IntoKeyword.
Kind
);
1737
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
1748
Assert.Equal(SyntaxKind.OmittedArraySizeExpressionToken, node.OmittedArraySizeExpressionToken.
Kind
);
1758
Assert.Equal(SyntaxKind.InterpolatedStringStartToken, node.StringStartToken.
Kind
);
1760
Assert.Equal(SyntaxKind.InterpolatedStringEndToken, node.StringEndToken.
Kind
);
1771
Assert.Equal(SyntaxKind.IsKeyword, node.IsKeyword.
Kind
);
1782
Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.
Kind
);
1793
Assert.Equal(SyntaxKind.WhenKeyword, node.WhenKeyword.
Kind
);
1804
Assert.Equal(SyntaxKind.UnderscoreToken, node.UnderscoreToken.
Kind
);
1825
Assert.Equal(SyntaxKind.VarKeyword, node.VarKeyword.
Kind
);
1849
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
1851
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
1861
Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.
Kind
);
1863
Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.
Kind
);
1894
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
1896
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
1906
Assert.Equal(SyntaxKind.EqualsEqualsToken, node.OperatorToken.
Kind
);
1928
Assert.Equal(SyntaxKind.OrKeyword, node.OperatorToken.
Kind
);
1939
Assert.Equal(SyntaxKind.NotKeyword, node.OperatorToken.
Kind
);
1950
Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.
Kind
);
1952
Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.
Kind
);
1963
Assert.Equal(SyntaxKind.DotDotToken, node.DotDotToken.
Kind
);
1974
Assert.Equal(SyntaxKind.InterpolatedStringTextToken, node.TextToken.
Kind
);
1984
Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.
Kind
);
1988
Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.
Kind
);
1998
Assert.Equal(SyntaxKind.IdentifierToken, node.CommaToken.
Kind
);
2009
Assert.Equal(SyntaxKind.IdentifierToken, node.ColonToken.
Kind
);
2010
Assert.Equal(SyntaxKind.InterpolatedStringTextToken, node.FormatStringToken.
Kind
);
2033
Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.
Kind
);
2035
Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.
Kind
);
2048
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
2069
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
2090
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
2102
Assert.Equal(SyntaxKind.EqualsToken, node.EqualsToken.
Kind
);
2113
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
2123
Assert.Equal(SyntaxKind.UnderscoreToken, node.UnderscoreToken.
Kind
);
2133
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
2135
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
2147
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
2158
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
2169
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
2170
Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.
Kind
);
2182
Assert.Equal(SyntaxKind.GotoKeyword, node.GotoKeyword.
Kind
);
2185
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
2196
Assert.Equal(SyntaxKind.BreakKeyword, node.BreakKeyword.
Kind
);
2197
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
2208
Assert.Equal(SyntaxKind.ContinueKeyword, node.ContinueKeyword.
Kind
);
2209
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
2220
Assert.Equal(SyntaxKind.ReturnKeyword, node.ReturnKeyword.
Kind
);
2222
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
2233
Assert.Equal(SyntaxKind.ThrowKeyword, node.ThrowKeyword.
Kind
);
2235
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
2246
Assert.Equal(SyntaxKind.YieldKeyword, node.YieldKeyword.
Kind
);
2247
Assert.Equal(SyntaxKind.ReturnKeyword, node.ReturnOrBreakKeyword.
Kind
);
2249
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
2260
Assert.Equal(SyntaxKind.WhileKeyword, node.WhileKeyword.
Kind
);
2261
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
2263
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
2275
Assert.Equal(SyntaxKind.DoKeyword, node.DoKeyword.
Kind
);
2277
Assert.Equal(SyntaxKind.WhileKeyword, node.WhileKeyword.
Kind
);
2278
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
2280
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
2281
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
2292
Assert.Equal(SyntaxKind.ForKeyword, node.ForKeyword.
Kind
);
2293
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
2296
Assert.Equal(SyntaxKind.SemicolonToken, node.FirstSemicolonToken.
Kind
);
2298
Assert.Equal(SyntaxKind.SemicolonToken, node.SecondSemicolonToken.
Kind
);
2300
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
2313
Assert.Equal(SyntaxKind.ForEachKeyword, node.ForEachKeyword.
Kind
);
2314
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
2316
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
2317
Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.
Kind
);
2319
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
2332
Assert.Equal(SyntaxKind.ForEachKeyword, node.ForEachKeyword.
Kind
);
2333
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
2335
Assert.Equal(SyntaxKind.InKeyword, node.InKeyword.
Kind
);
2337
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
2350
Assert.Equal(SyntaxKind.UsingKeyword, node.UsingKeyword.
Kind
);
2351
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
2354
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
2366
Assert.Equal(SyntaxKind.FixedKeyword, node.FixedKeyword.
Kind
);
2367
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
2369
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
2381
Assert.Equal(SyntaxKind.CheckedKeyword, node.Keyword.
Kind
);
2393
Assert.Equal(SyntaxKind.UnsafeKeyword, node.UnsafeKeyword.
Kind
);
2405
Assert.Equal(SyntaxKind.LockKeyword, node.LockKeyword.
Kind
);
2406
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
2408
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
2420
Assert.Equal(SyntaxKind.IfKeyword, node.IfKeyword.
Kind
);
2421
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
2423
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
2435
Assert.Equal(SyntaxKind.ElseKeyword, node.ElseKeyword.
Kind
);
2447
Assert.Equal(SyntaxKind.SwitchKeyword, node.SwitchKeyword.
Kind
);
2451
Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.
Kind
);
2453
Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.
Kind
);
2474
Assert.Equal(SyntaxKind.CaseKeyword, node.Keyword.
Kind
);
2477
Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.
Kind
);
2487
Assert.Equal(SyntaxKind.CaseKeyword, node.Keyword.
Kind
);
2489
Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.
Kind
);
2499
Assert.Equal(SyntaxKind.DefaultKeyword, node.Keyword.
Kind
);
2500
Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.
Kind
);
2511
Assert.Equal(SyntaxKind.SwitchKeyword, node.SwitchKeyword.
Kind
);
2512
Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.
Kind
);
2514
Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.
Kind
);
2526
Assert.Equal(SyntaxKind.EqualsGreaterThanToken, node.EqualsGreaterThanToken.
Kind
);
2538
Assert.Equal(SyntaxKind.TryKeyword, node.TryKeyword.
Kind
);
2551
Assert.Equal(SyntaxKind.CatchKeyword, node.CatchKeyword.
Kind
);
2564
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
2567
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
2577
Assert.Equal(SyntaxKind.WhenKeyword, node.WhenKeyword.
Kind
);
2578
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
2580
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
2590
Assert.Equal(SyntaxKind.FinallyKeyword, node.FinallyKeyword.
Kind
);
2605
Assert.Equal(SyntaxKind.EndOfFileToken, node.EndOfFileToken.
Kind
);
2615
Assert.Equal(SyntaxKind.ExternKeyword, node.ExternKeyword.
Kind
);
2616
Assert.Equal(SyntaxKind.AliasKeyword, node.AliasKeyword.
Kind
);
2617
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
2618
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
2629
Assert.Equal(SyntaxKind.UsingKeyword, node.UsingKeyword.
Kind
);
2634
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
2646
Assert.Equal(SyntaxKind.NamespaceKeyword, node.NamespaceKeyword.
Kind
);
2648
Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.
Kind
);
2652
Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.
Kind
);
2665
Assert.Equal(SyntaxKind.NamespaceKeyword, node.NamespaceKeyword.
Kind
);
2667
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
2680
Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.
Kind
);
2683
Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.
Kind
);
2693
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
2694
Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.
Kind
);
2715
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
2717
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
2740
Assert.Equal(SyntaxKind.EqualsToken, node.EqualsToken.
Kind
);
2750
Assert.Equal(SyntaxKind.LessThanToken, node.LessThanToken.
Kind
);
2752
Assert.Equal(SyntaxKind.GreaterThanToken, node.GreaterThanToken.
Kind
);
2764
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
2776
Assert.Equal(SyntaxKind.ClassKeyword, node.Keyword.
Kind
);
2777
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
2797
Assert.Equal(SyntaxKind.StructKeyword, node.Keyword.
Kind
);
2798
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
2818
Assert.Equal(SyntaxKind.InterfaceKeyword, node.Keyword.
Kind
);
2819
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
2839
Assert.Equal(SyntaxKind.IdentifierToken, node.Keyword.
Kind
);
2841
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
2861
Assert.Equal(SyntaxKind.EnumKeyword, node.EnumKeyword.
Kind
);
2862
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
2879
Assert.Equal(SyntaxKind.DelegateKeyword, node.DelegateKeyword.
Kind
);
2881
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
2885
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
2897
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
2910
Assert.Equal(SyntaxKind.ExtensionKeyword, node.Keyword.
Kind
);
2927
Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.
Kind
);
2959
Assert.Equal(SyntaxKind.WhereKeyword, node.WhereKeyword.
Kind
);
2961
Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.
Kind
);
2972
Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.
Kind
);
2973
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
2974
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
2984
Assert.Equal(SyntaxKind.ClassKeyword, node.ClassOrStructKeyword.
Kind
);
3005
Assert.Equal(SyntaxKind.DefaultKeyword, node.DefaultKeyword.
Kind
);
3015
Assert.Equal(SyntaxKind.AllowsKeyword, node.AllowsKeyword.
Kind
);
3026
Assert.Equal(SyntaxKind.RefKeyword, node.RefKeyword.
Kind
);
3027
Assert.Equal(SyntaxKind.StructKeyword, node.StructKeyword.
Kind
);
3040
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
3052
Assert.Equal(SyntaxKind.EventKeyword, node.EventKeyword.
Kind
);
3054
Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.
Kind
);
3065
Assert.Equal(SyntaxKind.DotToken, node.DotToken.
Kind
);
3079
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
3099
Assert.Equal(SyntaxKind.OperatorKeyword, node.OperatorKeyword.
Kind
);
3101
Assert.Equal(SyntaxKind.PlusToken, node.OperatorToken.
Kind
);
3117
Assert.Equal(SyntaxKind.ImplicitKeyword, node.ImplicitOrExplicitKeyword.
Kind
);
3119
Assert.Equal(SyntaxKind.OperatorKeyword, node.OperatorKeyword.
Kind
);
3137
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
3152
Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.
Kind
);
3153
Assert.Equal(SyntaxKind.BaseKeyword, node.ThisOrBaseKeyword.
Kind
);
3166
Assert.Equal(SyntaxKind.TildeToken, node.TildeToken.
Kind
);
3167
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
3185
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
3199
Assert.Equal(SyntaxKind.EqualsGreaterThanToken, node.ArrowToken.
Kind
);
3212
Assert.Equal(SyntaxKind.EventKeyword, node.EventKeyword.
Kind
);
3215
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
3231
Assert.Equal(SyntaxKind.ThisKeyword, node.ThisKeyword.
Kind
);
3245
Assert.Equal(SyntaxKind.OpenBraceToken, node.OpenBraceToken.
Kind
);
3247
Assert.Equal(SyntaxKind.CloseBraceToken, node.CloseBraceToken.
Kind
);
3259
Assert.Equal(SyntaxKind.GetKeyword, node.Keyword.
Kind
);
3272
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
3274
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
3284
Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.
Kind
);
3286
Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.
Kind
);
3345
Assert.Equal(SyntaxKind.EndOfDocumentationCommentToken, node.EndOfComment.
Kind
);
3366
Assert.Equal(SyntaxKind.DotToken, node.DotToken.
Kind
);
3388
Assert.Equal(SyntaxKind.ExtensionKeyword, node.ExtensionKeyword.
Kind
);
3391
Assert.Equal(SyntaxKind.DotToken, node.DotToken.
Kind
);
3402
Assert.Equal(SyntaxKind.ThisKeyword, node.ThisKeyword.
Kind
);
3413
Assert.Equal(SyntaxKind.OperatorKeyword, node.OperatorKeyword.
Kind
);
3415
Assert.Equal(SyntaxKind.PlusToken, node.OperatorToken.
Kind
);
3426
Assert.Equal(SyntaxKind.ImplicitKeyword, node.ImplicitOrExplicitKeyword.
Kind
);
3427
Assert.Equal(SyntaxKind.OperatorKeyword, node.OperatorKeyword.
Kind
);
3440
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
3442
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
3452
Assert.Equal(SyntaxKind.OpenBracketToken, node.OpenBracketToken.
Kind
);
3454
Assert.Equal(SyntaxKind.CloseBracketToken, node.CloseBracketToken.
Kind
);
3488
Assert.Equal(SyntaxKind.LessThanToken, node.LessThanToken.
Kind
);
3491
Assert.Equal(SyntaxKind.GreaterThanToken, node.GreaterThanToken.
Kind
);
3501
Assert.Equal(SyntaxKind.LessThanSlashToken, node.LessThanSlashToken.
Kind
);
3503
Assert.Equal(SyntaxKind.GreaterThanToken, node.GreaterThanToken.
Kind
);
3513
Assert.Equal(SyntaxKind.LessThanToken, node.LessThanToken.
Kind
);
3516
Assert.Equal(SyntaxKind.SlashGreaterThanToken, node.SlashGreaterThanToken.
Kind
);
3527
Assert.Equal(SyntaxKind.IdentifierToken, node.LocalName.
Kind
);
3537
Assert.Equal(SyntaxKind.IdentifierToken, node.Prefix.
Kind
);
3538
Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.
Kind
);
3549
Assert.Equal(SyntaxKind.EqualsToken, node.EqualsToken.
Kind
);
3550
Assert.Equal(SyntaxKind.SingleQuoteToken, node.StartQuoteToken.
Kind
);
3552
Assert.Equal(SyntaxKind.SingleQuoteToken, node.EndQuoteToken.
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
);
3600
Assert.Equal(SyntaxKind.XmlCDataStartToken, node.StartCDataToken.
Kind
);
3602
Assert.Equal(SyntaxKind.XmlCDataEndToken, node.EndCDataToken.
Kind
);
3612
Assert.Equal(SyntaxKind.XmlProcessingInstructionStartToken, node.StartProcessingInstructionToken.
Kind
);
3615
Assert.Equal(SyntaxKind.XmlProcessingInstructionEndToken, node.EndProcessingInstructionToken.
Kind
);
3625
Assert.Equal(SyntaxKind.XmlCommentStartToken, node.LessThanExclamationMinusMinusToken.
Kind
);
3627
Assert.Equal(SyntaxKind.XmlCommentEndToken, node.MinusMinusGreaterThanToken.
Kind
);
3637
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3638
Assert.Equal(SyntaxKind.IfKeyword, node.IfKeyword.
Kind
);
3640
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3653
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3654
Assert.Equal(SyntaxKind.ElifKeyword, node.ElifKeyword.
Kind
);
3656
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3669
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3670
Assert.Equal(SyntaxKind.ElseKeyword, node.ElseKeyword.
Kind
);
3671
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3683
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3684
Assert.Equal(SyntaxKind.EndIfKeyword, node.EndIfKeyword.
Kind
);
3685
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3696
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3697
Assert.Equal(SyntaxKind.RegionKeyword, node.RegionKeyword.
Kind
);
3698
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3709
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3710
Assert.Equal(SyntaxKind.EndRegionKeyword, node.EndRegionKeyword.
Kind
);
3711
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3722
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3723
Assert.Equal(SyntaxKind.ErrorKeyword, node.ErrorKeyword.
Kind
);
3724
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3735
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3736
Assert.Equal(SyntaxKind.WarningKeyword, node.WarningKeyword.
Kind
);
3737
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3748
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3749
Assert.Equal(SyntaxKind.IdentifierToken, node.Identifier.
Kind
);
3750
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3761
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3762
Assert.Equal(SyntaxKind.DefineKeyword, node.DefineKeyword.
Kind
);
3763
Assert.Equal(SyntaxKind.IdentifierToken, node.Name.
Kind
);
3764
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3775
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3776
Assert.Equal(SyntaxKind.UndefKeyword, node.UndefKeyword.
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.LineKeyword, node.LineKeyword.
Kind
);
3791
Assert.Equal(SyntaxKind.NumericLiteralToken, node.Line.
Kind
);
3793
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3804
Assert.Equal(SyntaxKind.OpenParenToken, node.OpenParenToken.
Kind
);
3805
Assert.Equal(SyntaxKind.NumericLiteralToken, node.Line.
Kind
);
3806
Assert.Equal(SyntaxKind.CommaToken, node.CommaToken.
Kind
);
3807
Assert.Equal(SyntaxKind.NumericLiteralToken, node.Character.
Kind
);
3808
Assert.Equal(SyntaxKind.CloseParenToken, node.CloseParenToken.
Kind
);
3818
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3819
Assert.Equal(SyntaxKind.LineKeyword, node.LineKeyword.
Kind
);
3821
Assert.Equal(SyntaxKind.MinusToken, node.MinusToken.
Kind
);
3824
Assert.Equal(SyntaxKind.StringLiteralToken, node.File.
Kind
);
3825
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3836
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3837
Assert.Equal(SyntaxKind.PragmaKeyword, node.PragmaKeyword.
Kind
);
3838
Assert.Equal(SyntaxKind.WarningKeyword, node.WarningKeyword.
Kind
);
3839
Assert.Equal(SyntaxKind.DisableKeyword, node.DisableOrRestoreKeyword.
Kind
);
3841
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3852
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3853
Assert.Equal(SyntaxKind.PragmaKeyword, node.PragmaKeyword.
Kind
);
3854
Assert.Equal(SyntaxKind.ChecksumKeyword, node.ChecksumKeyword.
Kind
);
3855
Assert.Equal(SyntaxKind.StringLiteralToken, node.File.
Kind
);
3856
Assert.Equal(SyntaxKind.StringLiteralToken, node.Guid.
Kind
);
3857
Assert.Equal(SyntaxKind.StringLiteralToken, node.Bytes.
Kind
);
3858
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3869
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3870
Assert.Equal(SyntaxKind.ReferenceKeyword, node.ReferenceKeyword.
Kind
);
3871
Assert.Equal(SyntaxKind.StringLiteralToken, node.File.
Kind
);
3872
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3883
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3884
Assert.Equal(SyntaxKind.LoadKeyword, node.LoadKeyword.
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.ExclamationToken, node.ExclamationToken.
Kind
);
3899
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3910
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3911
Assert.Equal(SyntaxKind.ColonToken, node.ColonToken.
Kind
);
3913
Assert.Equal(SyntaxKind.EndOfDirectiveToken, node.EndOfDirectiveToken.
Kind
);
3924
Assert.Equal(SyntaxKind.HashToken, node.HashToken.
Kind
);
3925
Assert.Equal(SyntaxKind.NullableKeyword, node.NullableKeyword.
Kind
);
3926
Assert.Equal(SyntaxKind.EnableKeyword, node.SettingToken.
Kind
);
3928
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
);