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

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

Issue 2613383003: Add support for generic function type syntax, part 1 (Closed)
Patch Set: Created 3 years, 11 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 10
(...skipping 11 matching lines...) Expand all
22 SimpleIdentifier constructorName, ArgumentList arguments) => 22 SimpleIdentifier constructorName, ArgumentList arguments) =>
23 new AnnotationImpl(atSign, name, period, constructorName, arguments); 23 new AnnotationImpl(atSign, name, period, constructorName, arguments);
24 24
25 @override 25 @override
26 ArgumentList argumentList(Token leftParenthesis, List<Expression> arguments, 26 ArgumentList argumentList(Token leftParenthesis, List<Expression> arguments,
27 Token rightParenthesis) => 27 Token rightParenthesis) =>
28 new ArgumentListImpl(leftParenthesis, arguments, rightParenthesis); 28 new ArgumentListImpl(leftParenthesis, arguments, rightParenthesis);
29 29
30 @override 30 @override
31 AsExpression asExpression( 31 AsExpression asExpression(
32 Expression expression, Token asOperator, TypeName type) => 32 Expression expression, Token asOperator, TypeAnnotation type) =>
33 new AsExpressionImpl(expression, asOperator, type); 33 new AsExpressionImpl(expression, asOperator, type);
34 34
35 @override 35 @override
36 AssertInitializer assertInitializer( 36 AssertInitializer assertInitializer(
37 Token assertKeyword, 37 Token assertKeyword,
38 Token leftParenthesis, 38 Token leftParenthesis,
39 Expression condition, 39 Expression condition,
40 Token comma, 40 Token comma,
41 Expression message, 41 Expression message,
42 Token rightParenthesis) => 42 Token rightParenthesis) =>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 new BreakStatementImpl(breakKeyword, label, semicolon); 91 new BreakStatementImpl(breakKeyword, label, semicolon);
92 92
93 @override 93 @override
94 CascadeExpression cascadeExpression( 94 CascadeExpression cascadeExpression(
95 Expression target, List<Expression> cascadeSections) => 95 Expression target, List<Expression> cascadeSections) =>
96 new CascadeExpressionImpl(target, cascadeSections); 96 new CascadeExpressionImpl(target, cascadeSections);
97 97
98 @override 98 @override
99 CatchClause catchClause( 99 CatchClause catchClause(
100 Token onKeyword, 100 Token onKeyword,
101 TypeName exceptionType, 101 TypeAnnotation exceptionType,
102 Token catchKeyword, 102 Token catchKeyword,
103 Token leftParenthesis, 103 Token leftParenthesis,
104 SimpleIdentifier exceptionParameter, 104 SimpleIdentifier exceptionParameter,
105 Token comma, 105 Token comma,
106 SimpleIdentifier stackTraceParameter, 106 SimpleIdentifier stackTraceParameter,
107 Token rightParenthesis, 107 Token rightParenthesis,
108 Block body) => 108 Block body) =>
109 new CatchClauseImpl( 109 new CatchClauseImpl(
110 onKeyword, 110 onKeyword,
111 exceptionType, 111 exceptionType,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 @override 255 @override
256 ContinueStatement continueStatement( 256 ContinueStatement continueStatement(
257 Token continueKeyword, SimpleIdentifier label, Token semicolon) => 257 Token continueKeyword, SimpleIdentifier label, Token semicolon) =>
258 new ContinueStatementImpl(continueKeyword, label, semicolon); 258 new ContinueStatementImpl(continueKeyword, label, semicolon);
259 259
260 @override 260 @override
261 DeclaredIdentifier declaredIdentifier( 261 DeclaredIdentifier declaredIdentifier(
262 Comment comment, 262 Comment comment,
263 List<Annotation> metadata, 263 List<Annotation> metadata,
264 Token keyword, 264 Token keyword,
265 TypeName type, 265 TypeAnnotation type,
266 SimpleIdentifier identifier) => 266 SimpleIdentifier identifier) =>
267 new DeclaredIdentifierImpl(comment, metadata, keyword, type, identifier); 267 new DeclaredIdentifierImpl(comment, metadata, keyword, type, identifier);
268 268
269 @override 269 @override
270 DefaultFormalParameter defaultFormalParameter(NormalFormalParameter parameter, 270 DefaultFormalParameter defaultFormalParameter(NormalFormalParameter parameter,
271 ParameterKind kind, Token separator, Expression defaultValue) => 271 ParameterKind kind, Token separator, Expression defaultValue) =>
272 new DefaultFormalParameterImpl(parameter, kind, separator, defaultValue); 272 new DefaultFormalParameterImpl(parameter, kind, separator, defaultValue);
273 273
274 @override 274 @override
275 Comment documentationComment(List<Token> tokens, 275 Comment documentationComment(List<Token> tokens,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 VariableDeclarationList fieldList, 360 VariableDeclarationList fieldList,
361 Token semicolon) => 361 Token semicolon) =>
362 new FieldDeclarationImpl( 362 new FieldDeclarationImpl(
363 comment, metadata, staticKeyword, fieldList, semicolon); 363 comment, metadata, staticKeyword, fieldList, semicolon);
364 364
365 @override 365 @override
366 FieldFormalParameter fieldFormalParameter( 366 FieldFormalParameter fieldFormalParameter(
367 Comment comment, 367 Comment comment,
368 List<Annotation> metadata, 368 List<Annotation> metadata,
369 Token keyword, 369 Token keyword,
370 TypeName type, 370 TypeAnnotation type,
371 Token thisKeyword, 371 Token thisKeyword,
372 Token period, 372 Token period,
373 SimpleIdentifier identifier, 373 SimpleIdentifier identifier,
374 TypeParameterList typeParameters, 374 TypeParameterList typeParameters,
375 FormalParameterList parameters) => 375 FormalParameterList parameters) =>
376 new FieldFormalParameterImpl(comment, metadata, keyword, type, 376 new FieldFormalParameterImpl(comment, metadata, keyword, type,
377 thisKeyword, period, identifier, typeParameters, parameters); 377 thisKeyword, period, identifier, typeParameters, parameters);
378 378
379 @override 379 @override
380 ForEachStatement forEachStatementWithDeclaration( 380 ForEachStatement forEachStatementWithDeclaration(
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 rightSeparator, 448 rightSeparator,
449 updaters, 449 updaters,
450 rightParenthesis, 450 rightParenthesis,
451 body); 451 body);
452 452
453 @override 453 @override
454 FunctionDeclaration functionDeclaration( 454 FunctionDeclaration functionDeclaration(
455 Comment comment, 455 Comment comment,
456 List<Annotation> metadata, 456 List<Annotation> metadata,
457 Token externalKeyword, 457 Token externalKeyword,
458 TypeName returnType, 458 TypeAnnotation returnType,
459 Token propertyKeyword, 459 Token propertyKeyword,
460 SimpleIdentifier name, 460 SimpleIdentifier name,
461 FunctionExpression functionExpression) => 461 FunctionExpression functionExpression) =>
462 new FunctionDeclarationImpl(comment, metadata, externalKeyword, 462 new FunctionDeclarationImpl(comment, metadata, externalKeyword,
463 returnType, propertyKeyword, name, functionExpression); 463 returnType, propertyKeyword, name, functionExpression);
464 464
465 @override 465 @override
466 FunctionDeclarationStatement functionDeclarationStatement( 466 FunctionDeclarationStatement functionDeclarationStatement(
467 FunctionDeclaration functionDeclaration) => 467 FunctionDeclaration functionDeclaration) =>
468 new FunctionDeclarationStatementImpl(functionDeclaration); 468 new FunctionDeclarationStatementImpl(functionDeclaration);
469 469
470 @override 470 @override
471 FunctionExpression functionExpression(TypeParameterList typeParameters, 471 FunctionExpression functionExpression(TypeParameterList typeParameters,
472 FormalParameterList parameters, FunctionBody body) => 472 FormalParameterList parameters, FunctionBody body) =>
473 new FunctionExpressionImpl(typeParameters, parameters, body); 473 new FunctionExpressionImpl(typeParameters, parameters, body);
474 474
475 @override 475 @override
476 FunctionExpressionInvocation functionExpressionInvocation(Expression function, 476 FunctionExpressionInvocation functionExpressionInvocation(Expression function,
477 TypeArgumentList typeArguments, ArgumentList argumentList) => 477 TypeArgumentList typeArguments, ArgumentList argumentList) =>
478 new FunctionExpressionInvocationImpl( 478 new FunctionExpressionInvocationImpl(
479 function, typeArguments, argumentList); 479 function, typeArguments, argumentList);
480 480
481 @override 481 @override
482 FunctionTypeAlias functionTypeAlias( 482 FunctionTypeAlias functionTypeAlias(
483 Comment comment, 483 Comment comment,
484 List<Annotation> metadata, 484 List<Annotation> metadata,
485 Token keyword, 485 Token keyword,
486 TypeName returnType, 486 TypeAnnotation returnType,
487 SimpleIdentifier name, 487 SimpleIdentifier name,
488 TypeParameterList typeParameters, 488 TypeParameterList typeParameters,
489 FormalParameterList parameters, 489 FormalParameterList parameters,
490 Token semicolon) => 490 Token semicolon) =>
491 new FunctionTypeAliasImpl(comment, metadata, keyword, returnType, name, 491 new FunctionTypeAliasImpl(comment, metadata, keyword, returnType, name,
492 typeParameters, parameters, semicolon); 492 typeParameters, parameters, semicolon);
493 493
494 @override 494 @override
495 FunctionTypedFormalParameter functionTypedFormalParameter( 495 FunctionTypedFormalParameter functionTypedFormalParameter(
496 Comment comment, 496 Comment comment,
497 List<Annotation> metadata, 497 List<Annotation> metadata,
498 TypeName returnType, 498 TypeAnnotation returnType,
499 SimpleIdentifier identifier, 499 SimpleIdentifier identifier,
500 TypeParameterList typeParameters, 500 TypeParameterList typeParameters,
501 FormalParameterList parameters, 501 FormalParameterList parameters,
502 {Token question: null}) => 502 {Token question: null}) =>
503 new FunctionTypedFormalParameterImpl(comment, metadata, returnType, 503 new FunctionTypedFormalParameterImpl(comment, metadata, returnType,
504 identifier, typeParameters, parameters, question); 504 identifier, typeParameters, parameters, question);
505 505
506 @override 506 @override
507 GenericFunctionType genericFunctionType(
508 TypeAnnotation returnType,
509 Token functionKeyword,
510 TypeParameterList typeParameters,
511 FormalParameterList _parameters) =>
512 new GenericFunctionTypeImpl(
513 returnType, functionKeyword, typeParameters, _parameters);
514
515 @override
516 GenericTypeAlias genericTypeAlias(
517 Comment comment,
518 List<Annotation> metadata,
519 Token typedefKeyword,
520 SimpleIdentifier name,
521 TypeParameterList typeParameters,
522 Token equals,
523 GenericFunctionType functionType,
524 Token semicolon) =>
525 new GenericTypeAliasImpl(comment, metadata, typedefKeyword, name,
526 typeParameters, equals, functionType, semicolon);
527
528 @override
507 HideCombinator hideCombinator( 529 HideCombinator hideCombinator(
508 Token keyword, List<SimpleIdentifier> hiddenNames) => 530 Token keyword, List<SimpleIdentifier> hiddenNames) =>
509 new HideCombinatorImpl(keyword, hiddenNames); 531 new HideCombinatorImpl(keyword, hiddenNames);
510 532
511 @override 533 @override
512 IfStatement ifStatement( 534 IfStatement ifStatement(
513 Token ifKeyword, 535 Token ifKeyword,
514 Token leftParenthesis, 536 Token leftParenthesis,
515 Expression condition, 537 Expression condition,
516 Token rightParenthesis, 538 Token rightParenthesis,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 InterpolationExpression interpolationExpression( 597 InterpolationExpression interpolationExpression(
576 Token leftBracket, Expression expression, Token rightBracket) => 598 Token leftBracket, Expression expression, Token rightBracket) =>
577 new InterpolationExpressionImpl(leftBracket, expression, rightBracket); 599 new InterpolationExpressionImpl(leftBracket, expression, rightBracket);
578 600
579 @override 601 @override
580 InterpolationString interpolationString(Token contents, String value) => 602 InterpolationString interpolationString(Token contents, String value) =>
581 new InterpolationStringImpl(contents, value); 603 new InterpolationStringImpl(contents, value);
582 604
583 @override 605 @override
584 IsExpression isExpression(Expression expression, Token isOperator, 606 IsExpression isExpression(Expression expression, Token isOperator,
585 Token notOperator, TypeName type) => 607 Token notOperator, TypeAnnotation type) =>
586 new IsExpressionImpl(expression, isOperator, notOperator, type); 608 new IsExpressionImpl(expression, isOperator, notOperator, type);
587 609
588 @override 610 @override
589 Label label(SimpleIdentifier label, Token colon) => 611 Label label(SimpleIdentifier label, Token colon) =>
590 new LabelImpl(label, colon); 612 new LabelImpl(label, colon);
591 613
592 @override 614 @override
593 LabeledStatement labeledStatement(List<Label> labels, Statement statement) => 615 LabeledStatement labeledStatement(List<Label> labels, Statement statement) =>
594 new LabeledStatementImpl(labels, statement); 616 new LabeledStatementImpl(labels, statement);
595 617
(...skipping 27 matching lines...) Expand all
623 MapLiteralEntry mapLiteralEntry( 645 MapLiteralEntry mapLiteralEntry(
624 Expression key, Token separator, Expression value) => 646 Expression key, Token separator, Expression value) =>
625 new MapLiteralEntryImpl(key, separator, value); 647 new MapLiteralEntryImpl(key, separator, value);
626 648
627 @override 649 @override
628 MethodDeclaration methodDeclaration( 650 MethodDeclaration methodDeclaration(
629 Comment comment, 651 Comment comment,
630 List<Annotation> metadata, 652 List<Annotation> metadata,
631 Token externalKeyword, 653 Token externalKeyword,
632 Token modifierKeyword, 654 Token modifierKeyword,
633 TypeName returnType, 655 TypeAnnotation returnType,
634 Token propertyKeyword, 656 Token propertyKeyword,
635 Token operatorKeyword, 657 Token operatorKeyword,
636 SimpleIdentifier name, 658 SimpleIdentifier name,
637 TypeParameterList typeParameters, 659 TypeParameterList typeParameters,
638 FormalParameterList parameters, 660 FormalParameterList parameters,
639 FunctionBody body) => 661 FunctionBody body) =>
640 new MethodDeclarationImpl( 662 new MethodDeclarationImpl(
641 comment, 663 comment,
642 metadata, 664 metadata,
643 externalKeyword, 665 externalKeyword,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 @override 768 @override
747 ShowCombinator showCombinator( 769 ShowCombinator showCombinator(
748 Token keyword, List<SimpleIdentifier> shownNames) => 770 Token keyword, List<SimpleIdentifier> shownNames) =>
749 new ShowCombinatorImpl(keyword, shownNames); 771 new ShowCombinatorImpl(keyword, shownNames);
750 772
751 @override 773 @override
752 SimpleFormalParameter simpleFormalParameter( 774 SimpleFormalParameter simpleFormalParameter(
753 Comment comment, 775 Comment comment,
754 List<Annotation> metadata, 776 List<Annotation> metadata,
755 Token keyword, 777 Token keyword,
756 TypeName type, 778 TypeAnnotation type,
757 SimpleIdentifier identifier) => 779 SimpleIdentifier identifier) =>
758 new SimpleFormalParameterImpl( 780 new SimpleFormalParameterImpl(
759 comment, metadata, keyword, type, identifier); 781 comment, metadata, keyword, type, identifier);
760 782
761 @override 783 @override
762 SimpleIdentifier simpleIdentifier(Token token, {bool isDeclaration: false}) { 784 SimpleIdentifier simpleIdentifier(Token token, {bool isDeclaration: false}) {
763 if (isDeclaration) { 785 if (isDeclaration) {
764 return new DeclaredSimpleIdentifier(token); 786 return new DeclaredSimpleIdentifier(token);
765 } 787 }
766 return new SimpleIdentifierImpl(token); 788 return new SimpleIdentifierImpl(token);
(...skipping 13 matching lines...) Expand all
780 Token superKeyword, 802 Token superKeyword,
781 Token period, 803 Token period,
782 SimpleIdentifier constructorName, 804 SimpleIdentifier constructorName,
783 ArgumentList argumentList) => 805 ArgumentList argumentList) =>
784 new SuperConstructorInvocationImpl( 806 new SuperConstructorInvocationImpl(
785 superKeyword, period, constructorName, argumentList); 807 superKeyword, period, constructorName, argumentList);
786 808
787 @override 809 @override
788 SuperExpression superExpression(Token superKeyword) => 810 SuperExpression superExpression(Token superKeyword) =>
789 new SuperExpressionImpl(superKeyword); 811 new SuperExpressionImpl(superKeyword);
790
791 @override 812 @override
792 SwitchCase switchCase(List<Label> labels, Token keyword, 813 SwitchCase switchCase(List<Label> labels, Token keyword,
793 Expression expression, Token colon, List<Statement> statements) => 814 Expression expression, Token colon, List<Statement> statements) =>
794 new SwitchCaseImpl(labels, keyword, expression, colon, statements); 815 new SwitchCaseImpl(labels, keyword, expression, colon, statements);
795 816
796 @override 817 @override
797 SwitchDefault switchDefault(List<Label> labels, Token keyword, Token colon, 818 SwitchDefault switchDefault(List<Label> labels, Token keyword, Token colon,
798 List<Statement> statements) => 819 List<Statement> statements) =>
799 new SwitchDefaultImpl(labels, keyword, colon, statements); 820 new SwitchDefaultImpl(labels, keyword, colon, statements);
821
800 @override 822 @override
801 SwitchStatement switchStatement( 823 SwitchStatement switchStatement(
802 Token switchKeyword, 824 Token switchKeyword,
803 Token leftParenthesis, 825 Token leftParenthesis,
804 Expression expression, 826 Expression expression,
805 Token rightParenthesis, 827 Token rightParenthesis,
806 Token leftBracket, 828 Token leftBracket,
807 List<SwitchMember> members, 829 List<SwitchMember> members,
808 Token rightBracket) => 830 Token rightBracket) =>
809 new SwitchStatementImpl(switchKeyword, leftParenthesis, expression, 831 new SwitchStatementImpl(switchKeyword, leftParenthesis, expression,
(...skipping 24 matching lines...) Expand all
834 TryStatement tryStatement( 856 TryStatement tryStatement(
835 Token tryKeyword, 857 Token tryKeyword,
836 Block body, 858 Block body,
837 List<CatchClause> catchClauses, 859 List<CatchClause> catchClauses,
838 Token finallyKeyword, 860 Token finallyKeyword,
839 Block finallyBlock) => 861 Block finallyBlock) =>
840 new TryStatementImpl( 862 new TryStatementImpl(
841 tryKeyword, body, catchClauses, finallyKeyword, finallyBlock); 863 tryKeyword, body, catchClauses, finallyKeyword, finallyBlock);
842 864
843 @override 865 @override
844 TypeArgumentList typeArgumentList( 866 TypeArgumentList typeArgumentList(Token leftBracket,
845 Token leftBracket, List<TypeName> arguments, Token rightBracket) => 867 List<TypeAnnotation> arguments, Token rightBracket) =>
846 new TypeArgumentListImpl(leftBracket, arguments, rightBracket); 868 new TypeArgumentListImpl(leftBracket, arguments, rightBracket);
847 869
848 @override 870 @override
849 TypeName typeName(Identifier name, TypeArgumentList typeArguments, 871 TypeName typeName(Identifier name, TypeArgumentList typeArguments,
850 {Token question: null}) => 872 {Token question: null}) =>
851 new TypeNameImpl(name, typeArguments, question); 873 new TypeNameImpl(name, typeArguments, question);
852 874
853 @override 875 @override
854 TypeParameter typeParameter(Comment comment, List<Annotation> metadata, 876 TypeParameter typeParameter(Comment comment, List<Annotation> metadata,
855 SimpleIdentifier name, Token extendsKeyword, TypeName bound) => 877 SimpleIdentifier name, Token extendsKeyword, TypeAnnotation bound) =>
856 new TypeParameterImpl(comment, metadata, name, extendsKeyword, bound); 878 new TypeParameterImpl(comment, metadata, name, extendsKeyword, bound);
857 879
858 @override 880 @override
859 TypeParameterList typeParameterList(Token leftBracket, 881 TypeParameterList typeParameterList(Token leftBracket,
860 List<TypeParameter> typeParameters, Token rightBracket) => 882 List<TypeParameter> typeParameters, Token rightBracket) =>
861 new TypeParameterListImpl(leftBracket, typeParameters, rightBracket); 883 new TypeParameterListImpl(leftBracket, typeParameters, rightBracket);
862 884
863 @override 885 @override
864 VariableDeclaration variableDeclaration( 886 VariableDeclaration variableDeclaration(
865 SimpleIdentifier name, Token equals, Expression initializer) => 887 SimpleIdentifier name, Token equals, Expression initializer) =>
866 new VariableDeclarationImpl(name, equals, initializer); 888 new VariableDeclarationImpl(name, equals, initializer);
867 889
868 @override 890 @override
869 VariableDeclarationList variableDeclarationList( 891 VariableDeclarationList variableDeclarationList(
870 Comment comment, 892 Comment comment,
871 List<Annotation> metadata, 893 List<Annotation> metadata,
872 Token keyword, 894 Token keyword,
873 TypeName type, 895 TypeAnnotation type,
874 List<VariableDeclaration> variables) => 896 List<VariableDeclaration> variables) =>
875 new VariableDeclarationListImpl( 897 new VariableDeclarationListImpl(
876 comment, metadata, keyword, type, variables); 898 comment, metadata, keyword, type, variables);
877 899
878 @override 900 @override
879 VariableDeclarationStatement variableDeclarationStatement( 901 VariableDeclarationStatement variableDeclarationStatement(
880 VariableDeclarationList variableList, Token semicolon) => 902 VariableDeclarationList variableList, Token semicolon) =>
881 new VariableDeclarationStatementImpl(variableList, semicolon); 903 new VariableDeclarationStatementImpl(variableList, semicolon);
882 904
883 @override 905 @override
884 WhileStatement whileStatement(Token whileKeyword, Token leftParenthesis, 906 WhileStatement whileStatement(Token whileKeyword, Token leftParenthesis,
885 Expression condition, Token rightParenthesis, Statement body) => 907 Expression condition, Token rightParenthesis, Statement body) =>
886 new WhileStatementImpl( 908 new WhileStatementImpl(
887 whileKeyword, leftParenthesis, condition, rightParenthesis, body); 909 whileKeyword, leftParenthesis, condition, rightParenthesis, body);
888 910
889 @override 911 @override
890 WithClause withClause(Token withKeyword, List<TypeName> mixinTypes) => 912 WithClause withClause(Token withKeyword, List<TypeName> mixinTypes) =>
891 new WithClauseImpl(withKeyword, mixinTypes); 913 new WithClauseImpl(withKeyword, mixinTypes);
892 914
893 @override 915 @override
894 YieldStatement yieldStatement(Token yieldKeyword, Token star, 916 YieldStatement yieldStatement(Token yieldKeyword, Token star,
895 Expression expression, Token semicolon) => 917 Expression expression, Token semicolon) =>
896 new YieldStatementImpl(yieldKeyword, star, expression, semicolon); 918 new YieldStatementImpl(yieldKeyword, star, expression, semicolon);
897 } 919 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/ast/ast.dart ('k') | pkg/analyzer/lib/src/dart/ast/resolution_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698