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 'dart:async'; | 6 import 'dart:async'; |
7 import "package:async_helper/async_helper.dart"; | 7 import "package:async_helper/async_helper.dart"; |
8 import '../mock_compiler.dart'; | 8 import '../mock_compiler.dart'; |
9 import '../mock_libraries.dart'; | 9 import '../mock_libraries.dart'; |
10 import '../output_collector.dart'; | 10 import '../output_collector.dart'; |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 ElementAst operator[](AstElement element) { | 607 ElementAst operator[](AstElement element) { |
608 return new ElementAst(element.resolvedAst.node, | 608 return new ElementAst(element.resolvedAst.node, |
609 element.resolvedAst.elements); | 609 element.resolvedAst.elements); |
610 } | 610 } |
611 | 611 |
612 noSuchMethod(Invocation invocation) => throw 'unimplemented method'; | 612 noSuchMethod(Invocation invocation) => throw 'unimplemented method'; |
613 } | 613 } |
614 | 614 |
615 PlaceholderCollector collectPlaceholders(compiler, element) { | 615 PlaceholderCollector collectPlaceholders(compiler, element) { |
616 DartBackend backend = compiler.backend; | 616 DartBackend backend = compiler.backend; |
617 return new PlaceholderCollector(compiler, | 617 return new PlaceholderCollector( |
| 618 compiler.reporter, |
618 backend.mirrorRenamer, | 619 backend.mirrorRenamer, |
619 new Set<String>(), | 620 new Set<String>(), |
620 new DynoMap(compiler), | 621 new DynoMap(compiler), |
621 compiler.mainFunction) | 622 compiler.mainFunction) |
622 ..collect(element); | 623 ..collect(element); |
623 } | 624 } |
624 | 625 |
625 testLocalFunctionPlaceholder() { | 626 testLocalFunctionPlaceholder() { |
626 var src = ''' | 627 var src = ''' |
627 main() { | 628 main() { |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1107 testParametersMinified(); | 1108 testParametersMinified(); |
1108 testDeclarationTypePlaceholders(); | 1109 testDeclarationTypePlaceholders(); |
1109 testPlatformLibraryMemberNamesAreFixed(); | 1110 testPlatformLibraryMemberNamesAreFixed(); |
1110 testConflictsWithCoreLib(); | 1111 testConflictsWithCoreLib(); |
1111 testUnresolvedNamedConstructor1(); | 1112 testUnresolvedNamedConstructor1(); |
1112 testUnresolvedNamedConstructor2(); | 1113 testUnresolvedNamedConstructor2(); |
1113 testUnresolvedNamedConstructor3(); | 1114 testUnresolvedNamedConstructor3(); |
1114 testClassAndNamedMixinDeclarations(); | 1115 testClassAndNamedMixinDeclarations(); |
1115 } | 1116 } |
1116 | 1117 |
OLD | NEW |