Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: tests/compiler/dart2js/kernel/impact_test.dart

Issue 2960633002: Split KernelToElementMap into sub-interfaces (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 library dart2js.kernel.impact_test; 5 library dart2js.kernel.impact_test;
6 6
7 import 'package:async_helper/async_helper.dart'; 7 import 'package:async_helper/async_helper.dart';
8 import 'package:compiler/src/commandline_options.dart'; 8 import 'package:compiler/src/commandline_options.dart';
9 import 'package:compiler/src/common.dart'; 9 import 'package:compiler/src/common.dart';
10 import 'package:compiler/src/common/names.dart'; 10 import 'package:compiler/src/common/names.dart';
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 }); 772 });
773 } else if (element.isTypedef) { 773 } else if (element.isTypedef) {
774 // Skip typedefs. 774 // Skip typedefs.
775 } else { 775 } else {
776 checkElement(compiler, elementMap, element, fullTest: fullTest); 776 checkElement(compiler, elementMap, element, fullTest: fullTest);
777 } 777 }
778 }); 778 });
779 } 779 }
780 780
781 void checkElement( 781 void checkElement(
782 Compiler compiler, KernelToElementMapMixin elementMap, AstElement element, 782 Compiler compiler, KernelToElementMapImpl elementMap, AstElement element,
783 {bool fullTest: false}) { 783 {bool fullTest: false}) {
784 if (!fullTest && element.library.isPlatformLibrary) { 784 if (!fullTest && element.library.isPlatformLibrary) {
785 return; 785 return;
786 } 786 }
787 if (element.isConstructor) { 787 if (element.isConstructor) {
788 ConstructorElement constructor = element; 788 ConstructorElement constructor = element;
789 if (constructor.isRedirectingFactory) { 789 if (constructor.isRedirectingFactory) {
790 // Skip redirecting constructors for now; they might not be supported. 790 // Skip redirecting constructors for now; they might not be supported.
791 return; 791 return;
792 } 792 }
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 builder.registerFeature(Feature.THROW_EXPRESSION); 902 builder.registerFeature(Feature.THROW_EXPRESSION);
903 break; 903 break;
904 default: 904 default:
905 builder.registerFeature(feature); 905 builder.registerFeature(feature);
906 break; 906 break;
907 } 907 }
908 } 908 }
909 impact.nativeData.forEach(builder.registerNativeData); 909 impact.nativeData.forEach(builder.registerNativeData);
910 return builder; 910 return builder;
911 } 911 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698