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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 | 546 |
547 @override | 547 @override |
548 @failingTest | 548 @failingTest |
549 void test_parseClassDeclaration_typeAlias_withB() { | 549 void test_parseClassDeclaration_typeAlias_withB() { |
550 // TODO(paulberry,ahe): capture `with` token. | 550 // TODO(paulberry,ahe): capture `with` token. |
551 super.test_parseClassDeclaration_typeAlias_withB(); | 551 super.test_parseClassDeclaration_typeAlias_withB(); |
552 } | 552 } |
553 | 553 |
554 @override | 554 @override |
555 @failingTest | 555 @failingTest |
556 void test_parseClassDeclaration_typeParameters() { | |
557 // TODO(paulberry): Unhandled event: TypeVariable | |
558 super.test_parseClassDeclaration_typeParameters(); | |
559 } | |
560 | |
561 @override | |
562 @failingTest | |
563 void test_parseCompilationUnit_abstractAsPrefix_parameterized() { | 556 void test_parseCompilationUnit_abstractAsPrefix_parameterized() { |
564 // TODO(paulberry): Unhandled event: Qualified | 557 // TODO(paulberry): Unhandled event: Qualified |
565 super.test_parseCompilationUnit_abstractAsPrefix_parameterized(); | 558 super.test_parseCompilationUnit_abstractAsPrefix_parameterized(); |
566 } | 559 } |
567 | 560 |
568 @override | 561 @override |
569 @failingTest | 562 @failingTest |
570 void test_parseCompilationUnit_builtIn_asFunctionName() { | 563 void test_parseCompilationUnit_builtIn_asFunctionName() { |
571 // TODO(paulberry,ahe): Fasta's parser is confused when one of the built-in | 564 // TODO(paulberry,ahe): Fasta's parser is confused when one of the built-in |
572 // identifiers `export`, `import`, `library`, `part`, or `typedef` appears | 565 // identifiers `export`, `import`, `library`, `part`, or `typedef` appears |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 | 632 |
640 @override | 633 @override |
641 @failingTest | 634 @failingTest |
642 void test_parseCompilationUnitMember_function_external_type() { | 635 void test_parseCompilationUnitMember_function_external_type() { |
643 // TODO(paulberry): Implement AstBuilder.handleModifier | 636 // TODO(paulberry): Implement AstBuilder.handleModifier |
644 super.test_parseCompilationUnitMember_function_external_type(); | 637 super.test_parseCompilationUnitMember_function_external_type(); |
645 } | 638 } |
646 | 639 |
647 @override | 640 @override |
648 @failingTest | 641 @failingTest |
649 void test_parseCompilationUnitMember_function_generic_noReturnType() { | |
650 // TODO(paulberry): Unhandled event: TypeVariable | |
651 super.test_parseCompilationUnitMember_function_generic_noReturnType(); | |
652 } | |
653 | |
654 @override | |
655 @failingTest | |
656 void | 642 void |
657 test_parseCompilationUnitMember_function_generic_noReturnType_annotated()
{ | 643 test_parseCompilationUnitMember_function_generic_noReturnType_annotated()
{ |
658 // TODO(paulberry,ahe): Fasta doesn't appear to support annotated type | 644 // TODO(paulberry,ahe): Fasta doesn't appear to support annotated type |
659 // parameters. | 645 // parameters. |
660 super | 646 super |
661 .test_parseCompilationUnitMember_function_generic_noReturnType_annotated
(); | 647 .test_parseCompilationUnitMember_function_generic_noReturnType_annotated
(); |
662 } | 648 } |
663 | 649 |
664 @override | 650 @override |
665 @failingTest | 651 @failingTest |
666 void test_parseCompilationUnitMember_function_generic_returnType() { | |
667 // TODO(paulberry): Unhandled event: TypeVariable | |
668 super.test_parseCompilationUnitMember_function_generic_returnType(); | |
669 } | |
670 | |
671 @override | |
672 @failingTest | |
673 void test_parseCompilationUnitMember_function_generic_void() { | 652 void test_parseCompilationUnitMember_function_generic_void() { |
674 // TODO(paulberry): Unhandled event: VoidKeyword | 653 // TODO(paulberry): Unhandled event: VoidKeyword |
675 super.test_parseCompilationUnitMember_function_generic_void(); | 654 super.test_parseCompilationUnitMember_function_generic_void(); |
676 } | 655 } |
677 | 656 |
678 @override | 657 @override |
679 @failingTest | 658 @failingTest |
680 void test_parseCompilationUnitMember_function_void() { | 659 void test_parseCompilationUnitMember_function_void() { |
681 // TODO(paulberry): Unhandled event: VoidKeyword | 660 // TODO(paulberry): Unhandled event: VoidKeyword |
682 super.test_parseCompilationUnitMember_function_void(); | 661 super.test_parseCompilationUnitMember_function_void(); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 @override | 699 @override |
721 @failingTest | 700 @failingTest |
722 void test_parseCompilationUnitMember_typeAlias_abstract() { | 701 void test_parseCompilationUnitMember_typeAlias_abstract() { |
723 // TODO(paulberry,ahe): Capture `=` token | 702 // TODO(paulberry,ahe): Capture `=` token |
724 super.test_parseCompilationUnitMember_typeAlias_abstract(); | 703 super.test_parseCompilationUnitMember_typeAlias_abstract(); |
725 } | 704 } |
726 | 705 |
727 @override | 706 @override |
728 @failingTest | 707 @failingTest |
729 void test_parseCompilationUnitMember_typeAlias_generic() { | 708 void test_parseCompilationUnitMember_typeAlias_generic() { |
730 // TODO(paulberry): Unhandled event: TypeVariable | 709 // TODO(paulberry): Unhandled event: TypeArguments |
731 super.test_parseCompilationUnitMember_typeAlias_generic(); | 710 super.test_parseCompilationUnitMember_typeAlias_generic(); |
732 } | 711 } |
733 | 712 |
734 @override | 713 @override |
735 @failingTest | 714 @failingTest |
736 void test_parseCompilationUnitMember_typeAlias_implements() { | 715 void test_parseCompilationUnitMember_typeAlias_implements() { |
737 // TODO(paulberry,ahe): Capture `=` token | 716 // TODO(paulberry,ahe): Capture `=` token |
738 super.test_parseCompilationUnitMember_typeAlias_implements(); | 717 super.test_parseCompilationUnitMember_typeAlias_implements(); |
739 } | 718 } |
740 | 719 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 @override | 800 @override |
822 @failingTest | 801 @failingTest |
823 void test_parseFunctionDeclaration_function() { | 802 void test_parseFunctionDeclaration_function() { |
824 // TODO(paulberry): handle doc comments | 803 // TODO(paulberry): handle doc comments |
825 super.test_parseFunctionDeclaration_function(); | 804 super.test_parseFunctionDeclaration_function(); |
826 } | 805 } |
827 | 806 |
828 @override | 807 @override |
829 @failingTest | 808 @failingTest |
830 void test_parseFunctionDeclaration_functionWithTypeParameters() { | 809 void test_parseFunctionDeclaration_functionWithTypeParameters() { |
831 // TODO(paulberry): Unhandled event: TypeVariable | 810 // TODO(paulberry): handle doc comments |
832 super.test_parseFunctionDeclaration_functionWithTypeParameters(); | 811 super.test_parseFunctionDeclaration_functionWithTypeParameters(); |
833 } | 812 } |
834 | 813 |
835 @override | 814 @override |
836 @failingTest | 815 @failingTest |
837 void test_parseFunctionDeclaration_functionWithTypeParameters_comment() { | 816 void test_parseFunctionDeclaration_functionWithTypeParameters_comment() { |
838 // TODO(paulberry,ahe): generic method comment syntax is not supported by | 817 // TODO(paulberry,ahe): generic method comment syntax is not supported by |
839 // Fasta. | 818 // Fasta. |
840 super.test_parseFunctionDeclaration_functionWithTypeParameters_comment(); | 819 super.test_parseFunctionDeclaration_functionWithTypeParameters_comment(); |
841 } | 820 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
910 @override | 889 @override |
911 @failingTest | 890 @failingTest |
912 void test_parseTypeAlias_function_parameters() { | 891 void test_parseTypeAlias_function_parameters() { |
913 // TODO(paulberry): Unhandled event: FunctionTypeAlias | 892 // TODO(paulberry): Unhandled event: FunctionTypeAlias |
914 super.test_parseTypeAlias_function_parameters(); | 893 super.test_parseTypeAlias_function_parameters(); |
915 } | 894 } |
916 | 895 |
917 @override | 896 @override |
918 @failingTest | 897 @failingTest |
919 void test_parseTypeAlias_function_typeParameters() { | 898 void test_parseTypeAlias_function_typeParameters() { |
920 // TODO(paulberry): Unhandled event: TypeVariable | 899 // TODO(paulberry): Unhandled event: FunctionTypeAlias |
921 super.test_parseTypeAlias_function_typeParameters(); | 900 super.test_parseTypeAlias_function_typeParameters(); |
922 } | 901 } |
923 | 902 |
924 @override | 903 @override |
925 @failingTest | 904 @failingTest |
926 void test_parseTypeAlias_function_voidReturnType() { | 905 void test_parseTypeAlias_function_voidReturnType() { |
927 // TODO(paulberry): Unhandled event: VoidKeyword | 906 // TODO(paulberry): Unhandled event: VoidKeyword |
928 super.test_parseTypeAlias_function_voidReturnType(); | 907 super.test_parseTypeAlias_function_voidReturnType(); |
929 } | 908 } |
930 | 909 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
995 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() { | 974 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() { |
996 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType(); | 975 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType(); |
997 } | 976 } |
998 | 977 |
999 @override | 978 @override |
1000 @failingTest | 979 @failingTest |
1001 void test_parseTypeAlias_genericFunction_voidReturnType() { | 980 void test_parseTypeAlias_genericFunction_voidReturnType() { |
1002 super.test_parseTypeAlias_genericFunction_voidReturnType(); | 981 super.test_parseTypeAlias_genericFunction_voidReturnType(); |
1003 } | 982 } |
1004 } | 983 } |
OLD | NEW |