| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 * An object used by the scanner to read the characters to be scanned. | 6 * An object used by the scanner to read the characters to be scanned. |
| 7 */ | 7 */ |
| 8 abstract class CharacterReader { | 8 abstract class CharacterReader { |
| 9 /** | 9 /** |
| 10 * The current offset relative to the beginning of the source. Return the | 10 * The current offset relative to the beginning of the source. Return the |
| 11 * initial offset if the scanner has not yet scanned the source code, and one | 11 * initial offset if the scanner has not yet scanned the source code, and one |
| (...skipping 23 matching lines...) Expand all Loading... |
| 35 * location to be excluded if the offset is negative. | 35 * location to be excluded if the offset is negative. |
| 36 */ | 36 */ |
| 37 String getString(int start, int endDelta); | 37 String getString(int start, int endDelta); |
| 38 | 38 |
| 39 /** | 39 /** |
| 40 * Return the character at the current position without changing the current | 40 * Return the character at the current position without changing the current |
| 41 * position. | 41 * position. |
| 42 */ | 42 */ |
| 43 int peek(); | 43 int peek(); |
| 44 } | 44 } |
| OLD | NEW |