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

Side by Side Diff: test/splitting/mixed.stmt

Issue 2521383002: Correctly indent the RHS of 'is' and 'as' expressions. (Closed)
Patch Set: Created 4 years, 1 month 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 | « lib/src/source_visitor.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 40 columns | 1 40 columns |
2 >>> keeps map on one line if possible 2 >>> keeps map on one line if possible
3 sendPort.send({'type': 'error', 'error': 'oops'}); 3 sendPort.send({'type': 'error', 'error': 'oops'});
4 <<< 4 <<<
5 sendPort.send( 5 sendPort.send(
6 {'type': 'error', 'error': 'oops'}); 6 {'type': 'error', 'error': 'oops'});
7 >>> prefers to wrap before "." 7 >>> prefers to wrap before "."
8 new Future.sync(() => callback('msg')).then( 8 new Future.sync(() => callback('msg')).then(
9 (result) => replyTo.send()).catchError((error) {}); 9 (result) => replyTo.send()).catchError((error) {});
10 <<< 10 <<<
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 veryLongFunction() => extremelyLongArgument + argument; 203 veryLongFunction() => extremelyLongArgument + argument;
204 <<< 204 <<<
205 veryLongFunction() => 205 veryLongFunction() =>
206 extremelyLongArgument + argument; 206 extremelyLongArgument + argument;
207 >>> no extra indent before binary operators in => body 207 >>> no extra indent before binary operators in => body
208 veryLongFunction() => longArgument + longArgument + longArgument; 208 veryLongFunction() => longArgument + longArgument + longArgument;
209 <<< 209 <<<
210 veryLongFunction() => 210 veryLongFunction() =>
211 longArgument + 211 longArgument +
212 longArgument + 212 longArgument +
213 longArgument; 213 longArgument;
214 >>> initialize with as expression
215 var longVariableName = identifierSoLongItWraps as SomeClassName;
216 <<<
217 var longVariableName =
218 identifierSoLongItWraps
219 as SomeClassName;
220 >>> initialize with is expression
221 var longVariableName = identifierSoLongItWraps is SomeClassName;
222 <<<
223 var longVariableName =
224 identifierSoLongItWraps
225 is SomeClassName;
OLDNEW
« no previous file with comments | « lib/src/source_visitor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698