151 writes to Kind
Microsoft.CodeAnalysis.CSharp (151)
Parser\Lexer.cs (140)
443
info.
Kind
= SyntaxKind.None;
462
info.
Kind
= TextWindow.TryAdvance('=') ? SyntaxKind.SlashEqualsToken : SyntaxKind.SlashToken;
487
info.
Kind
= SyntaxKind.DotToken;
498
info.
Kind
= SyntaxKind.DotToken;
505
info.
Kind
= SyntaxKind.CommaToken;
510
info.
Kind
= TextWindow.TryAdvance(':') ? SyntaxKind.ColonColonToken : SyntaxKind.ColonToken;
515
info.
Kind
= SyntaxKind.SemicolonToken;
520
info.
Kind
= SyntaxKind.TildeToken;
525
info.
Kind
= TextWindow.TryAdvance('=') ? SyntaxKind.ExclamationEqualsToken : SyntaxKind.ExclamationToken;
530
info.
Kind
=
537
info.
Kind
= TextWindow.TryAdvance('=') ? SyntaxKind.AsteriskEqualsToken : SyntaxKind.AsteriskToken;
542
info.
Kind
= SyntaxKind.OpenParenToken;
547
info.
Kind
= SyntaxKind.CloseParenToken;
552
info.
Kind
= SyntaxKind.OpenBraceToken;
557
info.
Kind
= SyntaxKind.CloseBraceToken;
562
info.
Kind
= SyntaxKind.OpenBracketToken;
567
info.
Kind
= SyntaxKind.CloseBracketToken;
572
info.
Kind
= TextWindow.TryAdvance('?')
579
info.
Kind
=
586
info.
Kind
=
594
info.
Kind
= TextWindow.TryAdvance('=') ? SyntaxKind.PercentEqualsToken : SyntaxKind.PercentToken;
599
info.
Kind
=
606
info.
Kind
= TextWindow.TryAdvance('=') ? SyntaxKind.CaretEqualsToken : SyntaxKind.CaretToken;
611
info.
Kind
=
618
info.
Kind
=
627
info.
Kind
= TextWindow.TryAdvance('=') ? SyntaxKind.GreaterThanEqualsToken : SyntaxKind.GreaterThanToken;
640
info.
Kind
= SyntaxKind.RazorContentToken;
705
info.
Kind
= SyntaxKind.EndOfFileToken;
934
info.
Kind
= SyntaxKind.IdentifierToken;
1055
info.
Kind
= SyntaxKind.NumericLiteralToken;
1856
info.
Kind
= SyntaxKind.IdentifierToken;
1861
info.
Kind
= keywordKind;
1866
if (!_cache.TryGetKeywordKind(info.Text, out info.
Kind
))
1868
info.ContextualKind = info.
Kind
= SyntaxKind.IdentifierToken;
1873
info.
Kind
= SyntaxKind.IdentifierToken;
1879
info.
Kind
= SyntaxKind.IdentifierToken;
1884
info.ContextualKind = info.
Kind
= SyntaxKind.IdentifierToken;
1891
info.
Kind
= SyntaxKind.None;
2569
info.
Kind
= SyntaxKind.EndOfDirectiveToken;
2575
info.
Kind
= SyntaxKind.EndOfDirectiveToken;
2580
info.
Kind
= SyntaxKind.HashToken;
2585
info.
Kind
= SyntaxKind.OpenParenToken;
2590
info.
Kind
= SyntaxKind.CloseParenToken;
2595
info.
Kind
= SyntaxKind.CommaToken;
2600
info.
Kind
= SyntaxKind.MinusToken;
2608
info.
Kind
= SyntaxKind.ExclamationEqualsToken;
2612
info.
Kind
= SyntaxKind.ExclamationToken;
2622
info.
Kind
= SyntaxKind.EqualsEqualsToken;
2626
info.
Kind
= SyntaxKind.EqualsToken;
2635
info.
Kind
= SyntaxKind.AmpersandAmpersandToken;
2645
info.
Kind
= SyntaxKind.BarBarToken;
2662
info.
Kind
= SyntaxKind.NumericLiteralToken;
2710
info.
Kind
= SyntaxKind.None;
2853
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
2861
info.
Kind
= SyntaxKind.XmlEntityLiteralToken;
2879
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
2889
info.
Kind
= SyntaxKind.XmlTextLiteralToken;
2901
info.
Kind
= SyntaxKind.XmlTextLiteralNewLineToken;
2915
info.
Kind
= SyntaxKind.XmlCommentStartToken;
2926
info.
Kind
= SyntaxKind.XmlCDataStartToken;
2932
info.
Kind
= SyntaxKind.LessThanToken;
2938
info.
Kind
= SyntaxKind.LessThanSlashToken;
2943
info.
Kind
= SyntaxKind.XmlProcessingInstructionStartToken;
2948
info.
Kind
= SyntaxKind.LessThanToken;
3220
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
3232
info.
Kind
= SyntaxKind.GreaterThanToken;
3239
info.
Kind
= SyntaxKind.SlashGreaterThanToken;
3247
info.
Kind
= SyntaxKind.DoubleQuoteToken;
3252
info.
Kind
= SyntaxKind.SingleQuoteToken;
3257
info.
Kind
= SyntaxKind.EqualsToken;
3262
info.
Kind
= SyntaxKind.ColonToken;
3276
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
3294
info.
Kind
= SyntaxKind.IdentifierToken;
3304
info.
Kind
= SyntaxKind.None;
3393
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
3404
info.
Kind
= SyntaxKind.DoubleQuoteToken;
3414
info.
Kind
= SyntaxKind.SingleQuoteToken;
3422
info.
Kind
= SyntaxKind.XmlEntityLiteralToken;
3427
info.
Kind
= SyntaxKind.LessThanToken;
3441
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
3451
info.
Kind
= SyntaxKind.XmlTextLiteralToken;
3551
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
3559
info.
Kind
= SyntaxKind.XmlEntityLiteralToken;
3566
info.
Kind
= SyntaxKind.EndOfFileToken;
3569
info.
Kind
= SyntaxKind.XmlTextLiteralToken;
3611
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
3626
info.
Kind
= SyntaxKind.DoubleQuoteToken;
3635
info.
Kind
= SyntaxKind.SingleQuoteToken;
3652
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
3667
info.
Kind
= SyntaxKind.XmlEntityLiteralToken;
3704
info.
Kind
= SyntaxKind.OpenParenToken;
3707
info.
Kind
= SyntaxKind.CloseParenToken;
3710
info.
Kind
= SyntaxKind.OpenBracketToken;
3713
info.
Kind
= SyntaxKind.CloseBracketToken;
3716
info.
Kind
= SyntaxKind.CommaToken;
3727
info.
Kind
= SyntaxKind.DotDotToken;
3731
info.
Kind
= SyntaxKind.DotToken;
3735
info.
Kind
= SyntaxKind.QuestionToken;
3738
info.
Kind
= SyntaxKind.AmpersandToken;
3741
info.
Kind
= SyntaxKind.AsteriskToken;
3744
info.
Kind
= SyntaxKind.BarToken;
3747
info.
Kind
= SyntaxKind.CaretToken;
3750
info.
Kind
= SyntaxKind.PercentToken;
3753
info.
Kind
= SyntaxKind.SlashToken;
3756
info.
Kind
= SyntaxKind.TildeToken;
3761
info.
Kind
= SyntaxKind.LessThanToken;
3764
info.
Kind
= SyntaxKind.GreaterThanToken;
3769
if (AdvanceIfMatches(':')) info.
Kind
= SyntaxKind.ColonColonToken;
3770
else info.
Kind
= SyntaxKind.ColonToken;
3773
if (AdvanceIfMatches('=')) info.
Kind
= SyntaxKind.EqualsEqualsToken;
3774
else info.
Kind
= SyntaxKind.EqualsToken;
3777
if (AdvanceIfMatches('=')) info.
Kind
= SyntaxKind.ExclamationEqualsToken;
3778
else info.
Kind
= SyntaxKind.ExclamationToken;
3781
if (AdvanceIfMatches('=')) info.
Kind
= SyntaxKind.GreaterThanEqualsToken;
3783
else info.
Kind
= SyntaxKind.GreaterThanToken;
3786
if (AdvanceIfMatches('=')) info.
Kind
= SyntaxKind.LessThanEqualsToken;
3787
else if (AdvanceIfMatches('<')) info.
Kind
= SyntaxKind.LessThanLessThanToken;
3788
else info.
Kind
= SyntaxKind.LessThanToken;
3791
if (AdvanceIfMatches('+')) info.
Kind
= SyntaxKind.PlusPlusToken;
3792
else info.
Kind
= SyntaxKind.PlusToken;
3795
if (AdvanceIfMatches('-')) info.
Kind
= SyntaxKind.MinusMinusToken;
3796
else info.
Kind
= SyntaxKind.MinusToken;
3832
info.
Kind
= SyntaxKind.IdentifierToken;
3838
info.
Kind
= keywordKind;
3844
info.ContextualKind = info.
Kind
= SyntaxKind.IdentifierToken;
3862
info.
Kind
= SyntaxKind.IdentifierToken;
3869
info.
Kind
= SyntaxKind.XmlEntityLiteralToken;
4017
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
4027
info.
Kind
= SyntaxKind.XmlCDataEndToken;
4044
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
4054
info.
Kind
= SyntaxKind.XmlTextLiteralToken;
4139
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
4151
info.
Kind
= SyntaxKind.XmlCommentEndToken;
4157
info.
Kind
= SyntaxKind.MinusMinusToken;
4174
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
4184
info.
Kind
= SyntaxKind.XmlTextLiteralToken;
4270
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
4280
info.
Kind
= SyntaxKind.XmlProcessingInstructionEndToken;
4297
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
4307
info.
Kind
= SyntaxKind.XmlTextLiteralToken;
Parser\Lexer_RawStringLiteral.cs (4)
111
info.
Kind
= SyntaxKind.Utf8SingleLineRawStringLiteralToken;
115
info.
Kind
= SyntaxKind.Utf8MultiLineRawStringLiteralToken;
128
info.
Kind
= SyntaxKind.SingleLineRawStringLiteralToken;
185
info.
Kind
= SyntaxKind.MultiLineRawStringLiteralToken;
Parser\Lexer_StringLiteral.cs (7)
28
info.
Kind
= SyntaxKind.StringLiteralToken;
77
info.
Kind
= SyntaxKind.CharacterLiteralToken;
98
info.
Kind
= SyntaxKind.Utf8StringLiteralToken;
102
info.
Kind
= SyntaxKind.StringLiteralToken;
243
info.
Kind
= SyntaxKind.Utf8StringLiteralToken;
247
info.
Kind
= SyntaxKind.StringLiteralToken;
292
info.
Kind
= SyntaxKind.InterpolatedStringToken;
29 references to Kind
Microsoft.CodeAnalysis.CSharp (29)
Parser\Lexer.cs (26)
344
Debug.Assert(info.
Kind
!= SyntaxKind.IdentifierToken || info.StringValue != null);
352
token = SyntaxFactory.Token(leadingNode, info.
Kind
, info.Text, info.StringValue, trailingNode);
356
switch (info.
Kind
)
392
token = SyntaxFactory.Literal(leadingNode, info.Text, info.
Kind
, info.Text, trailingNode);
400
token = SyntaxFactory.Literal(leadingNode, info.Text, info.
Kind
, info.StringValue, trailingNode);
416
token = SyntaxFactory.Token(leadingNode, info.
Kind
, trailingNode);
419
token = SyntaxFactory.Token(leadingNode, info.
Kind
, info.Text, trailingNode);
426
Debug.Assert(SyntaxFacts.IsPunctuationOrKeyword(info.
Kind
));
427
token = SyntaxFactory.Token(leadingNode, info.
Kind
, trailingNode);
1870
else if (SyntaxFacts.IsContextualKeyword(info.
Kind
))
1872
info.ContextualKind = info.
Kind
;
1877
if (info.
Kind
== SyntaxKind.None)
2505
this.LexDirectiveTrailingTrivia(info.
Kind
== SyntaxKind.EndOfDirectiveToken, ref directiveTriviaCache);
2717
Debug.Assert(info.
Kind
!= SyntaxKind.None || info.Text != null);
2718
return info.
Kind
!= SyntaxKind.None;
2893
Debug.Assert(info.
Kind
!= SyntaxKind.None || info.Text != null);
2894
return info.
Kind
!= SyntaxKind.None;
3198
if (errors == null && tagInfo.ContextualKind == SyntaxKind.None && tagInfo.
Kind
== SyntaxKind.IdentifierToken)
3311
Debug.Assert(info.
Kind
!= SyntaxKind.None || info.Text != null);
3312
return info.
Kind
!= SyntaxKind.None;
3455
Debug.Assert(info.
Kind
!= SyntaxKind.None || info.Text != null);
3456
return info.
Kind
!= SyntaxKind.None;
3800
if (info.
Kind
!= SyntaxKind.None)
3805
string valueText = SyntaxFacts.GetText(info.
Kind
);
3891
Debug.Assert(info.
Kind
!= SyntaxKind.None || info.Text != null);
3892
return info.
Kind
!= SyntaxKind.None;
Parser\Lexer_RawStringLiteral.cs (3)
104
Debug.Assert(info.
Kind
is (SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken));
108
switch (info.
Kind
)
119
throw ExceptionUtilities.UnexpectedValue(info.
Kind
);