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 // Test that resolution does not resolve things we know will not be | 5 // Test that resolution does not resolve things we know will not be |
6 // needed by the backend. | 6 // needed by the backend. |
7 | 7 |
| 8 import 'package:async_helper/async_helper.dart'; |
8 import 'package:expect/expect.dart'; | 9 import 'package:expect/expect.dart'; |
9 import "package:async_helper/async_helper.dart"; | 10 import 'package:compiler/src/apiimpl.dart'; |
10 import 'compiler_helper.dart'; | 11 import 'compiler_helper.dart'; |
11 import 'parser_helper.dart'; | |
12 import 'package:compiler/src/apiimpl.dart'; | |
13 | 12 |
14 const String NO_RUNTIME_TYPE = r""" | 13 const String NO_RUNTIME_TYPE = r""" |
15 import 'dart:core' as prefix; | 14 import 'dart:core' as prefix; |
16 class A { | 15 class A { |
17 A(); | 16 A(); |
18 A.z(); | 17 A.z(); |
19 static var bar; | 18 static var bar; |
20 static foo() {} | 19 static foo() {} |
21 } | 20 } |
22 main() { | 21 main() { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 Expect.isFalse(compiler.enqueuer.resolution.isProcessed(element)); | 113 Expect.isFalse(compiler.enqueuer.resolution.isProcessed(element)); |
115 }); | 114 }); |
116 | 115 |
117 testHasRuntimeType(HAS_RUNTIME_TYPE_1); | 116 testHasRuntimeType(HAS_RUNTIME_TYPE_1); |
118 testHasRuntimeType(HAS_RUNTIME_TYPE_2); | 117 testHasRuntimeType(HAS_RUNTIME_TYPE_2); |
119 testHasRuntimeType(HAS_RUNTIME_TYPE_3); | 118 testHasRuntimeType(HAS_RUNTIME_TYPE_3); |
120 testHasRuntimeType(HAS_RUNTIME_TYPE_4); | 119 testHasRuntimeType(HAS_RUNTIME_TYPE_4); |
121 testHasRuntimeType(HAS_RUNTIME_TYPE_5); | 120 testHasRuntimeType(HAS_RUNTIME_TYPE_5); |
122 testHasRuntimeType(HAS_RUNTIME_TYPE_6); | 121 testHasRuntimeType(HAS_RUNTIME_TYPE_6); |
123 } | 122 } |
OLD | NEW |