Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Unified Diff: pkg/analyzer/lib/src/generated/sdk.dart

Issue 1715003002: Different approach to fixing file to URI mapping. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/sdk_io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/sdk.dart
diff --git a/pkg/analyzer/lib/src/generated/sdk.dart b/pkg/analyzer/lib/src/generated/sdk.dart
index 51c6ccccd47b8983ef56a73dd92779f88d7890b1..7319a7233a5f3ba31262f89908cbac25cd2cd357 100644
--- a/pkg/analyzer/lib/src/generated/sdk.dart
+++ b/pkg/analyzer/lib/src/generated/sdk.dart
@@ -142,8 +142,8 @@ class LibraryMap {
/**
* A table mapping Dart library URI's to the library.
*/
- HashMap<String, SdkLibraryImpl> _libraryMap =
- new HashMap<String, SdkLibraryImpl>();
+ LinkedHashMap<String, SdkLibraryImpl> _libraryMap =
+ new LinkedHashMap<String, SdkLibraryImpl>();
/**
* Return a list containing all of the sdk libraries in this mapping.
@@ -153,7 +153,7 @@ class LibraryMap {
/**
* Return a list containing the library URI's for which a mapping is available.
*/
- List<String> get uris => new List.from(_libraryMap.keys.toSet());
+ List<String> get uris => _libraryMap.keys.toList();
/**
* Return the library with the given 'dart:' [uri], or `null` if the URI does
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/sdk_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698