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

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

Issue 2927013004: Rework type inference of assignments to index expressions. (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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/frontend_accessors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart b/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart
index e9dadd785fde5098cf96b6d54c24038d4daca17e..eb83325d0ba1409b83ddb31243316e2afe3da750 100644
--- a/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart
@@ -5,7 +5,7 @@
library fasta.fasta_accessors;
import 'package:front_end/src/fasta/kernel/kernel_shadow_ast.dart'
- show KernelArguments, KernelThisExpression;
+ show KernelArguments, KernelComplexAssignment, KernelThisExpression;
import 'package:front_end/src/fasta/kernel/utils.dart' show offsetForToken;
@@ -190,6 +190,9 @@ abstract class FastaAccessor implements Accessor {
}
bool get isThisPropertyAccessor => false;
+
+ @override
+ KernelComplexAssignment startComplexAssignment(Expression rhs) => null;
}
abstract class ErrorAccessor implements FastaAccessor {
@@ -601,6 +604,13 @@ class IndexAccessor extends kernel.IndexAccessor with FastaAccessor {
helper, token, receiver, index, getter, setter);
}
}
+
+ @override
+ KernelComplexAssignment startComplexAssignment(Expression rhs) =>
+ new KernelComplexAssignment()
+ ..receiver = receiver
+ ..index = index
+ ..rhs = rhs;
}
class PropertyAccessor extends kernel.PropertyAccessor with FastaAccessor {
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/frontend_accessors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698