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

Unified Diff: sdk/lib/_internal/libraries.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
Index: sdk/lib/_internal/libraries.dart
diff --git a/sdk/lib/_internal/libraries.dart b/sdk/lib/_internal/libraries.dart
index 8da7a8ce3d8763a191b8b0fc5c3d11479a048765..13e8956f105bfebf68010950410fdc56e81e1ab5 100644
--- a/sdk/lib/_internal/libraries.dart
+++ b/sdk/lib/_internal/libraries.dart
@@ -22,6 +22,10 @@ const int VM_PLATFORM = 2;
*/
const Map<String, LibraryInfo> LIBRARIES = const {
+ "annotation": const LibraryInfo(
+ "annotation/annotation.dart",
+ maturity: Maturity.EXPERIMENTAL),
+
"async": const LibraryInfo(
"async/async.dart",
maturity: Maturity.STABLE,
@@ -95,7 +99,7 @@ const Map<String, LibraryInfo> LIBRARIES = const {
"mirrors": const LibraryInfo(
"mirrors/mirrors.dart",
- maturity: Maturity.UNSTABLE,
+ maturity: Maturity.UNSTABLE,
dart2jsPatchPath: "_internal/lib/mirrors_patch.dart"),
"nativewrappers": const LibraryInfo(
@@ -266,23 +270,23 @@ class Maturity {
final int level;
final String name;
final String description;
-
+
const Maturity(this.level, this.name, this.description);
-
+
String toString() => "$name: $level\n$description\n";
static const Maturity DEPRECATED = const Maturity(0, "Deprecated",
"This library will be remove before next major release.");
-
+
static const Maturity EXPERIMENTAL = const Maturity(1, "Experimental",
"This library is experimental and will likely change or be removed\n"
"in future versions.");
-
+
static const Maturity UNSTABLE = const Maturity(2, "Unstable",
"This library is in still changing and have not yet endured\n"
"sufficient real-world testing.\n"
"Backwards-compatibility is NOT guaranteed.");
-
+
static const Maturity WEB_STABLE = const Maturity(3, "Web Stable",
"This library is tracking the DOM evolution as defined by WC3.\n"
"Backwards-compatibility is NOT guaranteed.");
@@ -290,7 +294,7 @@ class Maturity {
static const Maturity STABLE = const Maturity(4, "Stable",
"The library is stable. API backwards-compatibility is guaranteed.\n"
"However implementation details might change.");
-
+
static const Maturity LOCKED = const Maturity(5, "Locked",
"This library will not change except when serious bugs are encountered.");

Powered by Google App Engine
This is Rietveld 408576698