| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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.constructor_kinds_test; | 5 library test.constructor_kinds_test; |
| 6 | 6 |
| 7 import 'dart:mirrors'; | 7 import 'dart:mirrors'; |
| 8 import 'package:expect/expect.dart'; | 8 import 'package:expect/expect.dart'; |
| 9 | 9 |
| 10 class ClassWithDefaultConstructor {} | 10 class ClassWithDefaultConstructor {} |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // Expect.isFalse(mm.isRedirectingConstructor); | 103 // Expect.isFalse(mm.isRedirectingConstructor); |
| 104 // Expect.isTrue(mm.isConstConstructor); | 104 // Expect.isTrue(mm.isConstConstructor); |
| 105 | 105 |
| 106 mm = cm.declarations[#Class.constRedirectingFactoryConstructor]; | 106 mm = cm.declarations[#Class.constRedirectingFactoryConstructor]; |
| 107 Expect.isTrue(mm.isConstructor); | 107 Expect.isTrue(mm.isConstructor); |
| 108 Expect.isFalse(mm.isGenerativeConstructor); | 108 Expect.isFalse(mm.isGenerativeConstructor); |
| 109 Expect.isTrue(mm.isFactoryConstructor); | 109 Expect.isTrue(mm.isFactoryConstructor); |
| 110 Expect.isTrue(mm.isRedirectingConstructor); | 110 Expect.isTrue(mm.isRedirectingConstructor); |
| 111 Expect.isTrue(mm.isConstConstructor); | 111 Expect.isTrue(mm.isConstConstructor); |
| 112 } | 112 } |
| OLD | NEW |