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...'); |