| OLD | NEW |
| 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 class Error { | 5 class Error { |
| 6 const Error(); | 6 const Error(); |
| 7 } | 7 } |
| 8 | 8 |
| 9 class AssertionError implements Error { | 9 class AssertionError implements Error { |
| 10 } | 10 } |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 String escaped = object | 91 String escaped = object |
| 92 .replaceAll('$backslash', '$backslash$backslash') | 92 .replaceAll('$backslash', '$backslash$backslash') |
| 93 .replaceAll('\n', '${backslash}n') | 93 .replaceAll('\n', '${backslash}n') |
| 94 .replaceAll('\r', '${backslash}r') | 94 .replaceAll('\r', '${backslash}r') |
| 95 .replaceAll('"', '$backslash"'); | 95 .replaceAll('"', '$backslash"'); |
| 96 return '"$escaped"'; | 96 return '"$escaped"'; |
| 97 } | 97 } |
| 98 return _objectToString(object); | 98 return _objectToString(object); |
| 99 } | 99 } |
| 100 | 100 |
| 101 external static _objectToString(Object object); | 101 external static String _objectToString(Object object); |
| 102 } | 102 } |
| OLD | NEW |