6 instantiations of ComponentAttributeIntermediateNode
Microsoft.CodeAnalysis.Razor.Compiler (6)
Language\Components\ComponentFormNameLoweringPass.cs (1)
56
return RewriteCore(node, new
ComponentAttributeIntermediateNode
Language\Components\ComponentLoweringPass.cs (3)
652
var attribute = new
ComponentAttributeIntermediateNode
(node);
739
_children.Add(new
ComponentAttributeIntermediateNode
(node));
847
_children.Add(node.TagHelper.Kind == TagHelperKind.Component ? new
ComponentAttributeIntermediateNode
(node) : node);
Language\Intermediate\ComponentAttributeIntermediateNode.cs (2)
135
=>
new
(node, addChildren);
138
=>
new
(node, addChildren);
63 references to ComponentAttributeIntermediateNode
Microsoft.AspNetCore.Razor.Test.Common (1)
Language\IntegrationTests\IntermediateNodeWriter.cs (1)
155
public override void VisitComponentAttribute(
ComponentAttributeIntermediateNode
node)
Microsoft.CodeAnalysis.Razor.Compiler (58)
Language\CodeGeneration\IntermediateNodeWriter.cs (1)
32
public virtual void WriteComponentAttribute(CodeRenderingContext context,
ComponentAttributeIntermediateNode
node)
Language\Components\ComponentBindLoweringPass.cs (12)
566
var
valueNode = node != null
567
?
ComponentAttributeIntermediateNode
.From(node, addChildren: false)
568
:
ComponentAttributeIntermediateNode
.From(getNode.AssumeNotNull(), addChildren: false);
589
var
changeNode = node != null
590
?
ComponentAttributeIntermediateNode
.From(node, addChildren: false)
591
:
ComponentAttributeIntermediateNode
.From(getNode.AssumeNotNull(), addChildren: false);
616
var
expressionNode = node != null
617
?
ComponentAttributeIntermediateNode
.From(node, addChildren: false)
618
:
ComponentAttributeIntermediateNode
.From(getNode.AssumeNotNull(), addChildren: false);
659
var
helperNode =
ComponentAttributeIntermediateNode
.From(node, addChildren: true);
1081
ComponentAttributeIntermediateNode
n => n.OriginalAttributeSpan,
Language\Components\ComponentChildContentDiagnosticPass.cs (1)
36
foreach (
var
attribute in node.Attributes)
Language\Components\ComponentDesignTimeNodeWriter.cs (8)
365
if (child is
ComponentAttributeIntermediateNode
attribute)
505
if (child is
ComponentAttributeIntermediateNode
attribute)
573
case
ComponentAttributeIntermediateNode
attribute:
623
public override void WriteComponentAttribute(CodeRenderingContext context,
ComponentAttributeIntermediateNode
node)
653
private void WritePropertyAccess(CodeRenderingContext context,
ComponentAttributeIntermediateNode
node, ComponentIntermediateNode componentNode, string? typeInferenceLocalName, bool shouldWriteBL0005Disable, out bool wrotePropertyAccess)
728
private void WriteComponentAttributeInnards(CodeRenderingContext context,
ComponentAttributeIntermediateNode
node, bool canTypeCheck)
864
if (
ComponentAttributeIntermediateNode
.TryGetEventCallbackArgument(typeName.AsMemory(), out var argument))
886
static bool NeedsTypeCheck(
ComponentAttributeIntermediateNode
n)
Language\Components\ComponentEventHandlerLoweringPass.cs (5)
108
if (parent.Children[j] is
ComponentAttributeIntermediateNode
componentAttribute &&
216
var
result =
ComponentAttributeIntermediateNode
.From(node, addChildren: false);
280
var
result =
ComponentAttributeIntermediateNode
.From(node, addChildren: false);
Language\Components\ComponentGenericTypePass.cs (3)
126
foreach (
var
attribute in node.Attributes)
292
private static string GetContent(
ComponentAttributeIntermediateNode
node)
325
foreach (
var
attribute in node.Attributes)
Language\Components\ComponentLoweringPass.cs (2)
399
if (child is
ComponentAttributeIntermediateNode
attributeNode && attributeName == attributeNode.AttributeName)
652
var
attribute = new ComponentAttributeIntermediateNode(node);
Language\Components\ComponentMarkupDiagnosticPass.cs (3)
78
if (child is
ComponentAttributeIntermediateNode
attribute && attribute.AttributeName != null)
82
var
otherAttribute = (
ComponentAttributeIntermediateNode
)other.node;
Language\Components\ComponentNodeWriter.cs (4)
192
case
ComponentAttributeIntermediateNode
attribute:
373
protected static void WriteComponentAttributeName(CodeRenderingContext context,
ComponentAttributeIntermediateNode
attribute, bool allowNameof = true)
414
if (child is
ComponentAttributeIntermediateNode
attribute)
515
protected static void WriteGloballyQualifiedTypeName(CodeRenderingContext context,
ComponentAttributeIntermediateNode
node)
Language\Components\ComponentRuntimeNodeWriter.cs (8)
193
else if (child is
ComponentAttributeIntermediateNode
componentAttribute)
413
if (child is
ComponentAttributeIntermediateNode
attribute)
553
case
ComponentAttributeIntermediateNode
attribute:
603
public override void WriteComponentAttribute(CodeRenderingContext context,
ComponentAttributeIntermediateNode
node)
650
private static void WriteDesignTimePropertyAccessor(CodeRenderingContext context,
ComponentAttributeIntermediateNode
attribute)
661
private void WriteComponentAttributeInnards(CodeRenderingContext context,
ComponentAttributeIntermediateNode
node, bool canTypeCheck)
772
if (
ComponentAttributeIntermediateNode
.TryGetEventCallbackArgument(typeName.AsMemory(), out var argument))
794
static bool NeedsTypeCheck(
ComponentAttributeIntermediateNode
n)
Language\Components\ComponentTemplateDiagnosticPass.cs (1)
56
ComponentAttributeIntermediateNode
or // Inside component attribute
Language\DefaultRazorCSharpLoweringPhase.cs (1)
292
public override void VisitComponentAttribute(
ComponentAttributeIntermediateNode
node)
Language\DefaultTagHelperResolutionPhase.ComponentTagHelperResolver.cs (1)
109
else if (child is
ComponentAttributeIntermediateNode
or
Language\Intermediate\CascadingGenericTypeParameter.cs (2)
18
/// Gets or sets a <see cref="
ComponentAttributeIntermediateNode
"/> that supplies content for
22
internal
ComponentAttributeIntermediateNode
ValueSourceNode { get; set; }
Language\Intermediate\ComponentAttributeIntermediateNode.cs (2)
134
public static
ComponentAttributeIntermediateNode
From(TagHelperDirectiveAttributeIntermediateNode node, bool addChildren)
137
public static
ComponentAttributeIntermediateNode
From(TagHelperDirectiveAttributeParameterIntermediateNode node, bool addChildren)
Language\Intermediate\ComponentIntermediateNode.cs (2)
15
public IEnumerable<
ComponentAttributeIntermediateNode
> Attributes => Children.OfType<
ComponentAttributeIntermediateNode
>();
Language\Intermediate\IntermediateNodeVisitor.cs (1)
147
public virtual void VisitComponentAttribute(
ComponentAttributeIntermediateNode
node)
Language\Intermediate\MarkupElementIntermediateNode.cs (1)
23
return c is not (
ComponentAttributeIntermediateNode
or
Microsoft.CodeAnalysis.Razor.Workspaces (4)
CodeActions\Razor\GenerateEventHandlerCodeActionProvider.cs (4)
136
ComponentAttributeIntermediateNode
.TryGetEventCallbackArgument(attribute.TypeName.AsMemory(), out var argument))
193
if (
ComponentAttributeIntermediateNode
.TryGetEventCallbackArgument(attribute.TypeName.AsMemory(), out var argument))
206
ComponentAttributeIntermediateNode
.TryGetGenericActionArgument(attribute.TypeName.AsMemory(), genericType, out var argument))
213
if (
ComponentAttributeIntermediateNode
.TryGetActionArgument(attribute.TypeName.AsMemory(), out var argument))