Index: pkg/compiler/lib/src/common/backend_api.dart |
diff --git a/pkg/compiler/lib/src/common/backend_api.dart b/pkg/compiler/lib/src/common/backend_api.dart |
index f9c5c9463a58476108d94f62e75fe0d93a2ec4da..05a2082acd1f493e466af28277e4dbd3c1327f93 100644 |
--- a/pkg/compiler/lib/src/common/backend_api.dart |
+++ b/pkg/compiler/lib/src/common/backend_api.dart |
@@ -8,7 +8,7 @@ import 'dart:async' show Future; |
import '../common.dart'; |
import '../common/codegen.dart' show CodegenImpact; |
-import '../common/resolution.dart' show ResolutionImpact; |
+import '../common/resolution.dart' show ResolutionImpact, Frontend; |
import '../compile_time_constants.dart' |
show BackendConstantEnvironment, ConstantCompilerTask; |
import '../compiler.dart' show Compiler; |
@@ -393,6 +393,9 @@ abstract class Backend { |
bool supportSerialization: true}) { |
return const ImpactStrategy(); |
} |
+ |
+ /// Backend access to the front-end. |
+ Frontend get frontend => compiler.resolution; |
} |
/// Interface for resolving calls to foreign functions. |