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

Side by Side Diff: pkg/analyzer/test/generated/parser_fasta_test.dart

Issue 2691423007: Add AstBuilder support for import and export directives. (Closed)
Patch Set: Move comment Created 3 years, 10 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/front_end/lib/src/fasta/analyzer/ast_builder.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) 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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 @failingTest 525 @failingTest
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_import_as_show() {
536 // TODO(paulberry): Unhandled event: IdentifierList
537 super.test_import_as_show();
538 }
539
540 @override
541 @failingTest
542 void test_import_show_hide() {
543 // TODO(paulberry): Unhandled event: IdentifierList
544 super.test_import_show_hide();
545 }
546
547 @override
548 @failingTest
549 void test_parseClassDeclaration_abstract() { 535 void test_parseClassDeclaration_abstract() {
550 // TODO(paulberry): Unhandled event: ClassBody 536 // TODO(paulberry): Unhandled event: ClassBody
551 super.test_parseClassDeclaration_abstract(); 537 super.test_parseClassDeclaration_abstract();
552 } 538 }
553 539
554 @override 540 @override
555 @failingTest 541 @failingTest
556 void test_parseClassDeclaration_empty() { 542 void test_parseClassDeclaration_empty() {
557 // TODO(paulberry): Unhandled event: ClassBody 543 // TODO(paulberry): Unhandled event: ClassBody
558 super.test_parseClassDeclaration_empty(); 544 super.test_parseClassDeclaration_empty();
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 866
881 @override 867 @override
882 @failingTest 868 @failingTest
883 void test_parseCompilationUnitMember_variableSet() { 869 void test_parseCompilationUnitMember_variableSet() {
884 // TODO(paulberry): Unhandled event: FieldInitializer 870 // TODO(paulberry): Unhandled event: FieldInitializer
885 super.test_parseCompilationUnitMember_variableSet(); 871 super.test_parseCompilationUnitMember_variableSet();
886 } 872 }
887 873
888 @override 874 @override
889 @failingTest 875 @failingTest
890 void test_parseDirective_export() {
891 // TODO(paulberry): Unhandled event: Export
892 super.test_parseDirective_export();
893 }
894
895 @override
896 @failingTest
897 void test_parseDirective_import() {
898 // TODO(paulberry): Unhandled event: Import
899 super.test_parseDirective_import();
900 }
901
902 @override
903 @failingTest
904 void test_parseDirective_library() { 876 void test_parseDirective_library() {
905 // TODO(paulberry): Unhandled event: LibraryName 877 // TODO(paulberry): Unhandled event: LibraryName
906 super.test_parseDirective_library(); 878 super.test_parseDirective_library();
907 } 879 }
908 880
909 @override 881 @override
910 @failingTest 882 @failingTest
911 void test_parseDirective_part() { 883 void test_parseDirective_part() {
912 // TODO(paulberry): Unhandled event: Part 884 // TODO(paulberry): Unhandled event: Part
913 super.test_parseDirective_part(); 885 super.test_parseDirective_part();
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 @override 958 @override
987 @failingTest 959 @failingTest
988 void test_parseEnumDeclaration_two() { 960 void test_parseEnumDeclaration_two() {
989 // TODO(paulberry): Unhandled event: Enum 961 // TODO(paulberry): Unhandled event: Enum
990 super.test_parseEnumDeclaration_two(); 962 super.test_parseEnumDeclaration_two();
991 } 963 }
992 964
993 @override 965 @override
994 @failingTest 966 @failingTest
995 void test_parseExportDirective_configuration_multiple() { 967 void test_parseExportDirective_configuration_multiple() {
996 // TODO(paulberry): Unhandled event: Export 968 // TODO(paulberry): Implement endConditionalUri
997 super.test_parseExportDirective_configuration_multiple(); 969 super.test_parseExportDirective_configuration_multiple();
998 } 970 }
999 971
1000 @override 972 @override
1001 @failingTest 973 @failingTest
1002 void test_parseExportDirective_configuration_single() { 974 void test_parseExportDirective_configuration_single() {
1003 // TODO(paulberry): Unhandled event: Export 975 // TODO(paulberry): Implement endConditionalUri
1004 super.test_parseExportDirective_configuration_single(); 976 super.test_parseExportDirective_configuration_single();
1005 } 977 }
1006 978
1007 @override 979 @override
1008 @failingTest 980 @failingTest
1009 void test_parseExportDirective_hide() {
1010 // TODO(paulberry): Unhandled event: IdentifierList
1011 super.test_parseExportDirective_hide();
1012 }
1013
1014 @override
1015 @failingTest
1016 void test_parseExportDirective_hide_show() {
1017 // TODO(paulberry): Unhandled event: IdentifierList
1018 super.test_parseExportDirective_hide_show();
1019 }
1020
1021 @override
1022 @failingTest
1023 void test_parseExportDirective_noCombinator() {
1024 // TODO(paulberry): Unhandled event: Export
1025 super.test_parseExportDirective_noCombinator();
1026 }
1027
1028 @override
1029 @failingTest
1030 void test_parseExportDirective_show() {
1031 // TODO(paulberry): Unhandled event: IdentifierList
1032 super.test_parseExportDirective_show();
1033 }
1034
1035 @override
1036 @failingTest
1037 void test_parseExportDirective_show_hide() {
1038 // TODO(paulberry): Unhandled event: IdentifierList
1039 super.test_parseExportDirective_show_hide();
1040 }
1041
1042 @override
1043 @failingTest
1044 void test_parseFunctionDeclaration_function() { 981 void test_parseFunctionDeclaration_function() {
1045 // TODO(paulberry): handle doc comments 982 // TODO(paulberry): handle doc comments
1046 super.test_parseFunctionDeclaration_function(); 983 super.test_parseFunctionDeclaration_function();
1047 } 984 }
1048 985
1049 @override 986 @override
1050 @failingTest 987 @failingTest
1051 void test_parseFunctionDeclaration_functionWithTypeParameters() { 988 void test_parseFunctionDeclaration_functionWithTypeParameters() {
1052 // TODO(paulberry): Unhandled event: TypeVariable 989 // TODO(paulberry): Unhandled event: TypeVariable
1053 super.test_parseFunctionDeclaration_functionWithTypeParameters(); 990 super.test_parseFunctionDeclaration_functionWithTypeParameters();
(...skipping 17 matching lines...) Expand all
1071 @override 1008 @override
1072 @failingTest 1009 @failingTest
1073 void test_parseFunctionDeclaration_setter() { 1010 void test_parseFunctionDeclaration_setter() {
1074 // TODO(paulberry): handle doc comments 1011 // TODO(paulberry): handle doc comments
1075 super.test_parseFunctionDeclaration_setter(); 1012 super.test_parseFunctionDeclaration_setter();
1076 } 1013 }
1077 1014
1078 @override 1015 @override
1079 @failingTest 1016 @failingTest
1080 void test_parseImportDirective_configuration_multiple() { 1017 void test_parseImportDirective_configuration_multiple() {
1081 // TODO(paulberry): Unhandled event: Import 1018 // TODO(paulberry): Implement endConditionalUri
1082 super.test_parseImportDirective_configuration_multiple(); 1019 super.test_parseImportDirective_configuration_multiple();
1083 } 1020 }
1084 1021
1085 @override 1022 @override
1086 @failingTest 1023 @failingTest
1087 void test_parseImportDirective_configuration_single() { 1024 void test_parseImportDirective_configuration_single() {
1088 // TODO(paulberry): Unhandled event: Import 1025 // TODO(paulberry): Implement endConditionalUri
1089 super.test_parseImportDirective_configuration_single(); 1026 super.test_parseImportDirective_configuration_single();
1090 } 1027 }
1091 1028
1092 @override 1029 @override
1093 @failingTest 1030 @failingTest
1094 void test_parseImportDirective_deferred() {
1095 // TODO(paulberry): Unhandled event: Import
1096 super.test_parseImportDirective_deferred();
1097 }
1098
1099 @override
1100 @failingTest
1101 void test_parseImportDirective_hide() {
1102 // TODO(paulberry): Unhandled event: IdentifierList
1103 super.test_parseImportDirective_hide();
1104 }
1105
1106 @override
1107 @failingTest
1108 void test_parseImportDirective_noCombinator() {
1109 // TODO(paulberry): Unhandled event: Import
1110 super.test_parseImportDirective_noCombinator();
1111 }
1112
1113 @override
1114 @failingTest
1115 void test_parseImportDirective_prefix() {
1116 // TODO(paulberry): Unhandled event: Import
1117 super.test_parseImportDirective_prefix();
1118 }
1119
1120 @override
1121 @failingTest
1122 void test_parseImportDirective_prefix_hide_show() {
1123 // TODO(paulberry): Unhandled event: IdentifierList
1124 super.test_parseImportDirective_prefix_hide_show();
1125 }
1126
1127 @override
1128 @failingTest
1129 void test_parseImportDirective_prefix_show_hide() {
1130 // TODO(paulberry): Unhandled event: IdentifierList
1131 super.test_parseImportDirective_prefix_show_hide();
1132 }
1133
1134 @override
1135 @failingTest
1136 void test_parseImportDirective_show() {
1137 // TODO(paulberry): Unhandled event: IdentifierList
1138 super.test_parseImportDirective_show();
1139 }
1140
1141 @override
1142 @failingTest
1143 void test_parseLibraryDirective() { 1031 void test_parseLibraryDirective() {
1144 // TODO(paulberry): Unhandled event: LibraryName 1032 // TODO(paulberry): Unhandled event: LibraryName
1145 super.test_parseLibraryDirective(); 1033 super.test_parseLibraryDirective();
1146 } 1034 }
1147 1035
1148 @override 1036 @override
1149 @failingTest 1037 @failingTest
1150 void test_parsePartDirective() { 1038 void test_parsePartDirective() {
1151 // TODO(paulberry): Unhandled event: Part 1039 // TODO(paulberry): Unhandled event: Part
1152 super.test_parsePartDirective(); 1040 super.test_parsePartDirective();
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 super.test_parseTypeAlias_function_typeParameters(); 1090 super.test_parseTypeAlias_function_typeParameters();
1203 } 1091 }
1204 1092
1205 @override 1093 @override
1206 @failingTest 1094 @failingTest
1207 void test_parseTypeAlias_function_voidReturnType() { 1095 void test_parseTypeAlias_function_voidReturnType() {
1208 // TODO(paulberry): Unhandled event: VoidKeyword 1096 // TODO(paulberry): Unhandled event: VoidKeyword
1209 super.test_parseTypeAlias_function_voidReturnType(); 1097 super.test_parseTypeAlias_function_voidReturnType();
1210 } 1098 }
1211 } 1099 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698