Skip to content

Commit b0d2baa

Browse files
committed
Call OnLinking earlier.
1 parent dc1f5a0 commit b0d2baa

File tree

1 file changed

+2
-2
lines changed
  • src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata

1 file changed

+2
-2
lines changed

src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/BlobBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,8 @@ public void LinkSuffix(BlobBuilder suffix)
602602
return;
603603
}
604604

605+
OnLinking(this, suffix);
606+
605607
bool isEmpty = Count == 0;
606608

607609
// swap buffers of the heads:
@@ -614,8 +616,6 @@ public void LinkSuffix(BlobBuilder suffix)
614616
_buffer = suffixBuffer;
615617
_length = suffixLength;
616618

617-
OnLinking(this, suffix);
618-
619619
PreviousLength += suffix.Length + suffixPreviousLength;
620620

621621
// Update the _previousLength of the suffix so that suffix.Count = suffix._previousLength + suffix.Length doesn't change.

0 commit comments

Comments
 (0)