151 writes to Kind
Microsoft.CodeAnalysis.CSharp (151)
Parser\Lexer.cs (140)
439
info.
Kind
= SyntaxKind.None;
458
info.
Kind
= TextWindow.TryAdvance('=') ? SyntaxKind.SlashEqualsToken : SyntaxKind.SlashToken;
483
info.
Kind
= SyntaxKind.DotToken;
494
info.
Kind
= SyntaxKind.DotToken;
501
info.
Kind
= SyntaxKind.CommaToken;
506
info.
Kind
= TextWindow.TryAdvance(':') ? SyntaxKind.ColonColonToken : SyntaxKind.ColonToken;
511
info.
Kind
= SyntaxKind.SemicolonToken;
516
info.
Kind
= SyntaxKind.TildeToken;
521
info.
Kind
= TextWindow.TryAdvance('=') ? SyntaxKind.ExclamationEqualsToken : SyntaxKind.ExclamationToken;
526
info.
Kind
=
533
info.
Kind
= TextWindow.TryAdvance('=') ? SyntaxKind.AsteriskEqualsToken : SyntaxKind.AsteriskToken;
538
info.
Kind
= SyntaxKind.OpenParenToken;
543
info.
Kind
= SyntaxKind.CloseParenToken;
548
info.
Kind
= SyntaxKind.OpenBraceToken;
553
info.
Kind
= SyntaxKind.CloseBraceToken;
558
info.
Kind
= SyntaxKind.OpenBracketToken;
563
info.
Kind
= SyntaxKind.CloseBracketToken;
568
info.
Kind
= TextWindow.TryAdvance('?')
575
info.
Kind
=
582
info.
Kind
=
590
info.
Kind
= TextWindow.TryAdvance('=') ? SyntaxKind.PercentEqualsToken : SyntaxKind.PercentToken;
595
info.
Kind
=
602
info.
Kind
= TextWindow.TryAdvance('=') ? SyntaxKind.CaretEqualsToken : SyntaxKind.CaretToken;
607
info.
Kind
=
614
info.
Kind
=
623
info.
Kind
= TextWindow.TryAdvance('=') ? SyntaxKind.GreaterThanEqualsToken : SyntaxKind.GreaterThanToken;
636
info.
Kind
= SyntaxKind.RazorContentToken;
701
info.
Kind
= SyntaxKind.EndOfFileToken;
930
info.
Kind
= SyntaxKind.IdentifierToken;
1051
info.
Kind
= SyntaxKind.NumericLiteralToken;
1852
info.
Kind
= SyntaxKind.IdentifierToken;
1857
info.
Kind
= keywordKind;
1862
if (!_cache.TryGetKeywordKind(info.Text, out info.
Kind
))
1864
info.ContextualKind = info.
Kind
= SyntaxKind.IdentifierToken;
1869
info.
Kind
= SyntaxKind.IdentifierToken;
1875
info.
Kind
= SyntaxKind.IdentifierToken;
1880
info.ContextualKind = info.
Kind
= SyntaxKind.IdentifierToken;
1887
info.
Kind
= SyntaxKind.None;
2565
info.
Kind
= SyntaxKind.EndOfDirectiveToken;
2571
info.
Kind
= SyntaxKind.EndOfDirectiveToken;
2576
info.
Kind
= SyntaxKind.HashToken;
2581
info.
Kind
= SyntaxKind.OpenParenToken;
2586
info.
Kind
= SyntaxKind.CloseParenToken;
2591
info.
Kind
= SyntaxKind.CommaToken;
2596
info.
Kind
= SyntaxKind.MinusToken;
2604
info.
Kind
= SyntaxKind.ExclamationEqualsToken;
2608
info.
Kind
= SyntaxKind.ExclamationToken;
2618
info.
Kind
= SyntaxKind.EqualsEqualsToken;
2622
info.
Kind
= SyntaxKind.EqualsToken;
2631
info.
Kind
= SyntaxKind.AmpersandAmpersandToken;
2641
info.
Kind
= SyntaxKind.BarBarToken;
2658
info.
Kind
= SyntaxKind.NumericLiteralToken;
2706
info.
Kind
= SyntaxKind.None;
2849
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
2857
info.
Kind
= SyntaxKind.XmlEntityLiteralToken;
2875
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
2885
info.
Kind
= SyntaxKind.XmlTextLiteralToken;
2897
info.
Kind
= SyntaxKind.XmlTextLiteralNewLineToken;
2911
info.
Kind
= SyntaxKind.XmlCommentStartToken;
2922
info.
Kind
= SyntaxKind.XmlCDataStartToken;
2928
info.
Kind
= SyntaxKind.LessThanToken;
2934
info.
Kind
= SyntaxKind.LessThanSlashToken;
2939
info.
Kind
= SyntaxKind.XmlProcessingInstructionStartToken;
2944
info.
Kind
= SyntaxKind.LessThanToken;
3216
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
3228
info.
Kind
= SyntaxKind.GreaterThanToken;
3235
info.
Kind
= SyntaxKind.SlashGreaterThanToken;
3243
info.
Kind
= SyntaxKind.DoubleQuoteToken;
3248
info.
Kind
= SyntaxKind.SingleQuoteToken;
3253
info.
Kind
= SyntaxKind.EqualsToken;
3258
info.
Kind
= SyntaxKind.ColonToken;
3272
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
3290
info.
Kind
= SyntaxKind.IdentifierToken;
3300
info.
Kind
= SyntaxKind.None;
3389
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
3400
info.
Kind
= SyntaxKind.DoubleQuoteToken;
3410
info.
Kind
= SyntaxKind.SingleQuoteToken;
3418
info.
Kind
= SyntaxKind.XmlEntityLiteralToken;
3423
info.
Kind
= SyntaxKind.LessThanToken;
3437
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
3447
info.
Kind
= SyntaxKind.XmlTextLiteralToken;
3547
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
3555
info.
Kind
= SyntaxKind.XmlEntityLiteralToken;
3562
info.
Kind
= SyntaxKind.EndOfFileToken;
3565
info.
Kind
= SyntaxKind.XmlTextLiteralToken;
3607
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
3622
info.
Kind
= SyntaxKind.DoubleQuoteToken;
3631
info.
Kind
= SyntaxKind.SingleQuoteToken;
3648
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
3663
info.
Kind
= SyntaxKind.XmlEntityLiteralToken;
3700
info.
Kind
= SyntaxKind.OpenParenToken;
3703
info.
Kind
= SyntaxKind.CloseParenToken;
3706
info.
Kind
= SyntaxKind.OpenBracketToken;
3709
info.
Kind
= SyntaxKind.CloseBracketToken;
3712
info.
Kind
= SyntaxKind.CommaToken;
3723
info.
Kind
= SyntaxKind.DotDotToken;
3727
info.
Kind
= SyntaxKind.DotToken;
3731
info.
Kind
= SyntaxKind.QuestionToken;
3734
info.
Kind
= SyntaxKind.AmpersandToken;
3737
info.
Kind
= SyntaxKind.AsteriskToken;
3740
info.
Kind
= SyntaxKind.BarToken;
3743
info.
Kind
= SyntaxKind.CaretToken;
3746
info.
Kind
= SyntaxKind.PercentToken;
3749
info.
Kind
= SyntaxKind.SlashToken;
3752
info.
Kind
= SyntaxKind.TildeToken;
3757
info.
Kind
= SyntaxKind.LessThanToken;
3760
info.
Kind
= SyntaxKind.GreaterThanToken;
3765
if (AdvanceIfMatches(':')) info.
Kind
= SyntaxKind.ColonColonToken;
3766
else info.
Kind
= SyntaxKind.ColonToken;
3769
if (AdvanceIfMatches('=')) info.
Kind
= SyntaxKind.EqualsEqualsToken;
3770
else info.
Kind
= SyntaxKind.EqualsToken;
3773
if (AdvanceIfMatches('=')) info.
Kind
= SyntaxKind.ExclamationEqualsToken;
3774
else info.
Kind
= SyntaxKind.ExclamationToken;
3777
if (AdvanceIfMatches('=')) info.
Kind
= SyntaxKind.GreaterThanEqualsToken;
3779
else info.
Kind
= SyntaxKind.GreaterThanToken;
3782
if (AdvanceIfMatches('=')) info.
Kind
= SyntaxKind.LessThanEqualsToken;
3783
else if (AdvanceIfMatches('<')) info.
Kind
= SyntaxKind.LessThanLessThanToken;
3784
else info.
Kind
= SyntaxKind.LessThanToken;
3787
if (AdvanceIfMatches('+')) info.
Kind
= SyntaxKind.PlusPlusToken;
3788
else info.
Kind
= SyntaxKind.PlusToken;
3791
if (AdvanceIfMatches('-')) info.
Kind
= SyntaxKind.MinusMinusToken;
3792
else info.
Kind
= SyntaxKind.MinusToken;
3828
info.
Kind
= SyntaxKind.IdentifierToken;
3834
info.
Kind
= keywordKind;
3840
info.ContextualKind = info.
Kind
= SyntaxKind.IdentifierToken;
3858
info.
Kind
= SyntaxKind.IdentifierToken;
3865
info.
Kind
= SyntaxKind.XmlEntityLiteralToken;
4013
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
4023
info.
Kind
= SyntaxKind.XmlCDataEndToken;
4040
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
4050
info.
Kind
= SyntaxKind.XmlTextLiteralToken;
4135
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
4147
info.
Kind
= SyntaxKind.XmlCommentEndToken;
4153
info.
Kind
= SyntaxKind.MinusMinusToken;
4170
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
4180
info.
Kind
= SyntaxKind.XmlTextLiteralToken;
4266
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
4276
info.
Kind
= SyntaxKind.XmlProcessingInstructionEndToken;
4293
info.
Kind
= SyntaxKind.EndOfDocumentationCommentToken;
4303
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)
340
Debug.Assert(info.
Kind
!= SyntaxKind.IdentifierToken || info.StringValue != null);
348
token = SyntaxFactory.Token(leadingNode, info.
Kind
, info.Text, info.StringValue, trailingNode);
352
switch (info.
Kind
)
388
token = SyntaxFactory.Literal(leadingNode, info.Text, info.
Kind
, info.Text, trailingNode);
396
token = SyntaxFactory.Literal(leadingNode, info.Text, info.
Kind
, info.StringValue, trailingNode);
412
token = SyntaxFactory.Token(leadingNode, info.
Kind
, trailingNode);
415
token = SyntaxFactory.Token(leadingNode, info.
Kind
, info.Text, trailingNode);
422
Debug.Assert(SyntaxFacts.IsPunctuationOrKeyword(info.
Kind
));
423
token = SyntaxFactory.Token(leadingNode, info.
Kind
, trailingNode);
1866
else if (SyntaxFacts.IsContextualKeyword(info.
Kind
))
1868
info.ContextualKind = info.
Kind
;
1873
if (info.
Kind
== SyntaxKind.None)
2501
this.LexDirectiveTrailingTrivia(info.
Kind
== SyntaxKind.EndOfDirectiveToken, ref directiveTriviaCache);
2713
Debug.Assert(info.
Kind
!= SyntaxKind.None || info.Text != null);
2714
return info.
Kind
!= SyntaxKind.None;
2889
Debug.Assert(info.
Kind
!= SyntaxKind.None || info.Text != null);
2890
return info.
Kind
!= SyntaxKind.None;
3194
if (errors == null && tagInfo.ContextualKind == SyntaxKind.None && tagInfo.
Kind
== SyntaxKind.IdentifierToken)
3307
Debug.Assert(info.
Kind
!= SyntaxKind.None || info.Text != null);
3308
return info.
Kind
!= SyntaxKind.None;
3451
Debug.Assert(info.
Kind
!= SyntaxKind.None || info.Text != null);
3452
return info.
Kind
!= SyntaxKind.None;
3796
if (info.
Kind
!= SyntaxKind.None)
3801
string valueText = SyntaxFacts.GetText(info.
Kind
);
3887
Debug.Assert(info.
Kind
!= SyntaxKind.None || info.Text != null);
3888
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
);