57 references to FrameType
Microsoft.AspNetCore.Components (32)
ParameterView.cs (1)
260while (attributeFramesEndIndexExcl < ownerDescendantsEndIndexExcl && frames[attributeFramesEndIndexExcl].FrameType == RenderTreeFrameType.Attribute)
Rendering\ComponentState.cs (2)
365Debug.Assert(currentFrame.FrameType != RenderTreeFrameType.Component || currentFrame.Component != null, "GetComponentKey is being invoked too soon, ComponentState is not fully constructed."); 367if (currentFrame.FrameType != RenderTreeFrameType.Component ||
Rendering\RenderTreeBuilder.cs (2)
428throw new ArgumentException($"The {nameof(frame.FrameType)} must be {RenderTreeFrameType.Attribute}."); 816throw 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)
607throw new ArgumentException($"The frame's {nameof(RenderTreeFrame.FrameType)} property must equal {RenderTreeFrameType.Component}", nameof(frameIndex)); 637switch (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.Endpoints (11)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (4)
219if (frame.FrameType != RenderTreeFrameType.NamedEvent) 222throw new InvalidOperationException($"The named value frame for component '{componentId}' at index '{frameIndex}' unexpectedly matches a frame of type '{frame.FrameType}'."); 234if (candidate.FrameType == RenderTreeFrameType.Attribute) 241else if (candidate.FrameType == RenderTreeFrameType.Element)
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
309if (frame.FrameType == RenderTreeFrameType.Component &&
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (2)
58if (frame.FrameType is not RenderTreeFrameType.Component) 67for (var j = i + 1; j < componentSubtreeEnd && frames.Array[j].FrameType is RenderTreeFrameType.Attribute; j++)
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (4)
47switch (frame.FrameType) 67while (position < subtreeEnd && frames[position].FrameType is RenderTreeFrameType.Attribute) 115while (position < subtreeEnd && frames[position].FrameType is RenderTreeFrameType.Attribute) 160throw new NotImplementedException($"Serialization for frame type '{frame.FrameType}' is not implemented.");
Microsoft.AspNetCore.Components.Server (9)
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (3)
134_binaryWriter.Write((int)frame.FrameType); 142switch (frame.FrameType) 201throw new ArgumentException($"Unsupported frame type: {frame.FrameType}");
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (2)
58if (frame.FrameType is not RenderTreeFrameType.Component) 67for (var j = i + 1; j < componentSubtreeEnd && frames.Array[j].FrameType is RenderTreeFrameType.Attribute; j++)
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (4)
47switch (frame.FrameType) 67while (position < subtreeEnd && frames[position].FrameType is RenderTreeFrameType.Attribute) 115while (position < subtreeEnd && frames[position].FrameType is RenderTreeFrameType.Attribute) 160throw new NotImplementedException($"Serialization for frame type '{frame.FrameType}' is not implemented.");
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)