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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart

Issue 2878733006: Begin writing a TypeInferenceListener interface. (Closed)
Patch Set: Created 3 years, 7 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/kernel/kernel_shadow_ast.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
index 959f6ef17718b12e300329d4bc1ad2b12f6f1761..65f2bba6383a0caaef4b4382d3583c21a5a21531 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
@@ -19,6 +19,7 @@
/// with the same kind of root node.
import 'package:front_end/src/base/instrumentation.dart';
import 'package:front_end/src/fasta/type_inference/type_inference_engine.dart';
+import 'package:front_end/src/fasta/type_inference/type_inference_listener.dart';
import 'package:front_end/src/fasta/type_inference/type_inferrer.dart';
import 'package:front_end/src/fasta/type_inference/type_promotion.dart';
import 'package:kernel/ast.dart';
@@ -697,14 +698,16 @@ class KernelTypeInferenceEngine extends TypeInferenceEngineImpl<KernelField> {
}
@override
- KernelTypeInferrer createLocalTypeInferrer(Uri uri) {
- return new KernelTypeInferrer._(this, uri.toString());
+ KernelTypeInferrer createLocalTypeInferrer(
+ Uri uri, TypeInferenceListener listener) {
+ return new KernelTypeInferrer._(this, uri.toString(), listener);
}
@override
- KernelTypeInferrer createTopLevelTypeInferrer(KernelField field) {
+ KernelTypeInferrer createTopLevelTypeInferrer(
+ KernelField field, TypeInferenceListener listener) {
return field._typeInferrer =
- new KernelTypeInferrer._(this, getFieldUri(field));
+ new KernelTypeInferrer._(this, getFieldUri(field), listener);
}
@override
@@ -755,8 +758,9 @@ class KernelTypeInferrer extends TypeInferrerImpl<Statement, Expression,
@override
final typePromoter = new KernelTypePromoter();
- KernelTypeInferrer._(KernelTypeInferenceEngine engine, String uri)
- : super(engine, uri);
+ KernelTypeInferrer._(KernelTypeInferenceEngine engine, String uri,
+ TypeInferenceListener listener)
+ : super(engine, uri, listener);
@override
Expression getFieldInitializer(KernelField field) {

Powered by Google App Engine
This is Rietveld 408576698