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

Unified Diff: pkg/meta/meta.dart

Issue 10877024: Add support for the metadata we currently support in comments (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/meta/meta.dart
===================================================================
--- pkg/meta/meta.dart (revision 0)
+++ pkg/meta/meta.dart (revision 0)
@@ -0,0 +1,34 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+/**
+ * This library contains the definitions of annotations that provide additional
+ * semantic information about the program being annotated. These annotations are
+ * intended to be used by tools to provide a better user experience.
+ */
+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();
+}
+
+/**
+ * An annotation used to mark an instance member (method, field, getter or
+ * setter) as one that is intended to be overriding an inherited class member.
Bob Nystrom 2012/08/22 20:41:57 "one that is intended to be overriding" -> "overri
Brian Wilkerson 2012/08/23 14:52:52 Done.
+ * Tools can use this annotation to provide a warning if there is no overridden
+ * member.
+ */
+const override = const _Override();
+
+class _Override {
+ const _Override();
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698