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

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

Issue 11262032: Add 'part of' in dart2js code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 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
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 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/resolved_visitor.dart ('k') | lib/compiler/implementation/scanner/class_element_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698