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

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

Issue 17379025: pkg/serialization: cleanup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: A few more types tracking down my issue Created 7 years, 6 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 | « no previous file | pkg/serialization/lib/src/serialization_helpers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/serialization/lib/src/format.dart
diff --git a/pkg/serialization/lib/src/format.dart b/pkg/serialization/lib/src/format.dart
index 93a345b1b92da128c355c4f85e89c2067177654e..2c71e42f903afa02724d4678f32de127896a8191 100644
--- a/pkg/serialization/lib/src/format.dart
+++ b/pkg/serialization/lib/src/format.dart
@@ -67,7 +67,7 @@ class InternalMapFormat extends Format {
* the data also includes rule definitions, then these will replace the rules
* in the [Serialization] for [reader].
*/
- Map<String, dynamic> read(topLevel, Reader reader) {
+ Map<String, dynamic> read(Map<String, dynamic> topLevel, Reader reader) {
var ruleString = topLevel["rules"];
reader.readRules(ruleString);
reader._data = topLevel["data"];
@@ -150,7 +150,7 @@ class SimpleMapFormat extends InternalMapFormat {
* the data also includes rule definitions, then these will replace the rules
* in the [Serialization] for [reader].
*/
- Map<String, dynamic> read(topLevel, Reader reader) {
+ Map<String, dynamic> read(Map<String, dynamic> topLevel, Reader reader) {
super.read(topLevel, reader);
forAllStates(reader,
(ref) => ref is Map && ref["__Ref"] != null,
« no previous file with comments | « no previous file | pkg/serialization/lib/src/serialization_helpers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698