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 <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
  • 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
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.