@@ -76,19 +76,19 @@ class MetadataProvider {
7676 return true ;
7777 }
7878
79- /// A set of all libraries in the Dart application.
79+ /// A list of all libraries in the Dart application.
8080 ///
8181 /// Example:
8282 ///
83- /// {
83+ /// [
8484 /// dart:web_gl,
8585 /// dart:math,
8686 /// org-dartlang-app:///web/main.dart
87- /// }
87+ /// ]
8888 ///
89- Future <Set <String >> get libraries async {
89+ Future <List <String >> get libraries async {
9090 await _initialize ();
91- return _libraries;
91+ return _libraries. toList () ;
9292 }
9393
9494 /// A map of library uri to dart scripts.
@@ -226,9 +226,9 @@ class MetadataProvider {
226226 /// determines deleted and invalidated libraries and modules, invalidates them
227227 /// in any caches, and recomputes the necessary information.
228228 ///
229- /// Returns an [ModifiedModuleReport] that can be used to invalidate other
229+ /// Returns a [ModifiedModuleReport] that can be used to invalidate other
230230 /// caches after a hot reload.
231- Future <ModifiedModuleReport > reinitializeAfterReload (
231+ Future <ModifiedModuleReport > reinitializeAfterHotReload (
232232 Map <String , List > reloadedModulesToLibraries,
233233 ) async {
234234 final modules = (await _processMetadata (true ))! ;
@@ -265,7 +265,7 @@ class MetadataProvider {
265265 );
266266 _addMetadata (modules[module]! );
267267 }
268- // The libraries that were removed from the program or those that we
268+ // The libraries that are removed from the program are those that we
269269 // invalidated but were never added again.
270270 final deletedLibraries =
271271 invalidatedLibraries
@@ -332,7 +332,7 @@ class AbsoluteImportUriException implements Exception {
332332}
333333
334334/// Computed after a hot reload using
335- /// [MetadataProvider.reinitializeAfterReload ] , represents the modules and
335+ /// [MetadataProvider.reinitializeAfterHotReload ] , represents the modules and
336336/// libraries in the program that were deleted, reloaded, and therefore,
337337/// modified.
338338///
0 commit comments