Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(754)

Unified Diff: pkg/front_end/lib/src/fasta/parser/main.dart

Issue 2718113003: Run dartfmt on pkg/front_end/lib. (Closed)
Patch Set: Rerun after merging. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/listener.dart ('k') | pkg/front_end/lib/src/fasta/parser/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/listener.dart ('k') | pkg/front_end/lib/src/fasta/parser/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698