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

Unified Diff: tool/node_format_service.dart

Issue 2181743002: Always split collections and argument lists with trailing commas. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Revise. Created 4 years, 5 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 | « test/whitespace/expressions.stmt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/node_format_service.dart
diff --git a/tool/node_format_service.dart b/tool/node_format_service.dart
index fa580391873ad294ab5bcba956f39a3ea1807b0f..d063a3d8d47f54f370f71666741e953339ec768b 100644
--- a/tool/node_format_service.dart
+++ b/tool/node_format_service.dart
@@ -25,8 +25,7 @@ void main() {
var exception;
try {
- return new FormatResult(
- code: new DartFormatter().format(source));
+ return new FormatResult(code: new DartFormatter().format(source));
} on FormatterException catch (err) {
// Couldn't parse it as a compilation unit.
exception = err;
@@ -34,8 +33,7 @@ void main() {
// Maybe it's a statement.
try {
- return new FormatResult(
- code: formatter.formatStatement(source));
+ return new FormatResult(code: formatter.formatStatement(source));
} on FormatterException catch (err) {
// There is an error when parsing it both as a compilation unit and a
// statement, so we aren't sure which one the user intended. As a
« no previous file with comments | « test/whitespace/expressions.stmt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698