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 "package:expect/expect.dart"; |
6 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart'
; | 6 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart'
; |
7 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.
dart'; | 7 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.
dart'; |
8 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirro
r.dart'; | 8 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirro
r.dart'; |
9 import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart' | 9 import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart' |
10 show currentDirectory, nativeToUriPath; | 10 show currentDirectory, nativeToUriPath; |
11 import '../../../sdk/lib/_internal/compiler/implementation/source_file_provider.
dart'; | 11 import '../../../sdk/lib/_internal/compiler/implementation/source_file_provider.
dart'; |
12 | 12 |
13 import 'dart:io'; | 13 import 'dart:io'; |
14 | 14 |
15 Uri DART_MIRRORS_URI = new Uri(scheme: 'dart', path: 'mirrors'); | 15 final Uri DART_MIRRORS_URI = new Uri(scheme: 'dart', path: 'mirrors'); |
16 | 16 |
17 int count(Iterable iterable) { | 17 int count(Iterable iterable) { |
18 var count = 0; | 18 var count = 0; |
19 for (var element in iterable) { | 19 for (var element in iterable) { |
20 count++; | 20 count++; |
21 } | 21 } |
22 return count; | 22 return count; |
23 } | 23 } |
24 | 24 |
25 bool containsType(TypeMirror expected, Iterable<TypeMirror> iterable) { | 25 bool containsType(TypeMirror expected, Iterable<TypeMirror> iterable) { |
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1032 Expect.isTrue(privateFactoryConstructor.isPrivate); | 1032 Expect.isTrue(privateFactoryConstructor.isPrivate); |
1033 Expect.isFalse(privateFactoryConstructor.isConstConstructor); | 1033 Expect.isFalse(privateFactoryConstructor.isConstConstructor); |
1034 Expect.isFalse(privateFactoryConstructor.isRedirectingConstructor); | 1034 Expect.isFalse(privateFactoryConstructor.isRedirectingConstructor); |
1035 Expect.isFalse(privateFactoryConstructor.isGenerativeConstructor); | 1035 Expect.isFalse(privateFactoryConstructor.isGenerativeConstructor); |
1036 Expect.isTrue(privateFactoryConstructor.isFactoryConstructor); | 1036 Expect.isTrue(privateFactoryConstructor.isFactoryConstructor); |
1037 | 1037 |
1038 var metadata = privateClass.metadata; | 1038 var metadata = privateClass.metadata; |
1039 Expect.isNotNull(metadata); | 1039 Expect.isNotNull(metadata); |
1040 Expect.equals(0, metadata.length); | 1040 Expect.equals(0, metadata.length); |
1041 } | 1041 } |
OLD | NEW |