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

Unified Diff: packages/observe/lib/src/metadata.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 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
« no previous file with comments | « packages/observe/lib/src/messages.dart ('k') | packages/observe/lib/src/observable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/observe/lib/src/metadata.dart
diff --git a/packages/observe/lib/src/metadata.dart b/packages/observe/lib/src/metadata.dart
deleted file mode 100644
index f128102cae347e8f9d1037ec682b8d2623a2342b..0000000000000000000000000000000000000000
--- a/packages/observe/lib/src/metadata.dart
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2013, 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.
-
-library observe.src.metadata;
-
-/// Use `@observable` to make a field automatically observable, or to indicate
-/// that a property is observable. This only works on classes that extend or
-/// mix in `Observable`.
-const ObservableProperty observable = const ObservableProperty();
-
-/// An annotation that is used to make a property observable.
-/// Normally this is used via the [observable] constant, for example:
-///
-/// class Monster extends Observable {
-/// @observable int health;
-/// }
-///
-// TODO(sigmund): re-add this to the documentation when it's really true:
-// If needed, you can subclass this to create another annotation that will
-// also be treated as observable.
-// Note: observable properties imply reflectable.
-class ObservableProperty {
- const ObservableProperty();
-}
-
-
-/// This can be used to retain any properties that you wish to access with
-/// Dart's mirror system. If you import `package:observe/mirrors_used.dart`, all
-/// classes or members annotated with `@reflectable` wil be preserved by dart2js
-/// during compilation. This is necessary to make the member visible to
-/// `PathObserver`, or similar systems, once the code is deployed, if you are
-/// not doing a different kind of code-generation for your app. If you are using
-/// polymer, you most likely don't need to use this annotation anymore.
-const Reflectable reflectable = const Reflectable();
-
-/// An annotation that is used to make a type or member reflectable. This makes
-/// it available to `PathObserver` at runtime. For example:
-///
-/// @reflectable
-/// class Monster extends ChangeNotifier {
-/// int _health;
-/// int get health => _health;
-/// ...
-/// }
-/// ...
-/// // This will work even if the code has been tree-shaken/minified:
-/// final monster = new Monster();
-/// new PathObserver(monster, 'health').changes.listen(...);
-class Reflectable {
- const Reflectable();
-}
« no previous file with comments | « packages/observe/lib/src/messages.dart ('k') | packages/observe/lib/src/observable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698