| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 part of scanner_implementation; |
| 6 |
| 5 abstract | 7 abstract |
| 6 class ArrayBasedScanner<S extends SourceString> extends AbstractScanner<S> { | 8 class ArrayBasedScanner<S extends SourceString> extends AbstractScanner<S> { |
| 7 int get charOffset => byteOffset + extraCharOffset; | 9 int get charOffset => byteOffset + extraCharOffset; |
| 8 final Token tokens; | 10 final Token tokens; |
| 9 Token tail; | 11 Token tail; |
| 10 int tokenStart; | 12 int tokenStart; |
| 11 int byteOffset; | 13 int byteOffset; |
| 12 final bool includeComments; | 14 final bool includeComments; |
| 13 | 15 |
| 14 /** Since the input is UTF8, some characters are represented by more | 16 /** Since the input is UTF8, some characters are represented by more |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 void discardOpenLt() { | 176 void discardOpenLt() { |
| 175 while (!groupingStack.isEmpty | 177 while (!groupingStack.isEmpty |
| 176 && identical(groupingStack.head.kind, LT_TOKEN)) { | 178 && identical(groupingStack.head.kind, LT_TOKEN)) { |
| 177 groupingStack = groupingStack.tail; | 179 groupingStack = groupingStack.tail; |
| 178 } | 180 } |
| 179 } | 181 } |
| 180 | 182 |
| 181 // TODO(ahe): make class abstract instead of adding an abstract method. | 183 // TODO(ahe): make class abstract instead of adding an abstract method. |
| 182 abstract peek(); | 184 abstract peek(); |
| 183 } | 185 } |
| OLD | NEW |