7 writes to NextSibling
Microsoft.Build (7)
Construction\ProjectElementContainer.cs (7)
170child.NextSibling = reference.NextSibling; 172reference.NextSibling = child; 226child.NextSibling = reference; 233child.PreviousSibling.NextSibling = child; 309child.PreviousSibling.NextSibling = child.NextSibling; 400LastChild.NextSibling = child; 660child.NextSibling = null;
31 references to NextSibling
Microsoft.Build (23)
Construction\ProjectElementContainer.cs (19)
160child.VerifyThrowInvalidOperationAcceptableLocation(this, reference, reference.NextSibling); 170child.NextSibling = reference.NextSibling; 174if (child.NextSibling != null) 176ErrorUtilities.VerifyThrow(child.NextSibling.PreviousSibling == reference, "Invalid structure"); 177child.NextSibling.PreviousSibling = child; 232ErrorUtilities.VerifyThrow(child.PreviousSibling.NextSibling == reference, "Invalid structure"); 309child.PreviousSibling.NextSibling = child.NextSibling; 312if (child.NextSibling != null) 314child.NextSibling.PreviousSibling = child.PreviousSibling; 319FirstChild = child.NextSibling; 390ErrorUtilities.VerifyThrow(child.PreviousSibling == null && child.NextSibling == null, "Invalid structure"); 537else if (TrySearchRightSiblings(child.NextSibling, SiblingIsExplicitElement, out referenceSibling)) 683ErrorUtilities.VerifyThrow(child.NextSibling == null || child.NextSibling.PreviousSibling != this, "Invalid structure"); 684ErrorUtilities.VerifyThrow(child.PreviousSibling == null || child.PreviousSibling.NextSibling != this, "Invalid structure"); 724child = child.NextSibling; 748child = child.NextSibling; 759return TrySearchSiblings(initialElement, siblingIsAcceptable, s => s.NextSibling, out referenceSibling); 1028next = _forwards ? Current.NextSibling : Current.PreviousSibling;
Construction\ProjectItemElement.cs (3)
360ProjectElement sibling = NextSibling; 364result = NextSibling as ProjectItemElement; 365sibling = sibling.NextSibling;
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
79/// Access to remote <see cref="ProjectElement.NextSibling"/>.
Microsoft.Build.Engine.OM.UnitTests (8)
Construction\ConstructionEditing_Tests.cs (3)
2503Assert.True(item3.PreviousSibling == null && item3.NextSibling == null); 2504Assert.True(item2.PreviousSibling == item1 && item1.NextSibling == item2); 2505Assert.True(item1.PreviousSibling == null && item2.NextSibling == null);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (4)
395VerifyNotLinked(realXml.NextSibling); 396VerifyLinked(viewXml.NextSibling); 459realChild = realChild.NextSibling; 460viewChild = viewChild.NextSibling;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectElementLink.cs (1)
35public MockProjectElementLinkRemoter NextSibling => this.Export(Source.NextSibling);