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

Unified Diff: sdk/lib/async/deferred_load.dart

Issue 429883002: Remove support for the DeferredLibrary annotation and remove tests of it (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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: sdk/lib/async/deferred_load.dart
diff --git a/sdk/lib/async/deferred_load.dart b/sdk/lib/async/deferred_load.dart
index a770071c8988d0f89c6a316fbac207a44dbe0a22..40f09246c4cf37953b006df6d45ad3452a4a528e 100644
--- a/sdk/lib/async/deferred_load.dart
+++ b/sdk/lib/async/deferred_load.dart
@@ -7,24 +7,10 @@ part of dart.async;
/**
* Indicates that loading of [libraryName] is deferred.
*
- * Applies to library imports, when used as metadata.
- *
- * Example usage:
- *
- * @lazy
- * import 'foo.dart' as foo;
- *
- * const lazy = const DeferredLibrary('com.example.foo');
- *
- * void main() {
- * foo.method(); // Throws a NoSuchMethodError, foo is not loaded yet.
- * lazy.load().then(onFooLoaded);
- * }
- *
- * void onFooLoaded(_) {
- * foo.method();
- * }
+ * This class is obsolete. Instead use the syntax:
+ * import "library.dart" deferred as prefix;
*/
+@deprecated
class DeferredLibrary {
floitsch 2014/08/28 20:05:20 Any plan on when we want to remove the class?
sigurdm 2014/09/02 11:23:18 I think version 1.8 (after talking to seth)
final String libraryName;
final String uri;

Powered by Google App Engine
This is Rietveld 408576698