1 write to Kind
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNode.cs (1)
47Kind = kind;
38 references to Kind
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (7)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (5)
257var element = new XElement(node.Kind.ToString()); 269node.Kind.ToString(), 278node.Kind.ToString(), 285node.Kind.ToString(), 291node.Kind.ToString(),
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests.cs (2)
212var element = new XElement(node.Kind.ToString()); 227var element = new XElement(alternationNode.Kind.ToString());
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Utilities\StackFrameUtils.cs (2)
43Assert.Equal(expected.Kind, actual.Kind);
Microsoft.CodeAnalysis.Features (28)
EmbeddedLanguages\Json\JsonParser.cs (6)
192if (child.Kind == JsonKind.CommaValue) 199else if (child.Kind == JsonKind.Property) 212var diagnostic = node.Kind switch 241if (child.Kind == JsonKind.Property) 348allProperties = allProperties && value.Kind == JsonKind.Property; 436if (value.Kind == JsonKind.Property)
EmbeddedLanguages\Json\JsonParser.JsonNetSyntaxChecks.cs (4)
23var diagnostic = node.Kind switch 167if (child.Kind != JsonKind.CommaValue && nextChild.Kind != JsonKind.CommaValue) 178if (child.Kind != JsonKind.Property)
EmbeddedLanguages\Json\JsonParser.StrictSyntaxChecker.cs (5)
35var diagnostic = node.Kind switch 113if (child.Kind != JsonKind.Property) 136if (child.Kind == JsonKind.CommaValue) 141if (child.Kind != JsonKind.CommaValue) 157if (node.Value.Kind == JsonKind.CommaValue)
EmbeddedLanguages\Json\LanguageServices\JsonLanguageDetector.cs (1)
106if (node.Kind == JsonKind.Object)
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexDocumentHighlighter.cs (1)
128if (node.Kind is RegexKind.BackreferenceEscape or
EmbeddedLanguages\RegularExpressions\RegexNodes.cs (1)
407Debug.Assert(quantifier.Kind != RegexKind.LazyQuantifier);
EmbeddedLanguages\RegularExpressions\RegexParser.CaptureInfoAnalyzer.cs (1)
83switch (node.Kind)
EmbeddedLanguages\RegularExpressions\RegexParser.cs (6)
312if (current.Kind != RegexKind.Text) 371if (next.Kind == RegexKind.Text) 418if (current.Kind == RegexKind.SimpleOptionsGrouping) 1277if (left.Kind is RegexKind.CharacterClassEscape or RegexKind.CategoryEscape || 1340switch (component.Kind) 2012current.Kind == RegexKind.SimpleOptionsGrouping)
EmbeddedLanguages\StackFrame\StackFrameNodeDefinitions.cs (1)
108Debug.Assert(left.Kind is not StackFrameKind.Constructor);
EmbeddedLanguages\StackFrame\StackFrameParser.cs (2)
193if (lhs.Kind is StackFrameKind.Constructor || 194lhs is StackFrameQualifiedNameNode { Right.Kind: StackFrameKind.Constructor })
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNodeOrToken.cs (1)
38public TSyntaxKind Kind => Node?.Kind ?? Token.Kind;