85 references to AttributeStructure
Microsoft.AspNetCore.Razor.Language.UnitTests (27)
DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs (4)
224
AttributeStructure
.DoubleQuotes,
267
AttributeStructure
.DoubleQuotes,
313
AttributeStructure
.DoubleQuotes,
358
AttributeStructure
.SingleQuotes,
Extensions\DefaultTagHelperOptimizationPassTest.cs (2)
69
Assert.Equal(
AttributeStructure
.DoubleQuotes, property.AttributeStructure);
78
Assert.Equal(
AttributeStructure
.DoubleQuotes, htmlAttribute.AttributeStructure);
Extensions\DefaultTagHelperTargetExtensionTest.cs (18)
278
AttributeStructure =
AttributeStructure
.DoubleQuotes,
323
AttributeStructure =
AttributeStructure
.DoubleQuotes,
366
AttributeStructure =
AttributeStructure
.DoubleQuotes,
481
AttributeStructure =
AttributeStructure
.DoubleQuotes,
526
AttributeStructure =
AttributeStructure
.DoubleQuotes,
571
AttributeStructure =
AttributeStructure
.DoubleQuotes,
632
AttributeStructure =
AttributeStructure
.DoubleQuotes,
671
AttributeStructure =
AttributeStructure
.DoubleQuotes,
715
AttributeStructure =
AttributeStructure
.DoubleQuotes,
767
AttributeStructure =
AttributeStructure
.DoubleQuotes,
811
AttributeStructure =
AttributeStructure
.DoubleQuotes,
861
AttributeStructure =
AttributeStructure
.DoubleQuotes,
923
AttributeStructure =
AttributeStructure
.DoubleQuotes,
962
AttributeStructure =
AttributeStructure
.DoubleQuotes,
1007
AttributeStructure =
AttributeStructure
.DoubleQuotes,
1064
AttributeStructure =
AttributeStructure
.DoubleQuotes,
1080
AttributeStructure =
AttributeStructure
.DoubleQuotes,
1134
AttributeStructure =
AttributeStructure
.DoubleQuotes,
Extensions\PreallocatedAttributeTargetExtensionTest.cs (3)
24
AttributeStructure =
AttributeStructure
.DoubleQuotes,
51
AttributeStructure =
AttributeStructure
.Minimized,
110
AttributeStructure =
AttributeStructure
.DoubleQuotes,
Microsoft.AspNetCore.Razor.Test.Common (3)
Language\Intermediate\IntermediateNodeAssert.cs (3)
294
AttributeStructure
valueStyle)
336
AttributeStructure
valueStyle,
372
AttributeStructure
valueStyle,
Microsoft.CodeAnalysis.Razor.Compiler (55)
Language\Components\ComponentDesignTimeNodeWriter.cs (1)
740
if (node.AttributeStructure ==
AttributeStructure
.Minimized)
Language\Components\ComponentEventHandlerLoweringPass.cs (1)
284
if (node.AttributeStructure !=
AttributeStructure
.Minimized)
Language\Components\ComponentLoweringPass.cs (4)
795
case
AttributeStructure
.Minimized:
801
case
AttributeStructure
.NoQuotes:
802
case
AttributeStructure
.SingleQuotes:
803
case
AttributeStructure
.DoubleQuotes:
Language\Components\ComponentRuntimeNodeWriter.cs (1)
669
if (node.AttributeStructure ==
AttributeStructure
.Minimized)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (7)
539
protected static
AttributeStructure
InferAttributeStructure(MarkupAttributeBlockSyntax node)
543
return
AttributeStructure
.Minimized;
551
return
AttributeStructure
.DoubleQuotes;
556
return
AttributeStructure
.SingleQuotes;
562
return
AttributeStructure
.DoubleQuotes;
1410
AttributeStructure =
AttributeStructure
.Minimized,
1880
AttributeStructure =
AttributeStructure
.Minimized,
Language\DefaultTagHelperResolutionPhase.ComponentTagHelperResolver.cs (3)
192
var
attrStructure = unresolvedAttr.AttributeStructure;
325
var
attrStructure = unresolvedAttr.AttributeStructure;
401
else if (!unresolvedAttr.IsMinimized && unresolvedAttr.AttributeStructure !=
AttributeStructure
.Minimized)
Language\DefaultTagHelperResolutionPhase.cs (6)
747
private static
AttributeStructure
InferAttributeStructure(HtmlAttributeIntermediateNode htmlAttr)
753
return
AttributeStructure
.SingleQuotes;
757
return
AttributeStructure
.DoubleQuotes;
762
return
AttributeStructure
.DoubleQuotes;
768
return
AttributeStructure
.Minimized;
771
return
AttributeStructure
.DoubleQuotes;
Language\DefaultTagHelperResolutionPhase.LegacyTagHelperResolver.cs (7)
136
var
attrStructure = unresolvedAttr.AttributeStructure;
138
if (attrStructure ==
AttributeStructure
.Minimized)
191
AttributeStructure =
AttributeStructure
.Minimized,
268
var
attributeStructure = InferAttributeStructure(htmlAttr);
278
if (attributeStructure ==
AttributeStructure
.Minimized)
289
AttributeStructure =
AttributeStructure
.Minimized,
318
if (attributeStructure !=
AttributeStructure
.Minimized)
Language\Extensions\DefaultTagHelperHtmlAttributeIntermediateNode.cs (1)
39
public
AttributeStructure
AttributeStructure { get; set; }
Language\Extensions\DefaultTagHelperPropertyIntermediateNode.cs (1)
43
public
AttributeStructure
AttributeStructure { get; set; }
Language\Extensions\DefaultTagHelperTargetExtension.cs (2)
396
node.AttributeStructure ==
AttributeStructure
.Minimized &&
422
node.AttributeStructure ==
AttributeStructure
.Minimized &&
Language\Extensions\PreallocatedAttributeTargetExtension.cs (1)
38
if (node.AttributeStructure ==
AttributeStructure
.Minimized)
Language\Extensions\PreallocatedTagHelperHtmlAttributeValueIntermediateNode.cs (1)
43
public
AttributeStructure
AttributeStructure { get; set; }
Language\Extensions\PreallocatedTagHelperPropertyIntermediateNode.cs (1)
38
public
AttributeStructure
AttributeStructure { get; set; }
Language\Extensions\PreallocatedTagHelperPropertyValueIntermediateNode.cs (1)
22
public
AttributeStructure
AttributeStructure { get; set; }
Language\Intermediate\ComponentAttributeIntermediateNode.cs (1)
144
public
AttributeStructure
AttributeStructure { get; set; }
Language\Intermediate\TagHelperDirectiveAttributeIntermediateNode.cs (1)
15
public required
AttributeStructure
AttributeStructure { get; init; }
Language\Intermediate\TagHelperDirectiveAttributeParameterIntermediateNode.cs (1)
16
public required
AttributeStructure
AttributeStructure { get; init; }
Language\Intermediate\TagHelperHtmlAttributeIntermediateNode.cs (1)
9
public required
AttributeStructure
AttributeStructure { get; init; }
Language\Intermediate\TagHelperPropertyIntermediateNode.cs (1)
11
public required
AttributeStructure
AttributeStructure { get; init; }
Language\Intermediate\UnresolvedAttributeIntermediateNode.cs (1)
33
public
AttributeStructure
AttributeStructure { get; set; }
Language\Legacy\TagHelperAttributeNode.cs (3)
12
public TagHelperAttributeNode(string name, SyntaxNode value,
AttributeStructure
attributeStructure)
21
: this(name, value,
AttributeStructure
.DoubleQuotes)
29
public
AttributeStructure
AttributeStructure { get; }
Language\Legacy\TagHelperBlockRewriter.cs (6)
233
result.AttributeStructure =
AttributeStructure
.Minimized;
280
result.AttributeStructure =
AttributeStructure
.DoubleQuotes;
288
result.AttributeStructure =
AttributeStructure
.DoubleQuotes;
291
result.AttributeStructure =
AttributeStructure
.SingleQuotes;
294
result.AttributeStructure =
AttributeStructure
.Minimized;
935
public
AttributeStructure
AttributeStructure { get; set; }
Language\TagHelperAttributeInfo.cs (2)
13
AttributeStructure
attributeStructure,
28
public
AttributeStructure
AttributeStructure { get; }