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

Unified Diff: pkg/serialization/test/serialization_test.dart

Issue 14985015: pkg/serialization - more types (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
« no previous file with comments | « pkg/serialization/lib/src/serialization_rule.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/serialization/test/serialization_test.dart
diff --git a/pkg/serialization/test/serialization_test.dart b/pkg/serialization/test/serialization_test.dart
index c65721a7be307177fc6ea4d4ec1ddc63816366aa..4d790ec0529dc5efa7514c876391ee042f0f3bde 100644
--- a/pkg/serialization/test/serialization_test.dart
+++ b/pkg/serialization/test/serialization_test.dart
@@ -748,7 +748,7 @@ class NodeRule extends CustomRule {
bool appliesTo(instance, _) => instance.runtimeType == Node;
getState(instance) => [instance.parent, instance.name, instance.children];
create(state) => new Node(state[1]);
- setState(Node node, state) {
+ void setState(Node node, state) {
node.parent = state[0];
node.children = state[2];
}
@@ -768,7 +768,7 @@ class PersonRuleReturningMapWithNonStringKey extends CustomRule {
..[instance.address] = "address";
}
create(state) => new Person();
- setState(Person a, state) {
+ void setState(Person a, state) {
a.name = findValue("name", state);
a.address = findValue("address", state);
}
« no previous file with comments | « pkg/serialization/lib/src/serialization_rule.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698