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

Unified Diff: test/regression/112.stmt

Issue 846133002: Put conditional operators on the left. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Update version. Created 5 years, 11 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 | « pubspec.yaml ('k') | test/regression/115.stmt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/regression/112.stmt
diff --git a/test/regression/112.stmt b/test/regression/112.stmt
index 0f8b7ce2b169e145da045586275f9e284f9e55a6..3446a9f1ee8b25f2b820a4a20c12651bf24ecf0d 100644
--- a/test/regression/112.stmt
+++ b/test/regression/112.stmt
@@ -5,9 +5,9 @@
something.field.where((i) => i is SomeClassGoesHere),
key: (i) => i.someField.name);
<<<
- var initializers = something == null ?
- {} :
- new Map.fromIterable(
+ var initializers = something == null
+ ? {}
+ : new Map.fromIterable(
something.field.where((i) => i is SomeClassGoesHere),
key: (i) => i.someField.name);
>>> (indent 4)
@@ -15,7 +15,7 @@
outputDir, uri, results.libraries, results.rules, formatOutput) :
new JSGenerator(outputDir, uri, results.libraries, results.rules);
<<<
- var cg = outputDart ?
- new DartGenerator(
- outputDir, uri, results.libraries, results.rules, formatOutput) :
- new JSGenerator(outputDir, uri, results.libraries, results.rules);
+ var cg = outputDart
+ ? new DartGenerator(
+ outputDir, uri, results.libraries, results.rules, formatOutput)
+ : new JSGenerator(outputDir, uri, results.libraries, results.rules);
« no previous file with comments | « pubspec.yaml ('k') | test/regression/115.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698