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

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

Issue 141443011: Constructor initializer indent fixes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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') | pkg/analyzer/test/services/formatter_test.dart » ('j') | 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
===================================================================
--- pkg/analyzer/test/services/data/cu_tests.data (revision 32390)
+++ pkg/analyzer/test/services/data/cu_tests.data (working copy)
@@ -213,3 +213,37 @@
class A extends B {
}
+>>> Single initializers can be on one line
+class Foo extends Bar {
+ final int b;
+ Foo(int a, this.b): super(a);
+}
+<<<
+class Foo extends Bar {
+ final int b;
+ Foo(int a, this.b): super(a);
+}
+>>> (or not)
+class Foo extends Bar {
+ final int b;
+ Foo(int a, this.b)
+ : super(a);
+}
+<<<
+class Foo extends Bar {
+ final int b;
+ Foo(int a, this.b)
+ : super(a);
+}
+>>> Multiple initializers are one per line
+class Foo extends Bar {
+ final int b;
+ Foo(int a, int b) : super(a), this.b = b == null ? 0 : b;
+}
+<<<
+class Foo extends Bar {
+ final int b;
+ Foo(int a, int b)
+ : super(a),
+ this.b = b == null ? 0 : b;
+}
« no previous file with comments | « pkg/analyzer/lib/src/services/formatter_impl.dart ('k') | pkg/analyzer/test/services/formatter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698