| 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 'package:compiler/src/apiimpl.dart' show | 9 import 'package:compiler/implementation/apiimpl.dart' show |
| 10 Compiler; | 10 Compiler; |
| 11 import 'package:compiler/src/elements/elements.dart' show | 11 import 'package:compiler/implementation/elements/elements.dart' show |
| 12 Element, LibraryElement, ClassElement; | 12 Element, LibraryElement, ClassElement; |
| 13 import 'package:compiler/src/tree/tree.dart' show | 13 import 'package:compiler/implementation/tree/tree.dart' show |
| 14 Block, ExpressionStatement, FunctionExpression, Node, Send; | 14 Block, ExpressionStatement, FunctionExpression, Node, Send; |
| 15 import 'package:compiler/src/dart_backend/dart_backend.dart' show | 15 import 'package:compiler/implementation/dart_backend/dart_backend.dart' show |
| 16 DartBackend, ElementAst; | 16 DartBackend, ElementAst; |
| 17 import 'package:compiler/src/mirror_renamer/mirror_renamer.dart' show | 17 import 'package:compiler/implementation/mirror_renamer/mirror_renamer.dart' show |
| 18 MirrorRenamerImpl; | 18 MirrorRenamerImpl; |
| 19 | 19 |
| 20 main() { | 20 main() { |
| 21 testWithMirrorRenaming(minify: true); | 21 testWithMirrorRenaming(minify: true); |
| 22 testWithMirrorRenaming(minify: false); | 22 testWithMirrorRenaming(minify: false); |
| 23 testWithoutMirrorRenaming(minify: true); | 23 testWithoutMirrorRenaming(minify: true); |
| 24 testWithoutMirrorRenaming(minify: false); | 24 testWithoutMirrorRenaming(minify: false); |
| 25 } | 25 } |
| 26 | 26 |
| 27 Future<Compiler> runCompiler({useMirrorHelperLibrary: false, minify: false}) { | 27 Future<Compiler> runCompiler({useMirrorHelperLibrary: false, minify: false}) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 class Foo { | 84 class Foo { |
| 85 noSuchMethod(Invocation invocation) { | 85 noSuchMethod(Invocation invocation) { |
| 86 MirrorSystem.getName(invocation.memberName); | 86 MirrorSystem.getName(invocation.memberName); |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 | 89 |
| 90 void main() { | 90 void main() { |
| 91 new Foo().fisk(); | 91 new Foo().fisk(); |
| 92 } | 92 } |
| 93 """}; | 93 """}; |
| OLD | NEW |