OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 foo(int arg) {} | 5 foo(int arg) {} |
6 | 6 |
7 class C { | 7 class C { |
8 C(int arg) {} | 8 C(int arg) {} |
9 static foo(int arg) {} | 9 static foo(int arg) {} |
10 } | 10 } |
11 | 11 |
12 var a; | 12 var a; |
13 | 13 |
14 int get getter => 42; | 14 int get getter => 42; |
15 | 15 |
16 void set setter(int arg) { | 16 void set setter(int arg) { |
17 a = 10; | 17 a = 10; |
18 } | 18 } |
19 | 19 |
20 var list = new List(); | 20 var list = new List<int>(); |
21 | 21 |
22 var closure = (int arg) => 3; | 22 var closure = (int arg) => 3; |
OLD | NEW |