| 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:math" as math; | 10 import "dart:math" as math; |
| (...skipping 8594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8605 [operator.lexeme]); | 8605 [operator.lexeme]); |
| 8606 return new PrefixExpression( | 8606 return new PrefixExpression( |
| 8607 operator, | 8607 operator, |
| 8608 new SuperExpression(getAndAdvance())); | 8608 new SuperExpression(getAndAdvance())); |
| 8609 } | 8609 } |
| 8610 } | 8610 } |
| 8611 return new PrefixExpression(operator, _parseAssignableExpression(false)); | 8611 return new PrefixExpression(operator, _parseAssignableExpression(false)); |
| 8612 } else if (_matches(TokenType.PLUS)) { | 8612 } else if (_matches(TokenType.PLUS)) { |
| 8613 _reportErrorForCurrentToken(ParserErrorCode.MISSING_IDENTIFIER); | 8613 _reportErrorForCurrentToken(ParserErrorCode.MISSING_IDENTIFIER); |
| 8614 return _createSyntheticIdentifier(); | 8614 return _createSyntheticIdentifier(); |
| 8615 } else if (_matchesString(_AWAIT)) { | 8615 } else if (_inAsync && _matchesString(_AWAIT)) { |
| 8616 return _parseAwaitExpression(); | 8616 return _parseAwaitExpression(); |
| 8617 } | 8617 } |
| 8618 return _parsePostfixExpression(); | 8618 return _parsePostfixExpression(); |
| 8619 } | 8619 } |
| 8620 | 8620 |
| 8621 /** | 8621 /** |
| 8622 * Parse a string literal representing a URI. | 8622 * Parse a string literal representing a URI. |
| 8623 */ | 8623 */ |
| 8624 StringLiteral _parseUri() { | 8624 StringLiteral _parseUri() { |
| 8625 bool iskeywordAfterUri(Token token) => | 8625 bool iskeywordAfterUri(Token token) => |
| (...skipping 3477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12103 * Copy resolution data from one node to another. | 12103 * Copy resolution data from one node to another. |
| 12104 * | 12104 * |
| 12105 * @param fromNode the node from which resolution information will be copied | 12105 * @param fromNode the node from which resolution information will be copied |
| 12106 * @param toNode the node to which resolution information will be copied | 12106 * @param toNode the node to which resolution information will be copied |
| 12107 */ | 12107 */ |
| 12108 static void copyResolutionData(AstNode fromNode, AstNode toNode) { | 12108 static void copyResolutionData(AstNode fromNode, AstNode toNode) { |
| 12109 ResolutionCopier copier = new ResolutionCopier(); | 12109 ResolutionCopier copier = new ResolutionCopier(); |
| 12110 copier._isEqualNodes(fromNode, toNode); | 12110 copier._isEqualNodes(fromNode, toNode); |
| 12111 } | 12111 } |
| 12112 } | 12112 } |
| OLD | NEW |