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

Side by Side Diff: pkg/analyzer/test/services/data/cu_tests.data

Issue 320503002: Tweaks for long formal parameters and method body '{' formatting. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/services/formatter_impl.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 >>> 1 >>>
2 class 2 class
3 A 3 A
4 { 4 {
5 } 5 }
6 <<< 6 <<<
7 class A { 7 class A {
8 } 8 }
9 >>> dartbug.com/15876 9 >>> dartbug.com/15876
10 // fisk 10 // fisk
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 @meta 267 @meta
268 class Bar { 268 class Bar {
269 @meta 269 @meta
270 String foo; 270 String foo;
271 @meta 271 @meta
272 int bar() => 42; 272 int bar() => 42;
273 } 273 }
274 >>> 274 >>>
275 import 'a.dart' deferred as a; 275 import 'a.dart' deferred as a;
276 <<< 276 <<<
277 import 'a.dart' deferred as a; 277 import 'a.dart' deferred as a;
278 >>> Long parameters list, place the opening curly brace ({) on the same line
279 class Foo {
280 method(int a012345678901234567890123456789, int b012345678901234567890123456)
281 {
282 print('42');
283 }
284 }
285 <<<
286 class Foo {
287 method(int a012345678901234567890123456789,
288 int b012345678901234567890123456) {
289 print('42');
290 }
291 }
292 >>> Long parameters list, this.field
293 class A {
294 int a0123456789012345678901234;
295 int b0123456789012345678901234;
296 int c0123456789012345678901234;
297 int d0123456789012345678901234;
298 A(this.a0123456789012345678901234, this.b0123456789012345678901234, this.c0123 456789012345678901234,
299 this.d0123456789012345678901234);
300 }
301 <<<
302 class A {
303 int a0123456789012345678901234;
304 int b0123456789012345678901234;
305 int c0123456789012345678901234;
306 int d0123456789012345678901234;
307 A(this.a0123456789012345678901234, this.b0123456789012345678901234,
308 this.c0123456789012345678901234, this.d0123456789012345678901234);
309 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/services/formatter_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698