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)
130
var result =
TagHelperMatchingConventions
.SatisfiesRequiredAttribute(requiredAttribute, attributeName, attributeValue);
147
var result =
TagHelperMatchingConventions
.CanSatisfyBoundAttribute("style", boundAttribute);
164
var result =
TagHelperMatchingConventions
.CanSatisfyBoundAttribute("asp-route-controller", boundAttribute);
Microsoft.CodeAnalysis.Razor.Compiler (16)
CSharp\DefaultTagHelperDescriptorFactory.cs (1)
352
return
TagHelperMatchingConventions
.ElementCatchAllName;
Language\AllowedChildTagDescriptorBuilder.cs (1)
46
else if (Name !=
TagHelperMatchingConventions
.ElementCatchAllName)
Language\BoundAttributeDescriptorExtensions.cs (2)
32
var isIndexerNameMatch =
TagHelperMatchingConventions
.SatisfiesBoundAttributeIndexer(attribute, name.AsSpan());
43
var 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)
146
TagHelperMatchingConventions
.GetAttributeMatches(binding.TagHelpers, attributeName, ref matches.AsRef());
850
TagHelperMatchingConventions
.GetAttributeMatches(binding.TagHelpers, attributeName, ref matches.AsRef());
Language\DefaultTagHelperResolutionPhase.LegacyTagHelperResolver.cs (3)
81
if (!
TagHelperMatchingConventions
.HasAttributeMatches(binding.TagHelpers, unresolvedAttr.AttributeName))
121
TagHelperMatchingConventions
.GetAttributeMatches(binding.TagHelpers, attributeName, ref matches.AsRef());
271
TagHelperMatchingConventions
.GetAttributeMatches(binding.TagHelpers, attributeName, ref matches.AsRef());
Language\Legacy\TagHelperBlockRewriter.cs (2)
479
if (
TagHelperMatchingConventions
.TryGetFirstBoundAttributeMatch(tagHelper, name, out var match))
505
if (
TagHelperMatchingConventions
.TryGetFirstBoundAttributeMatch(tagHelper, name, out var match))
Language\TagHelperAttributeMatch.cs (1)
21
=> _isIndexerMatch ??=
TagHelperMatchingConventions
.SatisfiesBoundAttributeIndexer(Attribute, Name.AsSpan());
Language\TagHelperBinder.cs (2)
68
if (tagName ==
TagHelperMatchingConventions
.ElementCatchAllName)
199
if (
TagHelperMatchingConventions
.SatisfiesRule(rule, tagName, parentTagName, attributes))
Language\TagMatchingRuleDescriptorBuilder.cs (1)
65
else 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)
256
if (!
TagHelperMatchingConventions
.SatisfiesParentTag(rule, parentTagNameWithoutPrefix) ||
257
!
TagHelperMatchingConventions
.SatisfiesAttributes(rule, tagAttributes))
264
if (rule.TagName is null or
TagHelperMatchingConventions
.ElementCatchAllName)
268
else if (
TagHelperMatchingConventions
.SatisfiesTagName(rule, tagNameWithoutPrefix))
272
else if (
TagHelperMatchingConventions
.SatisfiesTagName(rule, tagNameWithoutPrefix, StringComparison.OrdinalIgnoreCase))
Completion\DirectiveAttributeCompletionContext.cs (2)
23
TagHelperMatchingConventions
.SatisfiesBoundAttributeWithParameter(arg.parameter, name, arg.attribute));
26
=>
TagHelperMatchingConventions
.CanSatisfyBoundAttribute(SelectedAttributeName, attribute);
Completion\TagHelperCompletionService.cs (3)
195
if (!
TagHelperMatchingConventions
.SatisfiesParentTag(rule, completionContext.ContainingParentTagName.AsSpan()))
200
if (rule.TagName ==
TagHelperMatchingConventions
.ElementCatchAllName)
237
if (addRuleCompletions && (!checkAttributeRules ||
TagHelperMatchingConventions
.SatisfiesAttributes(rule, tagAttributes)))
Hover\HoverFactory.cs (1)
186
var isIndexer =
TagHelperMatchingConventions
.SatisfiesBoundAttributeIndexer(boundAttribute, attributeName.AsSpan());
TagHelperFacts.cs (4)
60
if (
TagHelperMatchingConventions
.CanSatisfyBoundAttribute(attributeName, boundAttribute))
103
if (
TagHelperMatchingConventions
.SatisfiesTagName(rule, state.tagNameWithoutPrefix.Span) &&
104
TagHelperMatchingConventions
.SatisfiesParentTag(rule, state.parentTag.AsSpan()))
127
if (
TagHelperMatchingConventions
.SatisfiesParentTag(rule, parentTag.AsSpan()))