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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/services/formatter_impl.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/services/data/cu_tests.data
diff --git a/pkg/analyzer/test/services/data/cu_tests.data b/pkg/analyzer/test/services/data/cu_tests.data
index d6186dfe7c628690f75ce597a93138d13727fa85..06dddeff57b72e00e76976a1380f927ac29212af 100644
--- a/pkg/analyzer/test/services/data/cu_tests.data
+++ b/pkg/analyzer/test/services/data/cu_tests.data
@@ -274,4 +274,36 @@ class Bar {
>>>
import 'a.dart' deferred as a;
<<<
-import 'a.dart' deferred as a;
+import 'a.dart' deferred as a;
+>>> Long parameters list, place the opening curly brace ({) on the same line
+class Foo {
+ method(int a012345678901234567890123456789, int b012345678901234567890123456)
+ {
+ print('42');
+ }
+}
+<<<
+class Foo {
+ method(int a012345678901234567890123456789,
+ int b012345678901234567890123456) {
+ print('42');
+ }
+}
+>>> Long parameters list, this.field
+class A {
+ int a0123456789012345678901234;
+ int b0123456789012345678901234;
+ int c0123456789012345678901234;
+ int d0123456789012345678901234;
+ A(this.a0123456789012345678901234, this.b0123456789012345678901234, this.c0123456789012345678901234,
+ this.d0123456789012345678901234);
+}
+<<<
+class A {
+ int a0123456789012345678901234;
+ int b0123456789012345678901234;
+ int c0123456789012345678901234;
+ int d0123456789012345678901234;
+ A(this.a0123456789012345678901234, this.b0123456789012345678901234,
+ this.c0123456789012345678901234, this.d0123456789012345678901234);
+}
« 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