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