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

Side by Side Diff: tool/input_sdk/patch/convert_patch.dart

Issue 1978963002: Upgrade to the latest dart:convert. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « tool/input_sdk/lib/convert/utf.dart ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Patch file for dart:convert library. 5 // Patch file for dart:convert library.
6 6
7 import 'dart:_js_helper' show argumentErrorValue, patch; 7 import 'dart:_js_helper' show argumentErrorValue, patch;
8 import 'dart:_foreign_helper' show JS; 8 import 'dart:_foreign_helper' show JS;
9 import 'dart:_interceptors' show JSExtendableArray; 9 import 'dart:_interceptors' show JSExtendableArray;
10 import 'dart:_internal' show MappedIterable, ListIterable; 10 import 'dart:_internal' show MappedIterable, ListIterable;
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 String accumulated = buffer.toString(); 390 String accumulated = buffer.toString();
391 buffer.clear(); 391 buffer.clear();
392 Object decoded = _parseJson(accumulated, _reviver); 392 Object decoded = _parseJson(accumulated, _reviver);
393 _sink.add(decoded); 393 _sink.add(decoded);
394 _sink.close(); 394 _sink.close();
395 } 395 }
396 } 396 }
397 397
398 @patch class Utf8Decoder { 398 @patch class Utf8Decoder {
399 @patch 399 @patch
400 Converter<List<int>,dynamic> fuse(Converter<String, dynamic> next) { 400 Converter<List<int>, dynamic/*=T*/> fuse/*<T>*/(
401 return super.fuse(next); 401 Converter<String, dynamic/*=T*/> next) {
402 return super.fuse/*<T>*/(next);
402 } 403 }
403 404
404 // Currently not intercepting UTF8 decoding. 405 // Currently not intercepting UTF8 decoding.
405 @patch 406 @patch
406 static String _convertIntercepted(bool allowMalformed, List<int> codeUnits, 407 static String _convertIntercepted(bool allowMalformed, List<int> codeUnits,
407 int start, int end) { 408 int start, int end) {
408 return null; // This call was not intercepted. 409 return null; // This call was not intercepted.
409 } 410 }
410 } 411 }
OLDNEW
« no previous file with comments | « tool/input_sdk/lib/convert/utf.dart ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698