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

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

Issue 1345403002: Do not emit semicolons for await expressions in ToSourceVisitor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/ast_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 library engine.ast; 5 library engine.ast;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'element.dart'; 9 import 'element.dart';
10 import 'engine.dart' show AnalysisEngine; 10 import 'engine.dart' show AnalysisEngine;
(...skipping 18033 matching lines...) Expand 10 before | Expand all | Expand 10 after
18044 _writer.print(node.operator.lexeme); 18044 _writer.print(node.operator.lexeme);
18045 _writer.print(' '); 18045 _writer.print(' ');
18046 _visitNode(node.rightHandSide); 18046 _visitNode(node.rightHandSide);
18047 return null; 18047 return null;
18048 } 18048 }
18049 18049
18050 @override 18050 @override
18051 Object visitAwaitExpression(AwaitExpression node) { 18051 Object visitAwaitExpression(AwaitExpression node) {
18052 _writer.print("await "); 18052 _writer.print("await ");
18053 _visitNode(node.expression); 18053 _visitNode(node.expression);
18054 _writer.print(";");
18055 return null; 18054 return null;
18056 } 18055 }
18057 18056
18058 @override 18057 @override
18059 Object visitBinaryExpression(BinaryExpression node) { 18058 Object visitBinaryExpression(BinaryExpression node) {
18060 _visitNode(node.leftOperand); 18059 _visitNode(node.leftOperand);
18061 _writer.print(' '); 18060 _writer.print(' ');
18062 _writer.print(node.operator.lexeme); 18061 _writer.print(node.operator.lexeme);
18063 _writer.print(' '); 18062 _writer.print(' ');
18064 _visitNode(node.rightOperand); 18063 _visitNode(node.rightOperand);
(...skipping 2582 matching lines...) Expand 10 before | Expand all | Expand 10 after
20647 } 20646 }
20648 20647
20649 @override 20648 @override
20650 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); 20649 accept(AstVisitor visitor) => visitor.visitYieldStatement(this);
20651 20650
20652 @override 20651 @override
20653 void visitChildren(AstVisitor visitor) { 20652 void visitChildren(AstVisitor visitor) {
20654 _safelyVisitChild(_expression, visitor); 20653 _safelyVisitChild(_expression, visitor);
20655 } 20654 }
20656 } 20655 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/ast_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698