Index: pkg/front_end/lib/src/fasta/parser/main.dart |
diff --git a/pkg/front_end/lib/src/fasta/parser/main.dart b/pkg/front_end/lib/src/fasta/parser/main.dart |
index ef3db0f203d8786b83abd944b5bb065f12aa001f..7e88b1912a0a5973cb94c1e41b5a1a0aca639133 100644 |
--- a/pkg/front_end/lib/src/fasta/parser/main.dart |
+++ b/pkg/front_end/lib/src/fasta/parser/main.dart |
@@ -4,27 +4,19 @@ |
library fasta.parser.main; |
-import 'dart:convert' show |
- LineSplitter, |
- UTF8; |
+import 'dart:convert' show LineSplitter, UTF8; |
-import 'dart:io' show |
- File; |
+import 'dart:io' show File; |
-import 'package:front_end/src/fasta/scanner/token.dart' show |
- Token; |
+import 'package:front_end/src/fasta/scanner/token.dart' show Token; |
-import 'package:front_end/src/fasta/scanner/io.dart' show |
- readBytesFromFileSync; |
+import 'package:front_end/src/fasta/scanner/io.dart' show readBytesFromFileSync; |
-import 'package:front_end/src/fasta/scanner.dart' show |
- scan; |
+import 'package:front_end/src/fasta/scanner.dart' show scan; |
-import 'listener.dart' show |
- Listener; |
+import 'listener.dart' show Listener; |
-import 'top_level_parser.dart' show |
- TopLevelParser; |
+import 'top_level_parser.dart' show TopLevelParser; |
import 'identifier_context.dart' show IdentifierContext; |
@@ -42,9 +34,10 @@ main(List<String> arguments) async { |
for (String argument in arguments) { |
if (argument.startsWith("@")) { |
Uri uri = Uri.base.resolve(argument.substring(1)); |
- await for (String file in new File.fromUri(uri).openRead() |
- .transform(UTF8.decoder) |
- .transform(const LineSplitter())) { |
+ await for (String file in new File.fromUri(uri) |
+ .openRead() |
+ .transform(UTF8.decoder) |
+ .transform(const LineSplitter())) { |
outLine(uri.resolve(file)); |
} |
} else { |
@@ -54,6 +47,6 @@ main(List<String> arguments) async { |
} |
void outLine(Uri uri) { |
- new TopLevelParser(new DebugListener()).parseUnit( |
- scan(readBytesFromFileSync(uri)).tokens); |
+ new TopLevelParser(new DebugListener()) |
+ .parseUnit(scan(readBytesFromFileSync(uri)).tokens); |
} |