7 writes to PreviousSibling
Microsoft.Build (7)
Construction\ProjectElementContainer.cs (7)
169child.PreviousSibling = reference; 177child.NextSibling.PreviousSibling = child; 225child.PreviousSibling = reference.PreviousSibling; 228reference.PreviousSibling = child; 314child.NextSibling.PreviousSibling = child.PreviousSibling; 399child.PreviousSibling = LastChild; 659child.PreviousSibling = null;
26 references to PreviousSibling
Microsoft.Build (20)
Construction\ProjectElementContainer.cs (17)
176ErrorUtilities.VerifyThrow(child.NextSibling.PreviousSibling == reference, "Invalid structure"); 216child.VerifyThrowInvalidOperationAcceptableLocation(this, reference.PreviousSibling, reference); 225child.PreviousSibling = reference.PreviousSibling; 230if (child.PreviousSibling != null) 232ErrorUtilities.VerifyThrow(child.PreviousSibling.NextSibling == reference, "Invalid structure"); 233child.PreviousSibling.NextSibling = child; 307if (child.PreviousSibling != null) 309child.PreviousSibling.NextSibling = child.NextSibling; 314child.NextSibling.PreviousSibling = child.PreviousSibling; 324LastChild = child.PreviousSibling; 390ErrorUtilities.VerifyThrow(child.PreviousSibling == null && child.NextSibling == null, "Invalid structure"); 522if (TrySearchLeftSiblings(child.PreviousSibling, SiblingIsExplicitElement, out ProjectElement referenceSibling)) 683ErrorUtilities.VerifyThrow(child.NextSibling == null || child.NextSibling.PreviousSibling != this, "Invalid structure"); 684ErrorUtilities.VerifyThrow(child.PreviousSibling == null || child.PreviousSibling.NextSibling != this, "Invalid structure"); 754return TrySearchSiblings(initialElement, siblingIsAcceptable, s => s.PreviousSibling, out referenceSibling); 1028next = _forwards ? Current.NextSibling : Current.PreviousSibling;
Construction\ProjectItemGroupElement.cs (2)
118reference = item.PreviousSibling; 130reference = item.PreviousSibling;
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
74/// Access to remote <see cref="ProjectElement.PreviousSibling"/>.
Microsoft.Build.Engine.OM.UnitTests (6)
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 (2)
398VerifyNotLinked(realXml.PreviousSibling); 399VerifyLinked(viewXml.PreviousSibling);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectElementLink.cs (1)
33public MockProjectElementLinkRemoter PreviousSibling => this.Export(Source.PreviousSibling);