221 references to RenderTreeEditType
Microsoft.AspNetCore.Components (20)
RenderTree\RenderBatch.cs (1)
21
/// For example, edit entries of type <see cref="
RenderTreeEditType
.PrependFrame"/>
RenderTree\RenderTreeDiffBuilder.cs (1)
920
if (previousIndex >= 0 && diffContext.Edits.Buffer[previousIndex].Type ==
RenderTreeEditType
.StepIn)
RenderTree\RenderTreeEdit.cs (18)
20
[FieldOffset(0)] public readonly
RenderTreeEditType
Type;
29
/// <see cref="Type"/> value is <see cref="
RenderTreeEditType
.PrependFrame"/>, gets the
35
/// If the <see cref="Type"/> value is <see cref="
RenderTreeEditType
.PermutationListEntry"/>,
44
/// If the <see cref="Type"/> value is <see cref="
RenderTreeEditType
.RemoveAttribute"/>,
49
private RenderTreeEdit(
RenderTreeEditType
type) : this()
54
private RenderTreeEdit(
RenderTreeEditType
type, int siblingIndex) : this()
60
private RenderTreeEdit(
RenderTreeEditType
type, int siblingIndex, int referenceFrameOrMoveToSiblingIndex) : this()
70
private RenderTreeEdit(
RenderTreeEditType
type, int siblingIndex, string removedAttributeName) : this()
78
=> new RenderTreeEdit(
RenderTreeEditType
.RemoveFrame, siblingIndex);
81
=> new RenderTreeEdit(
RenderTreeEditType
.PrependFrame, siblingIndex, referenceFrameIndex);
84
=> new RenderTreeEdit(
RenderTreeEditType
.UpdateText, siblingIndex, referenceFrameIndex);
87
=> new RenderTreeEdit(
RenderTreeEditType
.UpdateMarkup, siblingIndex, referenceFrameIndex);
90
=> new RenderTreeEdit(
RenderTreeEditType
.SetAttribute, siblingIndex, referenceFrameIndex);
93
=> new RenderTreeEdit(
RenderTreeEditType
.RemoveAttribute, siblingIndex, name);
96
=> new RenderTreeEdit(
RenderTreeEditType
.StepIn, siblingIndex);
99
=> new RenderTreeEdit(
RenderTreeEditType
.StepOut);
102
=> new RenderTreeEdit(
RenderTreeEditType
.PermutationListEntry, fromSiblingIndex, toSiblingIndex);
105
=> new RenderTreeEdit(
RenderTreeEditType
.PermutationListEnd);
Microsoft.AspNetCore.Components.Authorization.Tests (19)
AuthorizeRouteViewTest.cs (6)
67
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
104
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
239
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
358
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
365
Assert.Equal(
RenderTreeEditType
.RemoveFrame, edit.Type);
372
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
AuthorizeViewTest.cs (9)
69
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
133
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
169
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
216
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
283
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
314
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
332
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
372
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
390
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
CascadingAuthenticationStateTest.cs (4)
57
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
92
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
110
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
146
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
Microsoft.AspNetCore.Components.Server.Tests (9)
Circuits\RenderBatchWriterTest.cs (9)
177
RenderTreeEditType
.PrependFrame, 456, 789, NullStringMarker,
178
RenderTreeEditType
.RemoveFrame, 101, 0, NullStringMarker,
179
RenderTreeEditType
.SetAttribute, 102, 103, NullStringMarker,
180
RenderTreeEditType
.RemoveAttribute, 104, 0, "Some removed attribute",
181
RenderTreeEditType
.UpdateText, 105, 106, NullStringMarker,
182
RenderTreeEditType
.StepIn, 107, 0, NullStringMarker,
183
RenderTreeEditType
.StepOut, 0, 0, NullStringMarker,
184
RenderTreeEditType
.UpdateMarkup, 108, 109, NullStringMarker,
185
RenderTreeEditType
.RemoveAttribute, 110, 0, "Some removed attribute"
Microsoft.AspNetCore.Components.Tests (163)
CascadingParameterTest.cs (16)
42
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
91
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
137
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
282
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
426
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
434
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
473
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
509
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
547
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
589
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
608
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
624
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
659
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
684
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
755
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
779
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
LayoutViewTest.cs (6)
190
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
232
Assert.Equal(
RenderTreeEditType
.RemoveFrame, edit.Type);
237
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
250
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
258
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
266
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
RendererTest.cs (30)
50
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
89
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
111
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
124
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
156
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
169
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
199
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
214
Assert.Equal(
RenderTreeEditType
.StepIn, edit.Type);
218
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
222
Assert.Equal(
RenderTreeEditType
.StepOut, edit.Type);
292
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
308
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
2015
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
2025
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
2062
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
2138
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
2176
Assert.Equal(
RenderTreeEditType
.SetAttribute, edit.Type);
2885
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
2897
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
2909
Assert.Equal(
RenderTreeEditType
.UpdateText, edit.Type);
2946
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit1.Type);
2955
Assert.Equal(
RenderTreeEditType
.UpdateText, edit2.Type);
2989
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
2995
Assert.Equal(
RenderTreeEditType
.PrependFrame, edit.Type);
3005
Assert.Equal(
RenderTreeEditType
.PrependFrame, diff2edit.Type);
3013
Assert.Equal(
RenderTreeEditType
.UpdateText, diff3edit.Type);
3073
Assert.Equal(
RenderTreeEditType
.RemoveFrame, edit.Type);
3297
Assert.Equal(
RenderTreeEditType
.SetAttribute, edit.Type);
4360
Assert.Equal(
RenderTreeEditType
.SetAttribute, edit.Type);
4412
Assert.Equal(
RenderTreeEditType
.SetAttribute, edit.Type);
RenderTreeDiffBuilderTest.cs (111)
87
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 1);
108
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 1));
140
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 0);
173
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 0));
200
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 0);
204
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 1));
241
entry => AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 0));
283
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 0));
315
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 0));
344
entry => AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 0));
378
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 0);
382
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 1));
463
edit => AssertEdit(edit,
RenderTreeEditType
.PrependFrame, 0),
464
edit => AssertEdit(edit,
RenderTreeEditType
.PrependFrame, 2));
494
edit => AssertEdit(edit,
RenderTreeEditType
.RemoveFrame, 0),
495
edit => AssertEdit(edit,
RenderTreeEditType
.RemoveFrame, 1));
521
AssertEdit(edit,
RenderTreeEditType
.PrependFrame, 0);
525
edit => AssertEdit(edit,
RenderTreeEditType
.RemoveFrame, 1));
549
edit => AssertEdit(edit,
RenderTreeEditType
.RemoveFrame, 0),
551
edit => AssertEdit(edit,
RenderTreeEditType
.PrependFrame, 0));
570
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 1),
571
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 1));
592
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 1);
597
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 2);
620
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 2),
621
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 2));
642
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 2);
647
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 3);
672
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 1);
677
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 2);
700
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 1),
701
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 1));
716
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 0),
717
entry => AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 0));
736
AssertEdit(entry,
RenderTreeEditType
.UpdateText, 0);
741
AssertEdit(entry,
RenderTreeEditType
.UpdateText, 1);
764
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 1);
770
AssertEdit(entry,
RenderTreeEditType
.UpdateMarkup, 2);
776
AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 3);
798
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 0),
801
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 0);
824
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 0),
827
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 0);
851
AssertEdit(entry,
RenderTreeEditType
.SetAttribute, 0);
876
AssertEdit(entry,
RenderTreeEditType
.RemoveAttribute, 0);
901
AssertEdit(entry,
RenderTreeEditType
.SetAttribute, 0);
931
AssertEdit(entry,
RenderTreeEditType
.SetAttribute, 0);
959
AssertEdit(entry,
RenderTreeEditType
.RemoveAttribute, 0);
964
AssertEdit(entry,
RenderTreeEditType
.SetAttribute, 0);
992
AssertEdit(entry,
RenderTreeEditType
.SetAttribute, 0);
1022
AssertEdit(entry,
RenderTreeEditType
.SetAttribute, 0);
1053
AssertEdit(entry,
RenderTreeEditType
.SetAttribute, 0);
1084
AssertEdit(entry,
RenderTreeEditType
.SetAttribute, 0);
1114
AssertEdit(entry,
RenderTreeEditType
.SetAttribute, 0);
1145
AssertEdit(entry,
RenderTreeEditType
.SetAttribute, 0);
1176
AssertEdit(entry,
RenderTreeEditType
.RemoveAttribute, 0);
1203
AssertEdit(entry,
RenderTreeEditType
.RemoveAttribute, 0);
1230
AssertEdit(entry,
RenderTreeEditType
.RemoveAttribute, 0);
1257
AssertEdit(entry,
RenderTreeEditType
.RemoveAttribute, 0);
1284
AssertEdit(entry,
RenderTreeEditType
.RemoveAttribute, 0);
1311
AssertEdit(entry,
RenderTreeEditType
.RemoveAttribute, 0);
1343
entry => AssertEdit(entry,
RenderTreeEditType
.StepIn, 1),
1344
entry => AssertEdit(entry,
RenderTreeEditType
.StepIn, 0),
1345
entry => AssertEdit(entry,
RenderTreeEditType
.StepIn, 0),
1348
AssertEdit(entry,
RenderTreeEditType
.UpdateText, 0);
1351
entry => AssertEdit(entry,
RenderTreeEditType
.StepOut, 0),
1352
entry => AssertEdit(entry,
RenderTreeEditType
.StepOut, 0),
1353
entry => AssertEdit(entry,
RenderTreeEditType
.StepOut, 0));
1384
entry => AssertEdit(entry,
RenderTreeEditType
.StepIn, 0),
1387
AssertEdit(entry,
RenderTreeEditType
.UpdateText, 0);
1390
entry => AssertEdit(entry,
RenderTreeEditType
.StepOut, 0));
1414
AssertEdit(entry,
RenderTreeEditType
.UpdateText, 1);
1439
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 1);
1470
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 1);
1476
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 2);
1502
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 1),
1503
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 1));
1534
AssertEdit(entry,
RenderTreeEditType
.UpdateText, 1);
1538
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 2),
1541
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 2);
1568
entry => AssertEdit(entry,
RenderTreeEditType
.StepIn, 1),
1571
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 0);
1576
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 1);
1579
entry => AssertEdit(entry,
RenderTreeEditType
.StepOut, 0));
1602
AssertEdit(rootComponentDiff.Edits.Single(),
RenderTreeEditType
.PrependFrame, 0);
1860
AssertEdit(edit,
RenderTreeEditType
.PrependFrame, 0);
1930
AssertEdit(edit,
RenderTreeEditType
.PrependFrame, 0);
2005
entry => AssertEdit(entry,
RenderTreeEditType
.StepIn, 0),
2008
AssertEdit(entry,
RenderTreeEditType
.UpdateText, 0);
2012
entry => AssertEdit(entry,
RenderTreeEditType
.StepOut, 0),
2017
entry => AssertEdit(entry,
RenderTreeEditType
.PermutationListEnd, 0));
2071
entry => AssertEdit(entry,
RenderTreeEditType
.PermutationListEnd, 0));
2092
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 1);
2098
entry => AssertEdit(entry,
RenderTreeEditType
.PermutationListEnd, 0));
2117
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 1),
2120
entry => AssertEdit(entry,
RenderTreeEditType
.PermutationListEnd, 0));
2141
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 0);
2147
entry => AssertEdit(entry,
RenderTreeEditType
.PermutationListEnd, 0));
2166
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 1),
2169
entry => AssertEdit(entry,
RenderTreeEditType
.PermutationListEnd, 0));
2188
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 0);
2192
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 1));
2212
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 0);
2216
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 1));
2241
AssertEdit(entry,
RenderTreeEditType
.PrependFrame, 1);
2270
entry => AssertEdit(entry,
RenderTreeEditType
.RemoveFrame, 1));
2295
AssertEdit(entry,
RenderTreeEditType
.SetAttribute, 0);
2356
AssertEdit(entry,
RenderTreeEditType
.SetAttribute, 0);
2389
AssertEdit(entry,
RenderTreeEditType
.RemoveAttribute, 0);
2540
RenderTreeEditType
type,
2552
Assert.Equal(
RenderTreeEditType
.PermutationListEntry, edit.Type);
Microsoft.AspNetCore.Components.WebView.Test (10)
Infrastructure\TestDocument.cs (10)
79
case
RenderTreeEditType
.PrependFrame:
87
case
RenderTreeEditType
.RemoveFrame:
94
case
RenderTreeEditType
.SetAttribute:
110
case
RenderTreeEditType
.RemoveAttribute:
134
case
RenderTreeEditType
.UpdateText:
150
case
RenderTreeEditType
.UpdateMarkup:
159
case
RenderTreeEditType
.StepIn:
168
case
RenderTreeEditType
.StepOut:
176
case
RenderTreeEditType
.PermutationListEntry:
182
case
RenderTreeEditType
.PermutationListEnd: