1 write to ReferenceFrameIndex
Microsoft.AspNetCore.Components (1)
RenderTree\RenderTreeEdit.cs (1)
67ReferenceFrameIndex = referenceFrameOrMoveToSiblingIndex;
138 references to ReferenceFrameIndex
Microsoft.AspNetCore.Components.Authorization.Tests (18)
AuthorizeRouteViewTest.cs (5)
68AssertFrame.Component<TestPageRequiringAuthorization>(batch.ReferenceFrames[edit.ReferenceFrameIndex]); 105AssertFrame.Component<TestPageRequiringAuthorization>(batch.ReferenceFrames[edit.ReferenceFrameIndex]); 241AssertFrame.Text(batch.ReferenceFrames[edit.ReferenceFrameIndex], "Go away, Bert"); 360AssertFrame.Text(batch2.ReferenceFrames[edit.ReferenceFrameIndex], "Not authorized"); 373ref var referenceFrame = ref batch.ReferenceFrames[edit.ReferenceFrameIndex];
AuthorizeViewTest.cs (9)
71renderer.Batches.Single().ReferenceFrames[edit.ReferenceFrameIndex], 135renderer.Batches.Single().ReferenceFrames[edit.ReferenceFrameIndex], 171renderer.Batches.Single().ReferenceFrames[edit.ReferenceFrameIndex], 218batch.ReferenceFrames[edit.ReferenceFrameIndex], 285batch2.ReferenceFrames[edit.ReferenceFrameIndex], 316batch1.ReferenceFrames[edit.ReferenceFrameIndex], 335batch2.ReferenceFrames[edit.ReferenceFrameIndex], 374batch1.ReferenceFrames[edit.ReferenceFrameIndex], 393batch2.ReferenceFrames[edit.ReferenceFrameIndex],
CascadingAuthenticationStateTest.cs (4)
59batch.ReferenceFrames[edit.ReferenceFrameIndex], 94batch1.ReferenceFrames[edit.ReferenceFrameIndex], 112batch2.ReferenceFrames[edit.ReferenceFrameIndex], 148batch.ReferenceFrames[edit.ReferenceFrameIndex],
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
111_binaryWriter.Write(edit.ReferenceFrameIndex);
Microsoft.AspNetCore.Components.Tests (113)
CascadingParameterTest.cs (17)
44batch.ReferenceFrames[edit.ReferenceFrameIndex], 92Assert.Equal(0, edit.ReferenceFrameIndex); // This is the only change 138Assert.Equal(0, edit.ReferenceFrameIndex); // This is the only change 284firstBatch.ReferenceFrames[edit.ReferenceFrameIndex], 428batch.ReferenceFrames[edit.ReferenceFrameIndex], 436batch.ReferenceFrames[edit.ReferenceFrameIndex], 475batch.ReferenceFrames[edit.ReferenceFrameIndex], 511batch.ReferenceFrames[edit.ReferenceFrameIndex], 549batch.ReferenceFrames[edit.ReferenceFrameIndex], 591firstBatch.ReferenceFrames[edit.ReferenceFrameIndex], 609Assert.Equal(0, edit.ReferenceFrameIndex); // This is the only change 625Assert.Equal(0, edit.ReferenceFrameIndex); // This is the only change 661firstBatch.ReferenceFrames[edit.ReferenceFrameIndex], 674secondBatch.ReferenceFrames[diff2.Edits[0].ReferenceFrameIndex], 686secondBatch.ReferenceFrames[edit.ReferenceFrameIndex], 756AssertFrame.Text(firstBatch.ReferenceFrames[edit.ReferenceFrameIndex], "CascadingParameter=Hello; SingleDeliveryCascadingParameter=Initial single delivery value; RegularParameter=Initial value"); 780Assert.Equal(0, edit.ReferenceFrameIndex);
LayoutViewTest.cs (5)
193batch.ReferenceFrames[edit.ReferenceFrameIndex], 240batch.ReferenceFrames[edit.ReferenceFrameIndex], 253batch.ReferenceFrames[edit.ReferenceFrameIndex], 261batch.ReferenceFrames[edit.ReferenceFrameIndex], 269batch.ReferenceFrames[edit.ReferenceFrameIndex],
RendererTest.cs (32)
51Assert.Equal(0, edit.ReferenceFrameIndex); 91batch.ReferenceFrames[edit.ReferenceFrameIndex], 112Assert.Equal(0, edit.ReferenceFrameIndex); 125Assert.Equal(0, edit.ReferenceFrameIndex); 157Assert.Equal(0, edit.ReferenceFrameIndex); 170Assert.Equal(0, edit.ReferenceFrameIndex); 200Assert.Equal(0, edit.ReferenceFrameIndex); 293Assert.Equal(0, edit.ReferenceFrameIndex); 309Assert.Equal(0, edit.ReferenceFrameIndex); 2016AssertFrame.Text(renderer1Batch.ReferenceFrames[edit.ReferenceFrameIndex], 2026AssertFrame.Text(renderer2Batch.ReferenceFrames[edit.ReferenceFrameIndex], 2063Assert.Equal(0, edit.ReferenceFrameIndex); 2139Assert.Equal(0, edit.ReferenceFrameIndex); 2177Assert.Equal(0, edit.ReferenceFrameIndex); 2241.Select(edit => batch.ReferenceFrames[edit.ReferenceFrameIndex]) 2643.Select(e => batch.ReferenceFrames[e.ReferenceFrameIndex]) 2649.Skip(childComponentDiff.Edits[0].ReferenceFrameIndex) // Search from where the child component frames start 2770.Select(e => batch.ReferenceFrames[e.ReferenceFrameIndex]) 2776.Skip(childComponentDiff.Edits[0].ReferenceFrameIndex) // Search from where the child component frames start 2887batch.ReferenceFrames[edit.ReferenceFrameIndex], 2899batch.ReferenceFrames[edit.ReferenceFrameIndex], 2911batch.ReferenceFrames[edit.ReferenceFrameIndex], 2947AssertFrame.Text(batch1.ReferenceFrames[edit1.ReferenceFrameIndex], 2956AssertFrame.Text(batch2.ReferenceFrames[edit2.ReferenceFrameIndex], 2991batch.ReferenceFrames[edit.ReferenceFrameIndex]); 2997batch.ReferenceFrames[edit.ReferenceFrameIndex], 3006AssertFrame.Text(batch.ReferenceFrames[diff2edit.ReferenceFrameIndex], 3014AssertFrame.Text(batch.ReferenceFrames[diff3edit.ReferenceFrameIndex], 3299AssertFrame.Attribute(latestBatch.ReferenceFrames[edit.ReferenceFrameIndex], 3423edit => (AfterRenderCaptureComponent)batch1.ReferenceFrames[edit.ReferenceFrameIndex].Component) 4361var attributeFrame = batch2.ReferenceFrames[edit.ReferenceFrameIndex]; 4413var attributeFrame = latestBatch.ReferenceFrames[edit.ReferenceFrameIndex];
RenderTreeDiffBuilderTest.cs (59)
88Assert.Equal(0, entry.ReferenceFrameIndex); 141Assert.Equal(0, entry.ReferenceFrameIndex); 142Assert.Equal("new key", referenceFrames[entry.ReferenceFrameIndex].ElementKey); 201Assert.Equal(0, entry.ReferenceFrameIndex); 202Assert.Equal("new key", referenceFrames[entry.ReferenceFrameIndex].ElementKey); 379Assert.Equal(0, entry.ReferenceFrameIndex); 380Assert.Equal("new key", referenceFrames[entry.ReferenceFrameIndex].ComponentKey); 522Assert.Equal("some key", referenceFrames[edit.ReferenceFrameIndex].ElementKey); 593Assert.Equal(0, entry.ReferenceFrameIndex); 598Assert.Equal(1, entry.ReferenceFrameIndex); 643Assert.Equal(0, entry.ReferenceFrameIndex); 648Assert.Equal(1, entry.ReferenceFrameIndex); 673Assert.Equal(0, entry.ReferenceFrameIndex); 678Assert.Equal(1, entry.ReferenceFrameIndex); 737Assert.Equal(0, entry.ReferenceFrameIndex); 742Assert.Equal(1, entry.ReferenceFrameIndex); 765Assert.Equal(0, entry.ReferenceFrameIndex); 766Assert.Equal("was inserted", referenceFrames[entry.ReferenceFrameIndex].MarkupContent); 771Assert.Equal(1, entry.ReferenceFrameIndex); 772Assert.Equal("was updated", referenceFrames[entry.ReferenceFrameIndex].MarkupContent); 802Assert.Equal(0, entry.ReferenceFrameIndex); 828Assert.IsType<FakeComponent2>(batchBuilder.ReferenceFramesBuffer.Buffer[entry.ReferenceFrameIndex].Component); 852Assert.Equal(0, entry.ReferenceFrameIndex); 902Assert.Equal(0, entry.ReferenceFrameIndex); 932Assert.Equal(0, entry.ReferenceFrameIndex); 965Assert.Equal(0, entry.ReferenceFrameIndex); 993Assert.Equal(0, entry.ReferenceFrameIndex); 1023Assert.Equal(0, entry.ReferenceFrameIndex); 1054Assert.Equal(0, entry.ReferenceFrameIndex); 1085Assert.Equal(0, entry.ReferenceFrameIndex); 1115Assert.Equal(0, entry.ReferenceFrameIndex); 1146Assert.Equal(0, entry.ReferenceFrameIndex); 1349Assert.Equal(0, entry.ReferenceFrameIndex); 1388Assert.Equal(0, entry.ReferenceFrameIndex); 1415Assert.Equal(0, entry.ReferenceFrameIndex); 1440Assert.Equal(0, entry.ReferenceFrameIndex); 1472referenceFrames[entry.ReferenceFrameIndex], "Text inside region"); 1478referenceFrames[entry.ReferenceFrameIndex], "Text inside nested region"); 1536referenceFrames[entry.ReferenceFrameIndex], "Changed text inside region"); 1543referenceFrames[entry.ReferenceFrameIndex], "Text to move"); 1572Assert.Equal(0, entry.ReferenceFrameIndex); 1577Assert.Equal(1, entry.ReferenceFrameIndex); 1861Assert.Equal(0, edit.ReferenceFrameIndex); 1931Assert.Equal(0, edit.ReferenceFrameIndex); 2009Assert.Equal(0, entry.ReferenceFrameIndex); 2010Assert.Equal("First modified", referenceFrames[entry.ReferenceFrameIndex].TextContent); 2093Assert.Equal(0, entry.ReferenceFrameIndex); 2094Assert.Equal("newly inserted", referenceFrames[entry.ReferenceFrameIndex].ElementKey); 2142Assert.Equal(0, entry.ReferenceFrameIndex); 2143Assert.Equal("newly inserted", referenceFrames[entry.ReferenceFrameIndex].ElementKey); 2189Assert.Equal(0, entry.ReferenceFrameIndex); 2190Assert.Equal("some text", referenceFrames[entry.ReferenceFrameIndex].TextContent); 2213Assert.Equal(0, entry.ReferenceFrameIndex); 2214Assert.Equal("some elem", referenceFrames[entry.ReferenceFrameIndex].ElementName); 2242Assert.Equal(0, entry.ReferenceFrameIndex); 2243Assert.Equal("new element", referenceFrames[entry.ReferenceFrameIndex].ElementName); 2296Assert.Equal(0, entry.ReferenceFrameIndex); 2297Assert.Equal("attr1", referenceFrames[entry.ReferenceFrameIndex].AttributeName); 2357Assert.Equal(0, entry.ReferenceFrameIndex);
Microsoft.AspNetCore.Components.WebView (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
111_binaryWriter.Write(edit.ReferenceFrameIndex);
Microsoft.AspNetCore.Components.WebView.Test (5)
Infrastructure\TestDocument.cs (5)
81var frame = batch.ReferenceFrames.Array[edit.ReferenceFrameIndex]; 83InsertFrame(batch, parent, childIndexAtCurrentDepth + siblingIndex, batch.ReferenceFrames.Array, frame, edit.ReferenceFrameIndex); 96var frame = batch.ReferenceFrames.Array[edit.ReferenceFrameIndex]; 136var frame = batch.ReferenceFrames.Array[edit.ReferenceFrameIndex]; 152var frame = batch.ReferenceFrames.Array[edit.ReferenceFrameIndex];