48 references to TagHelperMatchingConventions
Microsoft.AspNetCore.Razor.Language.UnitTests (10)
TagHelperBinderTest.cs (7)
241.RequireTagName(TagHelperMatchingConventions.ElementCatchAllName) 246.RequireTagName(TagHelperMatchingConventions.ElementCatchAllName) 252.RequireTagName(TagHelperMatchingConventions.ElementCatchAllName) 381.TagMatchingRuleDescriptor(rule => rule.RequireTagName(TagHelperMatchingConventions.ElementCatchAllName)) 402.TagMatchingRuleDescriptor(rule => rule.RequireTagName(TagHelperMatchingConventions.ElementCatchAllName)) 509.TagMatchingRuleDescriptor(rule => rule.RequireTagName(TagHelperMatchingConventions.ElementCatchAllName)) 569.RequireTagName(TagHelperMatchingConventions.ElementCatchAllName)
TagHelperMatchingConventionsTest.cs (3)
130var result = TagHelperMatchingConventions.SatisfiesRequiredAttribute(requiredAttribute, attributeName, attributeValue); 147var result = TagHelperMatchingConventions.CanSatisfyBoundAttribute("style", boundAttribute); 164var result = TagHelperMatchingConventions.CanSatisfyBoundAttribute("asp-route-controller", boundAttribute);
Microsoft.CodeAnalysis.Razor.Compiler (16)
CSharp\DefaultTagHelperDescriptorFactory.cs (1)
352return TagHelperMatchingConventions.ElementCatchAllName;
Language\AllowedChildTagDescriptorBuilder.cs (1)
46else if (Name != TagHelperMatchingConventions.ElementCatchAllName)
Language\BoundAttributeDescriptorExtensions.cs (2)
32var isIndexerNameMatch = TagHelperMatchingConventions.SatisfiesBoundAttributeIndexer(attribute, name.AsSpan()); 43var isIndexerNameMatch = TagHelperMatchingConventions.SatisfiesBoundAttributeIndexer(attribute, name.AsSpan());
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (1)
976/// Populates the data that <see cref="TagHelperMatchingConventions"/> uses to match tag helpers.
Language\DefaultTagHelperResolutionPhase.ComponentTagHelperResolver.cs (2)
146TagHelperMatchingConventions.GetAttributeMatches(binding.TagHelpers, attributeName, ref matches.AsRef()); 850TagHelperMatchingConventions.GetAttributeMatches(binding.TagHelpers, attributeName, ref matches.AsRef());
Language\DefaultTagHelperResolutionPhase.LegacyTagHelperResolver.cs (3)
81if (!TagHelperMatchingConventions.HasAttributeMatches(binding.TagHelpers, unresolvedAttr.AttributeName)) 121TagHelperMatchingConventions.GetAttributeMatches(binding.TagHelpers, attributeName, ref matches.AsRef()); 271TagHelperMatchingConventions.GetAttributeMatches(binding.TagHelpers, attributeName, ref matches.AsRef());
Language\Legacy\TagHelperBlockRewriter.cs (2)
479if (TagHelperMatchingConventions.TryGetFirstBoundAttributeMatch(tagHelper, name, out var match)) 505if (TagHelperMatchingConventions.TryGetFirstBoundAttributeMatch(tagHelper, name, out var match))
Language\TagHelperAttributeMatch.cs (1)
21=> _isIndexerMatch ??= TagHelperMatchingConventions.SatisfiesBoundAttributeIndexer(Attribute, Name.AsSpan());
Language\TagHelperBinder.cs (2)
68if (tagName == TagHelperMatchingConventions.ElementCatchAllName) 199if (TagHelperMatchingConventions.SatisfiesRule(rule, tagName, parentTagName, attributes))
Language\TagMatchingRuleDescriptorBuilder.cs (1)
65else if (TagName != TagHelperMatchingConventions.ElementCatchAllName)
Microsoft.CodeAnalysis.Razor.UnitTests (7)
DefaultTagHelperDescriptorFactoryTest.cs (7)
420.TagMatchingRule(tagName: TagHelperMatchingConventions.ElementCatchAllName, static b => b 423.TagMatchingRule(tagName: TagHelperMatchingConventions.ElementCatchAllName, static b => b 427.TagMatchingRule(tagName: TagHelperMatchingConventions.ElementCatchAllName, static b => b 429.TagMatchingRule(tagName: TagHelperMatchingConventions.ElementCatchAllName, static b => b 433.TagMatchingRule(tagName: TagHelperMatchingConventions.ElementCatchAllName, static b => b 463.TagMatchingRule(tagName: TagHelperMatchingConventions.ElementCatchAllName, static b => b 466.TagMatchingRule(tagName: TagHelperMatchingConventions.ElementCatchAllName, static b => b
Microsoft.CodeAnalysis.Razor.Workspaces (15)
CodeActions\Razor\ComponentAccessibilityCodeActionProvider.cs (5)
256if (!TagHelperMatchingConventions.SatisfiesParentTag(rule, parentTagNameWithoutPrefix) || 257!TagHelperMatchingConventions.SatisfiesAttributes(rule, tagAttributes)) 264if (rule.TagName is null or TagHelperMatchingConventions.ElementCatchAllName) 268else if (TagHelperMatchingConventions.SatisfiesTagName(rule, tagNameWithoutPrefix)) 272else if (TagHelperMatchingConventions.SatisfiesTagName(rule, tagNameWithoutPrefix, StringComparison.OrdinalIgnoreCase))
Completion\DirectiveAttributeCompletionContext.cs (2)
23TagHelperMatchingConventions.SatisfiesBoundAttributeWithParameter(arg.parameter, name, arg.attribute)); 26=> TagHelperMatchingConventions.CanSatisfyBoundAttribute(SelectedAttributeName, attribute);
Completion\TagHelperCompletionService.cs (3)
195if (!TagHelperMatchingConventions.SatisfiesParentTag(rule, completionContext.ContainingParentTagName.AsSpan())) 200if (rule.TagName == TagHelperMatchingConventions.ElementCatchAllName) 237if (addRuleCompletions && (!checkAttributeRules || TagHelperMatchingConventions.SatisfiesAttributes(rule, tagAttributes)))
Hover\HoverFactory.cs (1)
186var isIndexer = TagHelperMatchingConventions.SatisfiesBoundAttributeIndexer(boundAttribute, attributeName.AsSpan());
TagHelperFacts.cs (4)
60if (TagHelperMatchingConventions.CanSatisfyBoundAttribute(attributeName, boundAttribute)) 103if (TagHelperMatchingConventions.SatisfiesTagName(rule, state.tagNameWithoutPrefix.Span) && 104TagHelperMatchingConventions.SatisfiesParentTag(rule, state.parentTag.AsSpan())) 127if (TagHelperMatchingConventions.SatisfiesParentTag(rule, parentTag.AsSpan()))