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