| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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/element/element.dart'; | 6 import 'package:analyzer/dart/element/element.dart'; |
| 7 import 'package:analyzer/error/error.dart'; | 7 import 'package:analyzer/error/error.dart'; |
| 8 import 'package:analyzer/src/generated/parser.dart' as analyzer; | 8 import 'package:analyzer/src/generated/parser.dart' as analyzer; |
| 9 import 'package:front_end/src/fasta/analyzer/ast_builder.dart'; | 9 import 'package:front_end/src/fasta/analyzer/ast_builder.dart'; |
| 10 import 'package:front_end/src/fasta/analyzer/element_store.dart'; | 10 import 'package:front_end/src/fasta/analyzer/element_store.dart'; |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 void | 526 void |
| 527 test_function_literal_allowed_in_StringInterpolation_in_ConstructorFieldIn
itializer() { | 527 test_function_literal_allowed_in_StringInterpolation_in_ConstructorFieldIn
itializer() { |
| 528 // TODO(paulberry): Unhandled event: UnnamedFunction | 528 // TODO(paulberry): Unhandled event: UnnamedFunction |
| 529 super | 529 super |
| 530 .test_function_literal_allowed_in_StringInterpolation_in_ConstructorFiel
dInitializer(); | 530 .test_function_literal_allowed_in_StringInterpolation_in_ConstructorFiel
dInitializer(); |
| 531 } | 531 } |
| 532 | 532 |
| 533 @override | 533 @override |
| 534 @failingTest | 534 @failingTest |
| 535 void test_parseClassDeclaration_abstract() { | 535 void test_parseClassDeclaration_abstract() { |
| 536 // TODO(paulberry): Unhandled event: ClassBody | 536 // TODO(paulberry): Implement AstBuilder.handleModifier |
| 537 super.test_parseClassDeclaration_abstract(); | 537 super.test_parseClassDeclaration_abstract(); |
| 538 } | 538 } |
| 539 | 539 |
| 540 @override | 540 @override |
| 541 @failingTest | 541 @failingTest |
| 542 void test_parseClassDeclaration_empty() { | |
| 543 // TODO(paulberry): Unhandled event: ClassBody | |
| 544 super.test_parseClassDeclaration_empty(); | |
| 545 } | |
| 546 | |
| 547 @override | |
| 548 @failingTest | |
| 549 void test_parseClassDeclaration_extends() { | |
| 550 // TODO(paulberry): Unhandled event: ClassBody | |
| 551 super.test_parseClassDeclaration_extends(); | |
| 552 } | |
| 553 | |
| 554 @override | |
| 555 @failingTest | |
| 556 void test_parseClassDeclaration_extendsAndImplements() { | |
| 557 // TODO(paulberry): Unhandled event: ClassBody | |
| 558 super.test_parseClassDeclaration_extendsAndImplements(); | |
| 559 } | |
| 560 | |
| 561 @override | |
| 562 @failingTest | |
| 563 void test_parseClassDeclaration_extendsAndWith() { | |
| 564 // TODO(paulberry): Unhandled event: TypeList | |
| 565 super.test_parseClassDeclaration_extendsAndWith(); | |
| 566 } | |
| 567 | |
| 568 @override | |
| 569 @failingTest | |
| 570 void test_parseClassDeclaration_extendsAndWithAndImplements() { | |
| 571 // TODO(paulberry): Unhandled event: TypeList | |
| 572 super.test_parseClassDeclaration_extendsAndWithAndImplements(); | |
| 573 } | |
| 574 | |
| 575 @override | |
| 576 @failingTest | |
| 577 void test_parseClassDeclaration_implements() { | |
| 578 // TODO(paulberry): Unhandled event: ClassBody | |
| 579 super.test_parseClassDeclaration_implements(); | |
| 580 } | |
| 581 | |
| 582 @override | |
| 583 @failingTest | |
| 584 void test_parseClassDeclaration_native() { | 542 void test_parseClassDeclaration_native() { |
| 585 // TODO(paulberry): TODO(paulberry,ahe): Fasta parser doesn't appear to supp
ort "native" syntax yet. | 543 // TODO(paulberry): TODO(paulberry,ahe): Fasta parser doesn't appear to supp
ort "native" syntax yet. |
| 586 super.test_parseClassDeclaration_native(); | 544 super.test_parseClassDeclaration_native(); |
| 587 } | 545 } |
| 588 | 546 |
| 589 @override | 547 @override |
| 590 @failingTest | 548 @failingTest |
| 591 void test_parseClassDeclaration_nonEmpty() { | 549 void test_parseClassDeclaration_nonEmpty() { |
| 592 // TODO(paulberry): Unhandled event: NoFieldInitializer | 550 // TODO(paulberry): Unhandled event: NoFieldInitializer |
| 593 super.test_parseClassDeclaration_nonEmpty(); | 551 super.test_parseClassDeclaration_nonEmpty(); |
| 594 } | 552 } |
| 595 | 553 |
| 596 @override | 554 @override |
| 597 @failingTest | 555 @failingTest |
| 598 void test_parseClassDeclaration_typeAlias_implementsC() { | |
| 599 // TODO(paulberry): Unhandled event: TypeList | |
| 600 super.test_parseClassDeclaration_typeAlias_implementsC(); | |
| 601 } | |
| 602 | |
| 603 @override | |
| 604 @failingTest | |
| 605 void test_parseClassDeclaration_typeAlias_withB() { | 556 void test_parseClassDeclaration_typeAlias_withB() { |
| 606 // TODO(paulberry): Unhandled event: TypeList | 557 // TODO(paulberry,ahe): capture `with` token. |
| 607 super.test_parseClassDeclaration_typeAlias_withB(); | 558 super.test_parseClassDeclaration_typeAlias_withB(); |
| 608 } | 559 } |
| 609 | 560 |
| 610 @override | 561 @override |
| 611 @failingTest | 562 @failingTest |
| 612 void test_parseClassDeclaration_typeParameters() { | 563 void test_parseClassDeclaration_typeParameters() { |
| 613 // TODO(paulberry): Unhandled event: TypeVariable | 564 // TODO(paulberry): Unhandled event: TypeVariable |
| 614 super.test_parseClassDeclaration_typeParameters(); | 565 super.test_parseClassDeclaration_typeParameters(); |
| 615 } | 566 } |
| 616 | 567 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 | 625 |
| 675 @override | 626 @override |
| 676 @failingTest | 627 @failingTest |
| 677 void test_parseCompilationUnit_script() { | 628 void test_parseCompilationUnit_script() { |
| 678 // TODO(paulberry): No objects placed on stack | 629 // TODO(paulberry): No objects placed on stack |
| 679 super.test_parseCompilationUnit_script(); | 630 super.test_parseCompilationUnit_script(); |
| 680 } | 631 } |
| 681 | 632 |
| 682 @override | 633 @override |
| 683 @failingTest | 634 @failingTest |
| 684 void test_parseCompilationUnit_topLevelDeclaration() { | |
| 685 // TODO(paulberry): Unhandled event: ClassBody | |
| 686 super.test_parseCompilationUnit_topLevelDeclaration(); | |
| 687 } | |
| 688 | |
| 689 @override | |
| 690 @failingTest | |
| 691 void test_parseCompilationUnit_typedefAsPrefix() { | 635 void test_parseCompilationUnit_typedefAsPrefix() { |
| 692 // TODO(paulberry): TODO(paulberry,ahe): Fasta parser doesn't appear to hand
le this case correctly. | 636 // TODO(paulberry): TODO(paulberry,ahe): Fasta parser doesn't appear to hand
le this case correctly. |
| 693 super.test_parseCompilationUnit_typedefAsPrefix(); | 637 super.test_parseCompilationUnit_typedefAsPrefix(); |
| 694 } | 638 } |
| 695 | 639 |
| 696 @override | 640 @override |
| 697 @failingTest | 641 @failingTest |
| 698 void test_parseCompilationUnitMember_abstractAsPrefix() { | 642 void test_parseCompilationUnitMember_abstractAsPrefix() { |
| 699 // TODO(paulberry): Unhandled event: Qualified | 643 // TODO(paulberry): Unhandled event: Qualified |
| 700 super.test_parseCompilationUnitMember_abstractAsPrefix(); | 644 super.test_parseCompilationUnitMember_abstractAsPrefix(); |
| 701 } | 645 } |
| 702 | 646 |
| 703 @override | 647 @override |
| 704 @failingTest | 648 @failingTest |
| 705 void test_parseCompilationUnitMember_class() { | |
| 706 // TODO(paulberry): Unhandled event: ClassBody | |
| 707 super.test_parseCompilationUnitMember_class(); | |
| 708 } | |
| 709 | |
| 710 @override | |
| 711 @failingTest | |
| 712 void test_parseCompilationUnitMember_classTypeAlias() { | 649 void test_parseCompilationUnitMember_classTypeAlias() { |
| 713 // TODO(paulberry): Unhandled event: TypeList | 650 // TODO(paulberry): Implement AstBuilder.handleModifier |
| 714 super.test_parseCompilationUnitMember_classTypeAlias(); | 651 super.test_parseCompilationUnitMember_classTypeAlias(); |
| 715 } | 652 } |
| 716 | 653 |
| 717 @override | 654 @override |
| 718 @failingTest | 655 @failingTest |
| 719 void test_parseCompilationUnitMember_constVariable() { | 656 void test_parseCompilationUnitMember_constVariable() { |
| 720 // TODO(paulberry): Unhandled event: FieldInitializer | 657 // TODO(paulberry): Unhandled event: FieldInitializer |
| 721 super.test_parseCompilationUnitMember_constVariable(); | 658 super.test_parseCompilationUnitMember_constVariable(); |
| 722 } | 659 } |
| 723 | 660 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 @override | 748 @override |
| 812 @failingTest | 749 @failingTest |
| 813 void test_parseCompilationUnitMember_setter_type() { | 750 void test_parseCompilationUnitMember_setter_type() { |
| 814 // TODO(paulberry): Unhandled event: VoidKeyword | 751 // TODO(paulberry): Unhandled event: VoidKeyword |
| 815 super.test_parseCompilationUnitMember_setter_type(); | 752 super.test_parseCompilationUnitMember_setter_type(); |
| 816 } | 753 } |
| 817 | 754 |
| 818 @override | 755 @override |
| 819 @failingTest | 756 @failingTest |
| 820 void test_parseCompilationUnitMember_typeAlias_abstract() { | 757 void test_parseCompilationUnitMember_typeAlias_abstract() { |
| 821 // TODO(paulberry): Unhandled event: TypeList | 758 // TODO(paulberry,ahe): Capture `=` token |
| 822 super.test_parseCompilationUnitMember_typeAlias_abstract(); | 759 super.test_parseCompilationUnitMember_typeAlias_abstract(); |
| 823 } | 760 } |
| 824 | 761 |
| 825 @override | 762 @override |
| 826 @failingTest | 763 @failingTest |
| 827 void test_parseCompilationUnitMember_typeAlias_generic() { | 764 void test_parseCompilationUnitMember_typeAlias_generic() { |
| 828 // TODO(paulberry): Unhandled event: TypeVariable | 765 // TODO(paulberry): Unhandled event: TypeVariable |
| 829 super.test_parseCompilationUnitMember_typeAlias_generic(); | 766 super.test_parseCompilationUnitMember_typeAlias_generic(); |
| 830 } | 767 } |
| 831 | 768 |
| 832 @override | 769 @override |
| 833 @failingTest | 770 @failingTest |
| 834 void test_parseCompilationUnitMember_typeAlias_implements() { | 771 void test_parseCompilationUnitMember_typeAlias_implements() { |
| 835 // TODO(paulberry): Unhandled event: TypeList | 772 // TODO(paulberry,ahe): Capture `=` token |
| 836 super.test_parseCompilationUnitMember_typeAlias_implements(); | 773 super.test_parseCompilationUnitMember_typeAlias_implements(); |
| 837 } | 774 } |
| 838 | 775 |
| 839 @override | 776 @override |
| 840 @failingTest | 777 @failingTest |
| 841 void test_parseCompilationUnitMember_typeAlias_noImplements() { | 778 void test_parseCompilationUnitMember_typeAlias_noImplements() { |
| 842 // TODO(paulberry): Unhandled event: TypeList | 779 // TODO(paulberry,ahe): Capture `=` token |
| 843 super.test_parseCompilationUnitMember_typeAlias_noImplements(); | 780 super.test_parseCompilationUnitMember_typeAlias_noImplements(); |
| 844 } | 781 } |
| 845 | 782 |
| 846 @override | 783 @override |
| 847 @failingTest | 784 @failingTest |
| 848 void test_parseCompilationUnitMember_typedef() { | 785 void test_parseCompilationUnitMember_typedef() { |
| 849 // TODO(paulberry): Unhandled event: FunctionTypeAlias | 786 // TODO(paulberry): Unhandled event: FunctionTypeAlias |
| 850 super.test_parseCompilationUnitMember_typedef(); | 787 super.test_parseCompilationUnitMember_typedef(); |
| 851 } | 788 } |
| 852 | 789 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 | 866 |
| 930 @override | 867 @override |
| 931 @failingTest | 868 @failingTest |
| 932 void test_parseDirectives_single() { | 869 void test_parseDirectives_single() { |
| 933 // TODO(paulberry): Unhandled event: LibraryName | 870 // TODO(paulberry): Unhandled event: LibraryName |
| 934 super.test_parseDirectives_single(); | 871 super.test_parseDirectives_single(); |
| 935 } | 872 } |
| 936 | 873 |
| 937 @override | 874 @override |
| 938 @failingTest | 875 @failingTest |
| 939 void test_parseDirectives_topLevelDeclaration() { | |
| 940 // TODO(paulberry): Unhandled event: ClassBody | |
| 941 super.test_parseDirectives_topLevelDeclaration(); | |
| 942 } | |
| 943 | |
| 944 @override | |
| 945 @failingTest | |
| 946 void test_parseEnumDeclaration_one() { | 876 void test_parseEnumDeclaration_one() { |
| 947 // TODO(paulberry): Unhandled event: Enum | 877 // TODO(paulberry): Unhandled event: Enum |
| 948 super.test_parseEnumDeclaration_one(); | 878 super.test_parseEnumDeclaration_one(); |
| 949 } | 879 } |
| 950 | 880 |
| 951 @override | 881 @override |
| 952 @failingTest | 882 @failingTest |
| 953 void test_parseEnumDeclaration_trailingComma() { | 883 void test_parseEnumDeclaration_trailingComma() { |
| 954 // TODO(paulberry): Unhandled event: Enum | 884 // TODO(paulberry): Unhandled event: Enum |
| 955 super.test_parseEnumDeclaration_trailingComma(); | 885 super.test_parseEnumDeclaration_trailingComma(); |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1090 super.test_parseTypeAlias_function_typeParameters(); | 1020 super.test_parseTypeAlias_function_typeParameters(); |
| 1091 } | 1021 } |
| 1092 | 1022 |
| 1093 @override | 1023 @override |
| 1094 @failingTest | 1024 @failingTest |
| 1095 void test_parseTypeAlias_function_voidReturnType() { | 1025 void test_parseTypeAlias_function_voidReturnType() { |
| 1096 // TODO(paulberry): Unhandled event: VoidKeyword | 1026 // TODO(paulberry): Unhandled event: VoidKeyword |
| 1097 super.test_parseTypeAlias_function_voidReturnType(); | 1027 super.test_parseTypeAlias_function_voidReturnType(); |
| 1098 } | 1028 } |
| 1099 } | 1029 } |
| OLD | NEW |