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

Side by Side Diff: pkg/analyzer/lib/src/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
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/dart/ast/ast_factory.dart'; 6 import 'package:analyzer/dart/ast/ast_factory.dart';
7 import 'package:analyzer/src/dart/ast/ast.dart'; 7 import 'package:analyzer/src/dart/ast/ast.dart';
8 import 'package:analyzer/src/generated/utilities_dart.dart'; 8 import 'package:analyzer/src/generated/utilities_dart.dart';
9 import 'package:front_end/src/scanner/token.dart'; 9 import 'package:front_end/src/scanner/token.dart';
10 import 'package:meta/meta.dart'; 10 import 'package:meta/meta.dart';
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 @required FormalParameterList parameters, 541 @required FormalParameterList parameters,
542 Token question}) => 542 Token question}) =>
543 new FunctionTypedFormalParameterImpl(comment, metadata, covariantKeyword, 543 new FunctionTypedFormalParameterImpl(comment, metadata, covariantKeyword,
544 returnType, identifier, typeParameters, parameters, question); 544 returnType, identifier, typeParameters, parameters, question);
545 545
546 @override 546 @override
547 GenericFunctionType genericFunctionType( 547 GenericFunctionType genericFunctionType(
548 TypeAnnotation returnType, 548 TypeAnnotation returnType,
549 Token functionKeyword, 549 Token functionKeyword,
550 TypeParameterList typeParameters, 550 TypeParameterList typeParameters,
551 FormalParameterList _parameters) => 551 FormalParameterList parameters) =>
552 new GenericFunctionTypeImpl( 552 new GenericFunctionTypeImpl(
553 returnType, functionKeyword, typeParameters, _parameters); 553 returnType, functionKeyword, typeParameters, parameters);
554 554
555 @override 555 @override
556 GenericTypeAlias genericTypeAlias( 556 GenericTypeAlias genericTypeAlias(
557 Comment comment, 557 Comment comment,
558 List<Annotation> metadata, 558 List<Annotation> metadata,
559 Token typedefKeyword, 559 Token typedefKeyword,
560 SimpleIdentifier name, 560 SimpleIdentifier name,
561 TypeParameterList typeParameters, 561 TypeParameterList typeParameters,
562 Token equals, 562 Token equals,
563 GenericFunctionType functionType, 563 GenericFunctionType functionType,
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 961
962 @override 962 @override
963 WithClause withClause(Token withKeyword, List<TypeName> mixinTypes) => 963 WithClause withClause(Token withKeyword, List<TypeName> mixinTypes) =>
964 new WithClauseImpl(withKeyword, mixinTypes); 964 new WithClauseImpl(withKeyword, mixinTypes);
965 965
966 @override 966 @override
967 YieldStatement yieldStatement(Token yieldKeyword, Token star, 967 YieldStatement yieldStatement(Token yieldKeyword, Token star,
968 Expression expression, Token semicolon) => 968 Expression expression, Token semicolon) =>
969 new YieldStatementImpl(yieldKeyword, star, expression, semicolon); 969 new YieldStatementImpl(yieldKeyword, star, expression, semicolon);
970 } 970 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/dart/ast/ast_factory.dart ('k') | pkg/analyzer/test/generated/parser_fasta_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698