| 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 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1381 //return parser.parseTypeName(); | 1381 //return parser.parseTypeName(); |
| 1382 //return parser.parseReturnType(); | 1382 //return parser.parseReturnType(); |
| 1383 } else if (identical(_oldNode, node.name)) { | 1383 } else if (identical(_oldNode, node.name)) { |
| 1384 if (node.operatorKeyword != null) { | 1384 if (node.operatorKeyword != null) { |
| 1385 throw new InsufficientContextException(); | 1385 throw new InsufficientContextException(); |
| 1386 } | 1386 } |
| 1387 return _parser.parseSimpleIdentifier(); | 1387 return _parser.parseSimpleIdentifier(); |
| 1388 } else if (identical(_oldNode, node.body)) { | 1388 } else if (identical(_oldNode, node.body)) { |
| 1389 //return parser.parseFunctionBody(); | 1389 //return parser.parseFunctionBody(); |
| 1390 throw new InsufficientContextException(); | 1390 throw new InsufficientContextException(); |
| 1391 } else if (identical(_oldNode, node.parameters)) { |
| 1392 // TODO(paulberry): if we want errors to be correct, we'll need to also |
| 1393 // call _validateFormalParameterList, and sometimes |
| 1394 // _validateModifiersForGetterOrSetterOrMethod. |
| 1395 return _parser.parseFormalParameterList(); |
| 1391 } | 1396 } |
| 1392 return _notAChild(node); | 1397 return _notAChild(node); |
| 1393 } | 1398 } |
| 1394 | 1399 |
| 1395 @override | 1400 @override |
| 1396 AstNode visitMethodInvocation(MethodInvocation node) { | 1401 AstNode visitMethodInvocation(MethodInvocation node) { |
| 1397 if (identical(_oldNode, node.target)) { | 1402 if (identical(_oldNode, node.target)) { |
| 1398 throw new IncrementalParseException(); | 1403 throw new IncrementalParseException(); |
| 1399 } else if (identical(_oldNode, node.methodName)) { | 1404 } else if (identical(_oldNode, node.methodName)) { |
| 1400 return _parser.parseSimpleIdentifier(); | 1405 return _parser.parseSimpleIdentifier(); |
| (...skipping 10604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12005 * Copy resolution data from one node to another. | 12010 * Copy resolution data from one node to another. |
| 12006 * | 12011 * |
| 12007 * @param fromNode the node from which resolution information will be copied | 12012 * @param fromNode the node from which resolution information will be copied |
| 12008 * @param toNode the node to which resolution information will be copied | 12013 * @param toNode the node to which resolution information will be copied |
| 12009 */ | 12014 */ |
| 12010 static void copyResolutionData(AstNode fromNode, AstNode toNode) { | 12015 static void copyResolutionData(AstNode fromNode, AstNode toNode) { |
| 12011 ResolutionCopier copier = new ResolutionCopier(); | 12016 ResolutionCopier copier = new ResolutionCopier(); |
| 12012 copier._isEqualNodes(fromNode, toNode); | 12017 copier._isEqualNodes(fromNode, toNode); |
| 12013 } | 12018 } |
| 12014 } | 12019 } |
| OLD | NEW |