| 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 library dart2js.semantics_visitor_test; | 5 library dart2js.semantics_visitor_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:mirrors'; | 8 import 'dart:mirrors'; |
| 9 import 'package:async_helper/async_helper.dart'; | 9 import 'package:async_helper/async_helper.dart'; |
| 10 import 'package:expect/expect.dart'; | 10 import 'package:expect/expect.dart'; |
| (...skipping 4157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4168 | 4168 |
| 4169 @override | 4169 @override |
| 4170 visitDynamicPropertySet( | 4170 visitDynamicPropertySet( |
| 4171 SendSet node, | 4171 SendSet node, |
| 4172 Node receiver, | 4172 Node receiver, |
| 4173 Selector selector, | 4173 Selector selector, |
| 4174 Node rhs, | 4174 Node rhs, |
| 4175 arg) { | 4175 arg) { |
| 4176 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_SET, | 4176 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_PROPERTY_SET, |
| 4177 receiver: receiver, name: selector.name, rhs: rhs)); | 4177 receiver: receiver, name: selector.name, rhs: rhs)); |
| 4178 apply(receiver, arg); | 4178 super.visitDynamicPropertySet(node, receiver, selector, rhs, arg); |
| 4179 } | 4179 } |
| 4180 | 4180 |
| 4181 @override | 4181 @override |
| 4182 visitDynamicTypeLiteralGet( | 4182 visitDynamicTypeLiteralGet( |
| 4183 Send node, | 4183 Send node, |
| 4184 ConstantExpression constant, | 4184 ConstantExpression constant, |
| 4185 arg) { | 4185 arg) { |
| 4186 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_GET, | 4186 visits.add(new Visit(VisitKind.VISIT_DYNAMIC_TYPE_LITERAL_GET, |
| 4187 constant: constant.getText())); | 4187 constant: constant.getText())); |
| 4188 } | 4188 } |
| (...skipping 3224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7413 VISIT_REQUIRED_INITIALIZING_FORMAL_DECL, | 7413 VISIT_REQUIRED_INITIALIZING_FORMAL_DECL, |
| 7414 VISIT_OPTIONAL_INITIALIZING_FORMAL_DECL, | 7414 VISIT_OPTIONAL_INITIALIZING_FORMAL_DECL, |
| 7415 VISIT_NAMED_INITIALIZING_FORMAL_DECL, | 7415 VISIT_NAMED_INITIALIZING_FORMAL_DECL, |
| 7416 | 7416 |
| 7417 VISIT_UNRESOLVED_COMPOUND, | 7417 VISIT_UNRESOLVED_COMPOUND, |
| 7418 VISIT_UNRESOLVED_PREFIX, | 7418 VISIT_UNRESOLVED_PREFIX, |
| 7419 VISIT_UNRESOLVED_POSTFIX, | 7419 VISIT_UNRESOLVED_POSTFIX, |
| 7420 | 7420 |
| 7421 // TODO(johnniwinther): Add tests for more error cases. | 7421 // TODO(johnniwinther): Add tests for more error cases. |
| 7422 } | 7422 } |
| OLD | NEW |