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

Unified Diff: pkg/serialization/lib/serialization.dart

Issue 11644030: Rename specialTreatmentFor, improve handling of constants as constructor parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed obsolete TODO Created 8 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 | « no previous file | pkg/serialization/lib/src/basic_rule.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/serialization/lib/serialization.dart
diff --git a/pkg/serialization/lib/serialization.dart b/pkg/serialization/lib/serialization.dart
index 1e3b90ca64dbf2bb7ce5bf3d2275de1c09986c18..1fedea882fea42e649a090ca819e1f1645f41ba9 100644
--- a/pkg/serialization/lib/serialization.dart
+++ b/pkg/serialization/lib/serialization.dart
@@ -85,9 +85,9 @@
* access or a setter, but should be done by calling a method. For example, it
* may not be possible to set a List field "foo", and you need to call an
* addFoo() method for each entry in the list. In these cases, if you are using
- * a BasicRule for the object you can call the specialTreatmentFor() method.
+ * a BasicRule for the object you can call the setFieldWith() method.
*
- * s..addRuleFor(fooHolderInstance).specialTreatmentFor("foo",
+ * s..addRuleFor(fooHolderInstance).setFieldWith("foo",
* (parent, value) => for (var each in value) parent.addFoo(value));
*
* Writing
« no previous file with comments | « no previous file | pkg/serialization/lib/src/basic_rule.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698