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

Side by Side Diff: sdk/lib/core/metadata.dart

Issue 11475020: Revert "Add @deprecated and @override to core." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 // part of dart_core;
6
7 /**
8 * An annotation used to mark a class, field, getter, setter, method, top-level
9 * variable, or top-level function as one that should no longer be used. Tools
10 * can use this annotation to provide a warning on references to the marked
11 * element.
12 */
13 const deprecated = const Deprecated();
14
15 class Deprecated {
16 final String message;
17 const Deprecated([this.message]);
18 }
19
20 /**
21 * An annotation used to mark an instance member (method, field, getter or
22 * setter) as overriding an inherited class member. Tools can use this
23 * annotation to provide a warning if there is no overridden member.
24 */
25 const override = const _Override();
26
27 class _Override {
28 const _Override();
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698