Chromium Code Reviews| Index: pkg/fletchc/lib/src/debug_registry.dart |
| diff --git a/pkg/fletchc/lib/src/debug_registry.dart b/pkg/fletchc/lib/src/debug_registry.dart |
| index 2d3f0de31495776cd208018594b48c5d43039dd8..634c98c0fa86a034998e4f4e41d14db268d7bed5 100644 |
| --- a/pkg/fletchc/lib/src/debug_registry.dart |
| +++ b/pkg/fletchc/lib/src/debug_registry.dart |
| @@ -4,7 +4,7 @@ |
| library fletchc.debug_registry; |
| -import 'package:compiler/src/universe/universe.dart' show |
| +import 'package:compiler/src/universe/selector.dart' show |
| Selector; |
| import 'package:compiler/src/elements/elements.dart' show |
| @@ -16,7 +16,7 @@ import 'package:compiler/src/elements/elements.dart' show |
| import 'package:compiler/src/dart_types.dart' show |
| DartType; |
| -import 'package:compiler/src/util/util.dart' show |
| +import 'package:compiler/src/diagnostics/spannable.dart' show |
| Spannable; |
| import 'fletch_context.dart' show |
| @@ -50,8 +50,9 @@ abstract class DebugRegistry { |
| if (context.backend.lazyFieldInitializers.containsKey(field)) return index; |
| - context.compiler.internalError( |
| + context.compiler.reporter.internalError( |
| field, "not compiled before use in debugger"); |
| + return null; |
|
ahe
2015/11/17 16:44:08
Throw instead?
sigurdm
2015/11/19 14:33:46
Done.
|
| } |
| void generateUnimplementedError(Spannable spannable, String reason) { |