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

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

Issue 231743002: Fix constructor initializer space conventions (dartbug.com/17642). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 216 >>> Single initializers can be on one line
217 class Foo extends Bar { 217 class Foo extends Bar {
218 final int b; 218 final int b;
219 Foo(int a, this.b): super(a); 219 Foo(int a, this.b) : super(a);
220 } 220 }
221 <<< 221 <<<
222 class Foo extends Bar { 222 class Foo extends Bar {
223 final int b; 223 final int b;
224 Foo(int a, this.b): super(a); 224 Foo(int a, this.b) : super(a);
225 } 225 }
226 >>> (or not) 226 >>> (or not)
227 class Foo extends Bar { 227 class Foo extends Bar {
228 final int b; 228 final int b;
229 Foo(int a, this.b) 229 Foo(int a, this.b)
230 : super(a); 230 : super(a);
231 } 231 }
232 <<< 232 <<<
233 class Foo extends Bar { 233 class Foo extends Bar {
234 final int b; 234 final int b;
235 Foo(int a, this.b) 235 Foo(int a, this.b)
236 : super(a); 236 : super(a);
237 } 237 }
238 >>> Multiple initializers are one per line 238 >>> Multiple initializers are one per line
239 class Foo extends Bar { 239 class Foo extends Bar {
240 final int b; 240 final int b;
241 Foo(int a, int b) : super(a), this.b = b == null ? 0 : b; 241 Foo(int a, int b) : super(a), this.b = b == null ? 0 : b;
242 } 242 }
243 <<< 243 <<<
244 class Foo extends Bar { 244 class Foo extends Bar {
245 final int b; 245 final int b;
246 Foo(int a, int b) 246 Foo(int a, int b)
247 : super(a), 247 : super(a),
248 this.b = b == null ? 0 : b; 248 this.b = b == null ? 0 : b;
249 } 249 }
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