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 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
6 import 'dart:async'; | 6 import 'dart:async'; |
7 import "package:async_helper/async_helper.dart"; | 7 import "package:async_helper/async_helper.dart"; |
8 import 'memory_compiler.dart' show compilerFor; | 8 import 'memory_compiler.dart' show compilerFor; |
9 import '../../../sdk/lib/_internal/compiler/implementation/apiimpl.dart' show | 9 import 'package:compiler/implementation/apiimpl.dart' show |
10 Compiler; | 10 Compiler; |
11 import | 11 import 'package:compiler/implementation/tree/tree.dart' show |
12 '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart' | |
13 show | |
14 Node; | 12 Node; |
15 import | 13 import 'package:compiler/implementation/dart_backend/dart_backend.dart'; |
16 '../../../sdk/lib/_internal/compiler/implementation/dart_backend/dart_backen
d.dart'; | 14 import 'package:compiler/implementation/mirror_renamer/mirror_renamer.dart'; |
17 import | |
18 '../../../sdk/lib/_internal/compiler/implementation/mirror_renamer/mirror_re
namer.dart'; | |
19 | 15 |
20 main() { | 16 main() { |
21 testWithMirrorHelperLibrary(minify: true); | 17 testWithMirrorHelperLibrary(minify: true); |
22 testWithMirrorHelperLibrary(minify: false); | 18 testWithMirrorHelperLibrary(minify: false); |
23 testWithoutMirrorHelperLibrary(minify: true); | 19 testWithoutMirrorHelperLibrary(minify: true); |
24 testWithoutMirrorHelperLibrary(minify: false); | 20 testWithoutMirrorHelperLibrary(minify: false); |
25 } | 21 } |
26 | 22 |
27 Future<Compiler> runCompiler({useMirrorHelperLibrary: false, minify: false}) { | 23 Future<Compiler> runCompiler({useMirrorHelperLibrary: false, minify: false}) { |
28 List<String> options = ['--output-type=dart']; | 24 List<String> options = ['--output-type=dart']; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 class Foo { | 90 class Foo { |
95 noSuchMethod(Invocation invocation) { | 91 noSuchMethod(Invocation invocation) { |
96 MirrorSystem.getName(invocation.memberName); | 92 MirrorSystem.getName(invocation.memberName); |
97 } | 93 } |
98 } | 94 } |
99 | 95 |
100 void main() { | 96 void main() { |
101 new Foo().fisk(); | 97 new Foo().fisk(); |
102 } | 98 } |
103 """}; | 99 """}; |
OLD | NEW |