10 instantiations of RenderTreeEdit
Microsoft.AspNetCore.Components (10)
RenderTree\RenderTreeEdit.cs (10)
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);
54 references to RenderTreeEdit
Microsoft.AspNetCore.Components (28)
Rendering\RenderBatchBuilder.cs (2)
28public ArrayBuilder<RenderTreeEdit> EditsBuffer { get; } = new ArrayBuilder<RenderTreeEdit>(64);
RenderTree\RenderTreeDiff.cs (2)
22public readonly ArrayBuilderSegment<RenderTreeEdit> Edits; 26ArrayBuilderSegment<RenderTreeEdit> entries)
RenderTree\RenderTreeDiffBuilder.cs (14)
302RenderTreeEdit.PermutationListEntry(value.OldSiblingIndex, value.NewSiblingIndex)); 310diffContext.Edits.Append(RenderTreeEdit.PermutationListEnd()); 587diffContext.Edits.Append(RenderTreeEdit.UpdateText(diffContext.SiblingIndex, referenceFrameIndex)); 600diffContext.Edits.Append(RenderTreeEdit.UpdateMarkup(diffContext.SiblingIndex, referenceFrameIndex)); 629diffContext.Edits.Append(RenderTreeEdit.StepIn(diffContext.SiblingIndex)); 771diffContext.Edits.Append(RenderTreeEdit.SetAttribute(diffContext.SiblingIndex, referenceFrameIndex)); 800diffContext.Edits.Append(RenderTreeEdit.SetAttribute(diffContext.SiblingIndex, referenceFrameIndex)); 808diffContext.Edits.Append(RenderTreeEdit.PrependFrame(diffContext.SiblingIndex, referenceFrameIndex)); 827diffContext.Edits.Append(RenderTreeEdit.PrependFrame(diffContext.SiblingIndex, referenceFrameIndex)); 859diffContext.Edits.Append(RenderTreeEdit.RemoveAttribute(diffContext.SiblingIndex, oldFrame.AttributeNameField)); 871diffContext.Edits.Append(RenderTreeEdit.RemoveFrame(diffContext.SiblingIndex)); 888diffContext.Edits.Append(RenderTreeEdit.RemoveFrame(diffContext.SiblingIndex)); 926diffContext.Edits.Append(RenderTreeEdit.StepOut()); 1049public readonly ArrayBuilder<RenderTreeEdit> Edits;
RenderTree\RenderTreeEdit.cs (10)
77internal static RenderTreeEdit RemoveFrame(int siblingIndex) 80internal static RenderTreeEdit PrependFrame(int siblingIndex, int referenceFrameIndex) 83internal static RenderTreeEdit UpdateText(int siblingIndex, int referenceFrameIndex) 86internal static RenderTreeEdit UpdateMarkup(int siblingIndex, int referenceFrameIndex) 89internal static RenderTreeEdit SetAttribute(int siblingIndex, int referenceFrameIndex) 92internal static RenderTreeEdit RemoveAttribute(int siblingIndex, string name) 95internal static RenderTreeEdit StepIn(int siblingIndex) 98internal static RenderTreeEdit StepOut() 101internal static RenderTreeEdit PermutationListEntry(int fromSiblingIndex, int toSiblingIndex) 104internal static RenderTreeEdit PermutationListEnd()
Microsoft.AspNetCore.Components.Authorization.Tests (2)
AuthorizeRouteViewTest.cs (1)
370private static void AssertPrependText(CapturedBatch batch, RenderTreeEdit edit, string text)
src\Components\Shared\test\CapturedBatch.cs (1)
34var cloneBuilder = new ArrayBuilder<RenderTreeEdit>();
Microsoft.AspNetCore.Components.Forms.Tests (1)
src\Components\Shared\test\CapturedBatch.cs (1)
34var cloneBuilder = new ArrayBuilder<RenderTreeEdit>();
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
100void Write(in RenderTreeEdit edit)
Microsoft.AspNetCore.Components.Server.Tests (10)
Circuits\RenderBatchWriterTest.cs (10)
145RenderTreeEdit.PrependFrame(456, 789), 146RenderTreeEdit.RemoveFrame(101), 147RenderTreeEdit.SetAttribute(102, 103), 148RenderTreeEdit.RemoveAttribute(104, "Some removed attribute"), 149RenderTreeEdit.UpdateText(105, 106), 150RenderTreeEdit.StepIn(107), 151RenderTreeEdit.StepOut(), 152RenderTreeEdit.UpdateMarkup(108, 109), 153RenderTreeEdit.RemoveAttribute(110, "Some removed attribute"), // To test deduplication 155var editsBuilder = new RenderTree.ArrayBuilder<RenderTreeEdit>();
Microsoft.AspNetCore.Components.Tests (7)
RendererTest.cs (4)
2945var edit1 = batch1.DiffsByComponentId[componentId].Single().Edits.Single(); 2954var edit2 = batch2.DiffsByComponentId[componentId].Single().Edits.Single(); 3004var diff2edit = diff2.Edits.Single(); 3012var diff3edit = diff3.Edits.Single();
RenderTreeDiffBuilderTest.cs (2)
2539RenderTreeEdit edit, 2548RenderTreeEdit edit,
src\Components\Shared\test\CapturedBatch.cs (1)
34var cloneBuilder = new ArrayBuilder<RenderTreeEdit>();
Microsoft.AspNetCore.Components.Web.Tests (1)
src\Components\Shared\test\CapturedBatch.cs (1)
34var cloneBuilder = new ArrayBuilder<RenderTreeEdit>();
Microsoft.AspNetCore.Components.WebView (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
100void Write(in RenderTreeEdit edit)
Microsoft.AspNetCore.Components.WebView.Test (3)
Infrastructure\TestDocument.cs (3)
47private void UpdateComponent(RenderBatch batch, int componentId, ArrayBuilderSegment<RenderTreeEdit> edits) 68private void ApplyEdits(RenderBatch batch, ContainerNode parent, int childIndex, ArrayBuilderSegment<RenderTreeEdit> edits) 76var edit = edits.Array[editIndex];