allLibraries property
All library objects related to this package; a superset of libraries.
Keyed by LibraryElement.Source.fullName
to resolve different URIs, which
refer to the same location, to the same Library
. This isn't how Dart
works internally, but Dartdoc pretends to avoid documenting or duplicating
data structures for the same "library" on disk based on how it is
referenced. We can't use Source
as a key due to differences in the
TimestampedData
timestamps.
This mapping must be complete before initializePackageGraph is called.
Implementation
@visibleForTesting
final Map<String, Library> allLibraries = {};