| 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/java_core.dart'; | 10 import 'package:analyzer/src/generated/java_core.dart'; |
| (...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 Expression expression = identifier; | 863 Expression expression = identifier; |
| 864 while (true) { | 864 while (true) { |
| 865 if (wrapper == WrapperKind.PREFIXED_LEFT) { | 865 if (wrapper == WrapperKind.PREFIXED_LEFT) { |
| 866 expression = ASTFactory.identifier(identifier, ASTFactory.identifier3("_
")); | 866 expression = ASTFactory.identifier(identifier, ASTFactory.identifier3("_
")); |
| 867 } else if (wrapper == WrapperKind.PREFIXED_RIGHT) { | 867 } else if (wrapper == WrapperKind.PREFIXED_RIGHT) { |
| 868 expression = ASTFactory.identifier(ASTFactory.identifier3("_"), identifi
er); | 868 expression = ASTFactory.identifier(ASTFactory.identifier3("_"), identifi
er); |
| 869 } else if (wrapper == WrapperKind.PROPERTY_LEFT) { | 869 } else if (wrapper == WrapperKind.PROPERTY_LEFT) { |
| 870 expression = ASTFactory.propertyAccess2(expression, "_"); | 870 expression = ASTFactory.propertyAccess2(expression, "_"); |
| 871 } else if (wrapper == WrapperKind.PROPERTY_RIGHT) { | 871 } else if (wrapper == WrapperKind.PROPERTY_RIGHT) { |
| 872 expression = ASTFactory.propertyAccess(ASTFactory.identifier3("_"), iden
tifier); | 872 expression = ASTFactory.propertyAccess(ASTFactory.identifier3("_"), iden
tifier); |
| 873 } else if (wrapper == WrapperKind.NONE) { |
| 873 } | 874 } |
| 874 break; | 875 break; |
| 875 } | 876 } |
| 876 while (true) { | 877 while (true) { |
| 877 if (assignment == AssignmentKind.BINARY) { | 878 if (assignment == AssignmentKind.BINARY) { |
| 878 ASTFactory.binaryExpression(expression, TokenType.PLUS, ASTFactory.ident
ifier3("_")); | 879 ASTFactory.binaryExpression(expression, TokenType.PLUS, ASTFactory.ident
ifier3("_")); |
| 879 } else if (assignment == AssignmentKind.COMPOUND_LEFT) { | 880 } else if (assignment == AssignmentKind.COMPOUND_LEFT) { |
| 880 ASTFactory.assignmentExpression(expression, TokenType.PLUS_EQ, ASTFactor
y.identifier3("_")); | 881 ASTFactory.assignmentExpression(expression, TokenType.PLUS_EQ, ASTFactor
y.identifier3("_")); |
| 881 } else if (assignment == AssignmentKind.COMPOUND_RIGHT) { | 882 } else if (assignment == AssignmentKind.COMPOUND_RIGHT) { |
| 882 ASTFactory.assignmentExpression(ASTFactory.identifier3("_"), TokenType.P
LUS_EQ, expression); | 883 ASTFactory.assignmentExpression(ASTFactory.identifier3("_"), TokenType.P
LUS_EQ, expression); |
| 883 } else if (assignment == AssignmentKind.POSTFIX_INC) { | 884 } else if (assignment == AssignmentKind.POSTFIX_INC) { |
| 884 ASTFactory.postfixExpression(expression, TokenType.PLUS_PLUS); | 885 ASTFactory.postfixExpression(expression, TokenType.PLUS_PLUS); |
| 885 } else if (assignment == AssignmentKind.PREFIX_DEC) { | 886 } else if (assignment == AssignmentKind.PREFIX_DEC) { |
| 886 ASTFactory.prefixExpression(TokenType.MINUS_MINUS, expression); | 887 ASTFactory.prefixExpression(TokenType.MINUS_MINUS, expression); |
| 887 } else if (assignment == AssignmentKind.PREFIX_INC) { | 888 } else if (assignment == AssignmentKind.PREFIX_INC) { |
| 888 ASTFactory.prefixExpression(TokenType.PLUS_PLUS, expression); | 889 ASTFactory.prefixExpression(TokenType.PLUS_PLUS, expression); |
| 889 } else if (assignment == AssignmentKind.PREFIX_NOT) { | 890 } else if (assignment == AssignmentKind.PREFIX_NOT) { |
| 890 ASTFactory.prefixExpression(TokenType.BANG, expression); | 891 ASTFactory.prefixExpression(TokenType.BANG, expression); |
| 891 } else if (assignment == AssignmentKind.SIMPLE_LEFT) { | 892 } else if (assignment == AssignmentKind.SIMPLE_LEFT) { |
| 892 ASTFactory.assignmentExpression(expression, TokenType.EQ, ASTFactory.ide
ntifier3("_")); | 893 ASTFactory.assignmentExpression(expression, TokenType.EQ, ASTFactory.ide
ntifier3("_")); |
| 893 } else if (assignment == AssignmentKind.SIMPLE_RIGHT) { | 894 } else if (assignment == AssignmentKind.SIMPLE_RIGHT) { |
| 894 ASTFactory.assignmentExpression(ASTFactory.identifier3("_"), TokenType.E
Q, expression); | 895 ASTFactory.assignmentExpression(ASTFactory.identifier3("_"), TokenType.E
Q, expression); |
| 896 } else if (assignment == AssignmentKind.NONE) { |
| 895 } | 897 } |
| 896 break; | 898 break; |
| 897 } | 899 } |
| 898 return identifier; | 900 return identifier; |
| 899 } | 901 } |
| 900 | 902 |
| 901 /** | 903 /** |
| 902 * Return the top-most node in the AST structure containing the given identifi
er. | 904 * Return the top-most node in the AST structure containing the given identifi
er. |
| 903 * | 905 * |
| 904 * @param identifier the identifier in the AST structure being traversed | 906 * @param identifier the identifier in the AST structure being traversed |
| (...skipping 3182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4087 NodeLocatorTest.dartSuite(); | 4089 NodeLocatorTest.dartSuite(); |
| 4088 ToSourceVisitorTest.dartSuite(); | 4090 ToSourceVisitorTest.dartSuite(); |
| 4089 BreadthFirstVisitorTest.dartSuite(); | 4091 BreadthFirstVisitorTest.dartSuite(); |
| 4090 ClassDeclarationTest.dartSuite(); | 4092 ClassDeclarationTest.dartSuite(); |
| 4091 IndexExpressionTest.dartSuite(); | 4093 IndexExpressionTest.dartSuite(); |
| 4092 NodeListTest.dartSuite(); | 4094 NodeListTest.dartSuite(); |
| 4093 SimpleIdentifierTest.dartSuite(); | 4095 SimpleIdentifierTest.dartSuite(); |
| 4094 SimpleStringLiteralTest.dartSuite(); | 4096 SimpleStringLiteralTest.dartSuite(); |
| 4095 VariableDeclarationTest.dartSuite(); | 4097 VariableDeclarationTest.dartSuite(); |
| 4096 } | 4098 } |
| OLD | NEW |