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

Side by Side Diff: pkg/analyzer/test/generated/ast_test.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 | « pkg/analyzer/lib/src/generated/ast.dart ('k') | no next file » | 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_test; 5 library engine.ast_test;
6 6
7 import 'package:analyzer/src/generated/ast.dart'; 7 import 'package:analyzer/src/generated/ast.dart';
8 import 'package:analyzer/src/generated/java_core.dart'; 8 import 'package:analyzer/src/generated/java_core.dart';
9 import 'package:analyzer/src/generated/java_engine.dart' show Predicate; 9 import 'package:analyzer/src/generated/java_engine.dart' show Predicate;
10 import 'package:analyzer/src/generated/java_engine.dart'; 10 import 'package:analyzer/src/generated/java_engine.dart';
(...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after
1690 1690
1691 void test_visitAssignmentExpression() { 1691 void test_visitAssignmentExpression() {
1692 _assertSource( 1692 _assertSource(
1693 "a = b", 1693 "a = b",
1694 AstFactory.assignmentExpression(AstFactory.identifier3("a"), 1694 AstFactory.assignmentExpression(AstFactory.identifier3("a"),
1695 TokenType.EQ, AstFactory.identifier3("b"))); 1695 TokenType.EQ, AstFactory.identifier3("b")));
1696 } 1696 }
1697 1697
1698 void test_visitAwaitExpression() { 1698 void test_visitAwaitExpression() {
1699 _assertSource( 1699 _assertSource(
1700 "await e;", AstFactory.awaitExpression(AstFactory.identifier3("e"))); 1700 "await e", AstFactory.awaitExpression(AstFactory.identifier3("e")));
1701 } 1701 }
1702 1702
1703 void test_visitBinaryExpression() { 1703 void test_visitBinaryExpression() {
1704 _assertSource( 1704 _assertSource(
1705 "a + b", 1705 "a + b",
1706 AstFactory.binaryExpression(AstFactory.identifier3("a"), TokenType.PLUS, 1706 AstFactory.binaryExpression(AstFactory.identifier3("a"), TokenType.PLUS,
1707 AstFactory.identifier3("b"))); 1707 AstFactory.identifier3("b")));
1708 } 1708 }
1709 1709
1710 void test_visitBlock_empty() { 1710 void test_visitBlock_empty() {
(...skipping 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after
3894 static const List<WrapperKind> values = const [ 3894 static const List<WrapperKind> values = const [
3895 PREFIXED_LEFT, 3895 PREFIXED_LEFT,
3896 PREFIXED_RIGHT, 3896 PREFIXED_RIGHT,
3897 PROPERTY_LEFT, 3897 PROPERTY_LEFT,
3898 PROPERTY_RIGHT, 3898 PROPERTY_RIGHT,
3899 NONE 3899 NONE
3900 ]; 3900 ];
3901 3901
3902 const WrapperKind(String name, int ordinal) : super(name, ordinal); 3902 const WrapperKind(String name, int ordinal) : super(name, ordinal);
3903 } 3903 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698