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