Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Unified Diff: pkg/front_end/lib/src/fasta/source/diet_listener.dart

Issue 2993193002: When reordering constructor initializers, use correct types for temp vars. (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698