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

Side by Side Diff: test/regression/0200/0224.stmt

Issue 1255643002: New, simpler and faster line splitter. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Optimize nesting. Reformat. Created 5 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 unified diff | Download patch
« no previous file with comments | « test/regression/0100/0198.stmt ('k') | test/regression/0300/0360.stmt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 >>> (indent 4) 1 >>> (indent 4)
2 return doughnutFryer.start() 2 return doughnutFryer.start()
3 .then((_) => _frostingGlazer.start()) 3 .then((_) => _frostingGlazer.start())
4 .then((_) => 4 .then((_) =>
5 Future.wait([ 5 Future.wait([
6 _conveyorBelts.start(), 6 _conveyorBelts.start(),
7 sprinkleSprinkler.start(), 7 sprinkleSprinkler.start(),
8 sauceDripper.start()])) 8 sauceDripper.start()]))
9 .catchError(cannotGetConveyorBeltRunning) 9 .catchError(cannotGetConveyorBeltRunning)
10 .then((_) => tellEveryoneDonutsAreJustAboutDone()) 10 .then((_) => tellEveryoneDonutsAreJustAboutDone())
(...skipping 13 matching lines...) Expand all
24 return doughnutFryer 24 return doughnutFryer
25 .start() 25 .start()
26 .then((_) => _frostingGlazer.start()) 26 .then((_) => _frostingGlazer.start())
27 .then((_) => Future.wait([ 27 .then((_) => Future.wait([
28 _conveyorBelts.start(), 28 _conveyorBelts.start(),
29 sprinkleSprinkler.start(), 29 sprinkleSprinkler.start(),
30 sauceDripper.start() 30 sauceDripper.start()
31 ])) 31 ]))
32 .catchError(cannotGetConveyorBeltRunning) 32 .catchError(cannotGetConveyorBeltRunning)
33 .then((_) => tellEveryoneDonutsAreJustAboutDone()) 33 .then((_) => tellEveryoneDonutsAreJustAboutDone())
34 .then( 34 .then((_) => Future.wait([
35 (_) => Future.wait([ 35 croissantFactory.start(),
36 croissantFactory.start(), 36 _giantBakingOvens.start(),
37 _giantBakingOvens.start(), 37 butterbutterer.start()
38 butterbutterer.start() 38 ])
39 ]) 39 .catchError(_handleBakingFailures)
40 .catchError(_handleBakingFailures) 40 .timeout(scriptLoadingTimeout, onTimeout: _handleBakingFailures)
41 .timeout(scriptLoadingTimeout, 41 .catchError(cannotGetConveyorBeltRunning))
42 onTimeout: _handleBakingFailures)
43 .catchError(cannotGetConveyorBeltRunning))
44 .catchError(cannotGetConveyorBeltRunning) 42 .catchError(cannotGetConveyorBeltRunning)
45 .then((_) { 43 .then((_) {
46 _logger.info("Let's eat!"); 44 _logger.info("Let's eat!");
47 }); 45 });
48 >>> (indent 22) 46 >>> (indent 22)
49 someVeryLongFutureWithManyChars().then((foo) { 47 someVeryLongFutureWithManyChars().then((foo) {
50 doAThing(); 48 doAThing();
51 }).catchError((e) { 49 }).catchError((e) {
52 doAnotherThing; 50 doAnotherThing;
53 }, test: someTestWithSoManyConditions(e) && itHasToWrap(e) ); 51 }, test: someTestWithSoManyConditions(e) && itHasToWrap(e) );
54 <<< 52 <<<
55 someVeryLongFutureWithManyChars().then((foo) { 53 someVeryLongFutureWithManyChars().then((foo) {
56 doAThing(); 54 doAThing();
57 }).catchError((e) { 55 }).catchError((e) {
58 doAnotherThing; 56 doAnotherThing;
59 }, 57 },
60 test: someTestWithSoManyConditions(e) && 58 test: someTestWithSoManyConditions(e) &&
61 itHasToWrap(e)); 59 itHasToWrap(e));
OLDNEW
« no previous file with comments | « test/regression/0100/0198.stmt ('k') | test/regression/0300/0360.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698