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

Unified Diff: pkg/polymer_expressions/test/syntax_test.dart

Issue 26967004: add @MirrorsUsed to observe/polymer/polymer_exprs pkgs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix typo in comment Created 7 years, 2 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
Index: pkg/polymer_expressions/test/syntax_test.dart
diff --git a/pkg/polymer_expressions/test/syntax_test.dart b/pkg/polymer_expressions/test/syntax_test.dart
index 32b5f63262cdeae841d547a020969d43d4e2b6fe..ceb13077a03413d55e16af0cf10b8490a53c208e 100644
--- a/pkg/polymer_expressions/test/syntax_test.dart
+++ b/pkg/polymer_expressions/test/syntax_test.dart
@@ -82,6 +82,7 @@ main() {
});
}
+@reflectable
class Person extends ChangeNotifierBase {
String _firstName;
String _lastName;
@@ -92,15 +93,13 @@ class Person extends ChangeNotifierBase {
String get firstName => _firstName;
void set firstName(String value) {
- _firstName = value;
- notifyChange(new PropertyChangeRecord(#firstName));
+ _firstName = notifyPropertyChange(#firstName, _firstName, value);
}
String get lastName => _lastName;
void set lastName(String value) {
- _lastName = value;
- notifyChange(new PropertyChangeRecord(#lastName));
+ _lastName = notifyPropertyChange(#lastName, _lastName, value);
}
String getFullName() => '$_firstName $_lastName';
@@ -108,10 +107,8 @@ class Person extends ChangeNotifierBase {
List<String> get items => _items;
void set items(List<String> value) {
- _items = value;
- notifyChange(new PropertyChangeRecord(#items));
+ _items = notifyPropertyChange(#items, _items, value);
}
String toString() => "Person(firstName: $_firstName, lastName: $_lastName)";
-
}

Powered by Google App Engine
This is Rietveld 408576698