Index: pkg/serialization/lib/src/reader_writer.dart |
diff --git a/pkg/serialization/lib/src/reader_writer.dart b/pkg/serialization/lib/src/reader_writer.dart |
index 88488852ce8fbcec9d74ecae82cb02a5615366b2..146255de438fbede1a47be0499b25e2768eaf753 100644 |
--- a/pkg/serialization/lib/src/reader_writer.dart |
+++ b/pkg/serialization/lib/src/reader_writer.dart |
@@ -197,7 +197,7 @@ class Writer implements ReaderOrWriter { |
* Return a list of [Reference] objects pointing to our roots. This will be |
* stored in the output under "roots" in the default format. |
*/ |
- _rootReferences() => trace.roots.mappedBy(_referenceFor).toList(); |
+ _rootReferences() => trace.roots.map(_referenceFor).toList(); |
/** |
* Given an object, return a reference for it if one exists. If there's |
@@ -331,7 +331,7 @@ class Reader implements ReaderOrWriter { |
// When we set the data, initialize the object storage to a matching size. |
void set data(List<List> newData) { |
_data = newData; |
- objects = _data.mappedBy((x) => new List(x.length)).toList(); |
+ objects = _data.map((x) => new List(x.length)).toList(); |
} |
/** |