14 references to HtmlFacts
Microsoft.CodeAnalysis.Razor.Workspaces (14)
Completion\AbstractRazorCompletionFactsService.cs (1)
97
if (
HtmlFacts
.TryGetElementInfo(originalNode, out _, out _, closingForwardSlashOrCloseAngleToken: out var closingForwardSlashOrCloseAngleToken)
Completion\BlazorDataAttributeCompletionItemProvider.cs (1)
47
if (!
HtmlFacts
.TryGetAttributeInfo(
Completion\DirectiveAttributeEventParameterCompletionItemProvider.cs (1)
13
private static readonly ImmutableArray<RazorCompletionItem> s_eventCompletionItems =
HtmlFacts
.FormEvents
Completion\MarkupTransitionCompletionItemProvider.cs (1)
52
if (!
HtmlFacts
.TryGetElementInfo(owner, out var containingTagNameToken, out _, closingForwardSlashOrCloseAngleToken: out _) ||
Completion\TagHelperCompletionProvider.cs (8)
45
&&
HtmlFacts
.TryGetElementInfo(owner, out var containingTagNameToken, out _, out _)
55
|| descriptor.TagMatchingRules.Any(static rule =>
HtmlFacts
.IsHtmlTagName(rule.TagName)))
80
if (
HtmlFacts
.TryGetElementInfo(owner, out var containingTagNameToken, out var attributes, out _) &&
106
if (
HtmlFacts
.TryGetElementInfo(owner, out var containingTagNameToken, out var elementAttributes, out _) &&
118
if (
HtmlFacts
.TryGetAttributeInfo(
190
HtmlFacts
.IsHtmlTagName);
232
var sortText =
HtmlFacts
.IsHtmlTagName(containingTagName)
283
HtmlFacts
.IsHtmlTagName);
Hover\HoverFactory.cs (2)
52
if (
HtmlFacts
.TryGetElementInfo(owner, out var containingTagNameToken, out var attributes, out _) &&
101
if (
HtmlFacts
.TryGetAttributeInfo(owner, out containingTagNameToken, out _, out var selectedAttributeName, out var selectedAttributeNameLocation, out attributes) &&