16 writes to TagName
ControllersFromServicesWebSite (1)
TagHelpers\InServicesTagHelper.cs (1)
21output.TagName = null;
Microsoft.AspNetCore.Mvc.TagHelpers (7)
ComponentTagHelper.cs (1)
103output.TagName = null;
EnvironmentTagHelper.cs (1)
73output.TagName = null;
LinkTagHelper.cs (1)
298output.TagName = null;
PartialTagHelper.cs (1)
110output.TagName = null;
PersistComponentStateTagHelper.cs (1)
56output.TagName = null;
ScriptTagHelper.cs (2)
255output.TagName = "script"; 311output.TagName = null;
Microsoft.AspNetCore.Razor (3)
TagHelpers\TagHelperOutput.cs (3)
48TagName = tagName; 186TagName = tagName; 208TagName = null;
Microsoft.AspNetCore.Razor.Runtime.Test (1)
Runtime\TagHelpers\TagHelperRunnerTest.cs (1)
214output.TagName = "foo";
Microsoft.AspNetCore.Razor.Test (1)
TagHelpers\TagHelperOutputTest.cs (1)
257TagName = null
TagHelpersWebSite (3)
TagHelpers\DefaultEncoderTagHelper.cs (1)
22output.TagName = "pre";
TagHelpers\TagCloudViewComponentTagHelper.cs (1)
63output.TagName = null;
TagHelpers\WebsiteInformationTagHelper.cs (1)
16output.TagName = "section";
154 references to TagName
Microsoft.AspNetCore.Mvc.Razor (2)
TagHelpers\UrlResolutionTagHelper.cs (2)
122if (output.TagName == null) 127if (ElementAttributeLookups.TryGetValue(output.TagName, out var attributeNames))
Microsoft.AspNetCore.Mvc.TagHelpers (2)
FormActionTagHelper.cs (2)
200output.TagName, 222Resources.FormatCannotDetermineAttributeFor(FormAction, '<' + output.TagName + '>'),
Microsoft.AspNetCore.Mvc.TagHelpers.Test (129)
AnchorTagHelperTest.cs (6)
84Assert.Equal(expectedTagName, output.TagName); 132Assert.Equal("a", output.TagName); 184Assert.Equal("a", output.TagName); 242Assert.Equal("a", output.TagName); 301Assert.Equal("a", output.TagName); 359Assert.Equal("a", output.TagName);
ComponentTagHelperTest.cs (1)
42Assert.Null(output.TagName);
EnvironmentTagHelperTest.cs (4)
102Assert.Null(output.TagName); 146Assert.Null(output.TagName); 179Assert.Null(output.TagName); 204Assert.Null(output.TagName);
FormActionTagHelperTest.cs (6)
87Assert.Equal(expectedTagName, output.TagName); 161Assert.Equal(expectedTagName, output.TagName); 247Assert.Equal("button", output.TagName); 305Assert.Equal("button", output.TagName); 378Assert.Equal("submit", output.TagName); 431Assert.Equal("submit", output.TagName);
FormTagHelperTest.cs (14)
122Assert.Equal(expectedTagName, output.TagName); 176Assert.Equal(expectedTagName, output.TagName); 234Assert.Equal(expectedTagName, output.TagName); 292Assert.Equal(expectedTagName, output.TagName); 366Assert.Equal(expectedTagName, output.TagName); 423Assert.Equal("form", output.TagName); 494Assert.Equal("form", output.TagName); 547Assert.Equal("form", output.TagName); 617Assert.Equal("form", output.TagName); 671Assert.Equal("form", output.TagName); 728Assert.Equal("form", output.TagName); 786Assert.Equal("form", output.TagName); 840Assert.Equal("form", output.TagName); 997Assert.Equal("form", output.TagName);
ImageTagHelperTest.cs (6)
119Assert.Equal(expectedOutput.TagName, output.TagName); 158Assert.Equal("img", output.TagName); 210Assert.Equal("img", output.TagName); 253Assert.Equal("img", output.TagName); 285Assert.Equal("img", output.TagName);
InputTagHelperTest.cs (25)
393Assert.Equal(expectedTagName, output.TagName); 449Assert.Equal(expectedTagName, output.TagName); 500Assert.Equal(expectedTagName, output.TagName); 556Assert.Equal(expectedTagName, output.TagName); 691Assert.Equal(expectedTagName, output.TagName); 762Assert.Equal(expectedTagName, output.TagName); 833Assert.Equal(expectedTagName, output.TagName); 956Assert.Equal(expectedTagName, output.TagName); 1016Assert.Equal(expectedTagName, output.TagName); 1076Assert.Equal(expectedTagName, output.TagName); 1136Assert.Equal(expectedTagName, output.TagName); 1319Assert.Equal(expectedTagName, output.TagName); 1379Assert.Equal(expectedTagName, output.TagName); 1484Assert.Equal(expectedTagName, output.TagName); 1579Assert.Equal(expectedTagName, output.TagName); 1697Assert.Equal(expectedTagName, output.TagName); 1813Assert.Equal(expectedTagName, output.TagName); 1882Assert.Equal(expectedTagName, output.TagName); 1951Assert.Equal(expectedTagName, output.TagName); 2045Assert.Equal(expectedTagName, output.TagName); 2111Assert.Equal(expectedType, output.TagName); 2168Assert.Equal(expectedType, output.TagName); 2243Assert.Equal(expectedType, output.TagName); 2304Assert.Equal(expectedType, output.TagName); 2367Assert.Equal(expectedType, output.TagName);
LabelTagHelperTest.cs (1)
225Assert.Equal(expectedTagName, output.TagName);
LinkTagHelperTest.cs (16)
317Assert.NotNull(output.TagName); 404Assert.Null(output.TagName); 540Assert.NotNull(output.TagName); 559Assert.NotNull(output.TagName); 599Assert.Equal("link", output.TagName); 640Assert.Equal("link", output.TagName); 693Assert.Equal("link", output.TagName); 724Assert.Equal("link", output.TagName); 758Assert.Equal("link", output.TagName); 800Assert.Equal("link", output.TagName); 830Assert.Equal("link", output.TagName); 883Assert.Equal("link", output.TagName); 938Assert.Equal("link", output.TagName); 1008Assert.Equal("link", output.TagName); 1048Assert.Equal("link", output.TagName); 1090Assert.Equal("link", output.TagName);
OptionTagHelperTest.cs (3)
405expectedTagHelperOutput.TagName, 436Assert.Equal(expectedTagHelperOutput.TagName, output.TagName);
PersistComponentStateTagHelperTest.cs (4)
51Assert.Null(output.TagName); 73Assert.Null(output.TagName); 100Assert.Null(output.TagName); 130Assert.Null(output.TagName);
ScriptTagHelperTest.cs (18)
293Assert.NotNull(output.TagName); 380Assert.Null(output.TagName); 468Assert.NotNull(output.TagName); 488Assert.Equal("script", output.TagName); 558Assert.Equal("script", output.TagName); 611Assert.Equal("script", output.TagName); 637Assert.Equal("script", output.TagName); 667Assert.Equal("script", output.TagName); 705Assert.Equal("script", output.TagName); 750Assert.Equal("script", output.TagName); 793Assert.Equal("script", output.TagName); 832Assert.Equal("script", output.TagName); 860Assert.Equal("script", output.TagName); 892Assert.Equal("script", output.TagName); 945Assert.Equal("script", output.TagName); 983Assert.Equal("script", output.TagName); 1022Assert.Equal("script", output.TagName); 1061Assert.Equal("script", output.TagName);
SelectTagHelperTest.cs (6)
244Assert.Equal(expectedTagName, output.TagName); 343Assert.Equal(expectedTagName, output.TagName); 424Assert.Equal(expectedTagName, output.TagName); 523Assert.Equal(expectedTagName, output.TagName); 771Assert.Equal(expectedTagName, output.TagName); 822Assert.Equal(expectedTagName, output.TagName);
TextAreaTagHelperTest.cs (2)
154Assert.Equal(expectedTagName, output.TagName); 227Assert.Equal(expectedTagName, output.TagName);
ValidationMessageTagHelperTest.cs (7)
85Assert.Equal(expectedTagName, output.TagName); 176Assert.Equal(expectedTagName, output.TagName); 227Assert.Equal(expectedTagName, output.TagName); 283Assert.Equal("span", output.TagName); 345Assert.Equal("span", output.TagName); 407Assert.Equal("span", output.TagName); 448Assert.Equal("span", output.TagName);
ValidationSummaryTagHelperTest.cs (10)
92Assert.Equal(expectedTagName, output.TagName); 130Assert.Null(output.TagName); 198Assert.Null(output.TagName); 266Assert.Equal(expectedTagName, output.TagName); 332Assert.Equal(expectedTagName, output.TagName); 385Assert.Equal("div", output.TagName); 441Assert.Equal("div", output.TagName); 500Assert.Equal("div", output.TagName); 556Assert.Equal("div", output.TagName); 644Assert.Equal(expectedTagName, output.TagName);
Microsoft.AspNetCore.Razor (10)
TagHelpers\TagHelperOutput.cs (10)
203/// Sets <see cref="TagName"/> to <c>null</c>, and clears <see cref="PreElement"/>, <see cref="PreContent"/>, 285var isTagNameNullOrWhitespace = string.IsNullOrWhiteSpace(TagName); 290destination.AppendHtml(TagName); 321destination.AppendHtml(TagName); 334var isTagNameNullOrWhitespace = string.IsNullOrWhiteSpace(TagName); 339destination.AppendHtml(TagName); 368destination.AppendHtml(TagName); 389var isTagNameNullOrWhitespace = string.IsNullOrWhiteSpace(TagName); 394writer.Write(TagName); 425writer.Write(TagName);
Microsoft.AspNetCore.Razor.Runtime.Test (5)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (1)
130Assert.Equal(updatedTagName, output.TagName);
Runtime\TagHelpers\TagHelperRunnerTest.cs (1)
166Assert.Equal("foo", output.TagName);
Runtime\TagHelpers\TagHelperScopeManagerTest.cs (3)
135Assert.Equal("p", output.TagName); 150Assert.Equal("div", output.TagName); 183Assert.Equal("p", output.TagName);
Microsoft.AspNetCore.Razor.Test (4)
TagHelpers\TagHelperOutputTest.cs (4)
46Assert.Equal(expectedTagName, output.TagName); 248Assert.Null(tagHelperOutput.TagName); 261Assert.Null(tagHelperOutput.TagName); 331Assert.Null(tagHelperOutput.TagName);
TagHelpersWebSite (2)
TagHelpers\PrettyTagHelper.cs (2)
38if (output.TagName == null) 46if (PrettyTagStyles.TryGetValue(output.TagName, out prettyStyle))