Skip to content

Commit 39f240e

Browse files
scheglovCommit Queue
authored and
Commit Queue
committed
Reset _classMembersLengthsIndex in LibraryReader.
This change might help with analyzing the bug. Bug: #51855 Change-Id: I214a6238e696ffa2ba16df11946e65da18e81945 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/303782 Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent 85221a9 commit 39f240e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/analyzer/lib/src/summary2/bundle_reader.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,11 @@ class LibraryReader {
496496
_reader.offset = _offset;
497497
var resolutionOffset = _baseResolutionOffset + _reader.readUInt30();
498498

499+
// TODO(scheglov) https://github.com/dart-lang/sdk/issues/51855
500+
// This should not be needed.
501+
// But I have a suspicion that we attempt to read the library twice.
502+
_classMembersLengthsIndex = 0;
503+
499504
var name = _reader.readStringReference();
500505
var featureSet = _readFeatureSet();
501506

0 commit comments

Comments
 (0)