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

Side by Side Diff: pkg/dev_compiler/test/codegen/sunflower/sunflower.dart

Issue 2752163002: Format all dart dev compiler files (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « pkg/dev_compiler/test/codegen/script.dart ('k') | pkg/dev_compiler/test/js/builder_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library sunflower; 5 library sunflower;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'dart:math'; 8 import 'dart:math';
9 9
10 import 'circle.dart'; 10 import 'circle.dart';
(...skipping 29 matching lines...) Expand all
40 final x = centerX + r * cos(theta); 40 final x = centerX + r * cos(theta);
41 final y = centerY - r * sin(theta); 41 final y = centerY - r * sin(theta);
42 new SunflowerSeed(x, y, SEED_RADIUS).draw(context); 42 new SunflowerSeed(x, y, SEED_RADIUS).draw(context);
43 } 43 }
44 notes.text = "$seeds seeds"; 44 notes.text = "$seeds seeds";
45 } 45 }
46 46
47 // This example was modified to use classes and mixins. 47 // This example was modified to use classes and mixins.
48 class SunflowerSeed extends Circle with CirclePainter { 48 class SunflowerSeed extends Circle with CirclePainter {
49 SunflowerSeed(num x, num y, num radius, [String color]) 49 SunflowerSeed(num x, num y, num radius, [String color])
50 : super(x, y, radius) { 50 : super(x, y, radius) {
51 if (color != null) this.color = color; 51 if (color != null) this.color = color;
52 } 52 }
53 } 53 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/codegen/script.dart ('k') | pkg/dev_compiler/test/js/builder_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698