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

Unified Diff: lib/src/system_cache.dart

Issue 2174913002: Add an SDK source. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: 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
« no previous file with comments | « lib/src/source_registry.dart ('k') | test/sdk_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/system_cache.dart
diff --git a/lib/src/system_cache.dart b/lib/src/system_cache.dart
index dd5b88cb6775c16e546c10c3e457cb046221871c..0580547fd34a0e1579aa86cc8d59b00f80b385b4 100644
--- a/lib/src/system_cache.dart
+++ b/lib/src/system_cache.dart
@@ -14,6 +14,7 @@ import 'source/cached.dart';
import 'source/git.dart';
import 'source/hosted.dart';
import 'source/path.dart';
+import 'source/sdk.dart';
import 'source/unknown.dart';
import 'source.dart';
import 'source_registry.dart';
@@ -59,6 +60,9 @@ class SystemCache {
/// The built-in path source bound to this cache.
BoundPathSource get path => _boundSources[sources.path] as BoundPathSource;
+ /// The built-in SDK source bound to this cache.
+ BoundSdkSource get sdk => _boundSources[sources.sdk] as BoundSdkSource;
+
/// The default source bound to this cache.
BoundSource get defaultSource => source(sources[null]);
« no previous file with comments | « lib/src/source_registry.dart ('k') | test/sdk_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698