160 references to FrameType
Microsoft.AspNetCore.Components (30)
ParameterView.cs (1)
260while (attributeFramesEndIndexExcl < ownerDescendantsEndIndexExcl && frames[attributeFramesEndIndexExcl].FrameType == RenderTreeFrameType.Attribute)
Rendering\RenderTreeBuilder.cs (2)
424throw new ArgumentException($"The {nameof(frame.FrameType)} must be {RenderTreeFrameType.Attribute}."); 783throw new InvalidOperationException($"Render output is invalid for component of type '{component.GetType().FullName}'. A frame of type '{invalidFrame.FrameType}' was left unclosed. Do not use try/catch inside rendering logic, because partial output cannot be undone.");
RenderTree\Renderer.cs (2)
529throw new ArgumentException($"The frame's {nameof(RenderTreeFrame.FrameType)} property must equal {RenderTreeFrameType.Component}", nameof(frameIndex)); 559switch (frame.FrameType)
RenderTree\RenderTreeFrame.cs (25)
70/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.Element"/> 77/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.Element"/>, 83/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.Element"/>, 95/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.Text"/>, 110/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.Attribute"/> 116/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.Attribute"/>, 122/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.Attribute"/>, 128/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.Attribute"/>, 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"/>, 198/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.Region"/> 212/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.ElementReferenceCapture"/>, 218/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.ElementReferenceCapture"/>, 231/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.ComponentReferenceCapture"/>, 243/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.ComponentReferenceCapture"/>, 255/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.Markup"/>, 267/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.ComponentRenderMode"/>, 276if (FrameType != RenderTreeFrameType.ComponentRenderMode) 293/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.NamedEvent"/>, 299/// If the <see cref="FrameType"/> property equals <see cref="RenderTreeFrameType.NamedEvent"/>,
Microsoft.AspNetCore.Components.Authorization.Tests (16)
AuthorizeRouteViewTest.cs (2)
286.Where(f => f.FrameType == RenderTreeFrameType.Component) 315.Where(f => f.FrameType == RenderTreeFrameType.Component)
src\Components\Shared\test\AssertFrame.cs (13)
20Assert.Equal(RenderTreeFrameType.Text, frame.FrameType); 28Assert.Equal(RenderTreeFrameType.Markup, frame.FrameType); 36Assert.Equal(RenderTreeFrameType.Element, frame.FrameType); 44Assert.Equal(RenderTreeFrameType.Attribute, frame.FrameType); 86Assert.Equal(RenderTreeFrameType.Component, frame.FrameType); 104Assert.Equal(RenderTreeFrameType.Region, frame.FrameType); 111Assert.Equal(RenderTreeFrameType.Markup, frame.FrameType); 118Assert.Equal(RenderTreeFrameType.Text, frame.FrameType); 125Assert.Equal(RenderTreeFrameType.ElementReferenceCapture, frame.FrameType); 132Assert.Equal(RenderTreeFrameType.ComponentReferenceCapture, frame.FrameType); 139Assert.Equal(RenderTreeFrameType.ComponentReferenceCapture, frame.FrameType); 146Assert.Equal(RenderTreeFrameType.ComponentRenderMode, frame.FrameType); 153Assert.Equal(RenderTreeFrameType.NamedEvent, frame.FrameType);
src\Components\Shared\test\CapturedBatch.cs (1)
20=> ReferenceFrames.Where(f => f.FrameType == RenderTreeFrameType.Component && f.Component is T);
Microsoft.AspNetCore.Components.Endpoints (4)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (4)
152if (frame.FrameType != RenderTreeFrameType.NamedEvent) 155throw new InvalidOperationException($"The named value frame for component '{componentId}' at index '{frameIndex}' unexpectedly matches a frame of type '{frame.FrameType}'."); 167if (candidate.FrameType == RenderTreeFrameType.Attribute) 174else if (candidate.FrameType == RenderTreeFrameType.Element)
Microsoft.AspNetCore.Components.Endpoints.Tests (12)
ImportMapTest.cs (12)
68Assert.Equal(RenderTreeFrameType.Element, frames.Array[0].FrameType); 70Assert.Equal(RenderTreeFrameType.Attribute, frames.Array[1].FrameType); 75Assert.Equal(RenderTreeFrameType.Markup, frames.Array[3].FrameType); 115Assert.Equal(RenderTreeFrameType.Element, frames.Array[0].FrameType); 117Assert.Equal(RenderTreeFrameType.Attribute, frames.Array[1].FrameType); 120Assert.Equal(RenderTreeFrameType.Markup, frames.Array[2].FrameType); 180Assert.Equal(RenderTreeFrameType.Element, frames.Array[0].FrameType); 182Assert.Equal(RenderTreeFrameType.Attribute, frames.Array[1].FrameType); 185Assert.Equal(RenderTreeFrameType.Markup, frames.Array[2].FrameType); 239Assert.Equal(RenderTreeFrameType.Element, frames.Array[0].FrameType); 241Assert.Equal(RenderTreeFrameType.Attribute, frames.Array[1].FrameType); 244Assert.Equal(RenderTreeFrameType.Markup, frames.Array[2].FrameType);
Microsoft.AspNetCore.Components.Forms.Tests (14)
src\Components\Shared\test\AssertFrame.cs (13)
20Assert.Equal(RenderTreeFrameType.Text, frame.FrameType); 28Assert.Equal(RenderTreeFrameType.Markup, frame.FrameType); 36Assert.Equal(RenderTreeFrameType.Element, frame.FrameType); 44Assert.Equal(RenderTreeFrameType.Attribute, frame.FrameType); 86Assert.Equal(RenderTreeFrameType.Component, frame.FrameType); 104Assert.Equal(RenderTreeFrameType.Region, frame.FrameType); 111Assert.Equal(RenderTreeFrameType.Markup, frame.FrameType); 118Assert.Equal(RenderTreeFrameType.Text, frame.FrameType); 125Assert.Equal(RenderTreeFrameType.ElementReferenceCapture, frame.FrameType); 132Assert.Equal(RenderTreeFrameType.ComponentReferenceCapture, frame.FrameType); 139Assert.Equal(RenderTreeFrameType.ComponentReferenceCapture, frame.FrameType); 146Assert.Equal(RenderTreeFrameType.ComponentRenderMode, frame.FrameType); 153Assert.Equal(RenderTreeFrameType.NamedEvent, 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 (3)
src\Components\Shared\src\RenderBatchWriter.cs (3)
134_binaryWriter.Write((int)frame.FrameType); 142switch (frame.FrameType) 201throw new ArgumentException($"Unsupported frame type: {frame.FrameType}");
Microsoft.AspNetCore.Components.Tests (49)
CascadingParameterTest.cs (1)
901frame => frame.FrameType == RenderTreeFrameType.Component
RendererTest.cs (30)
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) 2650.Where(f => f.FrameType == RenderTreeFrameType.Attribute) 2684.Where(f => f.FrameType == RenderTreeFrameType.Attribute) 2726.Where(f => f.FrameType == RenderTreeFrameType.Attribute) 2771.Where(f => f.FrameType == RenderTreeFrameType.Component) 2777.Where(f => f.FrameType == RenderTreeFrameType.Attribute) 2812.Where(f => f.FrameType == RenderTreeFrameType.Attribute) 2864.Where(f => f.FrameType == RenderTreeFrameType.Attribute) 3057.Where(f => f.FrameType == RenderTreeFrameType.Attribute && f.AttributeName == "onmycustomevent") 3090.First(frame => frame.FrameType == RenderTreeFrameType.Attribute && frame.AttributeEventHandlerId != 0) 3132.First(frame => frame.FrameType == RenderTreeFrameType.Attribute && frame.AttributeEventHandlerId != 0) 3171.First(frame => frame.FrameType == RenderTreeFrameType.Attribute && frame.AttributeEventHandlerId != 0) 3211.First(frame => frame.FrameType == RenderTreeFrameType.Attribute && frame.AttributeEventHandlerId != 0) 3251.First(frame => frame.FrameType == RenderTreeFrameType.Attribute && frame.AttributeEventHandlerId != 0) 4220.Single(frame => frame.FrameType == RenderTreeFrameType.Component); 4335.First(frame => frame.FrameType == RenderTreeFrameType.Attribute && frame.AttributeEventHandlerId > 0) 4383.First(frame => frame.FrameType == RenderTreeFrameType.Attribute && frame.AttributeEventHandlerId > 0) 4669.Single(f => f.FrameType == RenderTreeFrameType.Attribute && f.AttributeName == "onmakeerror") 4708.Single(f => f.FrameType == RenderTreeFrameType.Attribute && f.AttributeName == "onmakeerror") 4757.Single(f => f.FrameType == RenderTreeFrameType.Attribute && f.AttributeName == "onmakeerror")
RenderTreeDiffBuilderTest.cs (1)
2438.Where(x => x.FrameType == RenderTreeFrameType.Component)
Routing\RouterTest.cs (3)
198Assert.Equal(RenderTreeFrameType.Text, renderedFrame.FrameType); 244Assert.Equal(RenderTreeFrameType.Text, renderedFrame.FrameType); 264Assert.Equal(RenderTreeFrameType.Text, renderedFrame.FrameType);
src\Components\Shared\test\AssertFrame.cs (13)
20Assert.Equal(RenderTreeFrameType.Text, frame.FrameType); 28Assert.Equal(RenderTreeFrameType.Markup, frame.FrameType); 36Assert.Equal(RenderTreeFrameType.Element, frame.FrameType); 44Assert.Equal(RenderTreeFrameType.Attribute, frame.FrameType); 86Assert.Equal(RenderTreeFrameType.Component, frame.FrameType); 104Assert.Equal(RenderTreeFrameType.Region, frame.FrameType); 111Assert.Equal(RenderTreeFrameType.Markup, frame.FrameType); 118Assert.Equal(RenderTreeFrameType.Text, frame.FrameType); 125Assert.Equal(RenderTreeFrameType.ElementReferenceCapture, frame.FrameType); 132Assert.Equal(RenderTreeFrameType.ComponentReferenceCapture, frame.FrameType); 139Assert.Equal(RenderTreeFrameType.ComponentReferenceCapture, frame.FrameType); 146Assert.Equal(RenderTreeFrameType.ComponentRenderMode, frame.FrameType); 153Assert.Equal(RenderTreeFrameType.NamedEvent, 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 (5)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (5)
77switch (frame.FrameType) 100throw new InvalidOperationException($"Invalid element frame type '{frame.FrameType}'."); 262if (frames.Array[frameIndex].FrameType == RenderTreeFrameType.Element) 296if (frame.FrameType != RenderTreeFrameType.Attribute) 298if (frame.FrameType == RenderTreeFrameType.ElementReferenceCapture)
Microsoft.AspNetCore.Components.Web.Tests (20)
Forms\EditFormTest.cs (3)
198.SkipWhile(f => f.FrameType != RenderTreeFrameType.Attribute) 199.TakeWhile(f => f.FrameType == RenderTreeFrameType.Attribute) 209.Where(f => f.FrameType == RenderTreeFrameType.Component)
Forms\InputNumberTest.cs (1)
89frame.FrameType == RenderTreeFrameType.Attribute &&
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 (13)
20Assert.Equal(RenderTreeFrameType.Text, frame.FrameType); 28Assert.Equal(RenderTreeFrameType.Markup, frame.FrameType); 36Assert.Equal(RenderTreeFrameType.Element, frame.FrameType); 44Assert.Equal(RenderTreeFrameType.Attribute, frame.FrameType); 86Assert.Equal(RenderTreeFrameType.Component, frame.FrameType); 104Assert.Equal(RenderTreeFrameType.Region, frame.FrameType); 111Assert.Equal(RenderTreeFrameType.Markup, frame.FrameType); 118Assert.Equal(RenderTreeFrameType.Text, frame.FrameType); 125Assert.Equal(RenderTreeFrameType.ElementReferenceCapture, frame.FrameType); 132Assert.Equal(RenderTreeFrameType.ComponentReferenceCapture, frame.FrameType); 139Assert.Equal(RenderTreeFrameType.ComponentReferenceCapture, frame.FrameType); 146Assert.Equal(RenderTreeFrameType.ComponentRenderMode, frame.FrameType); 153Assert.Equal(RenderTreeFrameType.NamedEvent, 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 (3)
src\Components\Shared\src\RenderBatchWriter.cs (3)
134_binaryWriter.Write((int)frame.FrameType); 142switch (frame.FrameType) 201throw new ArgumentException($"Unsupported frame type: {frame.FrameType}");
Microsoft.AspNetCore.Components.WebView.Test (4)
Infrastructure\TestDocument.cs (4)
200switch (frame.FrameType) 250throw new Exception($"Unknown frame type: {frame.FrameType}"); 297if (descendantFrame.FrameType == RenderTreeFrameType.Attribute) 425switch (frame.FrameType)