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

Unified Diff: test/regression/80.unit

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 | « test/regression/45.stmt ('k') | test/splitting/expressions.stmt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/regression/80.unit
diff --git a/test/regression/80.unit b/test/regression/80.unit
index 0cafb9cc13019f1a84e7e7113d6095f2cee86c13..39199d871fe1fd66cc89724f1ba9e5af09fc88d0 100644
--- a/test/regression/80.unit
+++ b/test/regression/80.unit
@@ -40,32 +40,34 @@ void main(List argv) {
<<<
void main(List argv) {
// This is ok (it moves the ? and : to the ends of the previous lines)
- var cg = outputDart ?
- new A(outputDir, uri, results.libraries, results.infoMap, results.rules,
- formatOutput) :
- new B(outputDir, uri, results.libraries, results.infoMap, results.rules);
+ var cg = outputDart
+ ? new A(outputDir, uri, results.libraries, results.infoMap, results.rules,
+ formatOutput)
+ : new B(
+ outputDir, uri, results.libraries, results.infoMap, results.rules);
// This gets rewritten to something much harder to read
// var cg = outputDart ?
// new ALongerClass(outputDir, uri, results.libraries, results.infoMap,
// results.rules, formatOutput) : new BLongerClass(
// outputDir, uri, results.libraries, results.infoMap, results.rules);
- var cg = outputDart ?
- new ALongerClass(outputDir, uri, results.libraries, results.infoMap,
- results.rules, formatOutput) :
- new BLongerClass(
+ var cg = outputDart
+ ? new ALongerClass(outputDir, uri, results.libraries, results.infoMap,
+ results.rules, formatOutput)
+ : new BLongerClass(
outputDir, uri, results.libraries, results.infoMap, results.rules);
// OK, left unchanged
- var cg = outputDart ?
- new A(outputDir, uri, results.libraries, results.infoMap, results.rules,
- formatOutput) :
- new B(outputDir, uri, results.libraries, results.infoMap, results.rules);
+ var cg = outputDart
+ ? new A(outputDir, uri, results.libraries, results.infoMap, results.rules,
+ formatOutput)
+ : new B(
+ outputDir, uri, results.libraries, results.infoMap, results.rules);
// Bad, as above
- var cg = outputDart ?
- new ALongerClass(outputDir, uri, results.libraries, results.infoMap,
- results.rules, formatOutput) :
- new BLongerClass(
+ var cg = outputDart
+ ? new ALongerClass(outputDir, uri, results.libraries, results.infoMap,
+ results.rules, formatOutput)
+ : new BLongerClass(
outputDir, uri, results.libraries, results.infoMap, results.rules);
}
« no previous file with comments | « test/regression/45.stmt ('k') | test/splitting/expressions.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698