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

Side by Side Diff: tests/compiler/dart2js/semantic_visitor_test.dart

Issue 1143373005: Fix TraversalSendMixin.visitDynamicPropertySet. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/resolution/semantic_visitor_mixins.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/semantic_visitor_mixins.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698