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

Unified Diff: pkg/meta/lib/meta.dart

Issue 27523002: Add "deprecated" to the standard library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « no previous file | runtime/vm/bootstrap.h » ('j') | sdk/lib/html/html_common/html_common_dart2js.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/meta/lib/meta.dart
diff --git a/pkg/meta/lib/meta.dart b/pkg/meta/lib/meta.dart
index e3e4a250753c5b613716ce9f3c75b2298a663389..0c45644b1d62904fc42f2389300c4b113c298b58 100644
--- a/pkg/meta/lib/meta.dart
+++ b/pkg/meta/lib/meta.dart
@@ -5,7 +5,7 @@
/**
* Constants for use in metadata annotations such as
* `@deprecated`, `@override`, and `@proxy`.
- *
+ *
* Annotations provide semantic information
* that tools can use to provide a better user experience.
* For example, an IDE might not autocomplete
@@ -21,17 +21,7 @@
*/
library meta;
-/**
- * An annotation used to mark a class, field, getter, setter, method, top-level
- * variable, or top-level function as one that should no longer be used. Tools
- * can use this annotation to provide a warning on references to the marked
- * element.
- */
-const deprecated = const _Deprecated();
-
-class _Deprecated {
- const _Deprecated();
-}
+export "dart:annotation" show deprecated;
/**
* An annotation used to mark an instance member (method, field, getter or
@@ -57,4 +47,4 @@ const proxy = const _Proxy();
class _Proxy {
const _Proxy();
-}
+}
« no previous file with comments | « no previous file | runtime/vm/bootstrap.h » ('j') | sdk/lib/html/html_common/html_common_dart2js.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698