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

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

Issue 2943273002: Implement type inference of getters/setters based on inheritance. (Closed)
Patch Set: Created 3 years, 6 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 1a0c7cc87a59ed71d48b960fd2da9f5648c79156..a17f1ce7d6f2e67492d669f1e1cb6e6a7128a1f6 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
@@ -31,7 +31,7 @@ import 'kernel_builder.dart'
show Builder, FieldBuilder, KernelTypeBuilder, MetadataBuilder;
class KernelFieldBuilder extends FieldBuilder<Expression> {
- final Field field;
+ final KernelField field;
final List<MetadataBuilder> metadata;
final KernelTypeBuilder type;
final Token initializerTokenForInference;
@@ -73,7 +73,7 @@ class KernelFieldBuilder extends FieldBuilder<Expression> {
..hasImplicitSetter = isInstanceMember && !isConst && !isFinal
..isStatic = !isInstanceMember;
if (isEligibleForInference) {
- library.loader.typeInferenceEngine.recordField(field);
+ library.loader.typeInferenceEngine.recordMember(field);
}
return field;
}

Powered by Google App Engine
This is Rietveld 408576698