| 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 | |
| 6 // significant change. Please see the README file for more information. | |
| 7 | |
| 8 library engine.testing.ast_factory; | 5 library engine.testing.ast_factory; |
| 9 | 6 |
| 10 import 'package:analyzer/src/generated/ast.dart'; | 7 import 'package:analyzer/src/generated/ast.dart'; |
| 11 import 'package:analyzer/src/generated/element.dart'; | 8 import 'package:analyzer/src/generated/element.dart'; |
| 12 import 'package:analyzer/src/generated/scanner.dart'; | 9 import 'package:analyzer/src/generated/scanner.dart'; |
| 13 import 'package:analyzer/src/generated/testing/token_factory.dart'; | 10 import 'package:analyzer/src/generated/testing/token_factory.dart'; |
| 14 import 'package:analyzer/src/generated/utilities_dart.dart'; | 11 import 'package:analyzer/src/generated/utilities_dart.dart'; |
| 15 | 12 |
| 16 /** | 13 /** |
| 17 * The class `AstFactory` defines utility methods that can be used to create AST
nodes. The | 14 * The class `AstFactory` defines utility methods that can be used to create AST
nodes. The |
| (...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 new YieldStatement( | 970 new YieldStatement( |
| 974 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), | 971 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), |
| 975 TokenFactory.tokenFromType(TokenType.STAR), expression, | 972 TokenFactory.tokenFromType(TokenType.STAR), expression, |
| 976 TokenFactory.tokenFromType(TokenType.SEMICOLON)); | 973 TokenFactory.tokenFromType(TokenType.SEMICOLON)); |
| 977 | 974 |
| 978 static YieldStatement yieldStatement( | 975 static YieldStatement yieldStatement( |
| 979 Expression expression) => new YieldStatement( | 976 Expression expression) => new YieldStatement( |
| 980 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), null, | 977 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), null, |
| 981 expression, TokenFactory.tokenFromType(TokenType.SEMICOLON)); | 978 expression, TokenFactory.tokenFromType(TokenType.SEMICOLON)); |
| 982 } | 979 } |
| OLD | NEW |