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 |
deleted file mode 100644 |
index 4ec57d30b278f6fb3d7b9056d972e83cbf91d78d..0000000000000000000000000000000000000000 |
--- a/pkg/fletchc/lib/src/debug_registry.dart |
+++ /dev/null |
@@ -1,66 +0,0 @@ |
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE.md file. |
- |
-library fletchc.debug_registry; |
- |
-import 'package:compiler/src/universe/selector.dart' show |
- Selector; |
- |
-import 'package:compiler/src/elements/elements.dart' show |
- ClassElement, |
- FieldElement, |
- FunctionElement, |
- LocalElement; |
- |
-import 'package:compiler/src/dart_types.dart' show |
- DartType; |
- |
-import 'package:compiler/src/diagnostics/spannable.dart' show |
- Spannable; |
- |
-import 'package:compiler/src/universe/use.dart' show |
- DynamicUse, |
- StaticUse; |
- |
-import 'fletch_context.dart' show |
- FletchContext; |
- |
-import 'fletch_function_builder.dart' show |
- FletchFunctionBuilder; |
- |
-/// Turns off enqueuing when generating debug information. |
-/// |
-/// We generate debug information for one element at the time, on |
-/// demand. Generating this information shouldn't interact with the |
-/// enqueuer/registry/tree-shaking algorithm. |
-abstract class DebugRegistry { |
- FletchContext get context; |
- FletchFunctionBuilder get functionBuilder; |
- |
- void registerDynamicUse(Selector selector) { } |
- void registerDynamicGetter(Selector selector) { } |
- void registerDynamicSetter(Selector selector) { } |
- void registerStaticUse(StaticUse use) { } |
- void registerInstantiatedClass(ClassElement klass) { } |
- void registerIsCheck(DartType type) { } |
- void registerLocalInvoke(LocalElement element, Selector selector) { } |
- void registerClosurization(FunctionElement element, _) { } |
- |
- int compileLazyFieldInitializer(FieldElement field) { |
- int index = context.getStaticFieldIndex(field, null); |
- |
- if (field.initializer == null) return index; |
- |
- if (context.backend.lazyFieldInitializers.containsKey(field)) return index; |
- |
- context.compiler.reporter.internalError( |
- field, "not compiled before use in debugger"); |
- throw null; |
- } |
- |
- void generateUnimplementedError(Spannable spannable, String reason) { |
- context.backend.generateUnimplementedError( |
- spannable, reason, functionBuilder, suppressHint: true); |
- } |
-} |