44 references to Element
Microsoft.AspNetCore.Components (25)
Rendering\RenderTreeBuilder.cs (11)
56_lastNonAttributeFrameType = RenderTreeFrameType.Element; 168if (_lastNonAttributeFrameType != RenderTreeFrameType.Element) 170throw new InvalidOperationException($"Valueless attributes may only be added immediately after frames of type {RenderTreeFrameType.Element}"); 358if (_lastNonAttributeFrameType == RenderTreeFrameType.Element) 543case RenderTreeFrameType.Element: 594if (GetCurrentParentFrameType() != RenderTreeFrameType.Element) 596throw new InvalidOperationException($"Element reference captures may only be added as children of frames of type {RenderTreeFrameType.Element}"); 677if (GetCurrentParentFrameType() != RenderTreeFrameType.Element) 679throw new InvalidOperationException($"Named events may only be added as children of frames of type {RenderTreeFrameType.Element}"); 717if (_lastNonAttributeFrameType != RenderTreeFrameType.Element 720throw new InvalidOperationException($"Attributes may only be added immediately after frames of type {RenderTreeFrameType.Element} or {RenderTreeFrameType.Component}");
Rendering\RenderTreeUpdater.cs (2)
29case RenderTreeFrameType.Element: 96case RenderTreeFrameType.Element:
RenderTree\RenderTreeDiffBuilder.cs (6)
382case RenderTreeFrameType.Element: 394case RenderTreeFrameType.Element: 545case RenderTreeFrameType.Element: 606case RenderTreeFrameType.Element: 804case RenderTreeFrameType.Element: 867case RenderTreeFrameType.Element:
RenderTree\RenderTreeFrame.cs (5)
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"/>, 309FrameTypeField = RenderTreeFrameType.Element; 468case RenderTreeFrameType.Element:
RenderTree\RenderTreeFrameArrayBuilder.cs (1)
27FrameTypeField = RenderTreeFrameType.Element,
Microsoft.AspNetCore.Components.Authorization.Tests (1)
src\Components\Shared\test\AssertFrame.cs (1)
36Assert.Equal(RenderTreeFrameType.Element, frame.FrameType);
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
174else if (candidate.FrameType == RenderTreeFrameType.Element)
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
ImportMapTest.cs (4)
68Assert.Equal(RenderTreeFrameType.Element, frames.Array[0].FrameType); 115Assert.Equal(RenderTreeFrameType.Element, frames.Array[0].FrameType); 180Assert.Equal(RenderTreeFrameType.Element, frames.Array[0].FrameType); 239Assert.Equal(RenderTreeFrameType.Element, frames.Array[0].FrameType);
Microsoft.AspNetCore.Components.Forms.Tests (1)
src\Components\Shared\test\AssertFrame.cs (1)
36Assert.Equal(RenderTreeFrameType.Element, frame.FrameType);
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
177case RenderTreeFrameType.Element:
Microsoft.AspNetCore.Components.Server.Tests (2)
Circuits\RenderBatchWriterTest.cs (2)
241RenderTreeFrameType.Element, 1234, "Some element", 0, 0, 250RenderTreeFrameType.Element, 999, "Some element", 0, 0,
Microsoft.AspNetCore.Components.Tests (3)
Rendering\RenderTreeBuilderTest.cs (2)
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);
src\Components\Shared\test\AssertFrame.cs (1)
36Assert.Equal(RenderTreeFrameType.Element, frame.FrameType);
Microsoft.AspNetCore.Components.Web (2)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (2)
79case RenderTreeFrameType.Element: 262if (frames.Array[frameIndex].FrameType == RenderTreeFrameType.Element)
Microsoft.AspNetCore.Components.Web.Tests (1)
src\Components\Shared\test\AssertFrame.cs (1)
36Assert.Equal(RenderTreeFrameType.Element, frame.FrameType);
Microsoft.AspNetCore.Components.WebView (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
177case RenderTreeFrameType.Element:
Microsoft.AspNetCore.Components.WebView.Test (2)
Infrastructure\TestDocument.cs (2)
202case RenderTreeFrameType.Element: 432case RenderTreeFrameType.Element: