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

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/source/unknown.dart

Issue 557563002: Store the async-await compiled pub code directly in the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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: sdk/lib/_internal/pub_generated/lib/src/source/unknown.dart
diff --git a/sdk/lib/_internal/pub_generated/lib/src/source/unknown.dart b/sdk/lib/_internal/pub_generated/lib/src/source/unknown.dart
new file mode 100644
index 0000000000000000000000000000000000000000..3bcfbacdc725961d8c77eddf1174c707731b8666
--- /dev/null
+++ b/sdk/lib/_internal/pub_generated/lib/src/source/unknown.dart
@@ -0,0 +1,24 @@
+library pub.source.unknown;
+import 'dart:async';
+import '../package.dart';
+import '../pubspec.dart';
+import '../source.dart';
+class UnknownSource extends Source {
+ final String name;
+ UnknownSource(this.name);
+ bool operator ==(other) => other is UnknownSource && other.name == name;
+ int get hashCode => name.hashCode;
+ Future<Pubspec> doDescribe(PackageId id) =>
+ throw new UnsupportedError(
+ "Cannot describe a package from unknown source '$name'.");
+ Future get(PackageId id, String symlink) =>
+ throw new UnsupportedError("Cannot get an unknown source '$name'.");
+ Future<String> getDirectory(PackageId id) =>
+ throw new UnsupportedError(
+ "Cannot find a package from an unknown source '$name'.");
+ bool descriptionsEqual(description1, description2) =>
+ description1 == description2;
+ dynamic parseDescription(String containingPath, description,
+ {bool fromLockFile: false}) =>
+ description;
+}

Powered by Google App Engine
This is Rietveld 408576698