Index: pkg/compiler/lib/src/scanner/parser_task.dart |
diff --git a/pkg/compiler/lib/src/scanner/parser_task.dart b/pkg/compiler/lib/src/scanner/parser_task.dart |
deleted file mode 100644 |
index 0a9b8493e46898aaecf4db6fad817c4a9f678930..0000000000000000000000000000000000000000 |
--- a/pkg/compiler/lib/src/scanner/parser_task.dart |
+++ /dev/null |
@@ -1,25 +0,0 @@ |
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
-// 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; |
- |
-class ParserTask extends CompilerTask { |
- ParserTask(Compiler compiler) : super(compiler); |
- String get name => 'Parser'; |
- |
- Node parse(ElementX element) { |
- return measure(() => element.parseNode(compiler)); |
- } |
- |
- Node parseCompilationUnit(Token token) { |
- return measure(() { |
- NodeListener listener = new NodeListener(compiler, null); |
- Parser parser = new Parser(listener); |
- parser.parseUnit(token); |
- Node result = listener.popNode(); |
- assert(listener.nodes.isEmpty); |
- return result; |
- }); |
- } |
-} |