1 write to Kind
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Syntax\GreenNode.cs (1)
22Kind = kind;
250 references to Kind
Microsoft.CodeAnalysis.Razor.Compiler (250)
Language\Legacy\CSharpCodeParser.cs (35)
553if (CurrentToken.Kind == SyntaxKind.LeftParenthesis || 554CurrentToken.Kind == SyntaxKind.LeftBracket) 568right = Language.FlipBracket(CurrentToken.Kind); 591if (next.Kind == SyntaxKind.Dot) 600else if (next.Kind == SyntaxKind.LeftBracket) 624if (next.Kind == SyntaxKind.Dot) 633if (nextNext.Kind == SyntaxKind.Identifier || nextNext.Kind == SyntaxKind.Keyword) 651else if (next.Kind == SyntaxKind.QuestionMark) 658else if (next.Kind == SyntaxKind.LeftBracket || next.Kind == SyntaxKind.LeftParenthesis) 788var lastWhitespace = tokens is [.., { Kind: SyntaxKind.Whitespace } whitespace] ? whitespace : null; 809var kind = CurrentToken.Kind; 991token.Kind is not SyntaxKind.Semicolon and 1023switch (nextToken.Kind) 1054if (Lookahead(2) is not { Kind: SyntaxKind.Identifier or SyntaxKind.Keyword }) 1070Debug.Assert(transition.Kind == SyntaxKind.Transition); 1328Debug.Assert(CurrentToken.Kind == SyntaxKind.Identifier || CurrentToken.Kind == SyntaxKind.Keyword); 1444TokenBuilder[0] is SyntaxToken { Kind: SyntaxKind.StringLiteral } token) 2001var type = token.Kind; 2250Debug.Assert(CurrentToken.Kind == SyntaxKind.Keyword && result.HasValue); 2267Debug.Assert(CurrentToken.Kind == SyntaxKind.Keyword && result.HasValue); 2433while (EnsureCurrent() && CurrentToken.Kind != SyntaxKind.Colon) 2435switch (CurrentToken.Kind) 2795token.Kind != SyntaxKind.CSharpComment && 2796token.Kind != SyntaxKind.Whitespace && 2797token.Kind != SyntaxKind.NewLine) 2941ReadWhile(static token => token.Kind == SyntaxKind.Whitespace, ref whitespace.AsRef()); 3084var left = CurrentToken.Kind; 3131if (NextIs(SyntaxKind.Transition) && Lookahead(2) is { Kind: SyntaxKind.Identifier or SyntaxKind.Keyword }) 3255Debug.Assert(CurrentToken.Kind == SyntaxKind.Transition); 3258Debug.Assert(CurrentToken.Kind is SyntaxKind.Identifier or SyntaxKind.Keyword); 3270Debug.Assert(CurrentToken.Kind == SyntaxKind.Keyword && 3297if (result is not CSharpSyntaxKind.None and { } value && token.Kind == SyntaxKind.Keyword)
Language\Legacy\DirectiveCSharpTokenizer.cs (2)
19if (result.Result != null && !_visitedFirstTokenStart && IsValidTokenType(result.Result.Kind)) 23else if (result.Result != null && _visitedFirstTokenStart && result.Result.Kind == SyntaxKind.NewLine)
Language\Legacy\DirectiveHtmlTokenizer.cs (1)
20if (result.Result != null && IsValidTokenType(result.Result.Kind))
Language\Legacy\HtmlMarkupParser.cs (66)
380static f => (f.Kind == SyntaxKind.Whitespace) || (f.Kind == SyntaxKind.NewLine), 428if (CurrentToken.Kind == SyntaxKind.Text && CurrentToken.Content.Length > 0 && CurrentToken.Content[0] == ':') 444else if (CurrentToken.Kind == SyntaxKind.OpenAngle) 468ParseMarkupNodes(builder, ParseMode.Text, token => token.Kind == SyntaxKind.Whitespace || token.Kind == SyntaxKind.NewLine); 473} while (!EndOfFile && CurrentToken.Kind != SyntaxKind.NewLine); 479if (!EndOfFile && CurrentToken.Kind == SyntaxKind.NewLine) 1076switch (CurrentToken.Kind) 1081var openQuoteKind = CurrentToken.Kind; 1083ParseMarkupNodes(miscAttributeContentBuilder, ParseMode.Text, token => token.Kind == openQuoteKind); 1135static token => token.Kind == SyntaxKind.Whitespace || token.Kind == SyntaxKind.NewLine, 1256token.Kind != SyntaxKind.Whitespace && 1257token.Kind != SyntaxKind.NewLine && 1258token.Kind != SyntaxKind.Equals && 1259token.Kind != SyntaxKind.CloseAngle && 1260token.Kind != SyntaxKind.OpenAngle && 1261(token.Kind != SyntaxKind.Transition || !self.Context.Options.AllowCSharpInMarkupAttributeArea) && 1262(token.Kind != SyntaxKind.ForwardSlash || !self.NextIs(SyntaxKind.CloseAngle)), 1276AcceptWhile(static token => token.Kind == SyntaxKind.Whitespace || token.Kind == SyntaxKind.NewLine); 1284static token => token.Kind == SyntaxKind.Whitespace || token.Kind == SyntaxKind.NewLine, 1291quote = CurrentToken.Kind; 1392static token => token.Kind == SyntaxKind.Whitespace || token.Kind == SyntaxKind.NewLine, 1465token.Kind != SyntaxKind.Whitespace && 1466token.Kind != SyntaxKind.NewLine && 1467token.Kind != SyntaxKind.Transition && 1486? token.Kind == quote // If quoted, just wait for the quote 1495return token.Kind == SyntaxKind.DoubleQuote || 1496token.Kind == SyntaxKind.SingleQuote || 1497token.Kind == SyntaxKind.OpenAngle || 1498token.Kind == SyntaxKind.Equals || 1499(token.Kind == SyntaxKind.ForwardSlash && NextIs(SyntaxKind.CloseAngle)) || 1500token.Kind == SyntaxKind.CloseAngle || 1501token.Kind == SyntaxKind.Whitespace || 1502token.Kind == SyntaxKind.NewLine; 1514ParseMarkupNodes(builder, ParseMode.Text, token => token.Kind == SyntaxKind.OpenAngle); 1628Debug.Assert(CurrentToken.Kind == SyntaxKind.Text && string.Equals(CurrentToken.Content, "cdata", StringComparison.OrdinalIgnoreCase)); 1694ParseMarkupNodes(htmlCommentBuilder, ParseMode.Text, t => t.Kind == SyntaxKind.DoubleHyphen); 1893ParseMarkupNodes(builder, ParseMode.Text, t => t.Kind == endSequence[0]); 1897while (matchLength < endSequence.Length && Lookahead(matchLength)?.Kind == endSequence[matchLength]) 1918if (EnsureCurrent() && (CurrentToken.Kind == SyntaxKind.Whitespace || CurrentToken.Kind == SyntaxKind.NewLine)) 1923while (EnsureCurrent() && (CurrentToken.Kind == SyntaxKind.Whitespace || CurrentToken.Kind == SyntaxKind.NewLine)) 1973if (_parseAsXml ? Lookahead(2)?.Kind == SyntaxKind.DoubleHyphen : IsHtmlCommentAhead()) 1977else if (Lookahead(2)?.Kind == SyntaxKind.LeftBracket && 1980Lookahead(4)?.Kind == SyntaxKind.LeftBracket) 2040potentialBang.Kind == SyntaxKind.Bang) 2045afterBang.Kind == SyntaxKind.Text && 2079if (EndOfFile || CurrentToken.Kind != SyntaxKind.DoubleHyphen) 2094if (token.Kind == SyntaxKind.DoubleHyphen) 2111else if (NextIs(ns => ns.Kind == SyntaxKind.Bang && NextIs(SyntaxKind.CloseAngle))) 2118else if (token.Kind == SyntaxKind.OpenAngle) 2121if (NextIs(ns => ns.Kind == SyntaxKind.Bang && NextIs(SyntaxKind.DoubleHyphen))) 2163ParseMarkupNodes(builder, ParseMode.Text, token => token.Kind is SyntaxKind.Text or SyntaxKind.OpenAngle); 2313return token.Kind == SyntaxKind.Text && token.Content == "-"; 2327var tokenType = token.Kind; 2339return token.Kind == SyntaxKind.CloseAngle || 2340token.Kind == SyntaxKind.ForwardSlash || 2341token.Kind == SyntaxKind.OpenAngle || 2342token.Kind == SyntaxKind.SingleQuote || 2343token.Kind == SyntaxKind.DoubleQuote;
Language\Legacy\ImplicitExpressionEditHandler.cs (1)
196if (newToken.Kind == SyntaxKind.Identifier)
Language\Legacy\LanguageCharacteristics.cs (2)
85return token != null && (token.Kind == GetKnownTokenType(type)); 95right = CreateToken(token.Content.Substring(splitAt), token.Kind, token.GetDiagnostics());
Language\Legacy\TokenizerBackedParser.cs (29)
29return token.Kind == SyntaxKind.Whitespace; 34return IsSpacingToken(token) || token.Kind == SyntaxKind.NewLine; 39return IsSpacingToken(token) || token.Kind == SyntaxKind.CSharpComment; 44return IsSpacingTokenIncludingNewLines(token) || token.Kind is SyntaxKind.CSharpComment or SyntaxKind.CSharpDirective or SyntaxKind.CSharpDisabledText; 184Debug.Assert(!EndOfFile && CurrentToken.Kind == expectedType); 229result = (type == CurrentToken.Kind); 241return NextIs(token => token != null && types.Any(t => t == token.Kind)); 262return PreviousToken != null && PreviousToken.Kind == type; 267return !EndOfFile && CurrentToken != null && CurrentToken.Kind == type; 276token.Kind == SyntaxKind.Whitespace || (includeNewLines && token.Kind == SyntaxKind.NewLine), 440Debug.Assert(!EndOfFile && CurrentToken != null && kind == CurrentToken.Kind); 460AcceptWhile(static (token, type) => type == token.Kind, type); 466AcceptWhile(static (token, arg) => arg.type1 == token.Kind || arg.type2 == token.Kind, (type1, type2)); 471AcceptWhile(static (token, arg) => arg.type1 == token.Kind || arg.type2 == token.Kind || arg.type3 == token.Kind, (type1, type2, type3)); 476AcceptWhile(static (token, types) => types.Any(token.Kind, static (expected, kind) => expected == kind), types); 481AcceptWhile(static (token, type) => type != token.Kind, type); 487AcceptWhile(static (token, arg) => arg.type1 != token.Kind && arg.type2 != token.Kind, (type1, type2)); 492AcceptWhile(static (token, arg) => arg.type1 != token.Kind && arg.type2 != token.Kind && arg.type3 != token.Kind, (type1, type2, type3)); 497AcceptWhile(static (token, types) => types.All(token.Kind, static (expected, kind) => expected != kind), types); 526if (token.Kind == SyntaxKind.NewLine) 530else if (token.Kind != SyntaxKind.Whitespace) 548if (CurrentToken == null || CurrentToken.Kind != kind)
Language\Syntax\Generated\Syntax.xml.Internal.Generated.cs (102)
80=> new RazorDocumentSyntax(Kind, _document, _endOfFile, diagnostics); 160=> new RazorCommentBlockSyntax(Kind, _startCommentTransition, _startCommentStar, _comment, _endCommentStar, _endCommentTransition, diagnostics); 222=> new RazorMetaCodeSyntax(Kind, _metaCode, _chunkGenerator, _editHandler, diagnostics); 276=> new GenericBlockSyntax(Kind, _children, diagnostics); 338=> new UnclassifiedTextLiteralSyntax(Kind, _literalTokens, _chunkGenerator, _editHandler, diagnostics); 405=> new MarkupBlockSyntax(Kind, _children, diagnostics); 467=> new MarkupTransitionSyntax(Kind, _transitionTokens, _chunkGenerator, _editHandler, diagnostics); 529=> new MarkupTextLiteralSyntax(Kind, _literalTokens, _chunkGenerator, _editHandler, diagnostics); 591=> new MarkupEphemeralTextLiteralSyntax(Kind, _literalTokens, _chunkGenerator, _editHandler, diagnostics); 645=> new MarkupCommentBlockSyntax(Kind, _children, diagnostics); 710=> new MarkupMinimizedAttributeBlockSyntax(Kind, _namePrefix, _name, diagnostics); 834=> new MarkupAttributeBlockSyntax(Kind, _namePrefix, _name, _nameSuffix, _equalsToken, _valuePrefix, _value, _valueSuffix, diagnostics); 888=> new MarkupMiscAttributeContentSyntax(Kind, _children, diagnostics); 959=> new MarkupLiteralAttributeValueSyntax(Kind, _prefix, _value, diagnostics); 1024=> new MarkupDynamicAttributeValueSyntax(Kind, _prefix, _value, diagnostics); 1183=> new MarkupElementSyntax(Kind, _markupStartTag, _body, _markupEndTag, diagnostics); 1300=> new MarkupStartTagSyntax(Kind, _openAngle, _bang, _name, _attributes, _forwardSlash, _closeAngle, _isMarkupTransition, _chunkGenerator, _editHandler, diagnostics); 1411=> new MarkupEndTagSyntax(Kind, _openAngle, _forwardSlash, _bang, _name, _miscAttributeContent, _closeAngle, _isMarkupTransition, _chunkGenerator, _editHandler, diagnostics); 1499=> new MarkupTagHelperElementSyntax(Kind, _tagHelperStartTag, _body, _tagHelperEndTag, _tagHelperInfo, diagnostics); 1612=> new MarkupTagHelperStartTagSyntax(Kind, _openAngle, _bang, _name, _attributes, _forwardSlash, _closeAngle, _chunkGenerator, _editHandler, diagnostics); 1719=> new MarkupTagHelperEndTagSyntax(Kind, _openAngle, _forwardSlash, _bang, _name, _miscAttributeContent, _closeAngle, _chunkGenerator, _editHandler, diagnostics); 1841=> new MarkupTagHelperAttributeSyntax(Kind, _namePrefix, _name, _nameSuffix, _equalsToken, _valuePrefix, _value, _valueSuffix, _tagHelperAttributeInfo, diagnostics); 1910=> new MarkupMinimizedTagHelperAttributeSyntax(Kind, _namePrefix, _name, _tagHelperAttributeInfo, diagnostics); 1964=> new MarkupTagHelperAttributeValueSyntax(Kind, _children, diagnostics); 2119=> new MarkupTagHelperDirectiveAttributeSyntax(Kind, _namePrefix, _transition, _name, _colon, _parameterName, _nameSuffix, _equalsToken, _valuePrefix, _value, _valueSuffix, _tagHelperAttributeInfo, diagnostics); 2221=> new MarkupMinimizedTagHelperDirectiveAttributeSyntax(Kind, _namePrefix, _transition, _name, _colon, _parameterName, _tagHelperAttributeInfo, diagnostics); 2288=> new CSharpCodeBlockSyntax(Kind, _children, diagnostics); 2344=> new CSharpTransitionSyntax(Kind, _transition, _chunkGenerator, _editHandler, diagnostics); 2406=> new CSharpStatementLiteralSyntax(Kind, _literalTokens, _chunkGenerator, _editHandler, diagnostics); 2468=> new CSharpExpressionLiteralSyntax(Kind, _literalTokens, _chunkGenerator, _editHandler, diagnostics); 2530=> new CSharpEphemeralTextLiteralSyntax(Kind, _literalTokens, _chunkGenerator, _editHandler, diagnostics); 2584=> new CSharpTemplateBlockSyntax(Kind, _children, diagnostics); 2660=> new CSharpStatementSyntax(Kind, _transition, _body, diagnostics); 2726=> new CSharpStatementBodySyntax(Kind, _openBrace, _csharpCode, _closeBrace, diagnostics); 2785=> new CSharpExplicitExpressionSyntax(Kind, _transition, _body, diagnostics); 2851=> new CSharpExplicitExpressionBodySyntax(Kind, _openParen, _csharpCode, _closeParen, diagnostics); 2910=> new CSharpImplicitExpressionSyntax(Kind, _transition, _body, diagnostics); 2958=> new CSharpImplicitExpressionBodySyntax(Kind, _csharpCode, diagnostics); 3036=> new RazorDirectiveSyntax(Kind, _transition, _body, _directiveDescriptor, diagnostics); 3099=> new RazorUsingDirectiveSyntax(Kind, _transition, _body, _directiveDescriptor, diagnostics); 3162=> new RazorDocumentationDirectiveSyntax(Kind, _transition, _body, _directiveDescriptor, diagnostics); 3227=> new RazorDirectiveBodySyntax(Kind, _keyword, _csharpCode, diagnostics); 3457if (endOfFile.Kind != SyntaxKind.EndOfFile) 3458ThrowHelper.ThrowArgumentException(nameof(endOfFile), $"Invalid SyntaxKind. Expected 'SyntaxKind.EndOfFile', but it was {endOfFile.Kind}"); 3468if (startCommentTransition.Kind != SyntaxKind.RazorCommentTransition) 3469ThrowHelper.ThrowArgumentException(nameof(startCommentTransition), $"Invalid SyntaxKind. Expected 'SyntaxKind.RazorCommentTransition', but it was {startCommentTransition.Kind}"); 3471if (startCommentStar.Kind != SyntaxKind.RazorCommentStar) 3472ThrowHelper.ThrowArgumentException(nameof(startCommentStar), $"Invalid SyntaxKind. Expected 'SyntaxKind.RazorCommentStar', but it was {startCommentStar.Kind}"); 3474if (comment.Kind != SyntaxKind.RazorCommentLiteral) 3475ThrowHelper.ThrowArgumentException(nameof(comment), $"Invalid SyntaxKind. Expected 'SyntaxKind.RazorCommentLiteral', but it was {comment.Kind}"); 3477if (endCommentStar.Kind != SyntaxKind.RazorCommentStar) 3478ThrowHelper.ThrowArgumentException(nameof(endCommentStar), $"Invalid SyntaxKind. Expected 'SyntaxKind.RazorCommentStar', but it was {endCommentStar.Kind}"); 3480if (endCommentTransition.Kind != SyntaxKind.RazorCommentTransition) 3481ThrowHelper.ThrowArgumentException(nameof(endCommentTransition), $"Invalid SyntaxKind. Expected 'SyntaxKind.RazorCommentTransition', but it was {endCommentTransition.Kind}"); 3555if (equalsToken.Kind != SyntaxKind.Equals) 3556ThrowHelper.ThrowArgumentException(nameof(equalsToken), $"Invalid SyntaxKind. Expected 'SyntaxKind.Equals', but it was {equalsToken.Kind}"); 3594if (openAngle.Kind != SyntaxKind.OpenAngle) 3595ThrowHelper.ThrowArgumentException(nameof(openAngle), $"Invalid SyntaxKind. Expected 'SyntaxKind.OpenAngle', but it was {openAngle.Kind}"); 3596if (bang is not null && bang.Kind is not (SyntaxKind.Bang or SyntaxKind.None)) 3597ThrowHelper.ThrowArgumentException(nameof(bang), $"Invalid SyntaxKind. Expected 'SyntaxKind.Bang' or 'SyntaxKind.None', but it was {bang.Kind}"); 3599if (name.Kind != SyntaxKind.Text) 3600ThrowHelper.ThrowArgumentException(nameof(name), $"Invalid SyntaxKind. Expected 'SyntaxKind.Text', but it was {name.Kind}"); 3601if (forwardSlash is not null && forwardSlash.Kind is not (SyntaxKind.ForwardSlash or SyntaxKind.None)) 3602ThrowHelper.ThrowArgumentException(nameof(forwardSlash), $"Invalid SyntaxKind. Expected 'SyntaxKind.ForwardSlash' or 'SyntaxKind.None', but it was {forwardSlash.Kind}"); 3604if (closeAngle.Kind != SyntaxKind.CloseAngle) 3605ThrowHelper.ThrowArgumentException(nameof(closeAngle), $"Invalid SyntaxKind. Expected 'SyntaxKind.CloseAngle', but it was {closeAngle.Kind}"); 3613if (openAngle.Kind != SyntaxKind.OpenAngle) 3614ThrowHelper.ThrowArgumentException(nameof(openAngle), $"Invalid SyntaxKind. Expected 'SyntaxKind.OpenAngle', but it was {openAngle.Kind}"); 3616if (forwardSlash.Kind != SyntaxKind.ForwardSlash) 3617ThrowHelper.ThrowArgumentException(nameof(forwardSlash), $"Invalid SyntaxKind. Expected 'SyntaxKind.ForwardSlash', but it was {forwardSlash.Kind}"); 3618if (bang is not null && bang.Kind is not (SyntaxKind.Bang or SyntaxKind.None)) 3619ThrowHelper.ThrowArgumentException(nameof(bang), $"Invalid SyntaxKind. Expected 'SyntaxKind.Bang' or 'SyntaxKind.None', but it was {bang.Kind}"); 3621if (name.Kind != SyntaxKind.Text) 3622ThrowHelper.ThrowArgumentException(nameof(name), $"Invalid SyntaxKind. Expected 'SyntaxKind.Text', but it was {name.Kind}"); 3624if (closeAngle.Kind != SyntaxKind.CloseAngle) 3625ThrowHelper.ThrowArgumentException(nameof(closeAngle), $"Invalid SyntaxKind. Expected 'SyntaxKind.CloseAngle', but it was {closeAngle.Kind}"); 3638if (openAngle.Kind != SyntaxKind.OpenAngle) 3639ThrowHelper.ThrowArgumentException(nameof(openAngle), $"Invalid SyntaxKind. Expected 'SyntaxKind.OpenAngle', but it was {openAngle.Kind}"); 3640if (bang is not null && bang.Kind is not (SyntaxKind.Bang or SyntaxKind.None)) 3641ThrowHelper.ThrowArgumentException(nameof(bang), $"Invalid SyntaxKind. Expected 'SyntaxKind.Bang' or 'SyntaxKind.None', but it was {bang.Kind}"); 3643if (name.Kind != SyntaxKind.Text) 3644ThrowHelper.ThrowArgumentException(nameof(name), $"Invalid SyntaxKind. Expected 'SyntaxKind.Text', but it was {name.Kind}"); 3645if (forwardSlash is not null && forwardSlash.Kind is not (SyntaxKind.ForwardSlash or SyntaxKind.None)) 3646ThrowHelper.ThrowArgumentException(nameof(forwardSlash), $"Invalid SyntaxKind. Expected 'SyntaxKind.ForwardSlash' or 'SyntaxKind.None', but it was {forwardSlash.Kind}"); 3648if (closeAngle.Kind != SyntaxKind.CloseAngle) 3649ThrowHelper.ThrowArgumentException(nameof(closeAngle), $"Invalid SyntaxKind. Expected 'SyntaxKind.CloseAngle', but it was {closeAngle.Kind}"); 3657if (openAngle.Kind != SyntaxKind.OpenAngle) 3658ThrowHelper.ThrowArgumentException(nameof(openAngle), $"Invalid SyntaxKind. Expected 'SyntaxKind.OpenAngle', but it was {openAngle.Kind}"); 3660if (forwardSlash.Kind != SyntaxKind.ForwardSlash) 3661ThrowHelper.ThrowArgumentException(nameof(forwardSlash), $"Invalid SyntaxKind. Expected 'SyntaxKind.ForwardSlash', but it was {forwardSlash.Kind}"); 3662if (bang is not null && bang.Kind is not (SyntaxKind.Bang or SyntaxKind.None)) 3663ThrowHelper.ThrowArgumentException(nameof(bang), $"Invalid SyntaxKind. Expected 'SyntaxKind.Bang' or 'SyntaxKind.None', but it was {bang.Kind}"); 3665if (name.Kind != SyntaxKind.Text) 3666ThrowHelper.ThrowArgumentException(nameof(name), $"Invalid SyntaxKind. Expected 'SyntaxKind.Text', but it was {name.Kind}"); 3668if (closeAngle.Kind != SyntaxKind.CloseAngle) 3669ThrowHelper.ThrowArgumentException(nameof(closeAngle), $"Invalid SyntaxKind. Expected 'SyntaxKind.CloseAngle', but it was {closeAngle.Kind}"); 3678if (equalsToken.Kind != SyntaxKind.Equals) 3679ThrowHelper.ThrowArgumentException(nameof(equalsToken), $"Invalid SyntaxKind. Expected 'SyntaxKind.Equals', but it was {equalsToken.Kind}"); 3706if (equalsToken.Kind != SyntaxKind.Equals) 3707ThrowHelper.ThrowArgumentException(nameof(equalsToken), $"Invalid SyntaxKind. Expected 'SyntaxKind.Equals', but it was {equalsToken.Kind}"); 3731if (transition.Kind != SyntaxKind.Transition) 3732ThrowHelper.ThrowArgumentException(nameof(transition), $"Invalid SyntaxKind. Expected 'SyntaxKind.Transition', but it was {transition.Kind}");
Language\Syntax\GreenNode.cs (5)
179=> $"{GetType().Name}<{Kind}>"; 247if (node1.Kind != node2.Kind) 262if (node1.Kind != node2.Kind)
Language\Syntax\InternalSyntax\SyntaxListBuilder.cs (1)
158if (_nodes[i].Value.Kind == kind)
Language\Syntax\InternalSyntax\SyntaxListOfT.cs (1)
81if ((element.Kind == kind))
Language\Syntax\InternalSyntax\SyntaxToken.cs (1)
30return new SyntaxToken(Kind, Content, diagnostics);
Language\Syntax\InternalSyntax\SyntaxTokenCache.cs (1)
31if (token != null && token.Kind == kind && token.Content == content)
Language\Syntax\SyntaxNode.cs (1)
23public SyntaxKind Kind => Green.Kind;
Language\Syntax\SyntaxNodeOrToken.cs (1)
58public SyntaxKind Kind => _token?.Kind ?? _nodeOrParent?.Kind ?? 0;
Language\Syntax\SyntaxToken.cs (1)
50public SyntaxKind Kind => Node?.Kind ?? 0;