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

Side by Side Diff: test/codegen/sunflower/painter.dart

Issue 1879373004: Implement modular compilation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 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
« no previous file with comments | « test/codegen/sunflower/dom.dart ('k') | test/codegen/sunflower/sunflower.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 painter; 5 library painter;
6 6
7 import 'dom.dart'; 7 import 'dart:html';
8 import 'dart:math'; 8 import 'dart:math';
9 9
10 import 'circle.dart'; 10 import 'circle.dart';
11 11
12 const ORANGE = "orange"; 12 const ORANGE = "orange";
13 const RED = "red"; 13 const RED = "red";
14 const BLUE = "blue"; 14 const BLUE = "blue";
15 const TAU = PI * 2; 15 const TAU = PI * 2;
16 16
17 Element querySelector(String selector) => document.querySelector(selector); 17 Element querySelector(String selector) => document.querySelector(selector);
(...skipping 10 matching lines...) Expand all
28 context 28 context
29 ..beginPath() 29 ..beginPath()
30 ..lineWidth = 2 30 ..lineWidth = 2
31 ..fillStyle = color 31 ..fillStyle = color
32 ..strokeStyle = color 32 ..strokeStyle = color
33 ..arc(x, y, radius, 0, TAU, false) 33 ..arc(x, y, radius, 0, TAU, false)
34 ..fill() 34 ..fill()
35 ..closePath() 35 ..closePath()
36 ..stroke(); 36 ..stroke();
37 } 37 }
38 } 38 }
OLDNEW
« no previous file with comments | « test/codegen/sunflower/dom.dart ('k') | test/codegen/sunflower/sunflower.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698