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

Unified Diff: pkg/analyzer/test/services/data/style_guide_tests.data

Issue 474363002: Tweak for formatting constructor initializers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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/style_guide_tests.data
diff --git a/pkg/analyzer/test/services/data/style_guide_tests.data b/pkg/analyzer/test/services/data/style_guide_tests.data
index d059c38cdd3c2aaf978ca698862bea5c5f0dd059..7c29e6c7a26b854fde1fd88b620e6b8dc00f0765 100644
--- a/pkg/analyzer/test/services/data/style_guide_tests.data
+++ b/pkg/analyzer/test/services/data/style_guide_tests.data
@@ -182,6 +182,18 @@ class MyClass {
secondField = "another",
thirdField = "last";
}
+>>> DO format constructor initialization lists with each field on its own line.
+class MyClass {
+ MyClass(looooooooooooooonA, looooooooooooooonB) : super(looooooooooooooonA, looooooooooooooonB);
+ MyClass(looooooooooooooonA, looooooooooooooonB) : this(looooooooooooooonA, looooooooooooooonB);
+}
+<<<
+class MyClass {
+ MyClass(looooooooooooooonA, looooooooooooooonB)
+ : super(looooooooooooooonA, looooooooooooooonB);
+ MyClass(looooooooooooooonA, looooooooooooooonB)
+ : this(looooooooooooooonA, looooooooooooooonB);
+}
>>> DO use a space after : in named parameters and named arguments.
class ListBox {
bool showScrollbars;
« 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