| OLD | NEW | 
|---|
| 1 // Copyright (c) 2015, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 import "dart:_internal" show POWERS_OF_TEN; | 5 import "dart:_internal" show POWERS_OF_TEN; | 
| 6 | 6 import 'dart:fletch._system' show patch; | 
| 7 const patch = "patch"; |  | 
| 8 | 7 | 
| 9 // JSON conversion. | 8 // JSON conversion. | 
| 10 | 9 | 
| 11 @patch _parseJson(String json, reviver(var key, var value)) { | 10 @patch _parseJson(String json, reviver(var key, var value)) { | 
| 12   _BuildJsonListener listener; | 11   _BuildJsonListener listener; | 
| 13   if (reviver == null) { | 12   if (reviver == null) { | 
| 14     listener = new _BuildJsonListener(); | 13     listener = new _BuildJsonListener(); | 
| 15   } else { | 14   } else { | 
| 16     listener = new _ReviverJsonListener(reviver); | 15     listener = new _ReviverJsonListener(reviver); | 
| 17   } | 16   } | 
| (...skipping 1743 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1761     _parser.parse(start); | 1760     _parser.parse(start); | 
| 1762   } | 1761   } | 
| 1763 | 1762 | 
| 1764   void close() { | 1763   void close() { | 
| 1765     _parser.close(); | 1764     _parser.close(); | 
| 1766     var decoded = _parser.result; | 1765     var decoded = _parser.result; | 
| 1767     _sink.add(decoded); | 1766     _sink.add(decoded); | 
| 1768     _sink.close(); | 1767     _sink.close(); | 
| 1769   } | 1768   } | 
| 1770 } | 1769 } | 
| OLD | NEW | 
|---|