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 "package:async_helper/async_helper.dart"; | 6 import "package:async_helper/async_helper.dart"; |
7 import 'package:compiler/src/mirrors/source_mirrors.dart'; | 7 import 'package:compiler/implementation/mirrors/source_mirrors.dart'; |
8 import 'package:compiler/src/mirrors/mirrors_util.dart'; | 8 import 'package:compiler/implementation/mirrors/mirrors_util.dart'; |
9 import 'package:compiler/src/mirrors/analyze.dart'; | 9 import 'package:compiler/implementation/mirrors/analyze.dart'; |
10 import 'package:compiler/src/filenames.dart' | 10 import 'package:compiler/implementation/filenames.dart' |
11 show currentDirectory; | 11 show currentDirectory; |
12 import 'package:compiler/src/source_file_provider.dart'; | 12 import 'package:compiler/implementation/source_file_provider.dart'; |
13 | 13 |
14 import 'dart:io'; | 14 import 'dart:io'; |
15 | 15 |
16 final Uri DART_MIRRORS_URI = new Uri(scheme: 'dart', path: 'mirrors'); | 16 final Uri DART_MIRRORS_URI = new Uri(scheme: 'dart', path: 'mirrors'); |
17 | 17 |
18 int count(Iterable iterable) { | 18 int count(Iterable iterable) { |
19 var count = 0; | 19 var count = 0; |
20 for (var element in iterable) { | 20 for (var element in iterable) { |
21 count++; | 21 count++; |
22 } | 22 } |
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 Expect.isTrue(privateFactoryConstructor.isPrivate); | 986 Expect.isTrue(privateFactoryConstructor.isPrivate); |
987 Expect.isFalse(privateFactoryConstructor.isConstConstructor); | 987 Expect.isFalse(privateFactoryConstructor.isConstConstructor); |
988 Expect.isFalse(privateFactoryConstructor.isRedirectingConstructor); | 988 Expect.isFalse(privateFactoryConstructor.isRedirectingConstructor); |
989 Expect.isFalse(privateFactoryConstructor.isGenerativeConstructor); | 989 Expect.isFalse(privateFactoryConstructor.isGenerativeConstructor); |
990 Expect.isTrue(privateFactoryConstructor.isFactoryConstructor); | 990 Expect.isTrue(privateFactoryConstructor.isFactoryConstructor); |
991 | 991 |
992 var metadata = privateClass.metadata; | 992 var metadata = privateClass.metadata; |
993 Expect.isNotNull(metadata); | 993 Expect.isNotNull(metadata); |
994 Expect.equals(0, metadata.length); | 994 Expect.equals(0, metadata.length); |
995 } | 995 } |
OLD | NEW |