Index: pkg/compiler/lib/src/ssa/graph_builder.dart |
diff --git a/pkg/compiler/lib/src/ssa/graph_builder.dart b/pkg/compiler/lib/src/ssa/graph_builder.dart |
index b36ad89f96a8015e6166d9b8f5e3c0a91ea5c0a5..a5e58bd28c7529268b518af8999840dea0d45636 100644 |
--- a/pkg/compiler/lib/src/ssa/graph_builder.dart |
+++ b/pkg/compiler/lib/src/ssa/graph_builder.dart |
@@ -3,11 +3,14 @@ |
// BSD-style license that can be found in the LICENSE file. |
import '../common/codegen.dart' show CodegenRegistry; |
+import '../common_elements.dart'; |
import '../compiler.dart'; |
+import '../diagnostics/diagnostic_listener.dart'; |
import '../elements/elements.dart'; |
import '../elements/entities.dart' show Entity, Local; |
import '../elements/resolution_types.dart'; |
import '../js_backend/js_backend.dart'; |
+import '../options.dart'; |
import '../resolution/tree_elements.dart'; |
import '../types/types.dart'; |
import '../world.dart' show ClosedWorld; |
@@ -45,6 +48,12 @@ abstract class GraphBuilder { |
CommonMasks get commonMasks => closedWorld.commonMasks; |
+ DiagnosticReporter get reporter => backend.reporter; |
+ |
+ CompilerOptions get options => compiler.options; |
Emily Fortuna
2017/04/10 19:34:02
this works, but why not just pass CompilerOptions
Johnni Winther
2017/04/11 07:13:31
This is the plan. I just take small steps.
|
+ |
+ CommonElements get commonElements => closedWorld.commonElements; |
+ |
GlobalTypeInferenceResults get globalInferenceResults => |
compiler.globalInference.results; |