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)
135=> new(node, addChildren); 138=> new(node, addChildren);
63 references to ComponentAttributeIntermediateNode
Microsoft.AspNetCore.Razor.Test.Common (1)
Language\IntegrationTests\IntermediateNodeWriter.cs (1)
155public override void VisitComponentAttribute(ComponentAttributeIntermediateNode node)
Microsoft.CodeAnalysis.Razor.Compiler (58)
Language\CodeGeneration\IntermediateNodeWriter.cs (1)
32public 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); 659var helperNode = ComponentAttributeIntermediateNode.From(node, addChildren: true); 1081ComponentAttributeIntermediateNode n => n.OriginalAttributeSpan,
Language\Components\ComponentChildContentDiagnosticPass.cs (1)
36foreach (var attribute in node.Attributes)
Language\Components\ComponentDesignTimeNodeWriter.cs (8)
365if (child is ComponentAttributeIntermediateNode attribute) 505if (child is ComponentAttributeIntermediateNode attribute) 573case ComponentAttributeIntermediateNode attribute: 623public override void WriteComponentAttribute(CodeRenderingContext context, ComponentAttributeIntermediateNode node) 653private void WritePropertyAccess(CodeRenderingContext context, ComponentAttributeIntermediateNode node, ComponentIntermediateNode componentNode, string? typeInferenceLocalName, bool shouldWriteBL0005Disable, out bool wrotePropertyAccess) 728private void WriteComponentAttributeInnards(CodeRenderingContext context, ComponentAttributeIntermediateNode node, bool canTypeCheck) 864if (ComponentAttributeIntermediateNode.TryGetEventCallbackArgument(typeName.AsMemory(), out var argument)) 886static bool NeedsTypeCheck(ComponentAttributeIntermediateNode n)
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 (4)
192case ComponentAttributeIntermediateNode attribute: 373protected static void WriteComponentAttributeName(CodeRenderingContext context, ComponentAttributeIntermediateNode attribute, bool allowNameof = true) 414if (child is ComponentAttributeIntermediateNode attribute) 515protected static void WriteGloballyQualifiedTypeName(CodeRenderingContext context, ComponentAttributeIntermediateNode node)
Language\Components\ComponentRuntimeNodeWriter.cs (8)
193else if (child is ComponentAttributeIntermediateNode componentAttribute) 413if (child is ComponentAttributeIntermediateNode attribute) 553case ComponentAttributeIntermediateNode attribute: 603public override void WriteComponentAttribute(CodeRenderingContext context, ComponentAttributeIntermediateNode node) 650private static void WriteDesignTimePropertyAccessor(CodeRenderingContext context, ComponentAttributeIntermediateNode attribute) 661private void WriteComponentAttributeInnards(CodeRenderingContext context, ComponentAttributeIntermediateNode node, bool canTypeCheck) 772if (ComponentAttributeIntermediateNode.TryGetEventCallbackArgument(typeName.AsMemory(), out var argument)) 794static 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)
134public static ComponentAttributeIntermediateNode From(TagHelperDirectiveAttributeIntermediateNode node, bool addChildren) 137public 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
Microsoft.CodeAnalysis.Razor.Workspaces (4)
CodeActions\Razor\GenerateEventHandlerCodeActionProvider.cs (4)
136ComponentAttributeIntermediateNode.TryGetEventCallbackArgument(attribute.TypeName.AsMemory(), out var argument)) 193if (ComponentAttributeIntermediateNode.TryGetEventCallbackArgument(attribute.TypeName.AsMemory(), out var argument)) 206ComponentAttributeIntermediateNode.TryGetGenericActionArgument(attribute.TypeName.AsMemory(), genericType, out var argument)) 213if (ComponentAttributeIntermediateNode.TryGetActionArgument(attribute.TypeName.AsMemory(), out var argument))