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

Unified Diff: pkg/compiler/lib/src/universe/resolution_world_builder.dart

Issue 2810633003: Add kernel/closed_world2_test (Closed)
Patch Set: Add TODOs. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_impact.dart ('k') | tests/compiler/dart2js/kernel/closed_world2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/universe/resolution_world_builder.dart
diff --git a/pkg/compiler/lib/src/universe/resolution_world_builder.dart b/pkg/compiler/lib/src/universe/resolution_world_builder.dart
index 6eaf10427ee0d2689ec3887b4fea41e1654bca7e..5238ec5ad4c6c10146f55296f7bb59cc1447ff3a 100644
--- a/pkg/compiler/lib/src/universe/resolution_world_builder.dart
+++ b/pkg/compiler/lib/src/universe/resolution_world_builder.dart
@@ -785,3 +785,24 @@ abstract class ResolutionWorldBuilderBase
return usage != null && usage.hasUse;
}
}
+
+class KernelResolutionWorldBuilder extends ResolutionWorldBuilderBase {
+ KernelResolutionWorldBuilder(
+ ElementEnvironment elementEnvironment,
+ CommonElements commonElements,
+ NativeBasicData nativeBasicData,
+ SelectorConstraintsStrategy selectorConstraintsStrategy)
+ : super(elementEnvironment, commonElements, nativeBasicData,
+ selectorConstraintsStrategy);
+
+ @override
+ ClosedWorld closeWorld(DiagnosticReporter reporter) {
+ // TODO(johnniwinther): Implement this.
+ return null;
Emily Fortuna 2017/04/10 19:50:58 throw instead?
Johnni Winther 2017/04/11 07:58:58 This is called at the end of the test in computeCl
+ }
+
+ @override
+ void registerClass(ClassEntity cls) {
+ throw new UnimplementedError('KernelResolutionWorldBuilder.registerClass');
+ }
+}
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_impact.dart ('k') | tests/compiler/dart2js/kernel/closed_world2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698