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

Unified Diff: pkg/front_end/lib/src/fasta/errors.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/environment_variable.dart ('k') | pkg/front_end/lib/src/fasta/export.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/errors.dart
diff --git a/pkg/front_end/lib/src/fasta/errors.dart b/pkg/front_end/lib/src/fasta/errors.dart
index 4a92608b01c4bb33fc14fe6798313b8256c764de..f80c09d0e5839d3f1f9bbf30842c83cd7ebda49b 100644
--- a/pkg/front_end/lib/src/fasta/errors.dart
+++ b/pkg/front_end/lib/src/fasta/errors.dart
@@ -4,26 +4,16 @@
library fasta.errors;
-import 'dart:async' show
- Future;
+import 'dart:async' show Future;
-import 'dart:convert' show
- JSON;
+import 'dart:convert' show JSON;
-import 'dart:io' show
- ContentType,
- HttpClient,
- HttpClientRequest,
- SocketException,
- stderr;
+import 'dart:io'
+ show ContentType, HttpClient, HttpClientRequest, SocketException, stderr;
-import 'colors.dart' show
- red;
+import 'colors.dart' show red;
-import 'messages.dart' show
- errorsAreFatal,
- format,
- isVerbose;
+import 'messages.dart' show errorsAreFatal, format, isVerbose;
const String defaultServerAddress = "http://127.0.0.1:59410/";
@@ -130,6 +120,7 @@ Future reportCrash(error, StackTrace trace, [Uri uri, int charOffset]) async {
stderr.write(note);
await stderr.flush();
}
+
if (hasCrashed) return new Future.error(error, trace);
if (error is Crash) {
trace = error.trace ?? trace;
@@ -166,8 +157,8 @@ Future reportCrash(error, StackTrace trace, [Uri uri, int charOffset]) async {
int port = request?.connectionInfo?.remotePort;
await note(" to $host:$port");
await request
- ..headers.contentType = ContentType.JSON
- ..write(json);
+ ..headers.contentType = ContentType.JSON
+ ..write(json);
await request.close();
await note(".");
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/environment_variable.dart ('k') | pkg/front_end/lib/src/fasta/export.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698