OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * Support for observing changes in model-view architectures. | 6 * Support for observing changes in model-view architectures. |
7 * | 7 * |
8 * **Warning:** This library is experimental, and APIs are subject to change. | 8 * **Warning:** This library is experimental, and APIs are subject to change. |
9 * | 9 * |
10 * This library is used to observe changes to [Observable] types. It also | 10 * This library is used to observe changes to [Observable] types. It also |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 import 'dart:collection'; | 81 import 'dart:collection'; |
82 | 82 |
83 // Note: ObservableProperty is in this list only for the unusual use case of | 83 // Note: ObservableProperty is in this list only for the unusual use case of |
84 // dart2js without deploy tool. The deploy tool (see "transformer.dart") will | 84 // dart2js without deploy tool. The deploy tool (see "transformer.dart") will |
85 // add the @reflectable annotation, which makes it work with Polymer's | 85 // add the @reflectable annotation, which makes it work with Polymer's |
86 // @published. | 86 // @published. |
87 @MirrorsUsed(metaTargets: const [Reflectable, ObservableProperty], | 87 @MirrorsUsed(metaTargets: const [Reflectable, ObservableProperty], |
88 override: 'observe') | 88 override: 'observe') |
89 import 'dart:mirrors'; | 89 import 'dart:mirrors'; |
90 | 90 |
91 import 'package:meta/meta.dart'; | |
92 | |
93 // Note: this is an internal library so we can import it from tests. | 91 // Note: this is an internal library so we can import it from tests. |
94 // TODO(jmesserly): ideally we could import this with a prefix, but it caused | 92 // TODO(jmesserly): ideally we could import this with a prefix, but it caused |
95 // strange problems on the VM when I tested out the dirty-checking example | 93 // strange problems on the VM when I tested out the dirty-checking example |
96 // above. | 94 // above. |
97 import 'src/dirty_check.dart'; | 95 import 'src/dirty_check.dart'; |
98 | 96 |
99 part 'src/bind_property.dart'; | 97 part 'src/bind_property.dart'; |
100 part 'src/change_notifier.dart'; | 98 part 'src/change_notifier.dart'; |
101 part 'src/change_record.dart'; | 99 part 'src/change_record.dart'; |
102 part 'src/compound_binding.dart'; | 100 part 'src/compound_binding.dart'; |
103 part 'src/list_path_observer.dart'; | 101 part 'src/list_path_observer.dart'; |
104 part 'src/metadata.dart'; | 102 part 'src/metadata.dart'; |
105 part 'src/observable.dart'; | 103 part 'src/observable.dart'; |
106 part 'src/observable_box.dart'; | 104 part 'src/observable_box.dart'; |
107 part 'src/observable_list.dart'; | 105 part 'src/observable_list.dart'; |
108 part 'src/observable_map.dart'; | 106 part 'src/observable_map.dart'; |
109 part 'src/path_observer.dart'; | 107 part 'src/path_observer.dart'; |
110 part 'src/to_observable.dart'; | 108 part 'src/to_observable.dart'; |
OLD | NEW |