You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fine. Extract LibraryRequirements to group per-library data
The `RequirementsManifest` class previously managed several distinct
maps keyed by library URI to track top-level elements, instances,
interfaces, and extensions. This change introduces a new
`LibraryRequirements` class to encapsulate all requirements for a single
library.
This refactoring simplifies the structure of `RequirementsManifest` by
replacing four separate maps with a single map from a library's URI to
its `LibraryRequirements` object. This improves data locality and makes
the code easier to follow.
As part of this change, several fields were also renamed for clarity:
- `requestedFields` is now `requestedDeclaredFields` (and similar for
getters, setters, and methods).
- `allDeclaredConstructors` is now `allConstructors`.
Some printed requirements are now empty because we usually exclude SDK
libraries.
Change-Id: I3a64a9e890fa6155d16b08b255d80b8d0a937c8e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/445346
Reviewed-by: Paul Berry <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
0 commit comments