| 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 2830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2841 void test_visitPrefixExpression() { | 2841 void test_visitPrefixExpression() { |
| 2842 _assertSource("-a", AstFactory.prefixExpression( | 2842 _assertSource("-a", AstFactory.prefixExpression( |
| 2843 TokenType.MINUS, AstFactory.identifier3("a"))); | 2843 TokenType.MINUS, AstFactory.identifier3("a"))); |
| 2844 } | 2844 } |
| 2845 | 2845 |
| 2846 void test_visitPropertyAccess() { | 2846 void test_visitPropertyAccess() { |
| 2847 _assertSource( | 2847 _assertSource( |
| 2848 "a.b", AstFactory.propertyAccess2(AstFactory.identifier3("a"), "b")); | 2848 "a.b", AstFactory.propertyAccess2(AstFactory.identifier3("a"), "b")); |
| 2849 } | 2849 } |
| 2850 | 2850 |
| 2851 void test_visitPropertyAccess_conditional() { |
| 2852 _assertSource("a?.b", AstFactory.propertyAccess2( |
| 2853 AstFactory.identifier3("a"), "b", TokenType.QUESTION_PERIOD)); |
| 2854 } |
| 2855 |
| 2851 void test_visitRedirectingConstructorInvocation_named() { | 2856 void test_visitRedirectingConstructorInvocation_named() { |
| 2852 _assertSource( | 2857 _assertSource( |
| 2853 "this.c()", AstFactory.redirectingConstructorInvocation2("c")); | 2858 "this.c()", AstFactory.redirectingConstructorInvocation2("c")); |
| 2854 } | 2859 } |
| 2855 | 2860 |
| 2856 void test_visitRedirectingConstructorInvocation_unnamed() { | 2861 void test_visitRedirectingConstructorInvocation_unnamed() { |
| 2857 _assertSource("this()", AstFactory.redirectingConstructorInvocation()); | 2862 _assertSource("this()", AstFactory.redirectingConstructorInvocation()); |
| 2858 } | 2863 } |
| 2859 | 2864 |
| 2860 void test_visitRethrowExpression() { | 2865 void test_visitRethrowExpression() { |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3222 static const List<WrapperKind> values = const [ | 3227 static const List<WrapperKind> values = const [ |
| 3223 PREFIXED_LEFT, | 3228 PREFIXED_LEFT, |
| 3224 PREFIXED_RIGHT, | 3229 PREFIXED_RIGHT, |
| 3225 PROPERTY_LEFT, | 3230 PROPERTY_LEFT, |
| 3226 PROPERTY_RIGHT, | 3231 PROPERTY_RIGHT, |
| 3227 NONE | 3232 NONE |
| 3228 ]; | 3233 ]; |
| 3229 | 3234 |
| 3230 const WrapperKind(String name, int ordinal) : super(name, ordinal); | 3235 const WrapperKind(String name, int ordinal) : super(name, ordinal); |
| 3231 } | 3236 } |
| OLD | NEW |