| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |