| 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 library analyzer.src.generated.testing.ast_test_factory; | 5 library analyzer.src.generated.testing.ast_test_factory; |
| 6 | 6 |
| 7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
| 8 import 'package:analyzer/dart/ast/token.dart'; | 8 import 'package:analyzer/dart/ast/token.dart'; |
| 9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
| 10 import 'package:analyzer/src/dart/ast/ast.dart'; | 10 import 'package:analyzer/src/dart/ast/ast.dart'; |
| (...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 966 static PartOfDirective partOfDirective(LibraryIdentifier libraryName) => | 966 static PartOfDirective partOfDirective(LibraryIdentifier libraryName) => |
| 967 partOfDirective2(new List<Annotation>(), libraryName); | 967 partOfDirective2(new List<Annotation>(), libraryName); |
| 968 | 968 |
| 969 static PartOfDirective partOfDirective2( | 969 static PartOfDirective partOfDirective2( |
| 970 List<Annotation> metadata, LibraryIdentifier libraryName) => | 970 List<Annotation> metadata, LibraryIdentifier libraryName) => |
| 971 new PartOfDirective( | 971 new PartOfDirective( |
| 972 null, | 972 null, |
| 973 metadata, | 973 metadata, |
| 974 TokenFactory.tokenFromKeyword(Keyword.PART), | 974 TokenFactory.tokenFromKeyword(Keyword.PART), |
| 975 TokenFactory.tokenFromString("of"), | 975 TokenFactory.tokenFromString("of"), |
| 976 null, |
| 976 libraryName, | 977 libraryName, |
| 977 TokenFactory.tokenFromType(TokenType.SEMICOLON)); | 978 TokenFactory.tokenFromType(TokenType.SEMICOLON)); |
| 978 | 979 |
| 979 static DefaultFormalParameter positionalFormalParameter( | 980 static DefaultFormalParameter positionalFormalParameter( |
| 980 NormalFormalParameter parameter, Expression expression) => | 981 NormalFormalParameter parameter, Expression expression) => |
| 981 new DefaultFormalParameter( | 982 new DefaultFormalParameter( |
| 982 parameter, | 983 parameter, |
| 983 ParameterKind.POSITIONAL, | 984 ParameterKind.POSITIONAL, |
| 984 expression == null ? null : TokenFactory.tokenFromType(TokenType.EQ), | 985 expression == null ? null : TokenFactory.tokenFromType(TokenType.EQ), |
| 985 expression); | 986 expression); |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1285 expression, | 1286 expression, |
| 1286 TokenFactory.tokenFromType(TokenType.SEMICOLON)); | 1287 TokenFactory.tokenFromType(TokenType.SEMICOLON)); |
| 1287 | 1288 |
| 1288 static YieldStatement yieldStatement(Expression expression) => | 1289 static YieldStatement yieldStatement(Expression expression) => |
| 1289 new YieldStatement( | 1290 new YieldStatement( |
| 1290 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), | 1291 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), |
| 1291 null, | 1292 null, |
| 1292 expression, | 1293 expression, |
| 1293 TokenFactory.tokenFromType(TokenType.SEMICOLON)); | 1294 TokenFactory.tokenFromType(TokenType.SEMICOLON)); |
| 1294 } | 1295 } |
| OLD | NEW |