| 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; | 5 part of scanner_implementation; |
| 6 | 6 |
| 7 abstract | 7 abstract |
| 8 class ArrayBasedScanner<S extends SourceString> extends AbstractScanner<S> { | 8 class ArrayBasedScanner<S extends SourceString> extends AbstractScanner<S> { |
| 9 int get charOffset => byteOffset + extraCharOffset; | 9 int get charOffset => byteOffset + extraCharOffset; |
| 10 final Token tokens; | 10 final Token tokens; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 appendByteStringToken(COMMENT_INFO, value); | 172 appendByteStringToken(COMMENT_INFO, value); |
| 173 } | 173 } |
| 174 | 174 |
| 175 void discardOpenLt() { | 175 void discardOpenLt() { |
| 176 while (!groupingStack.isEmpty | 176 while (!groupingStack.isEmpty |
| 177 && identical(groupingStack.head.kind, LT_TOKEN)) { | 177 && identical(groupingStack.head.kind, LT_TOKEN)) { |
| 178 groupingStack = groupingStack.tail; | 178 groupingStack = groupingStack.tail; |
| 179 } | 179 } |
| 180 } | 180 } |
| 181 | 181 |
| 182 // TODO(ahe): make class abstract instead of adding an abstract method. | 182 void unmatchedBeginGroup(BeginGroupToken begin); |
| 183 peek(); | |
| 184 } | 183 } |
| OLD | NEW |