| 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 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |