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 '../../../sdk/lib/_internal/compiler/implementation/apiimpl.dart' show |
10 Compiler; | 10 Compiler; |
11 import | 11 import |
12 '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dart' | 12 '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dart' |
13 show | 13 show |
14 Element, LibraryElement, ClassElement; | 14 Element, LibraryElement, ClassElement; |
15 import | 15 import |
16 '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart' | 16 '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart' |
17 show | 17 show |
18 Node; | 18 Node; |
19 import | 19 import |
20 '../../../sdk/lib/_internal/compiler/implementation/dart_backend/dart_backen
d.dart' | 20 '../../../sdk/lib/_internal/compiler/implementation/dart_backend/dart_backen
d.dart' |
21 show | 21 show |
22 DartBackend, ElementAst; | 22 DartBackend, ElementAst; |
23 import | 23 import |
24 '../../../sdk/lib/_internal/compiler/implementation/mirror_renamer/mirror_re
namer.dart' | 24 '../../../sdk/lib/_internal/compiler/implementation/mirror_renamer/mirror_re
namer.dart' |
25 show | 25 show |
26 MirrorRenamer; | 26 MirrorRenamer; |
27 import | |
28 '../../../sdk/lib/_internal/compiler/implementation/scanner/scannerlib.dart' | |
29 show | |
30 SourceString; | |
31 | 27 |
32 | 28 |
33 main() { | 29 main() { |
34 testWithMirrorRenaming(minify: true); | 30 testWithMirrorRenaming(minify: true); |
35 testWithMirrorRenaming(minify: false); | 31 testWithMirrorRenaming(minify: false); |
36 testWithoutMirrorRenaming(minify: true); | 32 testWithoutMirrorRenaming(minify: true); |
37 testWithoutMirrorRenaming(minify: false); | 33 testWithoutMirrorRenaming(minify: false); |
38 } | 34 } |
39 | 35 |
40 Future<Compiler> runCompiler({useMirrorHelperLibrary: false, minify: false}) { | 36 Future<Compiler> runCompiler({useMirrorHelperLibrary: false, minify: false}) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 class Foo { | 89 class Foo { |
94 noSuchMethod(Invocation invocation) { | 90 noSuchMethod(Invocation invocation) { |
95 MirrorSystem.getName(invocation.memberName); | 91 MirrorSystem.getName(invocation.memberName); |
96 } | 92 } |
97 } | 93 } |
98 | 94 |
99 void main() { | 95 void main() { |
100 new Foo().fisk(); | 96 new Foo().fisk(); |
101 } | 97 } |
102 """}; | 98 """}; |
OLD | NEW |