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

Side by Side Diff: pkg/serialization/lib/src/serialization_helpers.dart

Issue 11553012: Better ability to have hand-written custom rules and various cleanups. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes from John's review 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * This contains extra functions and classes useful for implementing 6 * This contains extra functions and classes useful for implementing
7 * serialiation. Some or all of these will be removed once the functionality is 7 * serialiation. Some or all of these will be removed once the functionality is
8 * available in the core library. 8 * available in the core library.
9 */ 9 */
10 library serialization_helpers; 10 library serialization_helpers;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 putIfAbsent(key, ifAbsent) => super.putIfAbsent(wrap(key), ifAbsent); 194 putIfAbsent(key, ifAbsent) => super.putIfAbsent(wrap(key), ifAbsent);
195 195
196 containsKey(key) => super.containsKey(wrap(key)); 196 containsKey(key) => super.containsKey(wrap(key));
197 forEach(f) => super.forEach((key, value) => f(unwrap(key), value)); 197 forEach(f) => super.forEach((key, value) => f(unwrap(key), value));
198 remove(key) => super.remove(unwrap(key)); 198 remove(key) => super.remove(unwrap(key));
199 /** 199 /**
200 * Note that keys is a very inefficient operation for this type. Don't do it. 200 * Note that keys is a very inefficient operation for this type. Don't do it.
201 */ 201 */
202 get keys => super.keys.map((x) => unwrap(x)); 202 get keys => super.keys.map((x) => unwrap(x));
203 } 203 }
204
205
OLDNEW
« no previous file with comments | « pkg/serialization/lib/src/reader_writer.dart ('k') | pkg/serialization/lib/src/serialization_rule.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698