7 instantiations of DirectiveTagHelperContribution
Microsoft.AspNetCore.Razor.Language.UnitTests (6)
RazorCodeDocumentExtensionsTest.cs (6)
73var contribution = new DirectiveTagHelperContribution(usingDirective.SpanStart, TagHelperCollection.Empty); 92new(directives[0].SpanStart, TagHelperCollection.Empty), 93new(directives[1].SpanStart, TagHelperCollection.Empty), 116new(directives[0].SpanStart, TagHelperCollection.Create([usedTagHelper])), 117new(directives[1].SpanStart, TagHelperCollection.Empty), 142codeDocument = codeDocument.WithDirectiveTagHelperContributions([new(directive.SpanStart, TagHelperCollection.Empty)]);
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\DefaultRazorTagHelperContextDiscoveryPhase.cs (1)
143_directiveContributions.Add(new(directive.SpanStart, contributedTagHelpers));
10 references to DirectiveTagHelperContribution
Microsoft.AspNetCore.Razor.Language.UnitTests (3)
IntegrationTests\TagHelpersIntegrationTest.cs (1)
178var contribution = Assert.Single(contributions);
RazorCodeDocumentExtensionsTest.cs (2)
73var contribution = new DirectiveTagHelperContribution(usingDirective.SpanStart, TagHelperCollection.Empty); 80var stored = Assert.Single(actual);
Microsoft.CodeAnalysis.Razor.Compiler (7)
Language\DefaultRazorTagHelperContextDiscoveryPhase.cs (2)
85private List<DirectiveTagHelperContribution>? _directiveContributions; 110public ImmutableArray<DirectiveTagHelperContribution> GetDirectiveTagHelperContributions()
Language\RazorCodeDocument.cs (4)
38private readonly ImmutableArray<DirectiveTagHelperContribution> _directiveTagHelperContributions; 53ImmutableArray<DirectiveTagHelperContribution> directiveTagHelperContributions) 282internal ImmutableArray<DirectiveTagHelperContribution> GetDirectiveTagHelperContributions() 285internal RazorCodeDocument WithDirectiveTagHelperContributions(ImmutableArray<DirectiveTagHelperContribution> value)
Language\RazorCodeDocumentExtensions.cs (1)
76foreach (var contribution in contributions)