@@ -76,19 +76,19 @@ class MetadataProvider {
76
76
return true ;
77
77
}
78
78
79
- /// A set of all libraries in the Dart application.
79
+ /// A list of all libraries in the Dart application.
80
80
///
81
81
/// Example:
82
82
///
83
- /// {
83
+ /// [
84
84
/// dart:web_gl,
85
85
/// dart:math,
86
86
/// org-dartlang-app:///web/main.dart
87
- /// }
87
+ /// ]
88
88
///
89
- Future <Set <String >> get libraries async {
89
+ Future <List <String >> get libraries async {
90
90
await _initialize ();
91
- return _libraries;
91
+ return _libraries. toList () ;
92
92
}
93
93
94
94
/// A map of library uri to dart scripts.
@@ -226,9 +226,9 @@ class MetadataProvider {
226
226
/// determines deleted and invalidated libraries and modules, invalidates them
227
227
/// in any caches, and recomputes the necessary information.
228
228
///
229
- /// Returns an [ModifiedModuleReport] that can be used to invalidate other
229
+ /// Returns a [ModifiedModuleReport] that can be used to invalidate other
230
230
/// caches after a hot reload.
231
- Future <ModifiedModuleReport > reinitializeAfterReload (
231
+ Future <ModifiedModuleReport > reinitializeAfterHotReload (
232
232
Map <String , List > reloadedModulesToLibraries,
233
233
) async {
234
234
final modules = (await _processMetadata (true ))! ;
@@ -265,7 +265,7 @@ class MetadataProvider {
265
265
);
266
266
_addMetadata (modules[module]! );
267
267
}
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
269
269
// invalidated but were never added again.
270
270
final deletedLibraries =
271
271
invalidatedLibraries
@@ -332,7 +332,7 @@ class AbsoluteImportUriException implements Exception {
332
332
}
333
333
334
334
/// Computed after a hot reload using
335
- /// [MetadataProvider.reinitializeAfterReload ] , represents the modules and
335
+ /// [MetadataProvider.reinitializeAfterHotReload ] , represents the modules and
336
336
/// libraries in the program that were deleted, reloaded, and therefore,
337
337
/// modified.
338
338
///
0 commit comments