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

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

Issue 10876008: Remove most superfluous getter arguments from dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 ScannerTask extends CompilerTask { 5 class ScannerTask extends CompilerTask {
6 ScannerTask(Compiler compiler) : super(compiler); 6 ScannerTask(Compiler compiler) : super(compiler);
7 String get name() => 'Scanner'; 7 String get name => 'Scanner';
8 8
9 void scanLibrary(LibraryElement library) { 9 void scanLibrary(LibraryElement library) {
10 var compilationUnit = library.entryCompilationUnit; 10 var compilationUnit = library.entryCompilationUnit;
11 compiler.log("scanning library ${compilationUnit.script.name}"); 11 compiler.log("scanning library ${compilationUnit.script.name}");
12 scan(compilationUnit); 12 scan(compilationUnit);
13 processScriptTags(library); 13 processScriptTags(library);
14 } 14 }
15 15
16 void scan(CompilationUnitElement compilationUnit) { 16 void scan(CompilationUnitElement compilationUnit) {
17 measure(() { 17 measure(() {
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 static final int RESOURCE = 4; 228 static final int RESOURCE = 4;
229 229
230 /** Next state. */ 230 /** Next state. */
231 static final List<int> NEXT = 231 static final List<int> NEXT =
232 const <int>[NO_TAG_SEEN, 232 const <int>[NO_TAG_SEEN,
233 IMPORT, // Only one library tag is allowed. 233 IMPORT, // Only one library tag is allowed.
234 IMPORT, 234 IMPORT,
235 SOURCE, 235 SOURCE,
236 RESOURCE]; 236 RESOURCE];
237 } 237 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698