| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of dart2js.semantics_visitor_test; | 5 part of dart2js.semantics_visitor_test; |
| 6 | 6 |
| 7 class SemanticSendTestVisitor extends SemanticTestVisitor { | 7 class SemanticSendTestVisitor extends SemanticTestVisitor { |
| 8 | 8 |
| 9 SemanticSendTestVisitor(TreeElements elements) : super(elements); | 9 SemanticSendTestVisitor(TreeElements elements) : super(elements); |
| 10 | 10 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 Send node, | 98 Send node, |
| 99 ErroneousElement error, | 99 ErroneousElement error, |
| 100 Node rhs, | 100 Node rhs, |
| 101 arg) { | 101 arg) { |
| 102 visits.add(new Visit(VisitKind.ERROR_INVALID_SET, | 102 visits.add(new Visit(VisitKind.ERROR_INVALID_SET, |
| 103 error: error.messageKind, rhs: rhs)); | 103 error: error.messageKind, rhs: rhs)); |
| 104 super.errorInvalidSet(node, error, rhs, arg); | 104 super.errorInvalidSet(node, error, rhs, arg); |
| 105 } | 105 } |
| 106 | 106 |
| 107 @override | 107 @override |
| 108 errorInvalidUnary( |
| 109 Send node, |
| 110 UnaryOperator operator, |
| 111 ErroneousElement error, |
| 112 arg) { |
| 113 visits.add(new Visit(VisitKind.ERROR_INVALID_UNARY, |
| 114 error: error.messageKind, operator: operator)); |
| 115 super.errorInvalidUnary(node, operator, error, arg); |
| 116 } |
| 117 |
| 118 @override |
| 119 errorInvalidEquals( |
| 120 Send node, |
| 121 ErroneousElement error, |
| 122 Node right, |
| 123 arg) { |
| 124 visits.add(new Visit(VisitKind.ERROR_INVALID_EQUALS, |
| 125 error: error.messageKind, right: right)); |
| 126 super.errorInvalidEquals(node, error, right, arg); |
| 127 } |
| 128 |
| 129 @override |
| 130 errorInvalidNotEquals( |
| 131 Send node, |
| 132 ErroneousElement error, |
| 133 Node right, |
| 134 arg) { |
| 135 visits.add(new Visit(VisitKind.ERROR_INVALID_NOT_EQUALS, |
| 136 error: error.messageKind, right: right)); |
| 137 super.errorInvalidNotEquals(node, error, right, arg); |
| 138 } |
| 139 |
| 140 @override |
| 141 errorInvalidBinary( |
| 142 Send node, |
| 143 ErroneousElement error, |
| 144 BinaryOperator operator, |
| 145 Node right, |
| 146 arg) { |
| 147 visits.add(new Visit(VisitKind.ERROR_INVALID_BINARY, |
| 148 error: error.messageKind, operator: operator, right: right)); |
| 149 super.errorInvalidBinary(node, error, operator, right, arg); |
| 150 } |
| 151 |
| 152 @override |
| 153 errorInvalidIndex( |
| 154 Send node, |
| 155 ErroneousElement error, |
| 156 Node index, |
| 157 arg) { |
| 158 visits.add(new Visit(VisitKind.ERROR_INVALID_INDEX, |
| 159 error: error.messageKind, index: index)); |
| 160 super.errorInvalidIndex(node, error, index, arg); |
| 161 } |
| 162 |
| 163 @override |
| 164 errorInvalidIndexSet( |
| 165 Send node, |
| 166 ErroneousElement error, |
| 167 Node index, |
| 168 Node rhs, |
| 169 arg) { |
| 170 visits.add(new Visit(VisitKind.ERROR_INVALID_INDEX_SET, |
| 171 error: error.messageKind, index: index, rhs: rhs)); |
| 172 super.errorInvalidIndexSet(node, error, index, rhs, arg); |
| 173 } |
| 174 |
| 175 @override |
| 176 errorInvalidCompoundIndexSet( |
| 177 Send node, |
| 178 ErroneousElement error, |
| 179 Node index, |
| 180 AssignmentOperator operator, |
| 181 Node rhs, |
| 182 arg) { |
| 183 visits.add(new Visit(VisitKind.ERROR_INVALID_COMPOUND_INDEX_SET, |
| 184 error: error.messageKind, index: index, operator: operator, rhs: rhs)); |
| 185 super.errorInvalidCompoundIndexSet(node, error, index, operator, rhs, arg); |
| 186 } |
| 187 |
| 188 @override |
| 189 errorInvalidIndexPrefix( |
| 190 Send node, |
| 191 ErroneousElement error, |
| 192 Node index, |
| 193 IncDecOperator operator, |
| 194 arg) { |
| 195 visits.add(new Visit(VisitKind.ERROR_INVALID_INDEX_PREFIX, |
| 196 error: error.messageKind, index: index, operator: operator)); |
| 197 super.errorInvalidIndexPrefix(node, error, index, operator, arg); |
| 198 } |
| 199 |
| 200 @override |
| 201 errorInvalidIndexPostfix( |
| 202 Send node, |
| 203 ErroneousElement error, |
| 204 Node index, |
| 205 IncDecOperator operator, |
| 206 arg) { |
| 207 visits.add(new Visit(VisitKind.ERROR_INVALID_INDEX_POSTFIX, |
| 208 error: error.messageKind, index: index, operator: operator)); |
| 209 super.errorInvalidIndexPostfix(node, error, index, operator, arg); |
| 210 } |
| 211 |
| 212 @override |
| 108 visitBinary( | 213 visitBinary( |
| 109 Send node, | 214 Send node, |
| 110 Node left, | 215 Node left, |
| 111 BinaryOperator operator, | 216 BinaryOperator operator, |
| 112 Node right, | 217 Node right, |
| 113 arg) { | 218 arg) { |
| 114 visits.add(new Visit(VisitKind.VISIT_BINARY, | 219 visits.add(new Visit(VisitKind.VISIT_BINARY, |
| 115 left: left, operator: operator, right: right)); | 220 left: left, operator: operator, right: right)); |
| 116 super.visitBinary(node, left, operator, right, arg); | 221 super.visitBinary(node, left, operator, right, arg); |
| 117 } | 222 } |
| (...skipping 2891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3009 } | 3114 } |
| 3010 | 3115 |
| 3011 @override | 3116 @override |
| 3012 previsitDeferredAccess( | 3117 previsitDeferredAccess( |
| 3013 Send node, | 3118 Send node, |
| 3014 PrefixElement prefix, | 3119 PrefixElement prefix, |
| 3015 arg) { | 3120 arg) { |
| 3016 visits.add(new Visit(VisitKind.PREVISIT_DEFERRED_ACCESS, element: prefix)); | 3121 visits.add(new Visit(VisitKind.PREVISIT_DEFERRED_ACCESS, element: prefix)); |
| 3017 } | 3122 } |
| 3018 } | 3123 } |
| OLD | NEW |