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

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

Issue 2946733003: Fix type inference of getters that "override" setters and vice versa. (Closed)
Patch Set: Address code review comments 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_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 c4dcf4da2c4373108dd20f6f8fcb23f2c2b6b579..4cb87f84b78dcbf55f9d2c4182bcd218a18fe967 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
@@ -1278,6 +1278,13 @@ abstract class KernelMember implements Member {
return null;
}
+ static void recordCrossOverride(
+ KernelMember member, Member overriddenMember) {
+ if (member._fieldNode != null) {
+ member._fieldNode.crossOverrides.add(overriddenMember);
+ }
+ }
+
static void recordOverride(KernelMember member, Member overriddenMember) {
if (member._fieldNode != null) {
member._fieldNode.overrides.add(overriddenMember);

Powered by Google App Engine
This is Rietveld 408576698