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

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

Issue 2950493002: Add closure_test (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | tests/compiler/dart2js/closure/closure_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index 131462d4c35400214989ac881ad92e28f01a915c..0af9bede7f9385a76691d1ed4ec322f7a67a174a 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -117,6 +117,8 @@ abstract class Compiler {
Uri mainLibraryUri;
+ ClosedWorld backendClosedWorldForTesting;
+
DiagnosticReporter get reporter => _reporter;
Resolution get resolution => _resolution;
ParsingContext get parsingContext => _parsingContext;
@@ -600,6 +602,7 @@ abstract class Compiler {
ClosedWorldRefiner closedWorldRefiner = closeResolution(mainFunction);
ClosedWorld closedWorld = closedWorldRefiner.closedWorld;
+ backendClosedWorldForTesting = closedWorld;
mainFunction = closedWorld.elementEnvironment.mainFunction;
reporter.log('Inferring types...');
« no previous file with comments | « no previous file | tests/compiler/dart2js/closure/closure_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698