OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 import "package:expect/expect.dart"; |
5 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart'
; | 6 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart'
; |
6 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.
dart'; | 7 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.
dart'; |
7 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirro
r.dart'; | 8 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirro
r.dart'; |
8 | 9 |
9 import 'dart:io'; | 10 import 'dart:io'; |
10 | 11 |
11 int count(Iterable iterable) { | 12 int count(Iterable iterable) { |
12 var count = 0; | 13 var count = 0; |
13 for (var element in iterable) { | 14 for (var element in iterable) { |
14 count++; | 15 count++; |
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 Expect.isTrue(privateFactoryConstructor.isPrivate); | 1047 Expect.isTrue(privateFactoryConstructor.isPrivate); |
1047 Expect.isFalse(privateFactoryConstructor.isConstConstructor); | 1048 Expect.isFalse(privateFactoryConstructor.isConstConstructor); |
1048 Expect.isFalse(privateFactoryConstructor.isRedirectingConstructor); | 1049 Expect.isFalse(privateFactoryConstructor.isRedirectingConstructor); |
1049 Expect.isFalse(privateFactoryConstructor.isGenerativeConstructor); | 1050 Expect.isFalse(privateFactoryConstructor.isGenerativeConstructor); |
1050 Expect.isTrue(privateFactoryConstructor.isFactoryConstructor); | 1051 Expect.isTrue(privateFactoryConstructor.isFactoryConstructor); |
1051 | 1052 |
1052 var metadata = privateClass.metadata; | 1053 var metadata = privateClass.metadata; |
1053 Expect.isNotNull(metadata); | 1054 Expect.isNotNull(metadata); |
1054 Expect.equals(0, metadata.length); | 1055 Expect.equals(0, metadata.length); |
1055 } | 1056 } |
OLD | NEW |