Index: pkg/compiler/lib/src/parser/parser_task.dart |
diff --git a/pkg/compiler/lib/src/parser/parser_task.dart b/pkg/compiler/lib/src/parser/parser_task.dart |
index a79875fba4a36005530a03932c0e11fb5187f5c9..471ebf67009e3fae95df3fa00559fe8705e99e8c 100644 |
--- a/pkg/compiler/lib/src/parser/parser_task.dart |
+++ b/pkg/compiler/lib/src/parser/parser_task.dart |
@@ -5,27 +5,17 @@ |
library dart2js.parser.task; |
import '../common.dart'; |
-import '../common/tasks.dart' show |
- CompilerTask; |
-import '../compiler.dart' show |
- Compiler; |
-import '../elements/modelx.dart' show |
- ElementX; |
-import '../options.dart' show |
- ParserOptions; |
-import '../tokens/token.dart' show |
- Token; |
-import '../tree/tree.dart' show |
- Node; |
- |
-import 'element_listener.dart' show |
- ScannerOptions; |
-import 'listener.dart' show |
- ParserError; |
-import 'node_listener.dart' show |
- NodeListener; |
-import 'parser.dart' show |
- Parser; |
+import '../common/tasks.dart' show CompilerTask; |
+import '../compiler.dart' show Compiler; |
+import '../elements/modelx.dart' show ElementX; |
+import '../options.dart' show ParserOptions; |
+import '../tokens/token.dart' show Token; |
+import '../tree/tree.dart' show Node; |
+ |
+import 'element_listener.dart' show ScannerOptions; |
+import 'listener.dart' show ParserError; |
+import 'node_listener.dart' show NodeListener; |
+import 'parser.dart' show Parser; |
class ParserTask extends CompilerTask { |
final ParserOptions parserOptions; |
@@ -40,12 +30,12 @@ class ParserTask extends CompilerTask { |
Node parseCompilationUnit(Token token) { |
return measure(() { |
- NodeListener listener = new NodeListener( |
- const ScannerOptions(), reporter, null); |
+ NodeListener listener = |
+ new NodeListener(const ScannerOptions(), reporter, null); |
Parser parser = new Parser(listener, parserOptions); |
try { |
parser.parseUnit(token); |
- } on ParserError catch(_) { |
+ } on ParserError catch (_) { |
assert(invariant(token, compiler.compilationFailed)); |
return listener.makeNodeList(0, null, null, '\n'); |
} |