Skip to content

Commit

Permalink
Reset _classMembersLengthsIndex in LibraryReader.
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
scheglov authored and Commit Queue committed May 16, 2023
1 parent 85221a9 commit 39f240e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/analyzer/lib/src/summary2/bundle_reader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,11 @@ class LibraryReader {
_reader.offset = _offset;
var resolutionOffset = _baseResolutionOffset + _reader.readUInt30();

// TODO(scheglov) https://github.com/dart-lang/sdk/issues/51855
// This should not be needed.
// But I have a suspicion that we attempt to read the library twice.
_classMembersLengthsIndex = 0;

var name = _reader.readStringReference();
var featureSet = _readFeatureSet();

Expand Down

0 comments on commit 39f240e

Please sign in to comment.