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;
4710
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleParameter(),
4711
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
4718
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken;
4723
switch (this.CurrentToken.
Kind
)
4735
return IsParameterModifierExcludingScoped(this.CurrentToken) || IsPossibleScopedKeyword(isFunctionPointerParameter: false) || IsPredefinedType(this.CurrentToken.
Kind
);
4795
if (this.CurrentToken.
Kind
== SyntaxKind.ArgListKeyword)
4806
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && IsCurrentTokenWhereOfConstraintClause())
4813
identifier = allowOptionalIdentifier && this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken
4819
if (identifier is not null && this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken && this.PeekToken(1).
Kind
is SyntaxKind.CloseBracketToken)
4846
switch (token.
Kind
)
4866
if (this.CurrentToken.
Kind
is SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword)
4883
while (this.CurrentToken.
Kind
is SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.ReadOnlyKeyword)
4896
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.FixedKeyword);
4914
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.EventKeyword);
4938
if (explicitInterfaceOpt != null && this.CurrentToken.
Kind
is not SyntaxKind.OpenBraceToken and not SyntaxKind.SemicolonToken)
4963
else if (identifierOrThisOpt.
Kind
!= SyntaxKind.IdentifierToken)
4965
Debug.Assert(identifierOrThisOpt.
Kind
== SyntaxKind.ThisKeyword);
4974
Debug.Assert(identifier.
Kind
== SyntaxKind.IdentifierToken);
4990
if (explicitInterfaceOpt != null && this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5017
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5036
if (modifiers is [.., SyntaxToken {
Kind
: SyntaxKind.ScopedKeyword } scopedKeyword])
5070
if (this.CurrentToken.
Kind
== SyntaxKind.DotToken)
5086
return this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken;
5151
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5155
else if (stopOnCloseParen && this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken)
5159
else if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
5174
if (flags.HasFlag(VariableFlags.ForStatement) && this.PeekToken(1).
Kind
!= SyntaxKind.SemicolonToken)
5178
this.PeekToken(2).
Kind
is SyntaxKind.CommaToken or SyntaxKind.EqualsToken or SyntaxKind.SemicolonToken;
5209
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
5210
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
5364
var currentTokenKind = this.CurrentToken.
Kind
;
5375
currentTokenKind = this.CurrentToken.
Kind
;
5425
switch (this.CurrentToken.
Kind
)
5436
var refKeyword = isLocalOrField && !isConst && this.CurrentToken.
Kind
== SyntaxKind.RefKeyword && !this.IsPossibleLambdaExpression(Precedence.Expression)
5494
bool isOmitted = expression.
Kind
== SyntaxKind.OmittedArraySizeExpression;
5513
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
5528
if (parentType.
Kind
== SyntaxKind.ArrayType)
5549
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken or SyntaxKind.LessThanToken);
5557
(this.CurrentToken.
Kind
is SyntaxKind.OpenBraceToken or SyntaxKind.EqualsGreaterThanToken ||
5568
switch (this.CurrentToken.
Kind
)
5580
return this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
5587
return this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken || this.IsPossibleExpression();
5606
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DelegateKeyword);
5639
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.EnumKeyword);
5654
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
5670
if (CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
5715
static p => p.CurrentToken.
Kind
is not SyntaxKind.CommaToken and not SyntaxKind.SemicolonToken && !p.IsPossibleEnumMemberDeclaration(),
5716
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
5731
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
5736
this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseBraceToken
5746
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken || this.IsTrueIdentifier();
5751
return this.CurrentToken.
Kind
is SyntaxKind.DotToken or SyntaxKind.ColonColonToken;
5790
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
5810
token.
Kind
== SyntaxKind.IdentifierToken &&
5830
var ctk = this.CurrentToken.
Kind
;
5888
if (this.CurrentToken.
Kind
!= SyntaxKind.LessThanToken)
5918
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
5919
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
5930
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken && this.PeekToken(1).
Kind
!= SyntaxKind.CloseBracketToken)
5934
if (this.CurrentToken.
Kind
is SyntaxKind.InKeyword or SyntaxKind.OutKeyword)
5951
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken && this.PeekToken(1).
Kind
!= SyntaxKind.CloseBracketToken)
5961
this.CurrentToken.
Kind
is SyntaxKind.InKeyword or SyntaxKind.OutKeyword ? EatToken() : null,
5978
if (this.CurrentToken.
Kind
== SyntaxKind.LessThanToken)
5988
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6013
if (this.CurrentToken.
Kind
!= SyntaxKind.LessThanToken)
6061
Debug.Assert(greaterThanToken.
Kind
== SyntaxKind.GreaterThanToken);
6063
switch (this.CurrentToken.
Kind
)
6097
case SyntaxKind.GreaterThanToken when ((options & NameOptions.AfterIs) != 0) && this.PeekToken(1).
Kind
!= SyntaxKind.GreaterThanToken:
6118
(options & NameOptions.AfterTupleComma) != 0 && this.PeekToken(1).
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken ||
6119
(options & NameOptions.FirstElementOfPossibleTupleLiteral) != 0 && this.PeekToken(1).
Kind
== SyntaxKind.CommaToken)
6145
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6155
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
6158
Debug.Assert(start.
Kind
== SyntaxKind.LessThanToken);
6159
Debug.Assert(greaterThanToken.
Kind
== SyntaxKind.GreaterThanToken);
6172
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
6178
if (this.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken)
6187
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
6222
isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken;
6249
isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken;
6271
isDefinitelyTypeArgumentList = this.CurrentToken.
Kind
== SyntaxKind.CommaToken;
6289
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken);
6291
if (this.CurrentToken.
Kind
!= SyntaxKind.GreaterThanToken)
6297
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken)
6306
if (lastScannedType is ScanTypeFlags.TupleType && this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken)
6319
isDefinitelyTypeArgumentList = isDefinitelyTypeArgumentList || this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken;
6331
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6341
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
6358
if (this.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken)
6374
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken && tokenBreaksTypeArgumentList(this.PeekToken(1)))
6383
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken
6384
&& this.PeekToken(1).
Kind
is SyntaxKind.CloseBracketToken)
6389
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken || this.IsPossibleType())
6414
switch (token.
Kind
)
6459
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleType(),
6460
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken,
6468
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken && this.PeekToken(1).
Kind
!= SyntaxKind.CloseBracketToken)
6484
var varianceToken = this.CurrentToken.
Kind
is SyntaxKind.InKeyword or SyntaxKind.OutKeyword
6511
this.CurrentToken.
Kind
is not SyntaxKind.CommaToken and not SyntaxKind.GreaterThanToken &&
6512
this.PeekToken(1).
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken)
6533
=> this.CurrentToken.
Kind
== SyntaxKind.GreaterThanToken;
6537
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LessThanToken);
6539
while (this.PeekToken(n).
Kind
== SyntaxKind.CommaToken)
6542
return this.PeekToken(n).
Kind
== SyntaxKind.GreaterThanToken;
6575
if (this.CurrentToken.
Kind
== SyntaxKind.ThisKeyword)
6601
if (separator != null && separator.
Kind
== SyntaxKind.ColonColonToken)
6620
if (separator.
Kind
!= SyntaxKind.DotToken)
6622
separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.
Kind
, separator.GetLeadingTriviaWidth(), separator.Width));
6626
if (isEvent && this.CurrentToken.
Kind
is not SyntaxKind.OpenBraceToken and not SyntaxKind.SemicolonToken)
6697
separator = this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken
6710
if (this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken)
6739
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
6775
if (separator != null && separator.
Kind
== SyntaxKind.ColonColonToken)
6802
if (separator.
Kind
!= SyntaxKind.DotToken)
6804
separator = WithAdditionalDiagnostics(separator, GetExpectedTokenError(SyntaxKind.DotToken, separator.
Kind
, separator.GetLeadingTriviaWidth(), separator.Width));
6815
return this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken
6827
if (this.PeekToken(1).
Kind
== SyntaxKind.ThisKeyword)
6844
Debug.Assert(separator.
Kind
is SyntaxKind.DotToken or SyntaxKind.ColonColonToken);
6847
switch (separator.
Kind
)
6853
if (left.
Kind
!= SyntaxKind.IdentifierName)
6945
var tk = this.CurrentToken.
Kind
;
6966
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken || !this.IsTrueIdentifier())
6973
if (this.CurrentToken.
Kind
== SyntaxKind.LessThanToken)
6988
if (this.CurrentToken.
Kind
== SyntaxKind.RefKeyword)
6993
if (this.CurrentToken.
Kind
== SyntaxKind.ReadOnlyKeyword)
7000
if (this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken or SyntaxKind.ColonColonToken)
7003
if (this.CurrentToken.
Kind
is SyntaxKind.ColonColonToken)
7017
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken);
7020
isAlias = this.PeekToken(1).
Kind
== SyntaxKind.ColonColonToken;
7057
else if (IsPredefinedType(this.CurrentToken.
Kind
))
7063
else if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
7068
if (result == ScanTypeFlags.NotType || mode == ParseTypeMode.DefinitePattern && this.CurrentToken.
Kind
!= SyntaxKind.OpenBracketToken)
7088
switch (this.CurrentToken.
Kind
)
7091
when lastTokenOfType.
Kind
is not SyntaxKind.QuestionToken // don't allow `Type??`
7129
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7134
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
7167
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7185
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken);
7187
if (this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken)
7209
if (CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
7217
case var _ when peek1.
Kind
== SyntaxKind.OpenBracketToken:
7227
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
7244
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.CommaToken);
7267
var validStartingToken = EatToken().
Kind
== SyntaxKind.LessThanToken;
7297
if (!validStartingToken && CurrentToken.
Kind
== SyntaxKind.CloseParenToken)
7311
isNotExpectedFunction: static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
7332
if (this.CurrentToken.
Kind
== SyntaxKind.VoidKeyword && this.PeekToken(1).
Kind
!= SyntaxKind.AsteriskToken)
7357
if (this.CurrentToken.
Kind
== SyntaxKind.RefKeyword)
7361
this.CurrentToken.
Kind
== SyntaxKind.ReadOnlyKeyword ? this.EatToken() : null,
7405
switch (this.CurrentToken.
Kind
)
7453
while (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken);
7474
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.QuestionToken);
7480
if (typeParsedSoFar.
Kind
is SyntaxKind.NullableType or SyntaxKind.PointerType)
7497
if (mode == ParseTypeMode.AfterIs && this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken)
7507
switch (this.PeekToken(1).
Kind
)
7524
return this.CurrentToken.
Kind
!= SyntaxKind.ColonToken;
7569
var nextTokenKind = nextToken.
Kind
;
7614
if (this.CurrentToken.
Kind
is SyntaxKind.OpenBracketToken)
7623
this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken or // ctor parameters
7637
switch (this.PeekToken(i).
Kind
)
7658
while (IsMakingProgress(ref lastTokenPosition) && this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
7660
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7673
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseBracketToken)
7714
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken)
7718
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
7753
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleExpression(),
7754
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.CloseBracketToken,
7760
if (IsPredefinedType(this.CurrentToken.
Kind
))
7764
if (token.
Kind
== SyntaxKind.VoidKeyword && this.CurrentToken.
Kind
!= SyntaxKind.AsteriskToken)
7773
if (IsTrueIdentifier() || this.CurrentToken.
Kind
== SyntaxKind.ColonColonToken)
7778
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
7844
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.CommaToken);
7855
lessThanToken.IsMissing && CurrentToken.
Kind
== SyntaxKind.CloseParenToken
7870
isNotExpectedFunction: static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
7878
if (CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
7894
case var _ when peek1.
Kind
== SyntaxKind.OpenBracketToken:
7906
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
7924
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.CommaToken);
7940
if (managedSpecifier.
Kind
== SyntaxKind.ManagedKeyword && unmanagedCallingConventions != null)
7954
=> CurrentToken.
Kind
== SyntaxKind.DelegateKeyword && PeekToken(1).
Kind
== SyntaxKind.AsteriskToken;
7959
=> token.
Kind
== SyntaxKind.LessThanToken || token.
Kind
== SyntaxKind.OpenParenToken;
7965
while (this.CurrentToken.
Kind
== SyntaxKind.AsteriskToken)
7985
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenBracketToken)
7999
while (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
8009
var isCollectionExpression = this.CurrentToken.
Kind
8022
|| IsExpectedBinaryOperator(this.CurrentToken.
Kind
)
8023
|| IsExpectedAssignmentOperator(this.CurrentToken.
Kind
)
8024
|| (this.CurrentToken.ContextualKind is SyntaxKind.SwitchKeyword or SyntaxKind.WithKeyword && this.PeekToken(1).
Kind
is SyntaxKind.OpenBraceToken);
8028
this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
8087
switch (this.CurrentToken.
Kind
)
8220
this.PeekToken(1).
Kind
== SyntaxKind.ForEachKeyword)
8226
if (PeekToken(2).
Kind
== SyntaxKind.OpenParenToken)
8253
=> PeekToken(1).
Kind
== SyntaxKind.OpenParenToken ? ParseUsingStatement(attributes) : ParseLocalDeclarationStatement(attributes);
8260
=> CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword && PeekToken(1).
Kind
== SyntaxKind.UsingKeyword;
8264
return this.PeekToken(1).
Kind
== SyntaxKind.ColonToken && this.IsTrueIdentifier();
8269
return this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken;
8275
this.PeekToken(1).
Kind
is SyntaxKind.ReturnKeyword or SyntaxKind.BreakKeyword;
8284
var tk = this.CurrentToken.
Kind
;
8288
this.PeekToken(1).
Kind
is not SyntaxKind.DotToken // e.g. `int.Parse()` is an expression
8297
Debug.Assert(PeekToken(1).
Kind
!= SyntaxKind.OpenParenToken);
8303
Debug.Assert(PeekToken(2).
Kind
!= SyntaxKind.OpenParenToken);
8359
if (token1.
Kind
== SyntaxKind.DotToken &&
8362
if (PeekToken(2).
Kind
== SyntaxKind.IdentifierToken &&
8363
PeekToken(3).
Kind
== SyntaxKind.IdentifierToken)
8378
var token4Kind = PeekToken(4).
Kind
;
8398
if (st == ScanTypeFlags.MustBeType && this.CurrentToken.
Kind
is not SyntaxKind.DotToken and not SyntaxKind.OpenParenToken)
8408
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
8416
return st == ScanTypeFlags.GenericTypeOrExpression && (IsDefiniteStatement() || IsTypeDeclarationStart() || IsAccessibilityModifier(CurrentToken.
Kind
));
8437
if (this.CurrentToken.
Kind
!= SyntaxKind.UsingKeyword)
8442
var tk = PeekToken(1).
Kind
;
8503
if (this.CurrentToken.
Kind
is SyntaxKind.OpenBraceToken)
8509
if (identifierOrThisOpt.
Kind
== SyntaxKind.ThisKeyword)
8524
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
8531
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsToken)
8540
return this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.SemicolonToken;
8558
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken || this.CurrentToken.ContextualKind == SyntaxKind.WhereKeyword)
8565
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
8590
if (parameter.Modifiers[i].
Kind
== SyntaxKind.ParamsKeyword)
8600
if (parameter.Identifier.
Kind
== SyntaxKind.ArgListKeyword)
8605
else if (parameter.Type.
Kind
== SyntaxKind.NullableType)
8625
else if (parameter.Type.
Kind
== SyntaxKind.IdentifierName &&
8649
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.NewKeyword);
8656
switch (nextToken.
Kind
)
8684
if (SyntaxFacts.GetBaseTypeDeclarationKind(nextToken.
Kind
) != SyntaxKind.None)
8692
if (SyntaxFacts.IsPredefinedType(PeekToken(2).
Kind
))
8699
if (IsTypeModifierOrTypeKeyword(PeekToken(2).
Kind
))
8737
switch (next.
Kind
)
8794
CSharpSyntaxNode openBrace = isAccessorBody && this.CurrentToken.
Kind
!= SyntaxKind.OpenBraceToken
8875
while (this.CurrentToken.
Kind
is not SyntaxKind.CloseBraceToken and not SyntaxKind.EndOfFileToken
8907
return this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
8919
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.CloseBraceToken,
8927
var tk = this.CurrentToken.
Kind
;
8964
var tk = this.CurrentToken.
Kind
;
9009
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.OpenBraceToken or SyntaxKind.SemicolonToken;
9035
if (statement.
Kind
== SyntaxKind.ExpressionStatement &&
9072
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.TryKeyword or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword);
9085
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword);
9099
if (this.CurrentToken.
Kind
== SyntaxKind.CatchKeyword)
9102
while (this.CurrentToken.
Kind
== SyntaxKind.CatchKeyword)
9108
if (this.CurrentToken.
Kind
== SyntaxKind.FinallyKeyword)
9143
return this.CurrentToken.
Kind
is SyntaxKind.CloseBraceToken or SyntaxKind.CatchKeyword or SyntaxKind.FinallyKeyword;
9148
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.CatchKeyword);
9155
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
9207
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken
9216
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken
9224
return this.CurrentToken.
Kind
is SyntaxKind.CloseBraceToken
9231
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword);
9233
if (this.PeekToken(1).
Kind
== SyntaxKind.OpenParenToken)
9240
SyntaxFacts.GetCheckStatement(keyword.
Kind
),
9248
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DoKeyword);
9272
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken;
9289
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ForKeyword);
9291
if (this.EatToken().
Kind
== SyntaxKind.OpenParenToken &&
9293
this.EatToken().
Kind
== SyntaxKind.IdentifierToken &&
9294
this.EatToken().
Kind
== SyntaxKind.InKeyword)
9310
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ForKeyword);
9320
var condition = this.CurrentToken.
Kind
is not SyntaxKind.SemicolonToken and not SyntaxKind.CommaToken
9329
var incrementors = this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken
9360
if (this.PeekToken(1).
Kind
== SyntaxKind.RefKeyword)
9367
isDeclaration = ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken;
9371
else if (this.CurrentToken.
Kind
== SyntaxKind.RefKeyword)
9388
else if (this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken)
9403
=> this.CurrentToken.
Kind
is SyntaxKind.CommaToken
9411
while (this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.CommaToken)
9435
if (@this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken)
9439
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleExpression(),
9440
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind || p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
9447
return this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken or SyntaxKind.CloseParenToken or SyntaxKind.OpenBraceToken;
9454
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ForEachKeyword || this.CurrentToken.
Kind
== SyntaxKind.ForKeyword);
9465
if (this.CurrentToken.
Kind
== SyntaxKind.ForKeyword)
9491
if (decl.designation.
Kind
!= SyntaxKind.ParenthesizedVariableDesignation)
9495
switch (decl.designation.
Kind
)
9503
Debug.Assert(discard.
Kind
== SyntaxKind.UnderscoreToken);
9507
throw ExceptionUtilities.UnexpectedValue(decl.designation.
Kind
);
9570
if (ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
9575
if (this.PeekToken(1).
Kind
== SyntaxKind.CommaToken)
9583
if (this.PeekToken(1).
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken)
9609
if (!ScanDesignation(permitTupleDesignation && (typeIsVar || IsPredefinedType(lastTokenOfType.
Kind
))))
9617
return this.CurrentToken.
Kind
== SyntaxKind.CommaToken;
9619
return this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseParenToken;
9637
switch (this.PeekToken(1).
Kind
)
9653
switch (variable.
Kind
)
9671
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.GotoKeyword);
9679
if (this.CurrentToken.
Kind
is SyntaxKind.CaseKeyword or SyntaxKind.DefaultKeyword)
9682
if (caseOrDefault.
Kind
== SyntaxKind.CaseKeyword)
9704
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.IfKeyword);
9717
var elseKeyword = this.CurrentToken.
Kind
!= SyntaxKind.ElseKeyword ?
9728
if (this.CurrentToken.
Kind
!= SyntaxKind.IfKeyword)
9769
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ElseKeyword);
9783
return this.CurrentToken.
Kind
!= SyntaxKind.ElseKeyword
9792
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.LockKeyword);
9804
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ReturnKeyword);
9808
this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken ? this.ParsePossibleRefExpression() : null,
9821
if (this.CurrentToken.
Kind
== SyntaxKind.BreakKeyword)
9830
if (this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken)
9851
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.SwitchKeyword or SyntaxKind.CaseKeyword);
9876
if (this.CurrentToken.
Kind
is SyntaxKind.CaseKeyword)
9890
if (expression.
Kind
== SyntaxKind.ParenthesizedExpression)
9899
else if (expression.
Kind
== SyntaxKind.TupleExpression)
9921
return this.CurrentToken.
Kind
== SyntaxKind.CaseKeyword ||
9922
(this.CurrentToken.
Kind
== SyntaxKind.DefaultKeyword && this.PeekToken(1).
Kind
!= SyntaxKind.OpenParenToken);
9936
if (this.CurrentToken.
Kind
== SyntaxKind.CaseKeyword)
9940
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
9955
if (node.
Kind
== SyntaxKind.DiscardPattern)
9977
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.DefaultKeyword);
9999
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.ThrowKeyword);
10003
this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken ? this.ParseExpressionCore() : null,
10009
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.UnsafeKeyword);
10077
if (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken)
10084
switch (this.PeekToken(1).
Kind
)
10104
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken &&
10105
declaration.Type.
Kind
== SyntaxKind.NullableType &&
10106
SyntaxFacts.IsName(((NullableTypeSyntax)declaration.Type).ElementType.
Kind
) &&
10136
bool condition1 = st == ScanTypeFlags.MustBeType && this.CurrentToken.
Kind
!= SyntaxKind.DotToken;
10137
bool condition2 = st != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken;
10138
bool condition3 = st == ScanTypeFlags.NonGenericTypeOrExpression || this.PeekToken(1).
Kind
== SyntaxKind.EqualsToken;
10145
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.WhileKeyword);
10159
Debug.Assert(this.IsTrueIdentifier() && this.PeekToken(1).
Kind
== SyntaxKind.ColonToken);
10180
else if (this.CurrentToken.
Kind
== SyntaxKind.UsingKeyword)
10288
if (this.CurrentToken.
Kind
is (SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword))
10317
return this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.GreaterThanToken;
10319
else if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
10335
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
10343
done = (this.CurrentToken.
Kind
== SyntaxKind.CloseParenToken);
10356
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
10467
if (allowLocalFunctions && localFunction == null && type is PredefinedTypeSyntax { Keyword.
Kind
: SyntaxKind.VoidKeyword })
10477
switch (this.CurrentToken.
Kind
)
10529
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken);
10535
if (IsDeclarationModifier(this.CurrentToken.
Kind
) ||
10536
IsAdditionalLocalFunctionModifier(this.CurrentToken.
Kind
))
10543
if (ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
10627
if (type.
Kind
== SyntaxKind.IdentifierName)
10735
if (IsScript && this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken)
10779
SyntaxKind tk = this.CurrentToken.
Kind
;
11078
switch (next.
Kind
)
11129
_ = GetPrecedence(result.
Kind
);
11144
var tk = this.CurrentToken.
Kind
;
11240
if (this.CurrentToken.
Kind
== SyntaxKind.QuestionToken && precedence <= Precedence.Conditional)
11271
if (newPrecedence > GetPrecedence(leftOperand.
Kind
))
11286
leftOperand.
Kind
== SyntaxKind.IsPatternExpression ? ErrorCode.ERR_UnexpectedToken : ErrorCode.WRN_PrecedenceInversion,
11315
if (IsExpectedAssignmentOperator(operatorToken.
Kind
))
11318
if (IsExpectedBinaryOperator(operatorToken.
Kind
))
11338
if (this.CurrentToken.
Kind
!= SyntaxKind.ColonToken &&
11353
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
11365
if (this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken && this.lexer.InterpolationFollowedByColon)
11399
conditionalExpression.WhenTrue.GetFirstToken().
Kind
== SyntaxKind.OpenBracketToken)
11435
&& this.PeekToken(1) is {
Kind
: SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken } token2
11438
if (token2.
Kind
== SyntaxKind.GreaterThanToken)
11440
if (this.PeekToken(2) is {
Kind
: SyntaxKind.GreaterThanToken or SyntaxKind.GreaterThanEqualsToken } token3
11444
token1Kind = token3.
Kind
== SyntaxKind.GreaterThanToken
11467
if (token1Kind == SyntaxKind.SwitchKeyword && this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken)
11470
if (token1Kind == SyntaxKind.WithKeyword && this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken)
11521
Debug.Assert(IsExpectedAssignmentOperator(operatorToken.
Kind
));
11526
if (operatorExpressionKind == SyntaxKind.SimpleAssignmentExpression && CurrentToken.
Kind
== SyntaxKind.RefKeyword &&
11546
if (this.CurrentToken.
Kind
!= SyntaxKind.DotToken)
11550
return nextToken.
Kind
== SyntaxKind.DotToken && NoTriviaBetween(this.CurrentToken, nextToken);
11554
=> token1.
Kind
== SyntaxKind.DotToken &&
11555
token2.
Kind
== SyntaxKind.DotToken &&
11568
if (this.CurrentToken is {
Kind
: SyntaxKind.DotToken } token3 &&
11585
if (this.PeekToken(1) is not {
Kind
: SyntaxKind.DotToken } token4 ||
11638
var tk = this.CurrentToken.
Kind
;
11692
else if (IsCurrentTokenFieldInKeywordContext() && PeekToken(1).
Kind
!= SyntaxKind.ColonColonToken)
11770
if (this.CurrentToken.
Kind
!= SyntaxKind.DotToken || tk == SyntaxKind.VoidKeyword)
11805
switch (this.CurrentToken.
Kind
)
11817
expr = _syntaxFactory.PostfixUnaryExpression(SyntaxFacts.GetPostfixUnaryExpression(this.CurrentToken.
Kind
), expr, this.EatToken());
11821
if (this.PeekToken(1).
Kind
== SyntaxKind.IdentifierToken)
11853
this.PeekToken(1).
Kind
== SyntaxKind.IdentifierToken &&
11886
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.BaseKeyword);
11900
if (precedence > Precedence.Assignment || !(this.CurrentToken.IsIdentifierVar() || IsPredefinedType(this.CurrentToken.
Kind
)))
11909
this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken && ScanDesignator() &&
11910
this.CurrentToken.
Kind
== SyntaxKind.EqualsToken;
11915
switch (this.CurrentToken.
Kind
)
11934
switch (this.CurrentToken.
Kind
)
11954
while (this.PeekToken(tokenIndex).
Kind
== SyntaxKind.StaticKeyword ||
11960
return this.PeekToken(tokenIndex).
Kind
== SyntaxKind.DelegateKeyword &&
11961
this.PeekToken(tokenIndex + 1).
Kind
!= SyntaxKind.AsteriskToken;
12008
if (this.CurrentToken.
Kind
== SyntaxKind.QuestionToken)
12011
var nextTokenKind = nextToken.
Kind
;
12047
return this.CurrentToken.
Kind
!= SyntaxKind.ColonToken;
12060
while (this.CurrentToken.
Kind
== SyntaxKind.ExclamationToken)
12096
=> this.CurrentToken.
Kind
switch
12155
openToken = this.CurrentToken.
Kind
is SyntaxKind.OpenParenToken or SyntaxKind.OpenBracketToken
12162
if (this.CurrentToken.
Kind
!= closeKind && this.CurrentToken.
Kind
!= SyntaxKind.SemicolonToken)
12190
else if (isIndexer && this.CurrentToken.
Kind
== closeKind)
12206
closeToken = this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken
12215
if (@this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken or SyntaxKind.SemicolonToken)
12219
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleArgumentExpression(),
12220
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind || p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken,
12227
return this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.CloseBracketToken;
12232
return IsValidArgumentRefKindKeyword(this.CurrentToken.
Kind
) || this.IsPossibleExpression();
12250
var nameColon = this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.ColonToken
12257
if (IsValidArgumentRefKindKeyword(this.CurrentToken.
Kind
) &&
12259
!(this.CurrentToken.
Kind
== SyntaxKind.RefKeyword &&
12267
if (isIndexer && this.CurrentToken.
Kind
is SyntaxKind.CommaToken or SyntaxKind.CloseBracketToken)
12271
else if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
12283
expression = refKindKeyword?.
Kind
== SyntaxKind.OutKeyword
12303
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
12347
Debug.Assert(checkedOrUnchecked.
Kind
is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword);
12348
var kind = checkedOrUnchecked.
Kind
== SyntaxKind.CheckedKeyword ? SyntaxKind.CheckedExpression : SyntaxKind.UncheckedExpression;
12381
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
12399
token.
Kind
is SyntaxKind.CommaToken ||
12405
return token.
Kind
== SyntaxKind.CloseParenToken &&
12406
this.PeekToken(index).
Kind
== SyntaxKind.EqualsGreaterThanToken;
12412
Debug.Assert(CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
12464
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
12472
switch (this.CurrentToken.
Kind
)
12478
return this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken;
12488
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken);
12516
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
12524
if (expression.
Kind
== SyntaxKind.IdentifierName && this.CurrentToken.
Kind
== SyntaxKind.ColonToken)
12545
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
12550
var argument = expression.
Kind
!= SyntaxKind.IdentifierName || this.CurrentToken.
Kind
!= SyntaxKind.ColonToken
12576
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
12589
if (this.CurrentToken.
Kind
!= SyntaxKind.CloseParenToken)
12596
if (forPattern && this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken)
12618
return !forPattern || this.CurrentToken.
Kind
switch
12643
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken || CanFollowCast(this.CurrentToken.
Kind
);
12649
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken &&
12650
this.PeekToken(1).
Kind
== SyntaxKind.CloseBracketToken)
12658
return CanFollowCast(this.CurrentToken.
Kind
);
12710
if (token1.
Kind
== SyntaxKind.EqualsGreaterThanToken)
12718
if (CurrentToken.
Kind
== SyntaxKind.OpenBracketToken)
12734
if (this.CurrentToken.
Kind
== SyntaxKind.StaticKeyword)
12740
this.PeekToken(1).
Kind
== SyntaxKind.StaticKeyword)
12753
if (this.CurrentToken.
Kind
== SyntaxKind.EqualsGreaterThanToken)
12763
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
12771
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken &&
12772
this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken)
12791
if (st == ScanTypeFlags.NotType || this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
12808
if (this.CurrentToken.
Kind
== SyntaxKind.IdentifierToken &&
12809
this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken)
12816
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
12888
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.NewKeyword);
12907
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken);
12928
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleCollectionElement(),
12929
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
12948
return this.CurrentToken.
Kind
== SyntaxKind.NewKeyword && this.PeekToken(1).
Kind
== SyntaxKind.OpenBraceToken;
12956
Debug.Assert(this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken);
12993
return this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken;
12998
return IsTrueIdentifier() && this.PeekToken(1).
Kind
== SyntaxKind.EqualsToken;
13003
return IsTrueIdentifier() && this.PeekToken(1).
Kind
is SyntaxKind.EqualsToken or SyntaxKind.ColonToken;
13008
return this.CurrentToken.
Kind
== SyntaxKind.OpenBracketToken;
13021
if (type.
Kind
== SyntaxKind.ArrayType)
13024
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
13034
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13039
if (this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken)
13061
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13072
switch (this.CurrentToken.
Kind
)
13145
Kind
: SyntaxKind.SimpleAssignmentExpression,
13146
Left.
Kind
: SyntaxKind.IdentifierName or SyntaxKind.ImplicitElementAccess,
13191
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleExpression(),
13192
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13201
this.CurrentToken.
Kind
== SyntaxKind.ColonToken
13204
this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
13215
this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
13243
Debug.Assert(this.CurrentToken.
Kind
is SyntaxKind.NewKeyword or SyntaxKind.StackAllocKeyword);
13244
return this.PeekToken(1).
Kind
== SyntaxKind.OpenBracketToken;
13270
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
13310
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleVariableInitializer(),
13311
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13337
if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
13359
this.CurrentToken.
Kind
== SyntaxKind.OpenBraceToken ? this.ParseArrayInitializer() : null);
13387
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13400
if (this.CurrentToken.
Kind
!= SyntaxKind.OpenBraceToken)
13431
if (this.CurrentToken.
Kind
== SyntaxKind.StaticKeyword)
13454
switch (this.PeekToken(1).
Kind
)
13477
if (this.CurrentToken.
Kind
== SyntaxKind.ColonToken &&
13514
if (CurrentToken.
Kind
!= SyntaxKind.OpenParenToken)
13521
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13534
var identifier = (this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken && this.PeekToken(1).
Kind
== SyntaxKind.EqualsGreaterThanToken)
13551
=> CurrentToken.
Kind
== SyntaxKind.OpenBraceToken
13582
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken && !p.IsPossibleLambdaParameter(),
13583
static (p, closeKind) => p.CurrentToken.
Kind
== closeKind,
13590
switch (this.CurrentToken.
Kind
)
13608
return IsPredefinedType(this.CurrentToken.
Kind
);
13646
if (IsPredefinedType(this.CurrentToken.
Kind
))
13652
if (this.CurrentToken.
Kind
== SyntaxKind.OpenParenToken)
13674
if (peek1.
Kind
13739
var pk1 = this.PeekToken(1).
Kind
;
13747
var pk2 = this.PeekToken(2).
Kind
;
13784
return this.ScanType() != ScanTypeFlags.NotType && this.CurrentToken.
Kind
is SyntaxKind.IdentifierToken or SyntaxKind.InKeyword;
13855
var type = this.PeekToken(1).
Kind
!= SyntaxKind.InKeyword
13861
(this.CurrentToken.
Kind
!= SyntaxKind.IdentifierToken || SyntaxFacts.IsQueryContextualKeyword(this.CurrentToken.ContextualKind)))
13888
type: this.PeekToken(1).
Kind
!= SyntaxKind.InKeyword
13931
while (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
13933
if (this.CurrentToken.
Kind
is SyntaxKind.CloseParenToken or SyntaxKind.SemicolonToken)
13937
else if (this.CurrentToken.
Kind
== SyntaxKind.CommaToken)
13958
static p => p.CurrentToken.
Kind
!= SyntaxKind.CommaToken,
13959
static (p, _) => p.CurrentToken.
Kind
== SyntaxKind.CloseParenToken
13960
|| p.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
13975
if (direction.
Kind
== SyntaxKind.DescendingKeyword)
14135
if (requireOneElement || this.CurrentToken.
Kind
!= closeTokenKind)
14152
if (this.CurrentToken.
Kind
== closeTokenKind)
14163
nodes.AddSeparator(this.CurrentToken.
Kind
== SyntaxKind.SemicolonToken
14170
if (this.CurrentToken.
Kind
== closeTokenKind)
14205
if (this.CurrentToken.
Kind
== separatorTokenKind)
14210
if (allowSemicolonAsSeparator && this.CurrentToken.
Kind
is SyntaxKind.SemicolonToken)
14299
if (this.CurrentToken.
Kind
== SyntaxKind.EndOfFileToken) return node;
14301
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);
9978
=> new GlobalStatementSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.statement, diagnostics, GetAnnotations());
9981
=> new GlobalStatementSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.statement, GetDiagnostics(), annotations);
10106
=> new BlockSyntax(this.
Kind
, this.attributeLists, this.openBraceToken, this.statements, this.closeBraceToken, diagnostics, GetAnnotations());
10109
=> new BlockSyntax(this.
Kind
, this.attributeLists, this.openBraceToken, this.statements, this.closeBraceToken, GetDiagnostics(), annotations);
10319
=> 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());
10322
=> 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);
10468
=> new LocalDeclarationStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.modifiers, this.declaration, this.semicolonToken, diagnostics, GetAnnotations());
10471
=> new LocalDeclarationStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.modifiers, this.declaration, this.semicolonToken, GetDiagnostics(), annotations);
10553
=> new VariableDeclarationSyntax(this.
Kind
, this.type, this.variables, diagnostics, GetAnnotations());
10556
=> new VariableDeclarationSyntax(this.
Kind
, this.type, this.variables, GetDiagnostics(), annotations);
10657
=> new VariableDeclaratorSyntax(this.
Kind
, this.identifier, this.argumentList, this.initializer, diagnostics, GetAnnotations());
10660
=> new VariableDeclaratorSyntax(this.
Kind
, this.identifier, this.argumentList, this.initializer, GetDiagnostics(), annotations);
10733
=> new EqualsValueClauseSyntax(this.
Kind
, this.equalsToken, this.value, diagnostics, GetAnnotations());
10736
=> new EqualsValueClauseSyntax(this.
Kind
, this.equalsToken, this.value, GetDiagnostics(), annotations);
10809
=> new SingleVariableDesignationSyntax(this.
Kind
, this.identifier, diagnostics, GetAnnotations());
10812
=> new SingleVariableDesignationSyntax(this.
Kind
, this.identifier, GetDiagnostics(), annotations);
10872
=> new DiscardDesignationSyntax(this.
Kind
, this.underscoreToken, diagnostics, GetAnnotations());
10875
=> new DiscardDesignationSyntax(this.
Kind
, this.underscoreToken, GetDiagnostics(), annotations);
10966
=> new ParenthesizedVariableDesignationSyntax(this.
Kind
, this.openParenToken, this.variables, this.closeParenToken, diagnostics, GetAnnotations());
10969
=> new ParenthesizedVariableDesignationSyntax(this.
Kind
, this.openParenToken, this.variables, this.closeParenToken, GetDiagnostics(), annotations);
11060
=> new ExpressionStatementSyntax(this.
Kind
, this.attributeLists, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11063
=> new ExpressionStatementSyntax(this.
Kind
, this.attributeLists, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
11145
=> new EmptyStatementSyntax(this.
Kind
, this.attributeLists, this.semicolonToken, diagnostics, GetAnnotations());
11148
=> new EmptyStatementSyntax(this.
Kind
, this.attributeLists, this.semicolonToken, GetDiagnostics(), annotations);
11251
=> new LabeledStatementSyntax(this.
Kind
, this.attributeLists, this.identifier, this.colonToken, this.statement, diagnostics, GetAnnotations());
11254
=> new LabeledStatementSyntax(this.
Kind
, this.attributeLists, this.identifier, this.colonToken, this.statement, GetDiagnostics(), annotations);
11382
var newNode = SyntaxFactory.GotoStatement(this.
Kind
, attributeLists, gotoKeyword, caseOrDefaultKeyword, expression, semicolonToken);
11396
=> new GotoStatementSyntax(this.
Kind
, this.attributeLists, this.gotoKeyword, this.caseOrDefaultKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11399
=> new GotoStatementSyntax(this.
Kind
, this.attributeLists, this.gotoKeyword, this.caseOrDefaultKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
11490
=> new BreakStatementSyntax(this.
Kind
, this.attributeLists, this.breakKeyword, this.semicolonToken, diagnostics, GetAnnotations());
11493
=> new BreakStatementSyntax(this.
Kind
, this.attributeLists, this.breakKeyword, this.semicolonToken, GetDiagnostics(), annotations);
11584
=> new ContinueStatementSyntax(this.
Kind
, this.attributeLists, this.continueKeyword, this.semicolonToken, diagnostics, GetAnnotations());
11587
=> new ContinueStatementSyntax(this.
Kind
, this.attributeLists, this.continueKeyword, this.semicolonToken, GetDiagnostics(), annotations);
11696
=> new ReturnStatementSyntax(this.
Kind
, this.attributeLists, this.returnKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11699
=> new ReturnStatementSyntax(this.
Kind
, this.attributeLists, this.returnKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
11808
=> new ThrowStatementSyntax(this.
Kind
, this.attributeLists, this.throwKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11811
=> new ThrowStatementSyntax(this.
Kind
, this.attributeLists, this.throwKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
11915
var newNode = SyntaxFactory.YieldStatement(this.
Kind
, attributeLists, yieldKeyword, returnOrBreakKeyword, expression, semicolonToken);
11929
=> new YieldStatementSyntax(this.
Kind
, this.attributeLists, this.yieldKeyword, this.returnOrBreakKeyword, this.expression, this.semicolonToken, diagnostics, GetAnnotations());
11932
=> new YieldStatementSyntax(this.
Kind
, this.attributeLists, this.yieldKeyword, this.returnOrBreakKeyword, this.expression, this.semicolonToken, GetDiagnostics(), annotations);
12050
=> new WhileStatementSyntax(this.
Kind
, this.attributeLists, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
12053
=> new WhileStatementSyntax(this.
Kind
, this.attributeLists, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
12189
=> new DoStatementSyntax(this.
Kind
, this.attributeLists, this.doKeyword, this.statement, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.semicolonToken, diagnostics, GetAnnotations());
12192
=> new DoStatementSyntax(this.
Kind
, this.attributeLists, this.doKeyword, this.statement, this.whileKeyword, this.openParenToken, this.condition, this.closeParenToken, this.semicolonToken, GetDiagnostics(), annotations);
12391
=> 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());
12394
=> 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);
12585
=> 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());
12588
=> 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);
12748
=> new ForEachVariableStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.variable, this.inKeyword, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
12751
=> new ForEachVariableStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.forEachKeyword, this.openParenToken, this.variable, this.inKeyword, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
12914
=> new UsingStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.openParenToken, this.declaration, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
12917
=> new UsingStatementSyntax(this.
Kind
, this.attributeLists, this.awaitKeyword, this.usingKeyword, this.openParenToken, this.declaration, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
13035
=> new FixedStatementSyntax(this.
Kind
, this.attributeLists, this.fixedKeyword, this.openParenToken, this.declaration, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
13038
=> new FixedStatementSyntax(this.
Kind
, this.attributeLists, this.fixedKeyword, this.openParenToken, this.declaration, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
13115
var newNode = SyntaxFactory.CheckedStatement(this.
Kind
, attributeLists, keyword, block);
13129
=> new CheckedStatementSyntax(this.
Kind
, this.attributeLists, this.keyword, this.block, diagnostics, GetAnnotations());
13132
=> new CheckedStatementSyntax(this.
Kind
, this.attributeLists, this.keyword, this.block, GetDiagnostics(), annotations);
13223
=> new UnsafeStatementSyntax(this.
Kind
, this.attributeLists, this.unsafeKeyword, this.block, diagnostics, GetAnnotations());
13226
=> new UnsafeStatementSyntax(this.
Kind
, this.attributeLists, this.unsafeKeyword, this.block, GetDiagnostics(), annotations);
13344
=> new LockStatementSyntax(this.
Kind
, this.attributeLists, this.lockKeyword, this.openParenToken, this.expression, this.closeParenToken, this.statement, diagnostics, GetAnnotations());
13347
=> new LockStatementSyntax(this.
Kind
, this.attributeLists, this.lockKeyword, this.openParenToken, this.expression, this.closeParenToken, this.statement, GetDiagnostics(), annotations);
13504
=> new IfStatementSyntax(this.
Kind
, this.attributeLists, this.ifKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, this.@else, diagnostics, GetAnnotations());
13507
=> new IfStatementSyntax(this.
Kind
, this.attributeLists, this.ifKeyword, this.openParenToken, this.condition, this.closeParenToken, this.statement, this.@else, GetDiagnostics(), annotations);
13584
=> new ElseClauseSyntax(this.
Kind
, this.elseKeyword, this.statement, diagnostics, GetAnnotations());
13587
=> new ElseClauseSyntax(this.
Kind
, this.elseKeyword, this.statement, GetDiagnostics(), annotations);
13772
=> new SwitchStatementSyntax(this.
Kind
, this.attributeLists, this.switchKeyword, this.openParenToken, this.expression, this.closeParenToken, this.openBraceToken, this.sections, this.closeBraceToken, diagnostics, GetAnnotations());
13775
=> new SwitchStatementSyntax(this.
Kind
, this.attributeLists, this.switchKeyword, this.openParenToken, this.expression, this.closeParenToken, this.openBraceToken, this.sections, this.closeBraceToken, GetDiagnostics(), annotations);
13873
=> new SwitchSectionSyntax(this.
Kind
, this.labels, this.statements, diagnostics, GetAnnotations());
13876
=> new SwitchSectionSyntax(this.
Kind
, this.labels, this.statements, GetDiagnostics(), annotations);
14005
=> new CasePatternSwitchLabelSyntax(this.
Kind
, this.keyword, this.pattern, this.whenClause, this.colonToken, diagnostics, GetAnnotations());
14008
=> new CasePatternSwitchLabelSyntax(this.
Kind
, this.keyword, this.pattern, this.whenClause, this.colonToken, GetDiagnostics(), annotations);
14095
=> new CaseSwitchLabelSyntax(this.
Kind
, this.keyword, this.value, this.colonToken, diagnostics, GetAnnotations());
14098
=> new CaseSwitchLabelSyntax(this.
Kind
, this.keyword, this.value, this.colonToken, GetDiagnostics(), annotations);
14173
=> new DefaultSwitchLabelSyntax(this.
Kind
, this.keyword, this.colonToken, diagnostics, GetAnnotations());
14176
=> new DefaultSwitchLabelSyntax(this.
Kind
, this.keyword, this.colonToken, GetDiagnostics(), annotations);
14285
=> new SwitchExpressionSyntax(this.
Kind
, this.governingExpression, this.switchKeyword, this.openBraceToken, this.arms, this.closeBraceToken, diagnostics, GetAnnotations());
14288
=> new SwitchExpressionSyntax(this.
Kind
, this.governingExpression, this.switchKeyword, this.openBraceToken, this.arms, this.closeBraceToken, GetDiagnostics(), annotations);
14388
=> new SwitchExpressionArmSyntax(this.
Kind
, this.pattern, this.whenClause, this.equalsGreaterThanToken, this.expression, diagnostics, GetAnnotations());
14391
=> new SwitchExpressionArmSyntax(this.
Kind
, this.pattern, this.whenClause, this.equalsGreaterThanToken, this.expression, GetDiagnostics(), annotations);
14518
=> new TryStatementSyntax(this.
Kind
, this.attributeLists, this.tryKeyword, this.block, this.catches, this.@finally, diagnostics, GetAnnotations());
14521
=> new TryStatementSyntax(this.
Kind
, this.attributeLists, this.tryKeyword, this.block, this.catches, this.@finally, GetDiagnostics(), annotations);
14630
=> new CatchClauseSyntax(this.
Kind
, this.catchKeyword, this.declaration, this.filter, this.block, diagnostics, GetAnnotations());
14633
=> new CatchClauseSyntax(this.
Kind
, this.catchKeyword, this.declaration, this.filter, this.block, GetDiagnostics(), annotations);
14733
=> new CatchDeclarationSyntax(this.
Kind
, this.openParenToken, this.type, this.identifier, this.closeParenToken, diagnostics, GetAnnotations());
14736
=> new CatchDeclarationSyntax(this.
Kind
, this.openParenToken, this.type, this.identifier, this.closeParenToken, GetDiagnostics(), annotations);
14827
=> new CatchFilterClauseSyntax(this.
Kind
, this.whenKeyword, this.openParenToken, this.filterExpression, this.closeParenToken, diagnostics, GetAnnotations());
14830
=> new CatchFilterClauseSyntax(this.
Kind
, this.whenKeyword, this.openParenToken, this.filterExpression, this.closeParenToken, GetDiagnostics(), annotations);
14903
=> new FinallyClauseSyntax(this.
Kind
, this.finallyKeyword, this.block, diagnostics, GetAnnotations());
14906
=> new FinallyClauseSyntax(this.
Kind
, this.finallyKeyword, this.block, GetDiagnostics(), annotations);
15043
=> new CompilationUnitSyntax(this.
Kind
, this.externs, this.usings, this.attributeLists, this.members, this.endOfFileToken, diagnostics, GetAnnotations());
15046
=> new CompilationUnitSyntax(this.
Kind
, this.externs, this.usings, this.attributeLists, this.members, this.endOfFileToken, GetDiagnostics(), annotations);
15144
=> new ExternAliasDirectiveSyntax(this.
Kind
, this.externKeyword, this.aliasKeyword, this.identifier, this.semicolonToken, diagnostics, GetAnnotations());
15147
=> new ExternAliasDirectiveSyntax(this.
Kind
, this.externKeyword, this.aliasKeyword, this.identifier, this.semicolonToken, GetDiagnostics(), annotations);
15301
=> new UsingDirectiveSyntax(this.
Kind
, this.globalKeyword, this.usingKeyword, this.staticKeyword, this.unsafeKeyword, this.alias, this.namespaceOrType, this.semicolonToken, diagnostics, GetAnnotations());
15304
=> new UsingDirectiveSyntax(this.
Kind
, this.globalKeyword, this.usingKeyword, this.staticKeyword, this.unsafeKeyword, this.alias, this.namespaceOrType, this.semicolonToken, GetDiagnostics(), annotations);
15547
=> 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());
15550
=> 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);
15722
=> new FileScopedNamespaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.semicolonToken, this.externs, this.usings, this.members, diagnostics, GetAnnotations());
15725
=> new FileScopedNamespaceDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.namespaceKeyword, this.name, this.semicolonToken, this.externs, this.usings, this.members, GetDiagnostics(), annotations);
15839
=> new AttributeListSyntax(this.
Kind
, this.openBracketToken, this.target, this.attributes, this.closeBracketToken, diagnostics, GetAnnotations());
15842
=> new AttributeListSyntax(this.
Kind
, this.openBracketToken, this.target, this.attributes, this.closeBracketToken, GetDiagnostics(), annotations);
15918
=> new AttributeTargetSpecifierSyntax(this.
Kind
, this.identifier, this.colonToken, diagnostics, GetAnnotations());
15921
=> new AttributeTargetSpecifierSyntax(this.
Kind
, this.identifier, this.colonToken, GetDiagnostics(), annotations);
16008
=> new AttributeSyntax(this.
Kind
, this.name, this.argumentList, diagnostics, GetAnnotations());
16011
=> new AttributeSyntax(this.
Kind
, this.name, this.argumentList, GetDiagnostics(), annotations);
16106
=> new AttributeArgumentListSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, diagnostics, GetAnnotations());
16109
=> new AttributeArgumentListSyntax(this.
Kind
, this.openParenToken, this.arguments, this.closeParenToken, GetDiagnostics(), annotations);
16211
=> new AttributeArgumentSyntax(this.
Kind
, this.nameEquals, this.nameColon, this.expression, diagnostics, GetAnnotations());
16214
=> new AttributeArgumentSyntax(this.
Kind
, this.nameEquals, this.nameColon, this.expression, GetDiagnostics(), annotations);
16289
=> new NameEqualsSyntax(this.
Kind
, this.name, this.equalsToken, diagnostics, GetAnnotations());
16292
=> new NameEqualsSyntax(this.
Kind
, this.name, this.equalsToken, GetDiagnostics(), annotations);
16387
=> new TypeParameterListSyntax(this.
Kind
, this.lessThanToken, this.parameters, this.greaterThanToken, diagnostics, GetAnnotations());
16390
=> new TypeParameterListSyntax(this.
Kind
, this.lessThanToken, this.parameters, this.greaterThanToken, GetDiagnostics(), annotations);
16493
=> new TypeParameterSyntax(this.
Kind
, this.attributeLists, this.varianceKeyword, this.identifier, diagnostics, GetAnnotations());
16496
=> new TypeParameterSyntax(this.
Kind
, this.attributeLists, this.varianceKeyword, this.identifier, GetDiagnostics(), annotations);
16807
=> 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());
16810
=> 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);
17065
=> 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());
17068
=> 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);
17323
=> 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());
17326
=> 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);
17583
var newNode = SyntaxFactory.RecordDeclaration(this.
Kind
, attributeLists, modifiers, keyword, classOrStructKeyword, identifier, typeParameterList, parameterList, baseList, constraintClauses, openBraceToken, members, closeBraceToken, semicolonToken);
17597
=> 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());
17600
=> 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);
17803
=> new EnumDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.enumKeyword, this.identifier, this.baseList, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, diagnostics, GetAnnotations());
17806
=> new EnumDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.enumKeyword, this.identifier, this.baseList, this.openBraceToken, this.members, this.closeBraceToken, this.semicolonToken, GetDiagnostics(), annotations);
17985
=> new DelegateDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.delegateKeyword, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.semicolonToken, diagnostics, GetAnnotations());
17988
=> new DelegateDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.delegateKeyword, this.returnType, this.identifier, this.typeParameterList, this.parameterList, this.constraintClauses, this.semicolonToken, GetDiagnostics(), annotations);
18107
=> new EnumMemberDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.equalsValue, diagnostics, GetAnnotations());
18110
=> new EnumMemberDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.equalsValue, GetDiagnostics(), annotations);
18337
=> 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());
18340
=> 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);
18425
=> new BaseListSyntax(this.
Kind
, this.colonToken, this.types, diagnostics, GetAnnotations());
18428
=> new BaseListSyntax(this.
Kind
, this.colonToken, this.types, GetDiagnostics(), annotations);
18504
=> new SimpleBaseTypeSyntax(this.
Kind
, this.type, diagnostics, GetAnnotations());
18507
=> new SimpleBaseTypeSyntax(this.
Kind
, this.type, GetDiagnostics(), annotations);
18580
=> new PrimaryConstructorBaseTypeSyntax(this.
Kind
, this.type, this.argumentList, diagnostics, GetAnnotations());
18583
=> new PrimaryConstructorBaseTypeSyntax(this.
Kind
, this.type, this.argumentList, GetDiagnostics(), annotations);
18687
=> new TypeParameterConstraintClauseSyntax(this.
Kind
, this.whereKeyword, this.name, this.colonToken, this.constraints, diagnostics, GetAnnotations());
18690
=> new TypeParameterConstraintClauseSyntax(this.
Kind
, this.whereKeyword, this.name, this.colonToken, this.constraints, GetDiagnostics(), annotations);
18790
=> new ConstructorConstraintSyntax(this.
Kind
, this.newKeyword, this.openParenToken, this.closeParenToken, diagnostics, GetAnnotations());
18793
=> new ConstructorConstraintSyntax(this.
Kind
, this.newKeyword, this.openParenToken, this.closeParenToken, GetDiagnostics(), annotations);
18864
var newNode = SyntaxFactory.ClassOrStructConstraint(this.
Kind
, classOrStructKeyword, questionToken);
18878
=> new ClassOrStructConstraintSyntax(this.
Kind
, this.classOrStructKeyword, this.questionToken, diagnostics, GetAnnotations());
18881
=> new ClassOrStructConstraintSyntax(this.
Kind
, this.classOrStructKeyword, this.questionToken, GetDiagnostics(), annotations);
18943
=> new TypeConstraintSyntax(this.
Kind
, this.type, diagnostics, GetAnnotations());
18946
=> new TypeConstraintSyntax(this.
Kind
, this.type, GetDiagnostics(), annotations);
19008
=> new DefaultConstraintSyntax(this.
Kind
, this.defaultKeyword, diagnostics, GetAnnotations());
19011
=> new DefaultConstraintSyntax(this.
Kind
, this.defaultKeyword, GetDiagnostics(), annotations);
19095
=> new AllowsConstraintClauseSyntax(this.
Kind
, this.allowsKeyword, this.constraints, diagnostics, GetAnnotations());
19098
=> new AllowsConstraintClauseSyntax(this.
Kind
, this.allowsKeyword, this.constraints, GetDiagnostics(), annotations);
19188
=> new RefStructConstraintSyntax(this.
Kind
, this.refKeyword, this.structKeyword, diagnostics, GetAnnotations());
19191
=> new RefStructConstraintSyntax(this.
Kind
, this.refKeyword, this.structKeyword, GetDiagnostics(), annotations);
19317
=> new FieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.declaration, this.semicolonToken, diagnostics, GetAnnotations());
19320
=> new FieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.declaration, this.semicolonToken, GetDiagnostics(), annotations);
19438
=> new EventFieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.declaration, this.semicolonToken, diagnostics, GetAnnotations());
19441
=> new EventFieldDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.declaration, this.semicolonToken, GetDiagnostics(), annotations);
19514
=> new ExplicitInterfaceSpecifierSyntax(this.
Kind
, this.name, this.dotToken, diagnostics, GetAnnotations());
19517
=> new ExplicitInterfaceSpecifierSyntax(this.
Kind
, this.name, this.dotToken, GetDiagnostics(), annotations);
19772
=> 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());
19775
=> 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);
19998
=> 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());
20001
=> 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);
20224
=> 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());
20227
=> 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);
20411
=> new ConstructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.parameterList, this.initializer, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
20414
=> new ConstructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.identifier, this.parameterList, this.initializer, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
20485
var newNode = SyntaxFactory.ConstructorInitializer(this.
Kind
, colonToken, thisOrBaseKeyword, argumentList);
20499
=> new ConstructorInitializerSyntax(this.
Kind
, this.colonToken, this.thisOrBaseKeyword, this.argumentList, diagnostics, GetAnnotations());
20502
=> new ConstructorInitializerSyntax(this.
Kind
, this.colonToken, this.thisOrBaseKeyword, this.argumentList, GetDiagnostics(), annotations);
20678
=> new DestructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.tildeToken, this.identifier, this.parameterList, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
20681
=> new DestructorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.tildeToken, this.identifier, this.parameterList, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
20903
=> new PropertyDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.expressionBody, this.initializer, this.semicolonToken, diagnostics, GetAnnotations());
20906
=> new PropertyDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.expressionBody, this.initializer, this.semicolonToken, GetDiagnostics(), annotations);
20980
=> new ArrowExpressionClauseSyntax(this.
Kind
, this.arrowToken, this.expression, diagnostics, GetAnnotations());
20983
=> new ArrowExpressionClauseSyntax(this.
Kind
, this.arrowToken, this.expression, GetDiagnostics(), annotations);
21156
=> new EventDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.semicolonToken, diagnostics, GetAnnotations());
21159
=> new EventDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.eventKeyword, this.type, this.explicitInterfaceSpecifier, this.identifier, this.accessorList, this.semicolonToken, GetDiagnostics(), annotations);
21350
=> new IndexerDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.thisKeyword, this.parameterList, this.accessorList, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
21353
=> new IndexerDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.explicitInterfaceSpecifier, this.thisKeyword, this.parameterList, this.accessorList, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
21444
=> new AccessorListSyntax(this.
Kind
, this.openBraceToken, this.accessors, this.closeBraceToken, diagnostics, GetAnnotations());
21447
=> new AccessorListSyntax(this.
Kind
, this.openBraceToken, this.accessors, this.closeBraceToken, GetDiagnostics(), annotations);
21593
var newNode = SyntaxFactory.AccessorDeclaration(this.
Kind
, attributeLists, modifiers, keyword, body, expressionBody, semicolonToken);
21607
=> new AccessorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.body, this.expressionBody, this.semicolonToken, diagnostics, GetAnnotations());
21610
=> new AccessorDeclarationSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.keyword, this.body, this.expressionBody, this.semicolonToken, GetDiagnostics(), annotations);
21721
=> new ParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, diagnostics, GetAnnotations());
21724
=> new ParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, GetDiagnostics(), annotations);
21818
=> new BracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, diagnostics, GetAnnotations());
21821
=> new BracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, GetDiagnostics(), annotations);
21992
=> new ParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.identifier, this.@default, diagnostics, GetAnnotations());
21995
=> new ParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, this.identifier, this.@default, GetDiagnostics(), annotations);
22098
=> new FunctionPointerParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, diagnostics, GetAnnotations());
22101
=> new FunctionPointerParameterSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, GetDiagnostics(), annotations);
22210
=> new IncompleteMemberSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, diagnostics, GetAnnotations());
22213
=> new IncompleteMemberSyntax(this.
Kind
, this.attributeLists, this.modifiers, this.type, GetDiagnostics(), annotations);
22282
=> new SkippedTokensTriviaSyntax(this.
Kind
, this.tokens, diagnostics, GetAnnotations());
22285
=> new SkippedTokensTriviaSyntax(this.
Kind
, this.tokens, GetDiagnostics(), annotations);
22353
var newNode = SyntaxFactory.DocumentationCommentTrivia(this.
Kind
, content, endOfComment);
22367
=> new DocumentationCommentTriviaSyntax(this.
Kind
, this.content, this.endOfComment, diagnostics, GetAnnotations());
22370
=> new DocumentationCommentTriviaSyntax(this.
Kind
, this.content, this.endOfComment, GetDiagnostics(), annotations);
22454
=> new TypeCrefSyntax(this.
Kind
, this.type, diagnostics, GetAnnotations());
22457
=> new TypeCrefSyntax(this.
Kind
, this.type, GetDiagnostics(), annotations);
22546
=> new QualifiedCrefSyntax(this.
Kind
, this.container, this.dotToken, this.member, diagnostics, GetAnnotations());
22549
=> new QualifiedCrefSyntax(this.
Kind
, this.container, this.dotToken, this.member, GetDiagnostics(), annotations);
22657
=> new NameMemberCrefSyntax(this.
Kind
, this.name, this.parameters, diagnostics, GetAnnotations());
22660
=> new NameMemberCrefSyntax(this.
Kind
, this.name, this.parameters, GetDiagnostics(), annotations);
22769
=> new ExtensionMemberCrefSyntax(this.
Kind
, this.extensionKeyword, this.typeArgumentList, this.parameters, this.dotToken, this.member, diagnostics, GetAnnotations());
22772
=> new ExtensionMemberCrefSyntax(this.
Kind
, this.extensionKeyword, this.typeArgumentList, this.parameters, this.dotToken, this.member, GetDiagnostics(), annotations);
22858
=> new IndexerMemberCrefSyntax(this.
Kind
, this.thisKeyword, this.parameters, diagnostics, GetAnnotations());
22861
=> new IndexerMemberCrefSyntax(this.
Kind
, this.thisKeyword, this.parameters, GetDiagnostics(), annotations);
22976
=> new OperatorMemberCrefSyntax(this.
Kind
, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameters, diagnostics, GetAnnotations());
22979
=> new OperatorMemberCrefSyntax(this.
Kind
, this.operatorKeyword, this.checkedKeyword, this.operatorToken, this.parameters, GetDiagnostics(), annotations);
23101
=> new ConversionOperatorMemberCrefSyntax(this.
Kind
, this.implicitOrExplicitKeyword, this.operatorKeyword, this.checkedKeyword, this.type, this.parameters, diagnostics, GetAnnotations());
23104
=> new ConversionOperatorMemberCrefSyntax(this.
Kind
, this.implicitOrExplicitKeyword, this.operatorKeyword, this.checkedKeyword, this.type, this.parameters, GetDiagnostics(), annotations);
23220
=> new CrefParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, diagnostics, GetAnnotations());
23223
=> new CrefParameterListSyntax(this.
Kind
, this.openParenToken, this.parameters, this.closeParenToken, GetDiagnostics(), annotations);
23319
=> new CrefBracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, diagnostics, GetAnnotations());
23322
=> new CrefBracketedParameterListSyntax(this.
Kind
, this.openBracketToken, this.parameters, this.closeBracketToken, GetDiagnostics(), annotations);
23428
=> new CrefParameterSyntax(this.
Kind
, this.refKindKeyword, this.readOnlyKeyword, this.type, diagnostics, GetAnnotations());
23431
=> new CrefParameterSyntax(this.
Kind
, this.refKindKeyword, this.readOnlyKeyword, this.type, GetDiagnostics(), annotations);
23535
=> new XmlElementSyntax(this.
Kind
, this.startTag, this.content, this.endTag, diagnostics, GetAnnotations());
23538
=> new XmlElementSyntax(this.
Kind
, this.startTag, this.content, this.endTag, GetDiagnostics(), annotations);
23638
=> new XmlElementStartTagSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.greaterThanToken, diagnostics, GetAnnotations());
23641
=> new XmlElementStartTagSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.greaterThanToken, GetDiagnostics(), annotations);
23723
=> new XmlElementEndTagSyntax(this.
Kind
, this.lessThanSlashToken, this.name, this.greaterThanToken, diagnostics, GetAnnotations());
23726
=> new XmlElementEndTagSyntax(this.
Kind
, this.lessThanSlashToken, this.name, this.greaterThanToken, GetDiagnostics(), annotations);
23826
=> new XmlEmptyElementSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.slashGreaterThanToken, diagnostics, GetAnnotations());
23829
=> new XmlEmptyElementSyntax(this.
Kind
, this.lessThanToken, this.name, this.attributes, this.slashGreaterThanToken, GetDiagnostics(), annotations);
23911
=> new XmlNameSyntax(this.
Kind
, this.prefix, this.localName, diagnostics, GetAnnotations());
23914
=> new XmlNameSyntax(this.
Kind
, this.prefix, this.localName, GetDiagnostics(), annotations);
23987
=> new XmlPrefixSyntax(this.
Kind
, this.prefix, this.colonToken, diagnostics, GetAnnotations());
23990
=> new XmlPrefixSyntax(this.
Kind
, this.prefix, this.colonToken, GetDiagnostics(), annotations);
24120
=> new XmlTextAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.textTokens, this.endQuoteToken, diagnostics, GetAnnotations());
24123
=> new XmlTextAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.textTokens, this.endQuoteToken, GetDiagnostics(), annotations);
24223
=> new XmlCrefAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.cref, this.endQuoteToken, diagnostics, GetAnnotations());
24226
=> new XmlCrefAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.cref, this.endQuoteToken, GetDiagnostics(), annotations);
24326
=> new XmlNameAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.identifier, this.endQuoteToken, diagnostics, GetAnnotations());
24329
=> new XmlNameAttributeSyntax(this.
Kind
, this.name, this.equalsToken, this.startQuoteToken, this.identifier, this.endQuoteToken, GetDiagnostics(), annotations);
24398
=> new XmlTextSyntax(this.
Kind
, this.textTokens, diagnostics, GetAnnotations());
24401
=> new XmlTextSyntax(this.
Kind
, this.textTokens, GetDiagnostics(), annotations);
24492
=> new XmlCDataSectionSyntax(this.
Kind
, this.startCDataToken, this.textTokens, this.endCDataToken, diagnostics, GetAnnotations());
24495
=> new XmlCDataSectionSyntax(this.
Kind
, this.startCDataToken, this.textTokens, this.endCDataToken, GetDiagnostics(), annotations);
24595
=> new XmlProcessingInstructionSyntax(this.
Kind
, this.startProcessingInstructionToken, this.name, this.textTokens, this.endProcessingInstructionToken, diagnostics, GetAnnotations());
24598
=> new XmlProcessingInstructionSyntax(this.
Kind
, this.startProcessingInstructionToken, this.name, this.textTokens, this.endProcessingInstructionToken, GetDiagnostics(), annotations);
24689
=> new XmlCommentSyntax(this.
Kind
, this.lessThanExclamationMinusMinusToken, this.textTokens, this.minusMinusGreaterThanToken, diagnostics, GetAnnotations());
24692
=> new XmlCommentSyntax(this.
Kind
, this.lessThanExclamationMinusMinusToken, this.textTokens, this.minusMinusGreaterThanToken, GetDiagnostics(), annotations);
24851
=> new IfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.ifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, diagnostics, GetAnnotations());
24854
=> new IfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.ifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, GetDiagnostics(), annotations);
24960
=> new ElifDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, diagnostics, GetAnnotations());
24963
=> new ElifDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elifKeyword, this.condition, this.endOfDirectiveToken, this.isActive, this.branchTaken, this.conditionValue, GetDiagnostics(), annotations);
25055
=> new ElseDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elseKeyword, this.endOfDirectiveToken, this.isActive, this.branchTaken, diagnostics, GetAnnotations());
25058
=> new ElseDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.elseKeyword, this.endOfDirectiveToken, this.isActive, this.branchTaken, GetDiagnostics(), annotations);
25145
=> new EndIfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endIfKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25148
=> new EndIfDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endIfKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25235
=> new RegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.regionKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25238
=> new RegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.regionKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25325
=> new EndRegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endRegionKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25328
=> new EndRegionDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.endRegionKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25415
=> new ErrorDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.errorKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25418
=> new ErrorDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.errorKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25505
=> new WarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.warningKeyword, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25508
=> new WarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.warningKeyword, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25595
=> new BadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.identifier, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25598
=> new BadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.identifier, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25694
=> new DefineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.defineKeyword, this.name, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25697
=> new DefineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.defineKeyword, this.name, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25793
=> new UndefDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.undefKeyword, this.name, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25796
=> new UndefDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.undefKeyword, this.name, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
25927
=> new LineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.line, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
25930
=> new LineDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.line, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26030
=> new LineDirectivePositionSyntax(this.
Kind
, this.openParenToken, this.line, this.commaToken, this.character, this.closeParenToken, diagnostics, GetAnnotations());
26033
=> new LineDirectivePositionSyntax(this.
Kind
, this.openParenToken, this.line, this.commaToken, this.character, this.closeParenToken, GetDiagnostics(), annotations);
26174
=> new LineSpanDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.start, this.minusToken, this.end, this.characterOffset, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26177
=> new LineSpanDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.lineKeyword, this.start, this.minusToken, this.end, this.characterOffset, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26300
=> new PragmaWarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.warningKeyword, this.disableOrRestoreKeyword, this.errorCodes, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26303
=> new PragmaWarningDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.warningKeyword, this.disableOrRestoreKeyword, this.errorCodes, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26426
=> new PragmaChecksumDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.checksumKeyword, this.file, this.guid, this.bytes, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26429
=> new PragmaChecksumDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.pragmaKeyword, this.checksumKeyword, this.file, this.guid, this.bytes, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26525
=> new ReferenceDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.referenceKeyword, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26528
=> new ReferenceDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.referenceKeyword, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26624
=> new LoadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.loadKeyword, this.file, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26627
=> new LoadDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.loadKeyword, this.file, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26714
=> new ShebangDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.exclamationToken, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26717
=> new ShebangDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.exclamationToken, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26822
=> new IgnoredDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.colonToken, this.content, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26825
=> new IgnoredDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.colonToken, this.content, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
26939
=> new NullableDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.nullableKeyword, this.settingToken, this.targetToken, this.endOfDirectiveToken, this.isActive, diagnostics, GetAnnotations());
26942
=> new NullableDirectiveTriviaSyntax(this.
Kind
, this.hashToken, this.nullableKeyword, this.settingToken, this.targetToken, this.endOfDirectiveToken, this.isActive, GetDiagnostics(), annotations);
28203
switch (identifier.
Kind
)
28229
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
28250
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
28271
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
28273
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
28294
if (colonColonToken.
Kind
!= SyntaxKind.ColonColonToken) throw new ArgumentException(nameof(colonColonToken));
28315
switch (keyword.
Kind
)
28373
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
28375
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
28396
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
28416
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
28418
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
28429
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
28431
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
28451
switch (managedOrUnmanagedKeyword.
Kind
)
28476
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
28478
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
28498
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
28519
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
28539
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
28541
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
28563
switch (identifier.
Kind
)
28589
if (omittedTypeArgumentToken.
Kind
!= SyntaxKind.OmittedTypeArgumentToken) throw new ArgumentException(nameof(omittedTypeArgumentToken));
28609
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
28612
switch (readOnlyKeyword.
Kind
)
28639
if (scopedKeyword.
Kind
!= SyntaxKind.ScopedKeyword) throw new ArgumentException(nameof(scopedKeyword));
28660
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
28663
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
28683
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
28685
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
28718
switch (operatorToken.
Kind
)
28751
if (awaitKeyword.
Kind
!= SyntaxKind.AwaitKeyword) throw new ArgumentException(nameof(awaitKeyword));
28780
switch (operatorToken.
Kind
)
28813
switch (operatorToken.
Kind
)
28840
if (operatorToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(operatorToken));
28861
if (operatorToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(operatorToken));
28901
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
28967
switch (operatorToken.
Kind
)
29031
switch (operatorToken.
Kind
)
29069
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
29072
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
29083
if (token.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token));
29103
if (token.
Kind
!= SyntaxKind.BaseKeyword) throw new ArgumentException(nameof(token));
29136
switch (token.
Kind
)
29172
if (token.
Kind
!= SyntaxKind.FieldKeyword) throw new ArgumentException(nameof(token));
29192
if (keyword.
Kind
!= SyntaxKind.MakeRefKeyword) throw new ArgumentException(nameof(keyword));
29194
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29197
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29207
if (keyword.
Kind
!= SyntaxKind.RefTypeKeyword) throw new ArgumentException(nameof(keyword));
29209
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29212
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29222
if (keyword.
Kind
!= SyntaxKind.RefValueKeyword) throw new ArgumentException(nameof(keyword));
29224
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29227
if (comma.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(comma));
29230
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29246
switch (keyword.
Kind
)
29253
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29256
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29266
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
29268
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29271
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29281
if (keyword.
Kind
!= SyntaxKind.TypeOfKeyword) throw new ArgumentException(nameof(keyword));
29283
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29286
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29296
if (keyword.
Kind
!= SyntaxKind.SizeOfKeyword) throw new ArgumentException(nameof(keyword));
29298
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29301
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29351
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29353
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29373
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
29375
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
29396
switch (refKindKeyword.
Kind
)
29485
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
29488
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
29499
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
29511
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
29521
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
29543
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
29562
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
29564
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
29584
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
29605
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
29617
if (withKeyword.
Kind
!= SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword));
29657
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
29659
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
29661
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
29671
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
29692
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
29694
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
29696
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
29707
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
29728
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
29730
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
29732
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
29743
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
29745
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
29784
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
29844
if (fromKeyword.
Kind
!= SyntaxKind.FromKeyword) throw new ArgumentException(nameof(fromKeyword));
29846
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
29848
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
29859
if (letKeyword.
Kind
!= SyntaxKind.LetKeyword) throw new ArgumentException(nameof(letKeyword));
29861
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
29863
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
29874
if (joinKeyword.
Kind
!= SyntaxKind.JoinKeyword) throw new ArgumentException(nameof(joinKeyword));
29876
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
29878
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
29881
if (onKeyword.
Kind
!= SyntaxKind.OnKeyword) throw new ArgumentException(nameof(onKeyword));
29884
if (equalsKeyword.
Kind
!= SyntaxKind.EqualsKeyword) throw new ArgumentException(nameof(equalsKeyword));
29895
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
29897
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
29917
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
29938
if (orderByKeyword.
Kind
!= SyntaxKind.OrderByKeyword) throw new ArgumentException(nameof(orderByKeyword));
29966
switch (ascendingOrDescendingKeyword.
Kind
)
29993
if (selectKeyword.
Kind
!= SyntaxKind.SelectKeyword) throw new ArgumentException(nameof(selectKeyword));
30014
if (groupKeyword.
Kind
!= SyntaxKind.GroupKeyword) throw new ArgumentException(nameof(groupKeyword));
30017
if (byKeyword.
Kind
!= SyntaxKind.ByKeyword) throw new ArgumentException(nameof(byKeyword));
30028
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
30030
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30051
if (omittedArraySizeExpressionToken.
Kind
!= SyntaxKind.OmittedArraySizeExpressionToken) throw new ArgumentException(nameof(omittedArraySizeExpressionToken));
30071
switch (stringStartToken.
Kind
)
30080
switch (stringEndToken.
Kind
)
30106
if (isKeyword.
Kind
!= SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword));
30127
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
30148
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
30169
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
30209
if (varKeyword.
Kind
!= SyntaxKind.VarKeyword) throw new ArgumentException(nameof(varKeyword));
30238
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30240
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30260
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
30262
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
30320
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30323
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30343
switch (operatorToken.
Kind
)
30399
switch (operatorToken.
Kind
)
30425
if (operatorToken.
Kind
!= SyntaxKind.NotKeyword) throw new ArgumentException(nameof(operatorToken));
30446
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
30448
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
30458
if (dotDotToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(dotDotToken));
30478
if (textToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(textToken));
30498
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
30501
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
30532
if (formatStringToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(formatStringToken));
30571
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
30573
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
30584
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30588
switch (semicolonToken.
Kind
)
30605
switch (awaitKeyword.
Kind
)
30614
switch (usingKeyword.
Kind
)
30623
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30652
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30672
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
30693
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30713
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
30733
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30735
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30756
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30776
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30796
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
30798
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
30816
if (gotoKeyword.
Kind
!= SyntaxKind.GotoKeyword) throw new ArgumentException(nameof(gotoKeyword));
30819
switch (caseOrDefaultKeyword.
Kind
)
30828
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30838
if (breakKeyword.
Kind
!= SyntaxKind.BreakKeyword) throw new ArgumentException(nameof(breakKeyword));
30840
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30860
if (continueKeyword.
Kind
!= SyntaxKind.ContinueKeyword) throw new ArgumentException(nameof(continueKeyword));
30862
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30882
if (returnKeyword.
Kind
!= SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword));
30884
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30894
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
30896
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30912
if (yieldKeyword.
Kind
!= SyntaxKind.YieldKeyword) throw new ArgumentException(nameof(yieldKeyword));
30914
switch (returnOrBreakKeyword.
Kind
)
30921
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30931
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
30933
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30936
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30947
if (doKeyword.
Kind
!= SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword));
30950
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
30952
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30955
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30957
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
30967
if (forKeyword.
Kind
!= SyntaxKind.ForKeyword) throw new ArgumentException(nameof(forKeyword));
30969
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
30971
if (firstSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(firstSemicolonToken));
30973
if (secondSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(secondSemicolonToken));
30975
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
30987
switch (awaitKeyword.
Kind
)
30995
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
30997
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31000
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31002
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
31005
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31017
switch (awaitKeyword.
Kind
)
31025
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
31027
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31030
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
31033
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31045
switch (awaitKeyword.
Kind
)
31053
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
31055
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31057
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31068
if (fixedKeyword.
Kind
!= SyntaxKind.FixedKeyword) throw new ArgumentException(nameof(fixedKeyword));
31070
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31073
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31090
switch (keyword.
Kind
)
31116
if (unsafeKeyword.
Kind
!= SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(unsafeKeyword));
31137
if (lockKeyword.
Kind
!= SyntaxKind.LockKeyword) throw new ArgumentException(nameof(lockKeyword));
31139
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31142
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31153
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
31155
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31158
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31169
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
31190
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
31193
switch (openParenToken.
Kind
)
31203
switch (closeParenToken.
Kind
)
31211
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
31213
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
31241
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
31253
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
31275
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
31297
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
31299
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
31301
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
31312
if (equalsGreaterThanToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(equalsGreaterThanToken));
31323
if (tryKeyword.
Kind
!= SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword));
31334
if (catchKeyword.
Kind
!= SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword));
31345
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31349
switch (identifier.
Kind
)
31357
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31367
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
31369
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31372
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31382
if (finallyKeyword.
Kind
!= SyntaxKind.FinallyKeyword) throw new ArgumentException(nameof(finallyKeyword));
31403
if (endOfFileToken.
Kind
!= SyntaxKind.EndOfFileToken) throw new ArgumentException(nameof(endOfFileToken));
31413
if (externKeyword.
Kind
!= SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword));
31415
if (aliasKeyword.
Kind
!= SyntaxKind.AliasKeyword) throw new ArgumentException(nameof(aliasKeyword));
31417
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31419
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31430
switch (globalKeyword.
Kind
)
31438
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
31441
switch (staticKeyword.
Kind
)
31450
switch (unsafeKeyword.
Kind
)
31459
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31469
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
31472
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
31474
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
31477
switch (semicolonToken.
Kind
)
31493
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
31496
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31506
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
31508
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
31519
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
31548
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
31550
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
31590
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
31610
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
31612
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
31633
switch (varianceKeyword.
Kind
)
31642
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31662
if (keyword.
Kind
!= SyntaxKind.ClassKeyword) throw new ArgumentException(nameof(keyword));
31664
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31667
switch (openBraceToken.
Kind
)
31676
switch (closeBraceToken.
Kind
)
31685
switch (semicolonToken.
Kind
)
31701
if (keyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(keyword));
31703
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31706
switch (openBraceToken.
Kind
)
31715
switch (closeBraceToken.
Kind
)
31724
switch (semicolonToken.
Kind
)
31740
if (keyword.
Kind
!= SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword));
31742
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31745
switch (openBraceToken.
Kind
)
31754
switch (closeBraceToken.
Kind
)
31763
switch (semicolonToken.
Kind
)
31787
switch (classOrStructKeyword.
Kind
)
31796
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31799
switch (openBraceToken.
Kind
)
31808
switch (closeBraceToken.
Kind
)
31817
switch (semicolonToken.
Kind
)
31833
if (enumKeyword.
Kind
!= SyntaxKind.EnumKeyword) throw new ArgumentException(nameof(enumKeyword));
31835
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31838
switch (openBraceToken.
Kind
)
31847
switch (closeBraceToken.
Kind
)
31856
switch (semicolonToken.
Kind
)
31872
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
31875
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31878
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
31888
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
31898
if (keyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(keyword));
31901
switch (openBraceToken.
Kind
)
31910
switch (closeBraceToken.
Kind
)
31919
switch (semicolonToken.
Kind
)
31935
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
31994
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
31997
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
32007
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
32009
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
32011
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
32037
switch (classOrStructKeyword.
Kind
)
32045
switch (questionToken.
Kind
)
32090
if (defaultKeyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(defaultKeyword));
32110
if (allowsKeyword.
Kind
!= SyntaxKind.AllowsKeyword) throw new ArgumentException(nameof(allowsKeyword));
32130
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
32132
if (structKeyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(structKeyword));
32153
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
32163
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
32166
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
32177
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
32198
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32202
switch (semicolonToken.
Kind
)
32219
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
32222
switch (checkedKeyword.
Kind
)
32230
switch (operatorToken.
Kind
)
32272
switch (semicolonToken.
Kind
)
32288
switch (implicitOrExplicitKeyword.
Kind
)
32295
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
32298
switch (checkedKeyword.
Kind
)
32309
switch (semicolonToken.
Kind
)
32325
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32329
switch (semicolonToken.
Kind
)
32351
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
32353
switch (thisOrBaseKeyword.
Kind
)
32379
if (tildeToken.
Kind
!= SyntaxKind.TildeToken) throw new ArgumentException(nameof(tildeToken));
32381
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32385
switch (semicolonToken.
Kind
)
32402
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32405
switch (semicolonToken.
Kind
)
32421
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
32442
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
32445
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
32448
switch (semicolonToken.
Kind
)
32465
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
32469
switch (semicolonToken.
Kind
)
32485
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
32487
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
32517
switch (keyword.
Kind
)
32529
switch (semicolonToken.
Kind
)
32545
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
32547
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
32567
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
32569
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
32590
switch (identifier.
Kind
)
32648
if (endOfComment.
Kind
!= SyntaxKind.EndOfDocumentationCommentToken) throw new ArgumentException(nameof(endOfComment));
32678
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
32718
if (extensionKeyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(extensionKeyword));
32721
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
32732
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
32752
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
32755
switch (checkedKeyword.
Kind
)
32763
switch (operatorToken.
Kind
)
32810
switch (implicitOrExplicitKeyword.
Kind
)
32817
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
32820
switch (checkedKeyword.
Kind
)
32837
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
32839
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
32859
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
32861
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
32882
switch (refKindKeyword.
Kind
)
32893
switch (readOnlyKeyword.
Kind
)
32940
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
32943
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
32953
if (lessThanSlashToken.
Kind
!= SyntaxKind.LessThanSlashToken) throw new ArgumentException(nameof(lessThanSlashToken));
32956
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
32976
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
32979
if (slashGreaterThanToken.
Kind
!= SyntaxKind.SlashGreaterThanToken) throw new ArgumentException(nameof(slashGreaterThanToken));
32989
if (localName.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(localName));
33009
if (prefix.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(prefix));
33011
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
33032
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
33034
switch (startQuoteToken.
Kind
)
33041
switch (endQuoteToken.
Kind
)
33057
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
33059
switch (startQuoteToken.
Kind
)
33067
switch (endQuoteToken.
Kind
)
33083
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
33085
switch (startQuoteToken.
Kind
)
33093
switch (endQuoteToken.
Kind
)
33126
if (startCDataToken.
Kind
!= SyntaxKind.XmlCDataStartToken) throw new ArgumentException(nameof(startCDataToken));
33128
if (endCDataToken.
Kind
!= SyntaxKind.XmlCDataEndToken) throw new ArgumentException(nameof(endCDataToken));
33148
if (startProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionStartToken) throw new ArgumentException(nameof(startProcessingInstructionToken));
33151
if (endProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionEndToken) throw new ArgumentException(nameof(endProcessingInstructionToken));
33161
if (lessThanExclamationMinusMinusToken.
Kind
!= SyntaxKind.XmlCommentStartToken) throw new ArgumentException(nameof(lessThanExclamationMinusMinusToken));
33163
if (minusMinusGreaterThanToken.
Kind
!= SyntaxKind.XmlCommentEndToken) throw new ArgumentException(nameof(minusMinusGreaterThanToken));
33183
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33185
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
33188
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33198
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33200
if (elifKeyword.
Kind
!= SyntaxKind.ElifKeyword) throw new ArgumentException(nameof(elifKeyword));
33203
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33213
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33215
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
33217
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33227
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33229
if (endIfKeyword.
Kind
!= SyntaxKind.EndIfKeyword) throw new ArgumentException(nameof(endIfKeyword));
33231
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33241
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33243
if (regionKeyword.
Kind
!= SyntaxKind.RegionKeyword) throw new ArgumentException(nameof(regionKeyword));
33245
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33255
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33257
if (endRegionKeyword.
Kind
!= SyntaxKind.EndRegionKeyword) throw new ArgumentException(nameof(endRegionKeyword));
33259
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33269
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33271
if (errorKeyword.
Kind
!= SyntaxKind.ErrorKeyword) throw new ArgumentException(nameof(errorKeyword));
33273
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33283
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33285
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
33287
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33297
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33300
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33310
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33312
if (defineKeyword.
Kind
!= SyntaxKind.DefineKeyword) throw new ArgumentException(nameof(defineKeyword));
33314
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
33316
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33326
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33328
if (undefKeyword.
Kind
!= SyntaxKind.UndefKeyword) throw new ArgumentException(nameof(undefKeyword));
33330
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
33332
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33342
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33344
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
33346
switch (line.
Kind
)
33355
switch (file.
Kind
)
33363
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33373
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
33375
if (line.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(line));
33377
if (commaToken.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(commaToken));
33379
if (character.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(character));
33381
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
33391
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33393
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
33396
if (minusToken.
Kind
!= SyntaxKind.MinusToken) throw new ArgumentException(nameof(minusToken));
33400
switch (characterOffset.
Kind
)
33408
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
33410
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33420
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33422
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
33424
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
33426
switch (disableOrRestoreKeyword.
Kind
)
33433
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33443
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33445
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
33447
if (checksumKeyword.
Kind
!= SyntaxKind.ChecksumKeyword) throw new ArgumentException(nameof(checksumKeyword));
33449
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
33451
if (guid.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(guid));
33453
if (bytes.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(bytes));
33455
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33465
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33467
if (referenceKeyword.
Kind
!= SyntaxKind.ReferenceKeyword) throw new ArgumentException(nameof(referenceKeyword));
33469
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
33471
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33481
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33483
if (loadKeyword.
Kind
!= SyntaxKind.LoadKeyword) throw new ArgumentException(nameof(loadKeyword));
33485
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
33487
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33497
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33499
if (exclamationToken.
Kind
!= SyntaxKind.ExclamationToken) throw new ArgumentException(nameof(exclamationToken));
33501
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33511
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33513
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
33516
switch (content.
Kind
)
33524
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33534
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
33536
if (nullableKeyword.
Kind
!= SyntaxKind.NullableKeyword) throw new ArgumentException(nameof(nullableKeyword));
33538
switch (settingToken.
Kind
)
33547
switch (targetToken.
Kind
)
33556
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
33570
switch (identifier.
Kind
)
33596
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
33617
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
33638
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
33640
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
33661
if (colonColonToken.
Kind
!= SyntaxKind.ColonColonToken) throw new ArgumentException(nameof(colonColonToken));
33682
switch (keyword.
Kind
)
33740
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
33742
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
33763
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
33783
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
33785
if (asteriskToken.
Kind
!= SyntaxKind.AsteriskToken) throw new ArgumentException(nameof(asteriskToken));
33796
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
33798
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
33818
switch (managedOrUnmanagedKeyword.
Kind
)
33843
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
33845
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
33865
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
33886
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
33906
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
33908
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
33930
switch (identifier.
Kind
)
33956
if (omittedTypeArgumentToken.
Kind
!= SyntaxKind.OmittedTypeArgumentToken) throw new ArgumentException(nameof(omittedTypeArgumentToken));
33976
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
33979
switch (readOnlyKeyword.
Kind
)
34006
if (scopedKeyword.
Kind
!= SyntaxKind.ScopedKeyword) throw new ArgumentException(nameof(scopedKeyword));
34027
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34030
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34050
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34052
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34085
switch (operatorToken.
Kind
)
34118
if (awaitKeyword.
Kind
!= SyntaxKind.AwaitKeyword) throw new ArgumentException(nameof(awaitKeyword));
34147
switch (operatorToken.
Kind
)
34180
switch (operatorToken.
Kind
)
34207
if (operatorToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(operatorToken));
34228
if (operatorToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(operatorToken));
34268
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
34334
switch (operatorToken.
Kind
)
34398
switch (operatorToken.
Kind
)
34436
if (questionToken.
Kind
!= SyntaxKind.QuestionToken) throw new ArgumentException(nameof(questionToken));
34439
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
34450
if (token.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(token));
34470
if (token.
Kind
!= SyntaxKind.BaseKeyword) throw new ArgumentException(nameof(token));
34503
switch (token.
Kind
)
34539
if (token.
Kind
!= SyntaxKind.FieldKeyword) throw new ArgumentException(nameof(token));
34559
if (keyword.
Kind
!= SyntaxKind.MakeRefKeyword) throw new ArgumentException(nameof(keyword));
34561
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34564
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34574
if (keyword.
Kind
!= SyntaxKind.RefTypeKeyword) throw new ArgumentException(nameof(keyword));
34576
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34579
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34589
if (keyword.
Kind
!= SyntaxKind.RefValueKeyword) throw new ArgumentException(nameof(keyword));
34591
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34594
if (comma.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(comma));
34597
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34613
switch (keyword.
Kind
)
34620
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34623
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34633
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
34635
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34638
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34648
if (keyword.
Kind
!= SyntaxKind.TypeOfKeyword) throw new ArgumentException(nameof(keyword));
34650
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34653
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34663
if (keyword.
Kind
!= SyntaxKind.SizeOfKeyword) throw new ArgumentException(nameof(keyword));
34665
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34668
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34718
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34720
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34740
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
34742
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
34763
switch (refKindKeyword.
Kind
)
34852
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
34855
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
34866
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
34878
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
34888
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
34910
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
34929
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
34931
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
34951
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
34972
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
34984
if (withKeyword.
Kind
!= SyntaxKind.WithKeyword) throw new ArgumentException(nameof(withKeyword));
35024
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35026
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
35028
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
35038
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35059
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
35061
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35063
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35074
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
35095
if (stackAllocKeyword.
Kind
!= SyntaxKind.StackAllocKeyword) throw new ArgumentException(nameof(stackAllocKeyword));
35097
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35099
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35110
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35112
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35151
if (operatorToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(operatorToken));
35211
if (fromKeyword.
Kind
!= SyntaxKind.FromKeyword) throw new ArgumentException(nameof(fromKeyword));
35213
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35215
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
35226
if (letKeyword.
Kind
!= SyntaxKind.LetKeyword) throw new ArgumentException(nameof(letKeyword));
35228
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35230
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
35241
if (joinKeyword.
Kind
!= SyntaxKind.JoinKeyword) throw new ArgumentException(nameof(joinKeyword));
35243
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35245
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
35248
if (onKeyword.
Kind
!= SyntaxKind.OnKeyword) throw new ArgumentException(nameof(onKeyword));
35251
if (equalsKeyword.
Kind
!= SyntaxKind.EqualsKeyword) throw new ArgumentException(nameof(equalsKeyword));
35262
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
35264
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35284
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
35305
if (orderByKeyword.
Kind
!= SyntaxKind.OrderByKeyword) throw new ArgumentException(nameof(orderByKeyword));
35333
switch (ascendingOrDescendingKeyword.
Kind
)
35360
if (selectKeyword.
Kind
!= SyntaxKind.SelectKeyword) throw new ArgumentException(nameof(selectKeyword));
35381
if (groupKeyword.
Kind
!= SyntaxKind.GroupKeyword) throw new ArgumentException(nameof(groupKeyword));
35384
if (byKeyword.
Kind
!= SyntaxKind.ByKeyword) throw new ArgumentException(nameof(byKeyword));
35395
if (intoKeyword.
Kind
!= SyntaxKind.IntoKeyword) throw new ArgumentException(nameof(intoKeyword));
35397
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35418
if (omittedArraySizeExpressionToken.
Kind
!= SyntaxKind.OmittedArraySizeExpressionToken) throw new ArgumentException(nameof(omittedArraySizeExpressionToken));
35438
switch (stringStartToken.
Kind
)
35447
switch (stringEndToken.
Kind
)
35473
if (isKeyword.
Kind
!= SyntaxKind.IsKeyword) throw new ArgumentException(nameof(isKeyword));
35494
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
35515
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
35536
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
35576
if (varKeyword.
Kind
!= SyntaxKind.VarKeyword) throw new ArgumentException(nameof(varKeyword));
35605
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35607
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35627
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
35629
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
35687
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
35690
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
35710
switch (operatorToken.
Kind
)
35766
switch (operatorToken.
Kind
)
35792
if (operatorToken.
Kind
!= SyntaxKind.NotKeyword) throw new ArgumentException(nameof(operatorToken));
35813
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
35815
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
35825
if (dotDotToken.
Kind
!= SyntaxKind.DotDotToken) throw new ArgumentException(nameof(dotDotToken));
35845
if (textToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(textToken));
35865
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
35868
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
35899
if (formatStringToken.
Kind
!= SyntaxKind.InterpolatedStringTextToken) throw new ArgumentException(nameof(formatStringToken));
35938
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
35940
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
35951
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
35955
switch (semicolonToken.
Kind
)
35972
switch (awaitKeyword.
Kind
)
35981
switch (usingKeyword.
Kind
)
35990
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36019
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36039
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
36060
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36080
if (underscoreToken.
Kind
!= SyntaxKind.UnderscoreToken) throw new ArgumentException(nameof(underscoreToken));
36100
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36102
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36123
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36143
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36163
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36165
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
36183
if (gotoKeyword.
Kind
!= SyntaxKind.GotoKeyword) throw new ArgumentException(nameof(gotoKeyword));
36186
switch (caseOrDefaultKeyword.
Kind
)
36195
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36205
if (breakKeyword.
Kind
!= SyntaxKind.BreakKeyword) throw new ArgumentException(nameof(breakKeyword));
36207
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36227
if (continueKeyword.
Kind
!= SyntaxKind.ContinueKeyword) throw new ArgumentException(nameof(continueKeyword));
36229
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36249
if (returnKeyword.
Kind
!= SyntaxKind.ReturnKeyword) throw new ArgumentException(nameof(returnKeyword));
36251
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36261
if (throwKeyword.
Kind
!= SyntaxKind.ThrowKeyword) throw new ArgumentException(nameof(throwKeyword));
36263
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36279
if (yieldKeyword.
Kind
!= SyntaxKind.YieldKeyword) throw new ArgumentException(nameof(yieldKeyword));
36281
switch (returnOrBreakKeyword.
Kind
)
36288
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36298
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
36300
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36303
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36314
if (doKeyword.
Kind
!= SyntaxKind.DoKeyword) throw new ArgumentException(nameof(doKeyword));
36317
if (whileKeyword.
Kind
!= SyntaxKind.WhileKeyword) throw new ArgumentException(nameof(whileKeyword));
36319
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36322
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36324
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36334
if (forKeyword.
Kind
!= SyntaxKind.ForKeyword) throw new ArgumentException(nameof(forKeyword));
36336
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36338
if (firstSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(firstSemicolonToken));
36340
if (secondSemicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(secondSemicolonToken));
36342
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36354
switch (awaitKeyword.
Kind
)
36362
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
36364
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36367
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36369
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
36372
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36384
switch (awaitKeyword.
Kind
)
36392
if (forEachKeyword.
Kind
!= SyntaxKind.ForEachKeyword) throw new ArgumentException(nameof(forEachKeyword));
36394
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36397
if (inKeyword.
Kind
!= SyntaxKind.InKeyword) throw new ArgumentException(nameof(inKeyword));
36400
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36412
switch (awaitKeyword.
Kind
)
36420
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
36422
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36424
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36435
if (fixedKeyword.
Kind
!= SyntaxKind.FixedKeyword) throw new ArgumentException(nameof(fixedKeyword));
36437
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36440
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36457
switch (keyword.
Kind
)
36483
if (unsafeKeyword.
Kind
!= SyntaxKind.UnsafeKeyword) throw new ArgumentException(nameof(unsafeKeyword));
36504
if (lockKeyword.
Kind
!= SyntaxKind.LockKeyword) throw new ArgumentException(nameof(lockKeyword));
36506
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36509
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36520
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
36522
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36525
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36536
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
36557
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
36560
switch (openParenToken.
Kind
)
36570
switch (closeParenToken.
Kind
)
36578
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
36580
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
36608
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
36620
if (keyword.
Kind
!= SyntaxKind.CaseKeyword) throw new ArgumentException(nameof(keyword));
36642
if (keyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(keyword));
36664
if (switchKeyword.
Kind
!= SyntaxKind.SwitchKeyword) throw new ArgumentException(nameof(switchKeyword));
36666
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
36668
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
36679
if (equalsGreaterThanToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(equalsGreaterThanToken));
36690
if (tryKeyword.
Kind
!= SyntaxKind.TryKeyword) throw new ArgumentException(nameof(tryKeyword));
36701
if (catchKeyword.
Kind
!= SyntaxKind.CatchKeyword) throw new ArgumentException(nameof(catchKeyword));
36712
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36716
switch (identifier.
Kind
)
36724
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36734
if (whenKeyword.
Kind
!= SyntaxKind.WhenKeyword) throw new ArgumentException(nameof(whenKeyword));
36736
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36739
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36749
if (finallyKeyword.
Kind
!= SyntaxKind.FinallyKeyword) throw new ArgumentException(nameof(finallyKeyword));
36770
if (endOfFileToken.
Kind
!= SyntaxKind.EndOfFileToken) throw new ArgumentException(nameof(endOfFileToken));
36780
if (externKeyword.
Kind
!= SyntaxKind.ExternKeyword) throw new ArgumentException(nameof(externKeyword));
36782
if (aliasKeyword.
Kind
!= SyntaxKind.AliasKeyword) throw new ArgumentException(nameof(aliasKeyword));
36784
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
36786
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36797
switch (globalKeyword.
Kind
)
36805
if (usingKeyword.
Kind
!= SyntaxKind.UsingKeyword) throw new ArgumentException(nameof(usingKeyword));
36808
switch (staticKeyword.
Kind
)
36817
switch (unsafeKeyword.
Kind
)
36826
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36836
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
36839
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
36841
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
36844
switch (semicolonToken.
Kind
)
36860
if (namespaceKeyword.
Kind
!= SyntaxKind.NamespaceKeyword) throw new ArgumentException(nameof(namespaceKeyword));
36863
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
36873
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
36875
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
36886
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
36915
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
36917
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
36957
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
36977
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
36979
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
37000
switch (varianceKeyword.
Kind
)
37009
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37029
if (keyword.
Kind
!= SyntaxKind.ClassKeyword) throw new ArgumentException(nameof(keyword));
37031
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37034
switch (openBraceToken.
Kind
)
37043
switch (closeBraceToken.
Kind
)
37052
switch (semicolonToken.
Kind
)
37068
if (keyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(keyword));
37070
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37073
switch (openBraceToken.
Kind
)
37082
switch (closeBraceToken.
Kind
)
37091
switch (semicolonToken.
Kind
)
37107
if (keyword.
Kind
!= SyntaxKind.InterfaceKeyword) throw new ArgumentException(nameof(keyword));
37109
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37112
switch (openBraceToken.
Kind
)
37121
switch (closeBraceToken.
Kind
)
37130
switch (semicolonToken.
Kind
)
37154
switch (classOrStructKeyword.
Kind
)
37163
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37166
switch (openBraceToken.
Kind
)
37175
switch (closeBraceToken.
Kind
)
37184
switch (semicolonToken.
Kind
)
37200
if (enumKeyword.
Kind
!= SyntaxKind.EnumKeyword) throw new ArgumentException(nameof(enumKeyword));
37202
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37205
switch (openBraceToken.
Kind
)
37214
switch (closeBraceToken.
Kind
)
37223
switch (semicolonToken.
Kind
)
37239
if (delegateKeyword.
Kind
!= SyntaxKind.DelegateKeyword) throw new ArgumentException(nameof(delegateKeyword));
37242
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37245
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
37255
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37265
if (keyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(keyword));
37268
switch (openBraceToken.
Kind
)
37277
switch (closeBraceToken.
Kind
)
37286
switch (semicolonToken.
Kind
)
37302
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
37361
if (whereKeyword.
Kind
!= SyntaxKind.WhereKeyword) throw new ArgumentException(nameof(whereKeyword));
37364
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
37374
if (newKeyword.
Kind
!= SyntaxKind.NewKeyword) throw new ArgumentException(nameof(newKeyword));
37376
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
37378
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
37404
switch (classOrStructKeyword.
Kind
)
37412
switch (questionToken.
Kind
)
37457
if (defaultKeyword.
Kind
!= SyntaxKind.DefaultKeyword) throw new ArgumentException(nameof(defaultKeyword));
37477
if (allowsKeyword.
Kind
!= SyntaxKind.AllowsKeyword) throw new ArgumentException(nameof(allowsKeyword));
37497
if (refKeyword.
Kind
!= SyntaxKind.RefKeyword) throw new ArgumentException(nameof(refKeyword));
37499
if (structKeyword.
Kind
!= SyntaxKind.StructKeyword) throw new ArgumentException(nameof(structKeyword));
37520
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
37530
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
37533
if (semicolonToken.
Kind
!= SyntaxKind.SemicolonToken) throw new ArgumentException(nameof(semicolonToken));
37544
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
37565
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37569
switch (semicolonToken.
Kind
)
37586
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
37589
switch (checkedKeyword.
Kind
)
37597
switch (operatorToken.
Kind
)
37639
switch (semicolonToken.
Kind
)
37655
switch (implicitOrExplicitKeyword.
Kind
)
37662
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
37665
switch (checkedKeyword.
Kind
)
37676
switch (semicolonToken.
Kind
)
37692
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37696
switch (semicolonToken.
Kind
)
37718
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
37720
switch (thisOrBaseKeyword.
Kind
)
37746
if (tildeToken.
Kind
!= SyntaxKind.TildeToken) throw new ArgumentException(nameof(tildeToken));
37748
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37752
switch (semicolonToken.
Kind
)
37769
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37772
switch (semicolonToken.
Kind
)
37788
if (arrowToken.
Kind
!= SyntaxKind.EqualsGreaterThanToken) throw new ArgumentException(nameof(arrowToken));
37809
if (eventKeyword.
Kind
!= SyntaxKind.EventKeyword) throw new ArgumentException(nameof(eventKeyword));
37812
if (identifier.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(identifier));
37815
switch (semicolonToken.
Kind
)
37832
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
37836
switch (semicolonToken.
Kind
)
37852
if (openBraceToken.
Kind
!= SyntaxKind.OpenBraceToken) throw new ArgumentException(nameof(openBraceToken));
37854
if (closeBraceToken.
Kind
!= SyntaxKind.CloseBraceToken) throw new ArgumentException(nameof(closeBraceToken));
37884
switch (keyword.
Kind
)
37896
switch (semicolonToken.
Kind
)
37912
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
37914
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
37934
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
37936
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
37957
switch (identifier.
Kind
)
38015
if (endOfComment.
Kind
!= SyntaxKind.EndOfDocumentationCommentToken) throw new ArgumentException(nameof(endOfComment));
38045
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
38085
if (extensionKeyword.
Kind
!= SyntaxKind.ExtensionKeyword) throw new ArgumentException(nameof(extensionKeyword));
38088
if (dotToken.
Kind
!= SyntaxKind.DotToken) throw new ArgumentException(nameof(dotToken));
38099
if (thisKeyword.
Kind
!= SyntaxKind.ThisKeyword) throw new ArgumentException(nameof(thisKeyword));
38119
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
38122
switch (checkedKeyword.
Kind
)
38130
switch (operatorToken.
Kind
)
38177
switch (implicitOrExplicitKeyword.
Kind
)
38184
if (operatorKeyword.
Kind
!= SyntaxKind.OperatorKeyword) throw new ArgumentException(nameof(operatorKeyword));
38187
switch (checkedKeyword.
Kind
)
38204
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
38206
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
38226
if (openBracketToken.
Kind
!= SyntaxKind.OpenBracketToken) throw new ArgumentException(nameof(openBracketToken));
38228
if (closeBracketToken.
Kind
!= SyntaxKind.CloseBracketToken) throw new ArgumentException(nameof(closeBracketToken));
38249
switch (refKindKeyword.
Kind
)
38260
switch (readOnlyKeyword.
Kind
)
38307
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
38310
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
38320
if (lessThanSlashToken.
Kind
!= SyntaxKind.LessThanSlashToken) throw new ArgumentException(nameof(lessThanSlashToken));
38323
if (greaterThanToken.
Kind
!= SyntaxKind.GreaterThanToken) throw new ArgumentException(nameof(greaterThanToken));
38343
if (lessThanToken.
Kind
!= SyntaxKind.LessThanToken) throw new ArgumentException(nameof(lessThanToken));
38346
if (slashGreaterThanToken.
Kind
!= SyntaxKind.SlashGreaterThanToken) throw new ArgumentException(nameof(slashGreaterThanToken));
38356
if (localName.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(localName));
38376
if (prefix.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(prefix));
38378
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
38399
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
38401
switch (startQuoteToken.
Kind
)
38408
switch (endQuoteToken.
Kind
)
38424
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
38426
switch (startQuoteToken.
Kind
)
38434
switch (endQuoteToken.
Kind
)
38450
if (equalsToken.
Kind
!= SyntaxKind.EqualsToken) throw new ArgumentException(nameof(equalsToken));
38452
switch (startQuoteToken.
Kind
)
38460
switch (endQuoteToken.
Kind
)
38493
if (startCDataToken.
Kind
!= SyntaxKind.XmlCDataStartToken) throw new ArgumentException(nameof(startCDataToken));
38495
if (endCDataToken.
Kind
!= SyntaxKind.XmlCDataEndToken) throw new ArgumentException(nameof(endCDataToken));
38515
if (startProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionStartToken) throw new ArgumentException(nameof(startProcessingInstructionToken));
38518
if (endProcessingInstructionToken.
Kind
!= SyntaxKind.XmlProcessingInstructionEndToken) throw new ArgumentException(nameof(endProcessingInstructionToken));
38528
if (lessThanExclamationMinusMinusToken.
Kind
!= SyntaxKind.XmlCommentStartToken) throw new ArgumentException(nameof(lessThanExclamationMinusMinusToken));
38530
if (minusMinusGreaterThanToken.
Kind
!= SyntaxKind.XmlCommentEndToken) throw new ArgumentException(nameof(minusMinusGreaterThanToken));
38550
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38552
if (ifKeyword.
Kind
!= SyntaxKind.IfKeyword) throw new ArgumentException(nameof(ifKeyword));
38555
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38565
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38567
if (elifKeyword.
Kind
!= SyntaxKind.ElifKeyword) throw new ArgumentException(nameof(elifKeyword));
38570
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38580
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38582
if (elseKeyword.
Kind
!= SyntaxKind.ElseKeyword) throw new ArgumentException(nameof(elseKeyword));
38584
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38594
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38596
if (endIfKeyword.
Kind
!= SyntaxKind.EndIfKeyword) throw new ArgumentException(nameof(endIfKeyword));
38598
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38608
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38610
if (regionKeyword.
Kind
!= SyntaxKind.RegionKeyword) throw new ArgumentException(nameof(regionKeyword));
38612
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38622
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38624
if (endRegionKeyword.
Kind
!= SyntaxKind.EndRegionKeyword) throw new ArgumentException(nameof(endRegionKeyword));
38626
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38636
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38638
if (errorKeyword.
Kind
!= SyntaxKind.ErrorKeyword) throw new ArgumentException(nameof(errorKeyword));
38640
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38650
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38652
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
38654
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38664
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38667
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38677
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38679
if (defineKeyword.
Kind
!= SyntaxKind.DefineKeyword) throw new ArgumentException(nameof(defineKeyword));
38681
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
38683
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38693
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38695
if (undefKeyword.
Kind
!= SyntaxKind.UndefKeyword) throw new ArgumentException(nameof(undefKeyword));
38697
if (name.
Kind
!= SyntaxKind.IdentifierToken) throw new ArgumentException(nameof(name));
38699
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38709
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38711
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
38713
switch (line.
Kind
)
38722
switch (file.
Kind
)
38730
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38740
if (openParenToken.
Kind
!= SyntaxKind.OpenParenToken) throw new ArgumentException(nameof(openParenToken));
38742
if (line.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(line));
38744
if (commaToken.
Kind
!= SyntaxKind.CommaToken) throw new ArgumentException(nameof(commaToken));
38746
if (character.
Kind
!= SyntaxKind.NumericLiteralToken) throw new ArgumentException(nameof(character));
38748
if (closeParenToken.
Kind
!= SyntaxKind.CloseParenToken) throw new ArgumentException(nameof(closeParenToken));
38758
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38760
if (lineKeyword.
Kind
!= SyntaxKind.LineKeyword) throw new ArgumentException(nameof(lineKeyword));
38763
if (minusToken.
Kind
!= SyntaxKind.MinusToken) throw new ArgumentException(nameof(minusToken));
38767
switch (characterOffset.
Kind
)
38775
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
38777
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38787
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38789
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
38791
if (warningKeyword.
Kind
!= SyntaxKind.WarningKeyword) throw new ArgumentException(nameof(warningKeyword));
38793
switch (disableOrRestoreKeyword.
Kind
)
38800
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38810
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38812
if (pragmaKeyword.
Kind
!= SyntaxKind.PragmaKeyword) throw new ArgumentException(nameof(pragmaKeyword));
38814
if (checksumKeyword.
Kind
!= SyntaxKind.ChecksumKeyword) throw new ArgumentException(nameof(checksumKeyword));
38816
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
38818
if (guid.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(guid));
38820
if (bytes.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(bytes));
38822
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38832
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38834
if (referenceKeyword.
Kind
!= SyntaxKind.ReferenceKeyword) throw new ArgumentException(nameof(referenceKeyword));
38836
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
38838
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38848
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38850
if (loadKeyword.
Kind
!= SyntaxKind.LoadKeyword) throw new ArgumentException(nameof(loadKeyword));
38852
if (file.
Kind
!= SyntaxKind.StringLiteralToken) throw new ArgumentException(nameof(file));
38854
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38864
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38866
if (exclamationToken.
Kind
!= SyntaxKind.ExclamationToken) throw new ArgumentException(nameof(exclamationToken));
38868
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38878
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38880
if (colonToken.
Kind
!= SyntaxKind.ColonToken) throw new ArgumentException(nameof(colonToken));
38883
switch (content.
Kind
)
38891
if (endOfDirectiveToken.
Kind
!= SyntaxKind.EndOfDirectiveToken) throw new ArgumentException(nameof(endOfDirectiveToken));
38901
if (hashToken.
Kind
!= SyntaxKind.HashToken) throw new ArgumentException(nameof(hashToken));
38903
if (nullableKeyword.
Kind
!= SyntaxKind.NullableKeyword) throw new ArgumentException(nameof(nullableKeyword));
38905
switch (settingToken.
Kind
)
38914
switch (targetToken.
Kind
)
38923
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
);