Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: dart/lib/compiler/implementation/scanner/array_based_scanner.dart

Issue 11088003: Fix warnings in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix long line Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 abstract
5 class ArrayBasedScanner<S extends SourceString> extends AbstractScanner<S> { 6 class ArrayBasedScanner<S extends SourceString> extends AbstractScanner<S> {
6 int get charOffset => byteOffset + extraCharOffset; 7 int get charOffset => byteOffset + extraCharOffset;
7 final Token tokens; 8 final Token tokens;
8 Token tail; 9 Token tail;
9 int tokenStart; 10 int tokenStart;
10 int byteOffset; 11 int byteOffset;
11 final bool includeComments; 12 final bool includeComments;
12 13
13 /** Since the input is UTF8, some characters are represented by more 14 /** Since the input is UTF8, some characters are represented by more
14 * than one byte. [extraCharOffset] tracks the difference. */ 15 * than one byte. [extraCharOffset] tracks the difference. */
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 173
173 void discardOpenLt() { 174 void discardOpenLt() {
174 while (!groupingStack.isEmpty() && groupingStack.head.kind === LT_TOKEN) { 175 while (!groupingStack.isEmpty() && groupingStack.head.kind === LT_TOKEN) {
175 groupingStack = groupingStack.tail; 176 groupingStack = groupingStack.tail;
176 } 177 }
177 } 178 }
178 179
179 // TODO(ahe): make class abstract instead of adding an abstract method. 180 // TODO(ahe): make class abstract instead of adding an abstract method.
180 abstract peek(); 181 abstract peek();
181 } 182 }
OLDNEW
« no previous file with comments | « dart/lib/compiler/implementation/elements/elements.dart ('k') | dart/lib/compiler/implementation/scanner/keyword.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698