Chromium Code Reviews| 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 class ArrayBasedScanner<S extends SourceString> extends AbstractScanner<S> { | 5 abstract class ArrayBasedScanner<S extends SourceString> extends AbstractScanner <S> { |
|
karlklose
2012/10/08 13:35:37
Long line.
ahe
2012/10/08 13:38:03
Done.
| |
| 6 int get charOffset => byteOffset + extraCharOffset; | 6 int get charOffset => byteOffset + extraCharOffset; |
| 7 final Token tokens; | 7 final Token tokens; |
| 8 Token tail; | 8 Token tail; |
| 9 int tokenStart; | 9 int tokenStart; |
| 10 int byteOffset; | 10 int byteOffset; |
| 11 final bool includeComments; | 11 final bool includeComments; |
| 12 | 12 |
| 13 /** Since the input is UTF8, some characters are represented by more | 13 /** Since the input is UTF8, some characters are represented by more |
| 14 * than one byte. [extraCharOffset] tracks the difference. */ | 14 * than one byte. [extraCharOffset] tracks the difference. */ |
| 15 int extraCharOffset; | 15 int extraCharOffset; |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 172 | 172 |
| 173 void discardOpenLt() { | 173 void discardOpenLt() { |
| 174 while (!groupingStack.isEmpty() && groupingStack.head.kind === LT_TOKEN) { | 174 while (!groupingStack.isEmpty() && groupingStack.head.kind === LT_TOKEN) { |
| 175 groupingStack = groupingStack.tail; | 175 groupingStack = groupingStack.tail; |
| 176 } | 176 } |
| 177 } | 177 } |
| 178 | 178 |
| 179 // TODO(ahe): make class abstract instead of adding an abstract method. | 179 // TODO(ahe): make class abstract instead of adding an abstract method. |
| 180 abstract peek(); | 180 abstract peek(); |
| 181 } | 181 } |
| OLD | NEW |