| 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 // 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_test; | 8 library engine.ast_test; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/ast.dart'; | 10 import 'package:analyzer/src/generated/ast.dart'; |
| (...skipping 2749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2760 | 2760 |
| 2761 void test_visitMethodDeclaration_withMetadata() { | 2761 void test_visitMethodDeclaration_withMetadata() { |
| 2762 MethodDeclaration declaration = AstFactory.methodDeclaration2(null, null, | 2762 MethodDeclaration declaration = AstFactory.methodDeclaration2(null, null, |
| 2763 null, null, AstFactory.identifier3("m"), | 2763 null, null, AstFactory.identifier3("m"), |
| 2764 AstFactory.formalParameterList(), AstFactory.blockFunctionBody2()); | 2764 AstFactory.formalParameterList(), AstFactory.blockFunctionBody2()); |
| 2765 declaration.metadata | 2765 declaration.metadata |
| 2766 .add(AstFactory.annotation(AstFactory.identifier3("deprecated"))); | 2766 .add(AstFactory.annotation(AstFactory.identifier3("deprecated"))); |
| 2767 _assertSource("@deprecated m() {}", declaration); | 2767 _assertSource("@deprecated m() {}", declaration); |
| 2768 } | 2768 } |
| 2769 | 2769 |
| 2770 void test_visitMethodInvocation_conditional() { |
| 2771 _assertSource("t?.m()", AstFactory.methodInvocation( |
| 2772 AstFactory.identifier3("t"), "m", null, TokenType.QUESTION_PERIOD)); |
| 2773 } |
| 2774 |
| 2770 void test_visitMethodInvocation_noTarget() { | 2775 void test_visitMethodInvocation_noTarget() { |
| 2771 _assertSource("m()", AstFactory.methodInvocation2("m")); | 2776 _assertSource("m()", AstFactory.methodInvocation2("m")); |
| 2772 } | 2777 } |
| 2773 | 2778 |
| 2774 void test_visitMethodInvocation_target() { | 2779 void test_visitMethodInvocation_target() { |
| 2775 _assertSource( | 2780 _assertSource( |
| 2776 "t.m()", AstFactory.methodInvocation(AstFactory.identifier3("t"), "m")); | 2781 "t.m()", AstFactory.methodInvocation(AstFactory.identifier3("t"), "m")); |
| 2777 } | 2782 } |
| 2778 | 2783 |
| 2779 void test_visitNamedExpression() { | 2784 void test_visitNamedExpression() { |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3232 static const List<WrapperKind> values = const [ | 3237 static const List<WrapperKind> values = const [ |
| 3233 PREFIXED_LEFT, | 3238 PREFIXED_LEFT, |
| 3234 PREFIXED_RIGHT, | 3239 PREFIXED_RIGHT, |
| 3235 PROPERTY_LEFT, | 3240 PROPERTY_LEFT, |
| 3236 PROPERTY_RIGHT, | 3241 PROPERTY_RIGHT, |
| 3237 NONE | 3242 NONE |
| 3238 ]; | 3243 ]; |
| 3239 | 3244 |
| 3240 const WrapperKind(String name, int ordinal) : super(name, ordinal); | 3245 const WrapperKind(String name, int ordinal) : super(name, ordinal); |
| 3241 } | 3246 } |
| OLD | NEW |