341 references to RenderTreeFrameType
Microsoft.AspNetCore.Components (156)
ParameterView.cs (4)
190oldFinished = oldFrame.FrameTypeField != RenderTreeFrameType.Attribute; 191newFinished = newFrame.FrameTypeField != RenderTreeFrameType.Attribute; 260while (attributeFramesEndIndexExcl < ownerDescendantsEndIndexExcl && frames[attributeFramesEndIndexExcl].FrameType == RenderTreeFrameType.Attribute) 403if (_frames[nextIndex].FrameTypeField != RenderTreeFrameType.Attribute)
Rendering\RenderTreeBuilder.cs (43)
23private static readonly string ComponentReferenceCaptureInvalidParentMessage = $"Component reference captures may only be added as children of frames of type {RenderTreeFrameType.Component}"; 27private RenderTreeFrameType? _lastNonAttributeFrameType; 56_lastNonAttributeFrameType = RenderTreeFrameType.Element; 85_lastNonAttributeFrameType = RenderTreeFrameType.Markup; 96_lastNonAttributeFrameType = RenderTreeFrameType.Text; 168if (_lastNonAttributeFrameType != RenderTreeFrameType.Element) 170throw new InvalidOperationException($"Valueless attributes may only be added immediately after frames of type {RenderTreeFrameType.Element}"); 191if (_lastNonAttributeFrameType == RenderTreeFrameType.Component) 222if (value != null || _lastNonAttributeFrameType == RenderTreeFrameType.Component) 247if (value != null || _lastNonAttributeFrameType == RenderTreeFrameType.Component) 276if (_lastNonAttributeFrameType == RenderTreeFrameType.Component) 320if (_lastNonAttributeFrameType == RenderTreeFrameType.Component) 358if (_lastNonAttributeFrameType == RenderTreeFrameType.Element) 398else if (_lastNonAttributeFrameType == RenderTreeFrameType.Component) 422if (frame.FrameTypeField != RenderTreeFrameType.Attribute) 424throw new ArgumentException($"The {nameof(frame.FrameType)} must be {RenderTreeFrameType.Attribute}."); 477if (prevFrame.FrameTypeField != RenderTreeFrameType.Attribute) 543case RenderTreeFrameType.Element: 546case RenderTreeFrameType.Component: 566_lastNonAttributeFrameType = RenderTreeFrameType.Component; 594if (GetCurrentParentFrameType() != RenderTreeFrameType.Element) 596throw new InvalidOperationException($"Element reference captures may only be added as children of frames of type {RenderTreeFrameType.Element}"); 600_lastNonAttributeFrameType = RenderTreeFrameType.ElementReferenceCapture; 617if (_entries.Buffer[parentFrameIndexValue].FrameTypeField != RenderTreeFrameType.Component) 623_lastNonAttributeFrameType = RenderTreeFrameType.ComponentReferenceCapture; 652if (parentFrame.FrameTypeField != RenderTreeFrameType.Component) 654throw new InvalidOperationException($"The enclosing frame is not of the required type '{nameof(RenderTreeFrameType.Component)}'."); 660_lastNonAttributeFrameType = RenderTreeFrameType.ComponentRenderMode; 677if (GetCurrentParentFrameType() != RenderTreeFrameType.Element) 679throw new InvalidOperationException($"Named events may only be added as children of frames of type {RenderTreeFrameType.Element}"); 683_lastNonAttributeFrameType = RenderTreeFrameType.NamedEvent; 702_lastNonAttributeFrameType = RenderTreeFrameType.Region; 717if (_lastNonAttributeFrameType != RenderTreeFrameType.Element 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}"); 735private RenderTreeFrameType? GetCurrentParentFrameType() 740: (RenderTreeFrameType?)null; 800if (buffer[i].FrameTypeField != RenderTreeFrameType.Attribute) 812Debug.Assert(frame.FrameTypeField == RenderTreeFrameType.Attribute, $"Frame type is {frame.FrameTypeField} at {i}"); 855if (frame.FrameTypeField != RenderTreeFrameType.None)
Rendering\RenderTreeUpdater.cs (5)
29case RenderTreeFrameType.Element: 32case RenderTreeFrameType.Attribute: 62if (attributeFrame.FrameTypeField != RenderTreeFrameType.Attribute) 96case RenderTreeFrameType.Element: 106case RenderTreeFrameType.Region:
RenderTree\NamedEventChange.cs (2)
15/// <param name="frameIndex">The index of the <see cref="RenderTreeFrameType.NamedEvent"/> frame within the component's current render output.</param> 31/// The index of the <see cref="RenderTreeFrameType.NamedEvent"/> frame within the component's current render output.
RenderTree\Renderer.cs (4)
527if (frame.FrameTypeField != RenderTreeFrameType.Component) 529throw new ArgumentException($"The frame's {nameof(RenderTreeFrame.FrameType)} property must equal {RenderTreeFrameType.Component}", nameof(frameIndex)); 561case RenderTreeFrameType.Attribute: 563case RenderTreeFrameType.ComponentRenderMode:
RenderTree\RenderTreeDiffBuilder.cs (43)
379case RenderTreeFrameType.Component: 382case RenderTreeFrameType.Element: 394case RenderTreeFrameType.Element: 396case RenderTreeFrameType.Component: 543case RenderTreeFrameType.Component: 545case RenderTreeFrameType.Element: 547case RenderTreeFrameType.Region: 566var newFrameType = newFrame.FrameTypeField; 580case RenderTreeFrameType.Text: 593case RenderTreeFrameType.Markup: 606case RenderTreeFrameType.Element: 653case RenderTreeFrameType.Region: 662case RenderTreeFrameType.Component: 720case RenderTreeFrameType.ElementReferenceCapture: 730case RenderTreeFrameType.NamedEvent: 796case RenderTreeFrameType.Attribute: 803case RenderTreeFrameType.Component: 804case RenderTreeFrameType.Element: 812case RenderTreeFrameType.Region: 823case RenderTreeFrameType.Text: 824case RenderTreeFrameType.Markup: 831case RenderTreeFrameType.ElementReferenceCapture: 836case RenderTreeFrameType.ComponentReferenceCapture: 841case RenderTreeFrameType.NamedEvent: 857case RenderTreeFrameType.Attribute: 866case RenderTreeFrameType.Component: 867case RenderTreeFrameType.Element: 874case RenderTreeFrameType.Region: 885case RenderTreeFrameType.Text: 886case RenderTreeFrameType.Markup: 891case RenderTreeFrameType.NamedEvent: 907if (tree[index].FrameTypeField != RenderTreeFrameType.Attribute) 939case RenderTreeFrameType.Component: 942case RenderTreeFrameType.Attribute: 945case RenderTreeFrameType.ElementReferenceCapture: 948case RenderTreeFrameType.ComponentReferenceCapture: 951case RenderTreeFrameType.NamedEvent: 995if (parentFrame.FrameTypeField != RenderTreeFrameType.Component) 998throw new InvalidOperationException($"{nameof(RenderTreeFrameType.ComponentReferenceCapture)} frame references invalid parent index."); 1005throw new InvalidOperationException($"Trying to initialize {nameof(RenderTreeFrameType.ComponentReferenceCapture)} frame before parent component was assigned."); 1021if (frame.FrameTypeField == RenderTreeFrameType.Component && frame.ComponentStateField != null) 1025else if (frame.FrameTypeField == RenderTreeFrameType.Attribute && frame.AttributeEventHandlerIdField > 0) 1029else if (frame.FrameTypeField == RenderTreeFrameType.NamedEvent)
RenderTree\RenderTreeFrame.cs (45)
47[FieldOffset(4)] internal RenderTreeFrameType FrameTypeField; 59public RenderTreeFrameType FrameType => FrameTypeField; 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) 278throw new InvalidOperationException($"The {nameof(ComponentRenderMode)} field only exists on frames of type {nameof(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"/>, 309FrameTypeField = RenderTreeFrameType.Element; 320FrameTypeField = RenderTreeFrameType.Component; 337FrameTypeField = RenderTreeFrameType.Region; 348FrameTypeField = RenderTreeFrameType.Markup; 353FrameTypeField = RenderTreeFrameType.Text; 362FrameTypeField = RenderTreeFrameType.Attribute; 374FrameTypeField = RenderTreeFrameType.ElementReferenceCapture; 384FrameTypeField = RenderTreeFrameType.ComponentReferenceCapture; 418=> new RenderTreeFrame { SequenceField = sequence, FrameTypeField = RenderTreeFrameType.NamedEvent, NamedEventTypeField = eventType, NamedEventAssignedNameField = assignedName }; 421=> new RenderTreeFrame { SequenceField = sequence, FrameTypeField = RenderTreeFrameType.ComponentRenderMode, ComponentRenderModeField = renderMode }; 462case RenderTreeFrameType.Attribute: 465case RenderTreeFrameType.Component: 468case RenderTreeFrameType.Element: 471case RenderTreeFrameType.Region: 474case RenderTreeFrameType.Text: 477case RenderTreeFrameType.Markup: 480case RenderTreeFrameType.ElementReferenceCapture:
RenderTree\RenderTreeFrameArrayBuilder.cs (10)
27FrameTypeField = RenderTreeFrameType.Element, 42FrameTypeField = RenderTreeFrameType.Text, 57FrameTypeField = RenderTreeFrameType.Markup, 72FrameTypeField = RenderTreeFrameType.Attribute, 88FrameTypeField = RenderTreeFrameType.Component, 103FrameTypeField = RenderTreeFrameType.ElementReferenceCapture, 118FrameTypeField = RenderTreeFrameType.ComponentReferenceCapture, 134FrameTypeField = RenderTreeFrameType.Region, 148FrameTypeField = RenderTreeFrameType.ComponentRenderMode, 163FrameTypeField = RenderTreeFrameType.NamedEvent,
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsersRendererTypesInMethodBody.cs (2)
13var test = /*MMField*/RenderTreeFrameType.Attribute;
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 (3)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (3)
152if (frame.FrameType != RenderTreeFrameType.NamedEvent) 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.SdkAnalyzers.Tests (2)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsersRendererTypesInMethodBody.cs (2)
13var test = /*MMField*/RenderTreeFrameType.Attribute;
Microsoft.AspNetCore.Components.Server (10)
src\Components\Shared\src\RenderBatchWriter.cs (10)
144case RenderTreeFrameType.Attribute: 164case RenderTreeFrameType.Component: 169case RenderTreeFrameType.ComponentReferenceCapture: 170case RenderTreeFrameType.ComponentRenderMode: 171case RenderTreeFrameType.NamedEvent: 177case RenderTreeFrameType.Element: 182case RenderTreeFrameType.ElementReferenceCapture: 186case RenderTreeFrameType.Region: 190case RenderTreeFrameType.Text: 196case RenderTreeFrameType.Markup:
Microsoft.AspNetCore.Components.Server.Tests (18)
Circuits\RenderBatchWriterTest.cs (18)
236RenderTreeFrameType.Attribute, "Attribute with string value", "String value", 0, 0, 237RenderTreeFrameType.Attribute, "Attribute with nonstring value", NullStringMarker, 0, 0, 238RenderTreeFrameType.Attribute, "Attribute with delegate value", NullStringMarker, ((ulong)uint.MaxValue) + 1, 239RenderTreeFrameType.Component, 5678, 2000, 0, 0, 240RenderTreeFrameType.ComponentReferenceCapture, 0, 0, 0, 0, 241RenderTreeFrameType.Element, 1234, "Some element", 0, 0, 242RenderTreeFrameType.ElementReferenceCapture, "my unique ID", 0, 0, 0, 243RenderTreeFrameType.Region, 1234, 0, 0, 0, 244RenderTreeFrameType.Text, "Some text", 0, 0, 0, 245RenderTreeFrameType.Markup, "Some markup", 0, 0, 0, 246RenderTreeFrameType.Text, "\n\t ", 0, 0, 0, 247RenderTreeFrameType.NamedEvent, 0, 0, 0, 0, 248RenderTreeFrameType.ComponentRenderMode, 0, 0, 0, 0, 249RenderTreeFrameType.Attribute, "Attribute with string value", "String value", 0, 0, 250RenderTreeFrameType.Element, 999, "Some element", 0, 0, 251RenderTreeFrameType.Text, "Some text", 0, 0, 0, 252RenderTreeFrameType.Markup, "Some markup", 0, 0, 0, 253RenderTreeFrameType.Text, "\n\t ", 0, 0, 0
Microsoft.AspNetCore.Components.Tests (55)
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")
Rendering\RenderTreeBuilderTest.cs (6)
1767Assert.Equal($"Cannot set a key on a frame of type {RenderTreeFrameType.Region}.", ex.Message); 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); 2215Assert.Equal($"Named events may only be added as children of frames of type {RenderTreeFrameType.Element}", 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)
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 (12)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (12)
79case RenderTreeFrameType.Element: 81case RenderTreeFrameType.Attribute: 83case RenderTreeFrameType.Text: 86case RenderTreeFrameType.Markup: 89case RenderTreeFrameType.Component: 91case RenderTreeFrameType.Region: 93case RenderTreeFrameType.ElementReferenceCapture: 94case RenderTreeFrameType.ComponentReferenceCapture: 96case RenderTreeFrameType.NamedEvent: 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 (10)
src\Components\Shared\src\RenderBatchWriter.cs (10)
144case RenderTreeFrameType.Attribute: 164case RenderTreeFrameType.Component: 169case RenderTreeFrameType.ComponentReferenceCapture: 170case RenderTreeFrameType.ComponentRenderMode: 171case RenderTreeFrameType.NamedEvent: 177case RenderTreeFrameType.Element: 182case RenderTreeFrameType.ElementReferenceCapture: 186case RenderTreeFrameType.Region: 190case RenderTreeFrameType.Text: 196case RenderTreeFrameType.Markup:
Microsoft.AspNetCore.Components.WebView.Test (11)
Infrastructure\TestDocument.cs (11)
202case RenderTreeFrameType.Element: 208case RenderTreeFrameType.Text: 214case RenderTreeFrameType.Attribute: 219case RenderTreeFrameType.Component: 225case RenderTreeFrameType.Region: 230case RenderTreeFrameType.ElementReferenceCapture: 242case RenderTreeFrameType.Markup: 297if (descendantFrame.FrameType == RenderTreeFrameType.Attribute) 430case RenderTreeFrameType.Component: 432case RenderTreeFrameType.Element: 434case RenderTreeFrameType.Region: