| OLD | NEW |
| 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 library error; |
| 4 | 5 |
| 5 import 'dart:collection'; | 6 import 'dart:collection'; |
| 6 import 'dart:io'; | 7 import 'dart:io'; |
| 7 import 'dart:math' as math; | 8 import 'dart:math' as math; |
| 8 | 9 |
| 9 import 'generated/error.dart'; | 10 import 'generated/error.dart'; |
| 10 import 'generated/java_core.dart'; | 11 import 'generated/java_core.dart'; |
| 11 import 'generated/source.dart'; | 12 import 'generated/source.dart'; |
| 12 | 13 |
| 13 /// The maximum line length when printing extracted source code when converting | 14 /// The maximum line length when printing extracted source code when converting |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 class _ContentReceiver implements Source_ContentReceiver { | 96 class _ContentReceiver implements Source_ContentReceiver { |
| 96 final _buffer = new StringBuffer(); | 97 final _buffer = new StringBuffer(); |
| 97 | 98 |
| 98 String get result => _buffer.toString(); | 99 String get result => _buffer.toString(); |
| 99 | 100 |
| 100 void accept1(CharBuffer contents, _) => | 101 void accept1(CharBuffer contents, _) => |
| 101 _buffer.write(contents.subSequence(0, contents.length)); | 102 _buffer.write(contents.subSequence(0, contents.length)); |
| 102 | 103 |
| 103 void accept2(String contents, _) => _buffer.write(contents); | 104 void accept2(String contents, _) => _buffer.write(contents); |
| 104 } | 105 } |
| OLD | NEW |