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

Unified Diff: pkg/serialization/lib/src/reader_writer.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 | « no previous file | pkg/serialization/lib/src/serialization_rule.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38ff10a090257c361d331ef50ab37f335e4d9c85..297c7de2dabff8eecfdbc733353c24cb9e4d377c 100644
--- a/pkg/serialization/lib/src/reader_writer.dart
+++ b/pkg/serialization/lib/src/reader_writer.dart
@@ -509,12 +509,12 @@ class Trace {
Trace(this.writer);
- addRoot(object) {
+ void addRoot(object) {
roots.add(object);
}
/** A convenience method to add a single root and trace it in one step. */
- trace(object) {
+ void trace(object) {
addRoot(object);
traceAll();
}
@@ -523,7 +523,7 @@ class Trace {
* Process all of the objects reachable from our roots via state that the
* serialization rules access.
*/
- traceAll() {
+ void traceAll() {
queue.addAll(roots);
while (!queue.isEmpty) {
var next = queue.removeFirst();
« no previous file with comments | « no previous file | pkg/serialization/lib/src/serialization_rule.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698