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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 <<< 206 <<<
207 class A extends B {} 207 class A extends B {}
208 >>> 208 >>>
209 class A extends B { 209 class A extends B {
210 210
211 } 211 }
212 <<< 212 <<<
213 class A extends B { 213 class A extends B {
214 214
215 } 215 }
216 >>> Single initializers can be on one line
217 class Foo extends Bar {
218 final int b;
219 Foo(int a, this.b): super(a);
220 }
221 <<<
222 class Foo extends Bar {
223 final int b;
224 Foo(int a, this.b): super(a);
225 }
226 >>> (or not)
227 class Foo extends Bar {
228 final int b;
229 Foo(int a, this.b)
230 : super(a);
231 }
232 <<<
233 class Foo extends Bar {
234 final int b;
235 Foo(int a, this.b)
236 : super(a);
237 }
238 >>> Multiple initializers are one per line
239 class Foo extends Bar {
240 final int b;
241 Foo(int a, int b) : super(a), this.b = b == null ? 0 : b;
242 }
243 <<<
244 class Foo extends Bar {
245 final int b;
246 Foo(int a, int b)
247 : super(a),
248 this.b = b == null ? 0 : b;
249 }
OLDNEW
« 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