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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.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_field_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart
index b1a05b998cf02b5eca3861e0849fa3f76e4b882e..9fcf21a5d0128acdade6721ac6ffa14d41137277 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart
@@ -19,6 +19,9 @@ import 'package:front_end/src/fasta/builder/class_builder.dart'
import 'package:front_end/src/fasta/source/source_library_builder.dart'
show SourceLibraryBuilder;
+import 'package:front_end/src/fasta/type_inference/type_inference_listener.dart'
+ show TypeInferenceListener;
+
import 'package:kernel/ast.dart' show Expression, Field, Name;
import 'kernel_builder.dart'
@@ -70,7 +73,9 @@ class KernelFieldBuilder extends FieldBuilder<Expression> {
// should it be the part URI?
var typeInferenceEngine = library.loader.typeInferenceEngine;
var astFactory = library.loader.astFactory;
- var typeInferrer = typeInferenceEngine.createTopLevelTypeInferrer(field);
+ var listener = new TypeInferenceListener();
+ var typeInferrer =
+ typeInferenceEngine.createTopLevelTypeInferrer(field, listener);
var bodyBuilder = new BodyBuilder(
library,
this,

Powered by Google App Engine
This is Rietveld 408576698