74 references to Component
Microsoft.AspNetCore.Components (37)
Rendering\RenderTreeBuilder.cs (16)
23private static readonly string ComponentReferenceCaptureInvalidParentMessage = $"Component reference captures may only be added as children of frames of type {RenderTreeFrameType.Component}"; 191if (_lastNonAttributeFrameType == RenderTreeFrameType.Component) 222if (value != null || _lastNonAttributeFrameType == RenderTreeFrameType.Component) 247if (value != null || _lastNonAttributeFrameType == RenderTreeFrameType.Component) 276if (_lastNonAttributeFrameType == RenderTreeFrameType.Component) 320if (_lastNonAttributeFrameType == RenderTreeFrameType.Component) 398else if (_lastNonAttributeFrameType == RenderTreeFrameType.Component) 546case RenderTreeFrameType.Component: 566_lastNonAttributeFrameType = RenderTreeFrameType.Component; 617if (_entries.Buffer[parentFrameIndexValue].FrameTypeField != RenderTreeFrameType.Component) 652if (parentFrame.FrameTypeField != RenderTreeFrameType.Component) 654throw new InvalidOperationException($"The enclosing frame is not of the required type '{nameof(RenderTreeFrameType.Component)}'."); 718&& _lastNonAttributeFrameType != RenderTreeFrameType.Component) 720throw new InvalidOperationException($"Attributes may only be added immediately after frames of type {RenderTreeFrameType.Element} or {RenderTreeFrameType.Component}"); 726if (_lastNonAttributeFrameType != RenderTreeFrameType.Component) 728throw new InvalidOperationException($"Component parameters may only be added immediately after frames of type {RenderTreeFrameType.Component}");
RenderTree\Renderer.cs (2)
527if (frame.FrameTypeField != RenderTreeFrameType.Component) 529throw new ArgumentException($"The frame's {nameof(RenderTreeFrame.FrameType)} property must equal {RenderTreeFrameType.Component}", nameof(frameIndex));
RenderTree\RenderTreeDiffBuilder.cs (9)
379case RenderTreeFrameType.Component: 396case RenderTreeFrameType.Component: 543case RenderTreeFrameType.Component: 662case RenderTreeFrameType.Component: 803case RenderTreeFrameType.Component: 866case RenderTreeFrameType.Component: 939case RenderTreeFrameType.Component: 995if (parentFrame.FrameTypeField != RenderTreeFrameType.Component) 1021if (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"/>, 320FrameTypeField = RenderTreeFrameType.Component; 465case RenderTreeFrameType.Component:
RenderTree\RenderTreeFrameArrayBuilder.cs (1)
88FrameTypeField = RenderTreeFrameType.Component,
Microsoft.AspNetCore.Components.Authorization.Tests (4)
AuthorizeRouteViewTest.cs (2)
286.Where(f => f.FrameType == RenderTreeFrameType.Component) 315.Where(f => f.FrameType == RenderTreeFrameType.Component)
src\Components\Shared\test\AssertFrame.cs (1)
86Assert.Equal(RenderTreeFrameType.Component, frame.FrameType);
src\Components\Shared\test\CapturedBatch.cs (1)
20=> ReferenceFrames.Where(f => f.FrameType == RenderTreeFrameType.Component && f.Component is T);
Microsoft.AspNetCore.Components.Forms.Tests (2)
src\Components\Shared\test\AssertFrame.cs (1)
86Assert.Equal(RenderTreeFrameType.Component, frame.FrameType);
src\Components\Shared\test\CapturedBatch.cs (1)
20=> ReferenceFrames.Where(f => f.FrameType == RenderTreeFrameType.Component && f.Component is T);
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
164case RenderTreeFrameType.Component:
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\RenderBatchWriterTest.cs (1)
239RenderTreeFrameType.Component, 5678, 2000, 0, 0,
Microsoft.AspNetCore.Components.Tests (20)
CascadingParameterTest.cs (1)
901frame => frame.FrameType == RenderTreeFrameType.Component
RendererTest.cs (13)
75.Single(frame => frame.FrameType == RenderTreeFrameType.Component); 144.Single(frame => frame.FrameType == RenderTreeFrameType.Component); 799.Single(frame => frame.FrameType == RenderTreeFrameType.Component); 971.Single(frame => frame.FrameType == RenderTreeFrameType.Component); 2049.Single(frame => frame.FrameType == RenderTreeFrameType.Component); 2090.Single(frame => frame.FrameType == RenderTreeFrameType.Component); 2126.Single(frame => frame.FrameType == RenderTreeFrameType.Component) 2164.Single(frame => frame.FrameType == RenderTreeFrameType.Component) 2204.Single(frame => frame.FrameType == RenderTreeFrameType.Component) 2242.Where(frame => frame.FrameType == RenderTreeFrameType.Component) 2644.Where(f => f.FrameType == RenderTreeFrameType.Component) 2771.Where(f => f.FrameType == RenderTreeFrameType.Component) 4220.Single(frame => frame.FrameType == RenderTreeFrameType.Component);
Rendering\RenderTreeBuilderTest.cs (3)
2140Assert.Equal($"The enclosing frame is not of the required type '{nameof(RenderTreeFrameType.Component)}'.", ex.Message); 2179Assert.Equal($"Component parameters may only be added immediately after frames of type {RenderTreeFrameType.Component}", ex.Message); 2276Assert.Equal($"Attributes may only be added immediately after frames of type {RenderTreeFrameType.Element} or {RenderTreeFrameType.Component}", ex.Message);
RenderTreeDiffBuilderTest.cs (1)
2438.Where(x => x.FrameType == RenderTreeFrameType.Component)
src\Components\Shared\test\AssertFrame.cs (1)
86Assert.Equal(RenderTreeFrameType.Component, frame.FrameType);
src\Components\Shared\test\CapturedBatch.cs (1)
20=> ReferenceFrames.Where(f => f.FrameType == RenderTreeFrameType.Component && f.Component is T);
Microsoft.AspNetCore.Components.Web (1)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (1)
89case RenderTreeFrameType.Component:
Microsoft.AspNetCore.Components.Web.Tests (5)
Forms\EditFormTest.cs (1)
209.Where(f => f.FrameType == RenderTreeFrameType.Component)
Forms\InputRadioTest.cs (1)
107.Where(f => f.FrameType == RenderTreeFrameType.Component)
Forms\InputRenderer.cs (1)
22.Where(f => f.FrameType == RenderTreeFrameType.Component)
src\Components\Shared\test\AssertFrame.cs (1)
86Assert.Equal(RenderTreeFrameType.Component, frame.FrameType);
src\Components\Shared\test\CapturedBatch.cs (1)
20=> ReferenceFrames.Where(f => f.FrameType == RenderTreeFrameType.Component && f.Component is T);
Microsoft.AspNetCore.Components.WebView (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
164case RenderTreeFrameType.Component:
Microsoft.AspNetCore.Components.WebView.Test (2)
Infrastructure\TestDocument.cs (2)
219case RenderTreeFrameType.Component: 430case RenderTreeFrameType.Component: