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