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