6 instantiations of ComponentAttributeIntermediateNode
Microsoft.CodeAnalysis.Razor.Compiler (6)
Language\Components\ComponentFormNameLoweringPass.cs (1)
56return RewriteCore(node, new ComponentAttributeIntermediateNode
Language\Components\ComponentLoweringPass.cs (3)
653var attribute = new ComponentAttributeIntermediateNode(node); 750_children.Add(new ComponentAttributeIntermediateNode(node)); 858_children.Add(node.TagHelper.Kind == TagHelperKind.Component ? new ComponentAttributeIntermediateNode(node) : node);
Language\Intermediate\ComponentAttributeIntermediateNode.cs (2)
141=> new(node, addChildren); 144=> new(node, addChildren);
49 references to ComponentAttributeIntermediateNode
Microsoft.CodeAnalysis.Razor.Compiler (49)
Language\CodeGeneration\IntermediateNodeWriter.cs (1)
376public virtual void WriteComponentAttribute(CodeRenderingContext context, ComponentAttributeIntermediateNode node)
Language\Components\ComponentBindLoweringPass.cs (12)
591var valueNode = node != null 592? ComponentAttributeIntermediateNode.From(node, addChildren: false) 593: ComponentAttributeIntermediateNode.From(getNode.AssumeNotNull(), addChildren: false); 614var changeNode = node != null 615? ComponentAttributeIntermediateNode.From(node, addChildren: false) 616: ComponentAttributeIntermediateNode.From(getNode.AssumeNotNull(), addChildren: false); 641var expressionNode = node != null 642? ComponentAttributeIntermediateNode.From(node, addChildren: false) 643: ComponentAttributeIntermediateNode.From(getNode.AssumeNotNull(), addChildren: false); 686var helperNode = ComponentAttributeIntermediateNode.From(node, addChildren: true); 1113ComponentAttributeIntermediateNode n => n.OriginalAttributeSpan,
Language\Components\ComponentChildContentDiagnosticPass.cs (1)
36foreach (var attribute in node.Attributes)
Language\Components\ComponentEventHandlerLoweringPass.cs (5)
108if (parent.Children[j] is ComponentAttributeIntermediateNode componentAttribute && 216var result = ComponentAttributeIntermediateNode.From(node, addChildren: false); 280var result = ComponentAttributeIntermediateNode.From(node, addChildren: false);
Language\Components\ComponentGenericTypePass.cs (3)
129foreach (var attribute in node.Attributes) 307private static string GetContent(ComponentAttributeIntermediateNode node) 340foreach (var attribute in node.Attributes)
Language\Components\ComponentLoweringPass.cs (2)
400if (child is ComponentAttributeIntermediateNode attributeNode && attributeName == attributeNode.AttributeName) 653var attribute = new ComponentAttributeIntermediateNode(node);
Language\Components\ComponentMarkupDiagnosticPass.cs (3)
78if (child is ComponentAttributeIntermediateNode attribute && attribute.AttributeName != null) 82var otherAttribute = (ComponentAttributeIntermediateNode)other.node;
Language\Components\ComponentNodeWriter.cs (12)
191case ComponentAttributeIntermediateNode attribute: 381private static void WriteComponentAttributeName(CodeRenderingContext context, ComponentAttributeIntermediateNode attribute, bool allowNameof = true) 420if (child is ComponentAttributeIntermediateNode attribute) 519private static void WriteGloballyQualifiedTypeName(CodeRenderingContext context, ComponentAttributeIntermediateNode node) 827else if (child is ComponentAttributeIntermediateNode componentAttribute) 1047if (child is ComponentAttributeIntermediateNode attribute) 1188case ComponentAttributeIntermediateNode attribute: 1238public override void WriteComponentAttribute(CodeRenderingContext context, ComponentAttributeIntermediateNode node) 1285private static void WriteDesignTimePropertyAccessor(CodeRenderingContext context, ComponentAttributeIntermediateNode attribute) 1301private void WriteComponentAttributeInnards(CodeRenderingContext context, ComponentAttributeIntermediateNode node, bool canTypeCheck) 1424if (ComponentAttributeIntermediateNode.TryGetEventCallbackArgument(typeName.AsMemory(), out var argument)) 1446static bool NeedsTypeCheck(ComponentAttributeIntermediateNode n)
Language\Components\ComponentTemplateDiagnosticPass.cs (1)
56ComponentAttributeIntermediateNode or // Inside component attribute
Language\Components\ComponentTildePathPass.cs (1)
128public override void VisitComponentAttribute(ComponentAttributeIntermediateNode node)
Language\DefaultTagHelperResolutionPhase.ComponentTagHelperResolver.cs (1)
117else if (child is ComponentAttributeIntermediateNode or
Language\Intermediate\CascadingGenericTypeParameter.cs (1)
22internal ComponentAttributeIntermediateNode ValueSourceNode { get; set; }
Language\Intermediate\ComponentAttributeIntermediateNode.cs (2)
140public static ComponentAttributeIntermediateNode From(TagHelperDirectiveAttributeIntermediateNode node, bool addChildren) 143public static ComponentAttributeIntermediateNode From(TagHelperDirectiveAttributeParameterIntermediateNode node, bool addChildren)
Language\Intermediate\ComponentIntermediateNode.cs (1)
14public IntermediateNodeCollection.TypedEnumerable<ComponentAttributeIntermediateNode> Attributes => new(Children);
Language\Intermediate\IntermediateNodeVisitor.cs (1)
147public virtual void VisitComponentAttribute(ComponentAttributeIntermediateNode node)
Language\Intermediate\MarkupElementIntermediateNode.cs (1)
23return c is not (ComponentAttributeIntermediateNode or
Language\RazorCSharpDocumentWriter.cs (1)
330public override void VisitComponentAttribute(ComponentAttributeIntermediateNode node)