| 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 library test.hot_get_field; | 5 library test.hot_get_field; |
| 6 | 6 |
| 7 @MirrorsUsed(targets: "test.hot_get_field") |
| 7 import 'dart:mirrors'; | 8 import 'dart:mirrors'; |
| 8 import 'package:expect/expect.dart'; | 9 import 'package:expect/expect.dart'; |
| 9 | 10 |
| 10 class C { | 11 class C { |
| 11 var field; | 12 var field; |
| 12 var _field; | 13 var _field; |
| 13 operator +(other) => field + other; | 14 operator +(other) => field + other; |
| 14 } | 15 } |
| 15 | 16 |
| 16 const int optimizationThreshold = 20; | 17 const int optimizationThreshold = 20; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 Expect.equals(2 * i, closurizedPlus(i)); | 58 Expect.equals(2 * i, closurizedPlus(i)); |
| 58 } | 59 } |
| 59 } | 60 } |
| 60 | 61 |
| 61 main() { | 62 main() { |
| 62 testPublic(); | 63 testPublic(); |
| 63 testPrivate(); | 64 testPrivate(); |
| 64 testPrivateWrongLibrary(); | 65 testPrivateWrongLibrary(); |
| 65 testOperator(); | 66 testOperator(); |
| 66 } | 67 } |
| OLD | NEW |