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

Unified Diff: tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart

Issue 1842033004: Add *IndexSetIfNull methods to SemanticSendVisitor. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 9 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 | « tests/compiler/dart2js/semantic_visitor_test_send_data.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart
diff --git a/tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart b/tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart
index cdbbe4199a8344a1954a619f183eceb98375eeb3..2187ba826aa5cfa308b5756e73e21e6c51ac8e54 100644
--- a/tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart
+++ b/tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart
@@ -3551,4 +3551,87 @@ class SemanticSendTestVisitor extends SemanticTestVisitor {
super.visitUnresolvedTopLevelSetterSetIfNull(
node, getter, element, rhs, arg);
}
+
+ @override
+ visitIndexSetIfNull(
+ SendSet node,
+ Node receiver,
+ Node index,
+ Node rhs,
+ arg) {
+ visits.add(new Visit(
+ VisitKind.VISIT_INDEX_SET_IF_NULL,
+ receiver: receiver, index: index, rhs: rhs));
+ super.visitIndexSetIfNull(node, receiver, index, rhs, arg);
+ }
+
+ @override
+ visitSuperIndexSetIfNull(
+ SendSet node,
+ MethodElement getter,
+ MethodElement setter,
+ Node index,
+ Node rhs,
+ arg) {
+ visits.add(new Visit(
+ VisitKind.VISIT_SUPER_INDEX_SET_IF_NULL,
+ getter: getter, setter: setter, index: index, rhs: rhs));
+ super.visitSuperIndexSetIfNull(node, getter, setter, index, rhs, arg);
+ }
+
+ @override
+ visitUnresolvedSuperGetterIndexSetIfNull(
+ Send node,
+ Element element,
+ MethodElement setter,
+ Node index,
+ Node rhs,
+ arg) {
+ visits.add(new Visit(
+ VisitKind.VISIT_UNRESOLVED_SUPER_GETTER_INDEX_SET_IF_NULL,
+ setter: setter, index: index, rhs: rhs));
+ super.visitUnresolvedSuperGetterIndexSetIfNull(
+ node, element, setter, index, rhs, arg);
+ }
+
+ @override
+ visitUnresolvedSuperSetterIndexSetIfNull(
+ Send node,
+ MethodElement getter,
+ Element element,
+ Node index,
+ Node rhs,
+ arg) {
+ visits.add(new Visit(
+ VisitKind.VISIT_UNRESOLVED_SUPER_SETTER_INDEX_SET_IF_NULL,
+ getter: getter, index: index, rhs: rhs));
+ super.visitUnresolvedSuperSetterIndexSetIfNull(
+ node, getter, element, index, rhs, arg);
+ }
+
+ @override
+ visitUnresolvedSuperIndexSetIfNull(
+ Send node,
+ Element element,
+ Node index,
+ Node rhs,
+ arg) {
+ visits.add(new Visit(
+ VisitKind.VISIT_UNRESOLVED_SUPER_INDEX_SET_IF_NULL,
+ index: index, rhs: rhs));
+ super.visitUnresolvedSuperIndexSetIfNull(node, element, index, rhs, arg);
+ }
+
+ @override
+ errorInvalidIndexSetIfNull(
+ SendSet node,
+ ErroneousElement error,
+ Node index,
+ Node rhs,
+ arg) {
+ visits.add(new Visit(
+ VisitKind.ERROR_INVALID_SET_IF_NULL,
+ index: index, rhs: rhs));
+ super.visitUnresolvedSuperIndexSetIfNull(node, error, index, rhs, arg);
+ }
}
« no previous file with comments | « tests/compiler/dart2js/semantic_visitor_test_send_data.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698