| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.resolution.members; | 5 library dart2js.resolution.members; |
| 6 | 6 |
| 7 import '../common/names.dart' show | 7 import '../common/names.dart' show |
| 8 Selectors; | 8 Selectors; |
| 9 import '../compiler.dart' show | 9 import '../compiler.dart' show |
| 10 Compiler; | 10 Compiler; |
| (...skipping 3404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3415 registry.useElement(node, semantics.setter); | 3415 registry.useElement(node, semantics.setter); |
| 3416 registry.useElement(node.selector, semantics.getter); | 3416 registry.useElement(node.selector, semantics.getter); |
| 3417 | 3417 |
| 3418 registry.registerDynamicInvocation( | 3418 registry.registerDynamicInvocation( |
| 3419 new UniverseSelector(operatorSelector, null)); | 3419 new UniverseSelector(operatorSelector, null)); |
| 3420 | 3420 |
| 3421 SendStructure sendStructure = node.isPrefix | 3421 SendStructure sendStructure = node.isPrefix |
| 3422 ? new PrefixStructure(semantics, operator) | 3422 ? new PrefixStructure(semantics, operator) |
| 3423 : new PostfixStructure(semantics, operator); | 3423 : new PostfixStructure(semantics, operator); |
| 3424 registry.registerSendStructure(node, sendStructure); | 3424 registry.registerSendStructure(node, sendStructure); |
| 3425 registry.registerIncDecOperation(); |
| 3425 } else { | 3426 } else { |
| 3426 Node rhs = node.arguments.head; | 3427 Node rhs = node.arguments.head; |
| 3427 visitExpression(rhs); | 3428 visitExpression(rhs); |
| 3428 | 3429 |
| 3429 AssignmentOperator operator = AssignmentOperator.parse(operatorText); | 3430 AssignmentOperator operator = AssignmentOperator.parse(operatorText); |
| 3430 if (operator.kind == AssignmentOperatorKind.ASSIGN) { | 3431 if (operator.kind == AssignmentOperatorKind.ASSIGN) { |
| 3431 // `e1 = e2`. | 3432 // `e1 = e2`. |
| 3432 | 3433 |
| 3433 // TODO(23998): Remove these when elements are only accessed | 3434 // TODO(23998): Remove these when elements are only accessed |
| 3434 // through the send structure. | 3435 // through the send structure. |
| (...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4648 } | 4649 } |
| 4649 return const NoneResult(); | 4650 return const NoneResult(); |
| 4650 } | 4651 } |
| 4651 } | 4652 } |
| 4652 | 4653 |
| 4653 /// Looks up [name] in [scope] and unwraps the result. | 4654 /// Looks up [name] in [scope] and unwraps the result. |
| 4654 Element lookupInScope(Compiler compiler, Node node, | 4655 Element lookupInScope(Compiler compiler, Node node, |
| 4655 Scope scope, String name) { | 4656 Scope scope, String name) { |
| 4656 return Elements.unwrap(scope.lookup(name), compiler, node); | 4657 return Elements.unwrap(scope.lookup(name), compiler, node); |
| 4657 } | 4658 } |
| OLD | NEW |