Index: pkg/front_end/lib/src/fasta/source/diet_listener.dart |
diff --git a/pkg/front_end/lib/src/fasta/source/diet_listener.dart b/pkg/front_end/lib/src/fasta/source/diet_listener.dart |
index 31d4daa38e094325d76082a9726969dc28880dcb..e4ecf54f6b58b189e4877ec8ee533a09b0235fad 100644 |
--- a/pkg/front_end/lib/src/fasta/source/diet_listener.dart |
+++ b/pkg/front_end/lib/src/fasta/source/diet_listener.dart |
@@ -36,8 +36,6 @@ import '../type_inference/type_inference_engine.dart' show TypeInferenceEngine; |
import '../type_inference/type_inference_listener.dart' |
show TypeInferenceListener; |
-import '../type_inference/type_inferrer.dart' show TypeInferrerDisabled; |
- |
import '../util/link.dart' show Link; |
import 'source_library_builder.dart' show SourceLibraryBuilder; |
@@ -434,7 +432,7 @@ class DietListener extends StackListener { |
thisType = cls.thisType; |
} |
var typeInferrer = library.disableTypeInference |
- ? new TypeInferrerDisabled() |
+ ? typeInferenceEngine.createDisabledTypeInferrer() |
: typeInferenceEngine.createLocalTypeInferrer(uri, listener, thisType); |
return new BodyBuilder(library, builder, memberScope, formalParameterScope, |
hierarchy, coreTypes, currentClass, isInstanceMember, uri, typeInferrer) |