6 instantiations of ComponentAttributeIntermediateNode
Microsoft.CodeAnalysis.Razor.Compiler (6)
Language\Components\ComponentFormNameLoweringPass.cs (1)
56return RewriteCore(node, new ComponentAttributeIntermediateNode
Language\Components\ComponentLoweringPass.cs (3)
652var 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)
141=> new(node, addChildren); 144=> new(node, addChildren);
50 references to ComponentAttributeIntermediateNode
Microsoft.CodeAnalysis.Razor.Compiler (50)
Language\CodeGeneration\IntermediateNodeWriter.cs (1)
376public virtual void WriteComponentAttribute(CodeRenderingContext context, ComponentAttributeIntermediateNode node)
Language\Components\ComponentBindLoweringPass.cs (12)
566var valueNode = node != null 567? ComponentAttributeIntermediateNode.From(node, addChildren: false) 568: ComponentAttributeIntermediateNode.From(getNode.AssumeNotNull(), addChildren: false); 589var changeNode = node != null 590? ComponentAttributeIntermediateNode.From(node, addChildren: false) 591: ComponentAttributeIntermediateNode.From(getNode.AssumeNotNull(), addChildren: false); 616var expressionNode = node != null 617? ComponentAttributeIntermediateNode.From(node, addChildren: false) 618: ComponentAttributeIntermediateNode.From(getNode.AssumeNotNull(), addChildren: false); 661var helperNode = ComponentAttributeIntermediateNode.From(node, addChildren: true); 1088ComponentAttributeIntermediateNode 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)
126foreach (var attribute in node.Attributes) 292private static string GetContent(ComponentAttributeIntermediateNode node) 325foreach (var attribute in node.Attributes)
Language\Components\ComponentLoweringPass.cs (2)
399if (child is ComponentAttributeIntermediateNode attributeNode && attributeName == attributeNode.AttributeName) 652var 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)
190case ComponentAttributeIntermediateNode attribute: 371private static void WriteComponentAttributeName(CodeRenderingContext context, ComponentAttributeIntermediateNode attribute, bool allowNameof = true) 412if (child is ComponentAttributeIntermediateNode attribute) 513private static void WriteGloballyQualifiedTypeName(CodeRenderingContext context, ComponentAttributeIntermediateNode node) 821else if (child is ComponentAttributeIntermediateNode componentAttribute) 1041if (child is ComponentAttributeIntermediateNode attribute) 1181case ComponentAttributeIntermediateNode attribute: 1231public override void WriteComponentAttribute(CodeRenderingContext context, ComponentAttributeIntermediateNode node) 1278private static void WriteDesignTimePropertyAccessor(CodeRenderingContext context, ComponentAttributeIntermediateNode attribute) 1294private void WriteComponentAttributeInnards(CodeRenderingContext context, ComponentAttributeIntermediateNode node, bool canTypeCheck) 1405if (ComponentAttributeIntermediateNode.TryGetEventCallbackArgument(typeName.AsMemory(), out var argument)) 1427static bool NeedsTypeCheck(ComponentAttributeIntermediateNode n)
Language\Components\ComponentTemplateDiagnosticPass.cs (1)
56ComponentAttributeIntermediateNode or // Inside component attribute
Language\DefaultRazorCSharpLoweringPhase.cs (1)
292public override void VisitComponentAttribute(ComponentAttributeIntermediateNode node)
Language\DefaultTagHelperResolutionPhase.ComponentTagHelperResolver.cs (1)
109else if (child is ComponentAttributeIntermediateNode or
Language\Intermediate\CascadingGenericTypeParameter.cs (2)
18/// Gets or sets a <see cref="ComponentAttributeIntermediateNode"/> that supplies content for 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 (2)
15public IEnumerable<ComponentAttributeIntermediateNode> Attributes => Children.OfType<ComponentAttributeIntermediateNode>();
Language\Intermediate\IntermediateNodeVisitor.cs (1)
147public virtual void VisitComponentAttribute(ComponentAttributeIntermediateNode node)
Language\Intermediate\MarkupElementIntermediateNode.cs (1)
23return c is not (ComponentAttributeIntermediateNode or