| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.parser; | 8 library engine.parser; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 9410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9421 toNode.staticElement = node.staticElement; | 9421 toNode.staticElement = node.staticElement; |
| 9422 toNode.staticType = node.staticType; | 9422 toNode.staticType = node.staticType; |
| 9423 return true; | 9423 return true; |
| 9424 } | 9424 } |
| 9425 return false; | 9425 return false; |
| 9426 } | 9426 } |
| 9427 | 9427 |
| 9428 @override | 9428 @override |
| 9429 bool visitAwaitExpression(AwaitExpression node) { | 9429 bool visitAwaitExpression(AwaitExpression node) { |
| 9430 AwaitExpression toNode = this._toNode as AwaitExpression; | 9430 AwaitExpression toNode = this._toNode as AwaitExpression; |
| 9431 return _and(_isEqualTokens(node.awaitKeyword, toNode.awaitKeyword), | 9431 if (_and(_isEqualTokens(node.awaitKeyword, toNode.awaitKeyword), |
| 9432 _isEqualNodes(node.expression, toNode.expression)); | 9432 _isEqualNodes(node.expression, toNode.expression))) { |
| 9433 toNode.propagatedType = node.propagatedType; |
| 9434 toNode.staticType = node.staticType; |
| 9435 return true; |
| 9436 } |
| 9437 return false; |
| 9433 } | 9438 } |
| 9434 | 9439 |
| 9435 @override | 9440 @override |
| 9436 bool visitBinaryExpression(BinaryExpression node) { | 9441 bool visitBinaryExpression(BinaryExpression node) { |
| 9437 BinaryExpression toNode = this._toNode as BinaryExpression; | 9442 BinaryExpression toNode = this._toNode as BinaryExpression; |
| 9438 if (_and(_isEqualNodes(node.leftOperand, toNode.leftOperand), | 9443 if (_and(_isEqualNodes(node.leftOperand, toNode.leftOperand), |
| 9439 _isEqualTokens(node.operator, toNode.operator), | 9444 _isEqualTokens(node.operator, toNode.operator), |
| 9440 _isEqualNodes(node.rightOperand, toNode.rightOperand))) { | 9445 _isEqualNodes(node.rightOperand, toNode.rightOperand))) { |
| 9441 toNode.propagatedElement = node.propagatedElement; | 9446 toNode.propagatedElement = node.propagatedElement; |
| 9442 toNode.propagatedType = node.propagatedType; | 9447 toNode.propagatedType = node.propagatedType; |
| (...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10668 } | 10673 } |
| 10669 | 10674 |
| 10670 /** | 10675 /** |
| 10671 * Copy resolution data from the [fromNode] to the [toNode]. | 10676 * Copy resolution data from the [fromNode] to the [toNode]. |
| 10672 */ | 10677 */ |
| 10673 static void copyResolutionData(AstNode fromNode, AstNode toNode) { | 10678 static void copyResolutionData(AstNode fromNode, AstNode toNode) { |
| 10674 ResolutionCopier copier = new ResolutionCopier(); | 10679 ResolutionCopier copier = new ResolutionCopier(); |
| 10675 copier._isEqualNodes(fromNode, toNode); | 10680 copier._isEqualNodes(fromNode, toNode); |
| 10676 } | 10681 } |
| 10677 } | 10682 } |
| OLD | NEW |