46 references to Component
Microsoft.AspNetCore.Components (39)
Rendering\ComponentState.cs (2)
365
Debug.Assert(currentFrame.FrameType != RenderTreeFrameType.
Component
|| currentFrame.Component != null, "GetComponentKey is being invoked too soon, ComponentState is not fully constructed.");
367
if (currentFrame.FrameType != RenderTreeFrameType.
Component
||
Rendering\RenderTreeBuilder.cs (16)
27
private static readonly string ComponentReferenceCaptureInvalidParentMessage = $"Component reference captures may only be added as children of frames of type {RenderTreeFrameType.
Component
}";
195
if (_lastNonAttributeFrameType == RenderTreeFrameType.
Component
)
226
if (value != null || _lastNonAttributeFrameType == RenderTreeFrameType.
Component
)
251
if (value != null || _lastNonAttributeFrameType == RenderTreeFrameType.
Component
)
280
if (_lastNonAttributeFrameType == RenderTreeFrameType.
Component
)
324
if (_lastNonAttributeFrameType == RenderTreeFrameType.
Component
)
402
else if (_lastNonAttributeFrameType == RenderTreeFrameType.
Component
)
550
case RenderTreeFrameType.
Component
:
570
_lastNonAttributeFrameType = RenderTreeFrameType.
Component
;
621
if (_entries.Buffer[parentFrameIndexValue].FrameTypeField != RenderTreeFrameType.
Component
)
656
if (parentFrame.FrameTypeField != RenderTreeFrameType.
Component
)
658
throw new InvalidOperationException($"The enclosing frame is not of the required type '{nameof(RenderTreeFrameType.
Component
)}'.");
722
&& _lastNonAttributeFrameType != RenderTreeFrameType.
Component
)
724
throw new InvalidOperationException($"Attributes may only be added immediately after frames of type {RenderTreeFrameType.Element} or {RenderTreeFrameType.
Component
}");
730
if (_lastNonAttributeFrameType != RenderTreeFrameType.
Component
)
732
throw new InvalidOperationException($"Component parameters may only be added immediately after frames of type {RenderTreeFrameType.
Component
}");
RenderTree\Renderer.cs (2)
605
if (frame.FrameTypeField != RenderTreeFrameType.
Component
)
607
throw new ArgumentException($"The frame's {nameof(RenderTreeFrame.FrameType)} property must equal {RenderTreeFrameType.
Component
}", nameof(frameIndex));
RenderTree\RenderTreeDiffBuilder.cs (9)
379
case RenderTreeFrameType.
Component
:
396
case RenderTreeFrameType.
Component
:
543
case RenderTreeFrameType.
Component
:
662
case RenderTreeFrameType.
Component
:
843
case RenderTreeFrameType.
Component
:
906
case RenderTreeFrameType.
Component
:
979
case RenderTreeFrameType.
Component
:
1035
if (parentFrame.FrameTypeField != RenderTreeFrameType.
Component
)
1061
if (frame.FrameTypeField == RenderTreeFrameType.
Component
&& frame.ComponentStateField != null)
RenderTree\RenderTreeFrame.cs (9)
149
/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.
Component
"/>
155
/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.
Component
"/>
162
/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.
Component
"/>,
168
/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.
Component
"/>,
174
/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.
Component
"/>,
180
/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.
Component
"/>,
186
/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.
Component
"/>,
320
FrameTypeField = RenderTreeFrameType.
Component
;
465
case RenderTreeFrameType.
Component
:
RenderTree\RenderTreeFrameArrayBuilder.cs (1)
88
FrameTypeField = RenderTreeFrameType.
Component
,
Microsoft.AspNetCore.Components.Endpoints (3)
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
309
if (frame.FrameType == RenderTreeFrameType.
Component
&&
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
58
if (frame.FrameType is not RenderTreeFrameType.
Component
)
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (1)
96
case RenderTreeFrameType.
Component
:
Microsoft.AspNetCore.Components.Server (3)
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
164
case RenderTreeFrameType.
Component
:
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
58
if (frame.FrameType is not RenderTreeFrameType.
Component
)
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (1)
96
case RenderTreeFrameType.
Component
:
Microsoft.AspNetCore.Components.Web (1)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (1)
89
case RenderTreeFrameType.
Component
: