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

Unified Diff: lib/src/analyzer/dart_sdk.dart

Issue 1879373004: Implement modular compilation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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 | « lib/src/analyzer/context.dart ('k') | lib/src/analyzer/multi_package_resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/analyzer/dart_sdk.dart
diff --git a/lib/src/dart_sdk.dart b/lib/src/analyzer/dart_sdk.dart
similarity index 98%
rename from lib/src/dart_sdk.dart
rename to lib/src/analyzer/dart_sdk.dart
index 468a68bc9b5fd09b19d4a9f0e4f9132366b527ea..b12b9168aa94951e2527df1621c9b123dde317da 100644
--- a/lib/src/dart_sdk.dart
+++ b/lib/src/analyzer/dart_sdk.dart
@@ -18,12 +18,16 @@ import 'package:analyzer/src/context/cache.dart'
/// Dart SDK which contains a mock implementation of the SDK libraries. May be
/// used to speed up execution when most of the core libraries is not needed.
+//
+// TODO(jmesserly): replace this with Analyzer's mock SDK, or use summaries
+// to load the real SDK.
class MockDartSdk implements DartSdk {
final Map<Uri, _MockSdkSource> _sources = {};
final bool reportMissing;
final Map<String, SdkLibrary> _libs = {};
final String sdkVersion = '0';
List<String> get uris => _sources.keys.map((uri) => '$uri').toList();
+
AnalysisContext context;
DartUriResolver _resolver;
DartUriResolver get resolver => _resolver;
« no previous file with comments | « lib/src/analyzer/context.dart ('k') | lib/src/analyzer/multi_package_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698