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

Unified Diff: pkg/compiler/lib/src/resolution/semantic_visitor_mixins.dart

Issue 1262363003: Handle super index SendSet operations. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 5 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/compiler/lib/src/resolution/semantic_visitor_mixins.dart
diff --git a/pkg/compiler/lib/src/resolution/semantic_visitor_mixins.dart b/pkg/compiler/lib/src/resolution/semantic_visitor_mixins.dart
index 517eafcae6781ed3c564513eff1fd87b9ae5ce0c..ec455618eda1e7010903989b9a07b033c2e2da6f 100644
--- a/pkg/compiler/lib/src/resolution/semantic_visitor_mixins.dart
+++ b/pkg/compiler/lib/src/resolution/semantic_visitor_mixins.dart
@@ -118,6 +118,93 @@ abstract class ErrorBulkMixin<R, A>
A arg) {
return bulkHandleError(node, error, arg);
}
+
+ @override
+ R errorInvalidUnary(
+ Send node,
+ UnaryOperator operator,
+ ErroneousElement error,
+ A arg) {
+ return bulkHandleError(node, error, arg);
+ }
+
+ @override
+ R errorInvalidEquals(
+ Send node,
+ ErroneousElement error,
+ Node right,
+ A arg) {
+ return bulkHandleError(node, error, arg);
+ }
+
+ @override
+ R errorInvalidNotEquals(
+ Send node,
+ ErroneousElement error,
+ Node right,
+ A arg) {
+ return bulkHandleError(node, error, arg);
+ }
+
+ @override
+ R errorInvalidBinary(
+ Send node,
+ ErroneousElement error,
+ BinaryOperator operator,
+ Node right,
+ A arg) {
+ return bulkHandleError(node, error, arg);
+ }
+
+ @override
+ R errorInvalidIndex(
+ Send node,
+ ErroneousElement error,
+ Node index,
+ A arg) {
+ return bulkHandleError(node, error, arg);
+ }
+
+ @override
+ R errorInvalidIndexSet(
+ Send node,
+ ErroneousElement error,
+ Node index,
+ Node rhs,
+ A arg) {
+ return bulkHandleError(node, error, arg);
+ }
+
+ @override
+ R errorInvalidCompoundIndexSet(
+ Send node,
+ ErroneousElement error,
+ Node index,
+ AssignmentOperator operator,
+ Node rhs,
+ A arg) {
+ return bulkHandleError(node, error, arg);
+ }
+
+ @override
+ R errorInvalidIndexPrefix(
+ Send node,
+ ErroneousElement error,
+ Node index,
+ IncDecOperator operator,
+ A arg) {
+ return bulkHandleError(node, error, arg);
+ }
+
+ @override
+ R errorInvalidIndexPostfix(
+ Send node,
+ ErroneousElement error,
+ Node index,
+ IncDecOperator operator,
+ A arg) {
+ return bulkHandleError(node, error, arg);
+ }
}
/// Mixin that implements all `visitXPrefix` methods of [SemanticSendVisitor] by
@@ -3649,6 +3736,103 @@ class TraversalSendMixin<R, A> implements SemanticSendVisitor<R, A> {
}
@override
+ R errorInvalidUnary(
+ Send node,
+ UnaryOperator operator,
+ ErroneousElement error,
+ A arg) {
+ return null;
+ }
+
+ @override
+ R errorInvalidEquals(
+ Send node,
+ ErroneousElement error,
+ Node right,
+ A arg) {
+ apply(right, arg);
+ return null;
+ }
+
+ @override
+ R errorInvalidNotEquals(
+ Send node,
+ ErroneousElement error,
+ Node right,
+ A arg) {
+ apply(right, arg);
+ return null;
+ }
+
+ @override
+ R errorInvalidBinary(
+ Send node,
+ ErroneousElement error,
+ BinaryOperator operator,
+ Node right,
+ A arg) {
+ apply(right, arg);
+ return null;
+ }
+
+ @override
+ R errorInvalidIndex(
+ Send node,
+ ErroneousElement error,
+ Node index,
+ A arg) {
+ apply(index, arg);
+ return null;
+ }
+
+ @override
+ R errorInvalidIndexSet(
+ Send node,
+ ErroneousElement error,
+ Node index,
+ Node rhs,
+ A arg) {
+ apply(index, arg);
+ apply(rhs, arg);
+ return null;
+ }
+
+ @override
+ R errorInvalidCompoundIndexSet(
+ Send node,
+ ErroneousElement error,
+ Node index,
+ AssignmentOperator operator,
+ Node rhs,
+ A arg) {
+ apply(index, arg);
+ apply(rhs, arg);
+ return null;
+ }
+
+ @override
+ R errorInvalidIndexPrefix(
+ Send node,
+ ErroneousElement error,
+ Node index,
+ IncDecOperator operator,
+ A arg) {
+ apply(index, arg);
+ return null;
+ }
+
+ @override
+ R errorInvalidIndexPostfix(
+ Send node,
+ ErroneousElement error,
+ Node index,
+ IncDecOperator operator,
+ A arg) {
+ apply(index, arg);
+ return null;
+ }
+
+ @override
R visitClassTypeLiteralSet(
SendSet node,
ConstantExpression constant,
« no previous file with comments | « pkg/compiler/lib/src/resolution/semantic_visitor.dart ('k') | pkg/compiler/lib/src/resolution/send_structure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698