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

Side by Side Diff: test/generated_sdk/lib/convert/convert.dart

Issue 955513008: cleans up sdk patching so we no longer have unresolved names (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 * 6 *
7 * Encoders and decoders for converting between different data representations, 7 * Encoders and decoders for converting between different data representations,
8 * including JSON and UTF-8. 8 * including JSON and UTF-8.
9 * 9 *
10 * In addition to converters for common data representations, this library 10 * In addition to converters for common data representations, this library
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 part 'chunked_conversion.dart'; 62 part 'chunked_conversion.dart';
63 part 'codec.dart'; 63 part 'codec.dart';
64 part 'converter.dart'; 64 part 'converter.dart';
65 part 'encoding.dart'; 65 part 'encoding.dart';
66 part 'html_escape.dart'; 66 part 'html_escape.dart';
67 part 'json.dart'; 67 part 'json.dart';
68 part 'latin1.dart'; 68 part 'latin1.dart';
69 part 'line_splitter.dart'; 69 part 'line_splitter.dart';
70 part 'string_conversion.dart'; 70 part 'string_conversion.dart';
71 part 'utf.dart'; 71 part 'utf.dart';
72 import 'dart:_js_helper' show patch;
73 import 'dart:_foreign_helper' show JS;
74 import 'dart:_interceptors' show JSExtendableArray;
72 import 'dart:_internal' show MappedIterable, ListIterable; 75 import 'dart:_internal' show MappedIterable, ListIterable;
73 import 'dart:collection' show Maps, LinkedHashMap; 76 import 'dart:collection' show Maps, LinkedHashMap;
74 77
75 /** 78 /**
76 * Walks the raw JavaScript value [json], replacing JavaScript Objects with 79 * Walks the raw JavaScript value [json], replacing JavaScript Objects with
77 * Maps. [json] is expected to be freshly allocated so elements can be replaced 80 * Maps. [json] is expected to be freshly allocated so elements can be replaced
78 * in-place. 81 * in-place.
79 */ 82 */
80 _convertJsonToDart(json, reviver(key, value)) { 83 _convertJsonToDart(json, reviver(key, value)) {
81 assert(reviver != null); 84 assert(reviver != null);
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 void close() { 405 void close() {
403 super.close(); 406 super.close();
404 StringBuffer buffer = _stringSink; 407 StringBuffer buffer = _stringSink;
405 String accumulated = buffer.toString(); 408 String accumulated = buffer.toString();
406 buffer.clear(); 409 buffer.clear();
407 Object decoded = _parseJson(accumulated, _reviver); 410 Object decoded = _parseJson(accumulated, _reviver);
408 _sink.add(decoded); 411 _sink.add(decoded);
409 _sink.close(); 412 _sink.close();
410 } 413 }
411 } 414 }
OLDNEW
« no previous file with comments | « test/generated_sdk/lib/collection/collection.dart ('k') | test/generated_sdk/lib/core/core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698