Skip to content

Commit

Permalink
Issue 51855. Add debug output.
Browse files Browse the repository at this point in the history
Bug: #51855
Change-Id: Ifd8f3cf1f4e82536b475fb7460c27d1ba73672e1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/301732
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
  • Loading branch information
scheglov authored and Commit Queue committed May 8, 2023
1 parent 8c97d0c commit c63263c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/analyzer/lib/src/summary2/bundle_reader.dart
Expand Up @@ -616,6 +616,15 @@ class LibraryReader {
_reader.offset = membersOffset;
_readClassElementMembers(unitElement, element, reference);
};
if (_classMembersLengthsIndex >= _classMembersLengths.length) {
// TODO(scheglov) https://github.com/dart-lang/sdk/issues/51855
throw StateError(
'[libraryReference: $_reference]'
'[classReference: $reference]'
'[_classMembersLengthsIndex: $_classMembersLengthsIndex]'
'[_classMembersLengths: $_classMembersLengths]',
);
}
_reader.offset += _classMembersLengths[_classMembersLengthsIndex++];
}

Expand Down

0 comments on commit c63263c

Please sign in to comment.