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

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

Issue 817483003: delete observe from the repo (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/observe/lib/src/messages.dart ('k') | pkg/observe/lib/src/observable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/observe/lib/src/metadata.dart
diff --git a/pkg/observe/lib/src/metadata.dart b/pkg/observe/lib/src/metadata.dart
deleted file mode 100644
index f128102cae347e8f9d1037ec682b8d2623a2342b..0000000000000000000000000000000000000000
--- a/pkg/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 | « pkg/observe/lib/src/messages.dart ('k') | pkg/observe/lib/src/observable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698