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