| 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.testing.ast_factory; | 8 library engine.testing.ast_factory; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/ast.dart'; | 10 import 'package:analyzer/src/generated/ast.dart'; |
| (...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 typeParameters = new List<TypeParameter>(); | 898 typeParameters = new List<TypeParameter>(); |
| 899 for (String typeName in typeNames) { | 899 for (String typeName in typeNames) { |
| 900 typeParameters.add(typeParameter(typeName)); | 900 typeParameters.add(typeParameter(typeName)); |
| 901 } | 901 } |
| 902 } | 902 } |
| 903 return new TypeParameterList(TokenFactory.tokenFromType(TokenType.LT), | 903 return new TypeParameterList(TokenFactory.tokenFromType(TokenType.LT), |
| 904 typeParameters, TokenFactory.tokenFromType(TokenType.GT)); | 904 typeParameters, TokenFactory.tokenFromType(TokenType.GT)); |
| 905 } | 905 } |
| 906 | 906 |
| 907 static VariableDeclaration variableDeclaration(String name) => | 907 static VariableDeclaration variableDeclaration(String name) => |
| 908 new VariableDeclaration(null, null, identifier3(name), null, null); | 908 new VariableDeclaration(identifier3(name), null, null); |
| 909 | 909 |
| 910 static VariableDeclaration variableDeclaration2( | 910 static VariableDeclaration variableDeclaration2( |
| 911 String name, Expression initializer) => new VariableDeclaration(null, | 911 String name, Expression initializer) => new VariableDeclaration( |
| 912 null, identifier3(name), TokenFactory.tokenFromType(TokenType.EQ), | 912 identifier3(name), TokenFactory.tokenFromType(TokenType.EQ), initializer); |
| 913 initializer); | |
| 914 | 913 |
| 915 static VariableDeclarationList variableDeclarationList(Keyword keyword, | 914 static VariableDeclarationList variableDeclarationList(Keyword keyword, |
| 916 TypeName type, List<VariableDeclaration> variables) => | 915 TypeName type, List<VariableDeclaration> variables) => |
| 917 new VariableDeclarationList(null, null, | 916 new VariableDeclarationList(null, null, |
| 918 keyword == null ? null : TokenFactory.tokenFromKeyword(keyword), type, | 917 keyword == null ? null : TokenFactory.tokenFromKeyword(keyword), type, |
| 919 variables); | 918 variables); |
| 920 | 919 |
| 921 static VariableDeclarationList variableDeclarationList2( | 920 static VariableDeclarationList variableDeclarationList2( |
| 922 Keyword keyword, List<VariableDeclaration> variables) => | 921 Keyword keyword, List<VariableDeclaration> variables) => |
| 923 variableDeclarationList(keyword, null, variables); | 922 variableDeclarationList(keyword, null, variables); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 944 new YieldStatement( | 943 new YieldStatement( |
| 945 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), | 944 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), |
| 946 TokenFactory.tokenFromType(TokenType.STAR), expression, | 945 TokenFactory.tokenFromType(TokenType.STAR), expression, |
| 947 TokenFactory.tokenFromType(TokenType.SEMICOLON)); | 946 TokenFactory.tokenFromType(TokenType.SEMICOLON)); |
| 948 | 947 |
| 949 static YieldStatement yieldStatement( | 948 static YieldStatement yieldStatement( |
| 950 Expression expression) => new YieldStatement( | 949 Expression expression) => new YieldStatement( |
| 951 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), null, | 950 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), null, |
| 952 expression, TokenFactory.tokenFromType(TokenType.SEMICOLON)); | 951 expression, TokenFactory.tokenFromType(TokenType.SEMICOLON)); |
| 953 } | 952 } |
| OLD | NEW |