Index: pkg/compiler/lib/src/inferrer/inferrer_visitor.dart |
diff --git a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart |
index bfd33603f67c98e4da5e13fa1ab19d58a6fd228d..b1cf504703828612506caabfa937b9f5c8f68344 100644 |
--- a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart |
+++ b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart |
@@ -12,6 +12,8 @@ import '../compiler.dart' show |
import '../constants/constant_system.dart'; |
import '../constants/expressions.dart'; |
import '../dart_types.dart'; |
+import '../diagnostics/diagnostic_listener.dart' show |
+ DiagnosticReporter; |
import '../diagnostics/spannable.dart' show |
Spannable; |
import '../elements/elements.dart'; |
@@ -749,6 +751,8 @@ abstract class InferrerVisitor<T, E extends MinimalInferrerEngine<T>> |
locals = new LocalsHandler<T>(inferrer, types, compiler, node, fieldScope); |
} |
+ DiagnosticReporter get reporter => compiler.reporter; |
+ |
@override |
SemanticSendVisitor get sendVisitor => this; |
@@ -1463,7 +1467,7 @@ abstract class InferrerVisitor<T, E extends MinimalInferrerEngine<T>> |
} |
internalError(Spannable node, String reason) { |
- compiler.internalError(node, reason); |
+ reporter.internalError(node, reason); |
} |
T visitSwitchStatement(SwitchStatement node) { |