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

Side by Side Diff: pkg/observe/lib/observe.dart

Issue 51483002: fix PathObserver to avoid try+catch (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | pkg/observe/lib/src/bind_property.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 * *Note*: it is good practice to keep `@reflectable` annotation on 70 * *Note*: it is good practice to keep `@reflectable` annotation on
71 * getters/setters so they are accessible via reflection. This will preserve 71 * getters/setters so they are accessible via reflection. This will preserve
72 * them from tree-shaking. You can also put this annotation on the class and it 72 * them from tree-shaking. You can also put this annotation on the class and it
73 * preserve all of its members for reflection. 73 * preserve all of its members for reflection.
74 * 74 *
75 * [Tools](https://www.dartlang.org/polymer-dart/) exist to convert the first 75 * [Tools](https://www.dartlang.org/polymer-dart/) exist to convert the first
76 * form into the second form automatically, to get the best of both worlds. 76 * form into the second form automatically, to get the best of both worlds.
77 */ 77 */
78 library observe; 78 library observe;
79 79
80 import 'dart:async'; 80 export 'src/bind_property.dart';
81 import 'dart:collection'; 81 export 'src/change_notifier.dart';
82 82 export 'src/change_record.dart';
83 // Note: ObservableProperty is in this list only for the unusual use case of 83 export 'src/compound_binding.dart';
84 // dart2js without deploy tool. The deploy tool (see "transformer.dart") will 84 export 'src/list_path_observer.dart';
85 // add the @reflectable annotation, which makes it work with Polymer's 85 export 'src/metadata.dart';
86 // @published. 86 export 'src/observable.dart' hide notifyPropertyChangeHelper, objectType;
87 @MirrorsUsed(metaTargets: const [Reflectable, ObservableProperty], 87 export 'src/observable_box.dart';
88 override: 'observe') 88 export 'src/observable_list.dart';
89 import 'dart:mirrors'; 89 export 'src/observable_map.dart';
90 90 export 'src/path_observer.dart';
91 import 'package:meta/meta.dart'; 91 export 'src/to_observable.dart';
92
93 // 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
95 // strange problems on the VM when I tested out the dirty-checking example
96 // above.
97 import 'src/dirty_check.dart';
98
99 part 'src/bind_property.dart';
100 part 'src/change_notifier.dart';
101 part 'src/change_record.dart';
102 part 'src/compound_binding.dart';
103 part 'src/list_path_observer.dart';
104 part 'src/metadata.dart';
105 part 'src/observable.dart';
106 part 'src/observable_box.dart';
107 part 'src/observable_list.dart';
108 part 'src/observable_map.dart';
109 part 'src/path_observer.dart';
110 part 'src/to_observable.dart';
OLDNEW
« no previous file with comments | « no previous file | pkg/observe/lib/src/bind_property.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698