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

Side by Side Diff: pkg/analyzer/lib/src/generated/ast.dart

Issue 1216463002: [analyzer] fix NodeReplacer for AwaitExpression (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | pkg/analyzer/test/generated/utilities_test.dart » ('j') | 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) 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.ast; 8 library engine.ast;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 12448 matching lines...) Expand 10 before | Expand all | Expand 10 after
12459 node.rightHandSide = _newNode as Expression; 12459 node.rightHandSide = _newNode as Expression;
12460 return true; 12460 return true;
12461 } 12461 }
12462 return visitNode(node); 12462 return visitNode(node);
12463 } 12463 }
12464 12464
12465 @override 12465 @override
12466 bool visitAwaitExpression(AwaitExpression node) { 12466 bool visitAwaitExpression(AwaitExpression node) {
12467 if (identical(node.expression, _oldNode)) { 12467 if (identical(node.expression, _oldNode)) {
12468 node.expression = _newNode as Expression; 12468 node.expression = _newNode as Expression;
12469 return true;
12469 } 12470 }
12470 return visitNode(node); 12471 return visitNode(node);
12471 } 12472 }
12472 12473
12473 @override 12474 @override
12474 bool visitBinaryExpression(BinaryExpression node) { 12475 bool visitBinaryExpression(BinaryExpression node) {
12475 if (identical(node.leftOperand, _oldNode)) { 12476 if (identical(node.leftOperand, _oldNode)) {
12476 node.leftOperand = _newNode as Expression; 12477 node.leftOperand = _newNode as Expression;
12477 return true; 12478 return true;
12478 } else if (identical(node.rightOperand, _oldNode)) { 12479 } else if (identical(node.rightOperand, _oldNode)) {
(...skipping 7578 matching lines...) Expand 10 before | Expand all | Expand 10 after
20057 } 20058 }
20058 20059
20059 @override 20060 @override
20060 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); 20061 accept(AstVisitor visitor) => visitor.visitYieldStatement(this);
20061 20062
20062 @override 20063 @override
20063 void visitChildren(AstVisitor visitor) { 20064 void visitChildren(AstVisitor visitor) {
20064 _safelyVisitChild(_expression, visitor); 20065 _safelyVisitChild(_expression, visitor);
20065 } 20066 }
20066 } 20067 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/utilities_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698