Index: pkg/compiler/lib/src/scanner/scanner_task.dart |
diff --git a/pkg/compiler/lib/src/scanner/scanner_task.dart b/pkg/compiler/lib/src/scanner/scanner_task.dart |
index 636ee34a0890615d20fd6ba2a8a696f45383557d..88eaac0c49940f010ad3bfa068e21e98e8819575 100644 |
--- a/pkg/compiler/lib/src/scanner/scanner_task.dart |
+++ b/pkg/compiler/lib/src/scanner/scanner_task.dart |
@@ -2,7 +2,24 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-part of scanner; |
+library dart2js.scanner.task; |
+ |
+import '../common/tasks.dart' show |
+ CompilerTask; |
+import '../compiler.dart' show |
+ Compiler; |
+import '../elements/elements.dart' show |
+ CompilationUnitElement, |
+ LibraryElement; |
+import '../script.dart' show |
+ Script; |
+ |
+import 'scanner.dart' show |
+ Scanner; |
+import 'string_scanner.dart' show |
+ StringScanner; |
+import 'token.dart' show |
+ Token; |
class ScannerTask extends CompilerTask { |
ScannerTask(Compiler compiler) : super(compiler); |
@@ -50,22 +67,3 @@ class ScannerTask extends CompilerTask { |
}); |
} |
} |
- |
-class DietParserTask extends CompilerTask { |
- DietParserTask(Compiler compiler) : super(compiler); |
- final String name = 'Diet Parser'; |
- |
- dietParse(CompilationUnitElement compilationUnit, Token tokens) { |
- measure(() { |
- Function idGenerator = compiler.getNextFreeClassId; |
- ElementListener listener = |
- new ElementListener(compiler, compilationUnit, idGenerator); |
- PartialParser parser = new PartialParser(listener); |
- try { |
- parser.parseUnit(tokens); |
- } on ParserError catch(_) { |
- assert(invariant(compilationUnit, compiler.compilationFailed)); |
- } |
- }); |
- } |
-} |