21 references to TagStructure
Microsoft.CodeAnalysis.Razor.Compiler (19)
CSharp\DefaultTagHelperDescriptorFactory.cs (4)
110
var
tagStructure = HtmlTargetElementAttribute_TagStructure(targetElementAttribute);
355
private static
TagStructure
HtmlTargetElementAttribute_TagStructure(AttributeData attribute)
362
return (
TagStructure
)value;
366
return
TagStructure
.Unspecified;
Language\DefaultTagHelperResolutionPhase.cs (4)
455
if (boundRulesInfo.Rules.Any(static rule => rule.TagStructure ==
TagStructure
.WithoutEndTag))
1134
/// Checks for inconsistent <see cref="
TagStructure
"/> values across all bound rules
1143
TagStructure
? baseStructure = null;
1149
if (rule.TagStructure !=
TagStructure
.Unspecified)
Language\Legacy\TagHelperBlockRewriter.cs (2)
33
var nonDefaultRule = boundRulesInfo.Rules.FirstOrDefault(static rule => rule.TagStructure !=
TagStructure
.Unspecified);
35
if (nonDefaultRule?.TagStructure ==
TagStructure
.WithoutEndTag)
Language\Legacy\TagHelperParseTreeRewriter.cs (3)
361
var invalidRule = boundRulesInfo.Rules.FirstOrDefault(static rule => rule.TagStructure ==
TagStructure
.WithoutEndTag);
478
TagStructure
? baseStructure = null;
486
if (rule.TagStructure !=
TagStructure
.Unspecified)
Language\RazorDiagnosticFactory.cs (1)
300
public static RazorDiagnostic CreateParsing_TagHelperMustNotHaveAnEndTag(SourceSpan location, string tagName, string displayName,
TagStructure
tagStructure)
Language\TagMatchingRuleDescriptor.cs (3)
20
public
TagStructure
TagStructure { get; }
27
TagStructure
tagStructure,
89
tagName += TagStructure ==
TagStructure
.WithoutEndTag ? "/" : "";
Language\TagMatchingRuleDescriptorBuilder.cs (1)
27
public
TagStructure
TagStructure { get; set; }
Language\TagStructure.cs (1)
14
/// If no other tag helper applies to the same element and specifies a <see cref="
TagStructure
"/>,
rzc (2)
Json\ObjectReaders_TagHelpers.cs (2)
47
var
tagStructure = (
TagStructure
)reader.ReadInt32OrZero(nameof(TagMatchingRuleDescriptor.TagStructure));