Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: pkg/analyzer/lib/dart/ast/ast_factory.dart

Issue 2732213003: Fix for parsing generic function types with Fasta. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/ast/ast_factory.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'package:analyzer/dart/ast/ast.dart'; 5 import 'package:analyzer/dart/ast/ast.dart';
6 import 'package:analyzer/src/generated/utilities_dart.dart'; 6 import 'package:analyzer/src/generated/utilities_dart.dart';
7 import 'package:front_end/src/scanner/token.dart'; 7 import 'package:front_end/src/scanner/token.dart';
8 import 'package:meta/meta.dart'; 8 import 'package:meta/meta.dart';
9 9
10 /** 10 /**
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 @required FormalParameterList parameters, 619 @required FormalParameterList parameters,
620 Token question}); 620 Token question});
621 621
622 /** 622 /**
623 * Initialize a newly created generic function type. 623 * Initialize a newly created generic function type.
624 */ 624 */
625 GenericFunctionType genericFunctionType( 625 GenericFunctionType genericFunctionType(
626 TypeAnnotation returnType, 626 TypeAnnotation returnType,
627 Token functionKeyword, 627 Token functionKeyword,
628 TypeParameterList typeParameters, 628 TypeParameterList typeParameters,
629 FormalParameterList _parameters); 629 FormalParameterList parameters);
630 630
631 /** 631 /**
632 * Returns a newly created generic type alias. Either or both of the 632 * Returns a newly created generic type alias. Either or both of the
633 * [comment] and [metadata] can be `null` if the variable list does not have 633 * [comment] and [metadata] can be `null` if the variable list does not have
634 * the corresponding attribute. The [typeParameters] can be `null` if there 634 * the corresponding attribute. The [typeParameters] can be `null` if there
635 * are no type parameters. 635 * are no type parameters.
636 */ 636 */
637 GenericTypeAlias genericTypeAlias( 637 GenericTypeAlias genericTypeAlias(
638 Comment comment, 638 Comment comment,
639 List<Annotation> metadata, 639 List<Annotation> metadata,
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 */ 1114 */
1115 WithClause withClause(Token withKeyword, List<TypeName> mixinTypes); 1115 WithClause withClause(Token withKeyword, List<TypeName> mixinTypes);
1116 1116
1117 /** 1117 /**
1118 * Returns a newly created yield expression. The [star] can be `null` if no 1118 * Returns a newly created yield expression. The [star] can be `null` if no
1119 * star was provided. 1119 * star was provided.
1120 */ 1120 */
1121 YieldStatement yieldStatement( 1121 YieldStatement yieldStatement(
1122 Token yieldKeyword, Token star, Expression expression, Token semicolon); 1122 Token yieldKeyword, Token star, Expression expression, Token semicolon);
1123 } 1123 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/ast/ast_factory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698