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

Unified Diff: pkg/analyzer/lib/src/summary/package_bundle_reader.dart

Issue 2176363002: Removed io dependencies in analyzer to allow compiler to run in the browser (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Refactored summary_sdk Created 4 years, 5 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
Index: pkg/analyzer/lib/src/summary/package_bundle_reader.dart
diff --git a/pkg/analyzer/lib/src/summary/package_bundle_reader.dart b/pkg/analyzer/lib/src/summary/package_bundle_reader.dart
index 0055866490ad03745ccab3b0f80abdec02b2b9f7..f06db898d41be7fa485d223e39006e214ba7759c 100644
--- a/pkg/analyzer/lib/src/summary/package_bundle_reader.dart
+++ b/pkg/analyzer/lib/src/summary/package_bundle_reader.dart
@@ -274,8 +274,9 @@ class SummaryDataStore {
*/
final Map<String, String> uriToSummaryPath = <String, String>{};
- SummaryDataStore(Iterable<String> summaryPaths) {
+ SummaryDataStore(Iterable<String> summaryPaths, [PackageBundle bundle]) {
Paul Berry 2016/07/26 21:16:22 These changes shouldn't be necessary--the caller s
priscillalee 2016/07/26 21:32:48 Done.
summaryPaths.forEach(_fillMaps);
+ if (bundle != null) addBundle('dart_sdk.sum', bundle);
}
/**
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/summary_sdk.dart » ('j') | pkg/analyzer/lib/src/summary/summary_sdk.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698