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