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

Side by Side Diff: pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart

Issue 2977263002: Resynthesize class fields and accessors from Kernel. (Closed)
Patch Set: Created 3 years, 5 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 | « pkg/analyzer/test/src/summary/resynthesize_common.dart ('k') | no next file » | 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 library analyzer.test.src.summary.resynthesize_kernel_test; 5 library analyzer.test.src.summary.resynthesize_kernel_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analyzer/dart/element/type.dart'; 9 import 'package:analyzer/dart/element/type.dart';
10 import 'package:analyzer/file_system/file_system.dart'; 10 import 'package:analyzer/file_system/file_system.dart';
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 test_class_documented_withLeadingNotDocumentation() async { 219 test_class_documented_withLeadingNotDocumentation() async {
220 await super.test_class_documented_withLeadingNotDocumentation(); 220 await super.test_class_documented_withLeadingNotDocumentation();
221 } 221 }
222 222
223 @failingTest 223 @failingTest
224 test_class_field_const() async { 224 test_class_field_const() async {
225 await super.test_class_field_const(); 225 await super.test_class_field_const();
226 } 226 }
227 227
228 @failingTest 228 @failingTest
229 test_class_field_implicit_type() async {
230 await super.test_class_field_implicit_type();
231 }
232
233 @failingTest
234 test_class_field_static() async {
235 await super.test_class_field_static();
236 }
237
238 @failingTest
239 test_class_fields() async {
240 await super.test_class_fields();
241 }
242
243 @failingTest
244 test_class_getter_abstract() async {
245 await super.test_class_getter_abstract();
246 }
247
248 @failingTest
249 test_class_getter_external() async {
250 await super.test_class_getter_external();
251 }
252
253 @failingTest
254 test_class_getter_implicit_return_type() async {
255 await super.test_class_getter_implicit_return_type();
256 }
257
258 @failingTest
259 test_class_getter_static() async {
260 await super.test_class_getter_static();
261 }
262
263 @failingTest
264 test_class_getters() async {
265 await super.test_class_getters();
266 }
267
268 @failingTest
269 test_class_implicitField_getterFirst() async {
270 await super.test_class_implicitField_getterFirst();
271 }
272
273 @failingTest
274 test_class_implicitField_setterFirst() async {
275 await super.test_class_implicitField_setterFirst();
276 }
277
278 @failingTest
279 test_class_interfaces_unresolved() async { 229 test_class_interfaces_unresolved() async {
280 await super.test_class_interfaces_unresolved(); 230 await super.test_class_interfaces_unresolved();
281 } 231 }
282 232
283 @failingTest 233 @failingTest
284 test_class_mixins() async { 234 test_class_mixins() async {
285 await super.test_class_mixins(); 235 await super.test_class_mixins();
286 } 236 }
287 237
288 @failingTest 238 @failingTest
289 test_class_mixins_unresolved() async { 239 test_class_mixins_unresolved() async {
290 await super.test_class_mixins_unresolved(); 240 await super.test_class_mixins_unresolved();
291 } 241 }
292 242
293 @failingTest 243 @failingTest
294 test_class_setter_abstract() async {
295 await super.test_class_setter_abstract();
296 }
297
298 @failingTest
299 test_class_setter_external() async {
300 await super.test_class_setter_external();
301 }
302
303 @failingTest
304 test_class_setter_implicit_param_type() async {
305 await super.test_class_setter_implicit_param_type();
306 }
307
308 @failingTest
309 test_class_setter_implicit_return_type() async {
310 await super.test_class_setter_implicit_return_type();
311 }
312
313 @failingTest
314 test_class_setter_invalid_no_parameter() async {
315 await super.test_class_setter_invalid_no_parameter();
316 }
317
318 @failingTest
319 test_class_setter_static() async {
320 await super.test_class_setter_static();
321 }
322
323 @failingTest
324 test_class_setters() async {
325 await super.test_class_setters();
326 }
327
328 @failingTest
329 test_class_supertype_unresolved() async { 244 test_class_supertype_unresolved() async {
330 await super.test_class_supertype_unresolved(); 245 await super.test_class_supertype_unresolved();
331 } 246 }
332 247
333 @failingTest 248 @failingTest
334 test_class_type_parameters_bound() async { 249 test_class_type_parameters_bound() async {
335 await super.test_class_type_parameters_bound(); 250 await super.test_class_type_parameters_bound();
336 } 251 }
337 252
338 @failingTest 253 @failingTest
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 test_constructor_redirected_factory_named_prefixed() async { 738 test_constructor_redirected_factory_named_prefixed() async {
824 await super.test_constructor_redirected_factory_named_prefixed(); 739 await super.test_constructor_redirected_factory_named_prefixed();
825 } 740 }
826 741
827 @failingTest 742 @failingTest
828 test_constructor_redirected_factory_named_prefixed_generic() async { 743 test_constructor_redirected_factory_named_prefixed_generic() async {
829 await super.test_constructor_redirected_factory_named_prefixed_generic(); 744 await super.test_constructor_redirected_factory_named_prefixed_generic();
830 } 745 }
831 746
832 @failingTest 747 @failingTest
748 test_constructor_redirected_factory_named_unresolved_class() async {
749 await super.test_constructor_redirected_factory_named_unresolved_class();
750 }
751
752 @failingTest
753 test_constructor_redirected_factory_named_unresolved_constructor() async {
754 await super
755 .test_constructor_redirected_factory_named_unresolved_constructor();
756 }
757
758 @failingTest
833 test_constructor_redirected_factory_unnamed() async { 759 test_constructor_redirected_factory_unnamed() async {
834 await super.test_constructor_redirected_factory_unnamed(); 760 await super.test_constructor_redirected_factory_unnamed();
835 } 761 }
836 762
837 @failingTest 763 @failingTest
838 test_constructor_redirected_factory_unnamed_generic() async { 764 test_constructor_redirected_factory_unnamed_generic() async {
839 await super.test_constructor_redirected_factory_unnamed_generic(); 765 await super.test_constructor_redirected_factory_unnamed_generic();
840 } 766 }
841 767
842 @failingTest 768 @failingTest
(...skipping 10 matching lines...) Expand all
853 test_constructor_redirected_factory_unnamed_prefixed() async { 779 test_constructor_redirected_factory_unnamed_prefixed() async {
854 await super.test_constructor_redirected_factory_unnamed_prefixed(); 780 await super.test_constructor_redirected_factory_unnamed_prefixed();
855 } 781 }
856 782
857 @failingTest 783 @failingTest
858 test_constructor_redirected_factory_unnamed_prefixed_generic() async { 784 test_constructor_redirected_factory_unnamed_prefixed_generic() async {
859 await super.test_constructor_redirected_factory_unnamed_prefixed_generic(); 785 await super.test_constructor_redirected_factory_unnamed_prefixed_generic();
860 } 786 }
861 787
862 @failingTest 788 @failingTest
789 test_constructor_redirected_factory_unnamed_unresolved() async {
790 await super.test_constructor_redirected_factory_unnamed_unresolved();
791 }
792
793 @failingTest
863 test_constructor_redirected_thisInvocation_named() async { 794 test_constructor_redirected_thisInvocation_named() async {
864 await super.test_constructor_redirected_thisInvocation_named(); 795 await super.test_constructor_redirected_thisInvocation_named();
865 } 796 }
866 797
867 @failingTest 798 @failingTest
868 test_constructor_redirected_thisInvocation_named_generic() async { 799 test_constructor_redirected_thisInvocation_named_generic() async {
869 await super.test_constructor_redirected_thisInvocation_named_generic(); 800 await super.test_constructor_redirected_thisInvocation_named_generic();
870 } 801 }
871 802
872 @failingTest 803 @failingTest
873 test_constructor_redirected_thisInvocation_unnamed() async { 804 test_constructor_redirected_thisInvocation_unnamed() async {
874 await super.test_constructor_redirected_thisInvocation_unnamed(); 805 await super.test_constructor_redirected_thisInvocation_unnamed();
875 } 806 }
876 807
877 @failingTest 808 @failingTest
878 test_constructor_redirected_thisInvocation_unnamed_generic() async { 809 test_constructor_redirected_thisInvocation_unnamed_generic() async {
879 await super.test_constructor_redirected_thisInvocation_unnamed_generic(); 810 await super.test_constructor_redirected_thisInvocation_unnamed_generic();
880 } 811 }
881 812
882 @failingTest 813 @failingTest
883 test_constructor_withCycles_const() async { 814 test_constructor_withCycles_const() async {
884 await super.test_constructor_withCycles_const(); 815 await super.test_constructor_withCycles_const();
885 } 816 }
886 817
887 @failingTest 818 @failingTest
888 test_constructor_withCycles_nonConst() async {
889 await super.test_constructor_withCycles_nonConst();
890 }
891
892 @failingTest
893 test_defaultValue_refersToGenericClass_constructor() async { 819 test_defaultValue_refersToGenericClass_constructor() async {
894 await super.test_defaultValue_refersToGenericClass_constructor(); 820 await super.test_defaultValue_refersToGenericClass_constructor();
895 } 821 }
896 822
897 @failingTest 823 @failingTest
898 test_defaultValue_refersToGenericClass_constructor2() async { 824 test_defaultValue_refersToGenericClass_constructor2() async {
899 await super.test_defaultValue_refersToGenericClass_constructor2(); 825 await super.test_defaultValue_refersToGenericClass_constructor2();
900 } 826 }
901 827
902 @failingTest 828 @failingTest
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 test_field_documented() async { 979 test_field_documented() async {
1054 await super.test_field_documented(); 980 await super.test_field_documented();
1055 } 981 }
1056 982
1057 @failingTest 983 @failingTest
1058 test_field_formal_param_inferred_type_implicit() async { 984 test_field_formal_param_inferred_type_implicit() async {
1059 await super.test_field_formal_param_inferred_type_implicit(); 985 await super.test_field_formal_param_inferred_type_implicit();
1060 } 986 }
1061 987
1062 @failingTest 988 @failingTest
1063 test_field_inferred_type_nonStatic_explicit_initialized() async {
1064 await super.test_field_inferred_type_nonStatic_explicit_initialized();
1065 }
1066
1067 @failingTest
1068 test_field_inferred_type_nonStatic_implicit_initialized() async {
1069 await super.test_field_inferred_type_nonStatic_implicit_initialized();
1070 }
1071
1072 @failingTest
1073 test_field_inferred_type_nonStatic_implicit_uninitialized() async {
1074 await super.test_field_inferred_type_nonStatic_implicit_uninitialized();
1075 }
1076
1077 @failingTest
1078 test_field_inferred_type_static_implicit_initialized() async {
1079 await super.test_field_inferred_type_static_implicit_initialized();
1080 }
1081
1082 @failingTest
1083 test_field_propagatedType_const_noDep() async { 989 test_field_propagatedType_const_noDep() async {
1084 await super.test_field_propagatedType_const_noDep(); 990 await super.test_field_propagatedType_const_noDep();
1085 } 991 }
1086 992
1087 @failingTest 993 @failingTest
1088 test_field_propagatedType_final_dep_inLib() async { 994 test_field_propagatedType_final_dep_inLib() async {
1089 await super.test_field_propagatedType_final_dep_inLib(); 995 await super.test_field_propagatedType_final_dep_inLib();
1090 } 996 }
1091 997
1092 @failingTest 998 @failingTest
1093 test_field_propagatedType_final_dep_inPart() async { 999 test_field_propagatedType_final_dep_inPart() async {
1094 await super.test_field_propagatedType_final_dep_inPart(); 1000 await super.test_field_propagatedType_final_dep_inPart();
1095 } 1001 }
1096 1002
1097 @failingTest 1003 @failingTest
1098 test_field_propagatedType_final_noDep_instance() async { 1004 test_field_propagatedType_final_noDep_instance() async {
1099 await super.test_field_propagatedType_final_noDep_instance(); 1005 await super.test_field_propagatedType_final_noDep_instance();
1100 } 1006 }
1101 1007
1102 @failingTest 1008 @failingTest
1103 test_field_propagatedType_final_noDep_static() async {
1104 await super.test_field_propagatedType_final_noDep_static();
1105 }
1106
1107 @failingTest
1108 test_field_static_final_untyped() async {
1109 await super.test_field_static_final_untyped();
1110 }
1111
1112 @failingTest
1113 test_field_untyped() async {
1114 await super.test_field_untyped();
1115 }
1116
1117 @failingTest
1118 test_function_async() async { 1009 test_function_async() async {
1119 await super.test_function_async(); 1010 await super.test_function_async();
1120 } 1011 }
1121 1012
1122 @failingTest 1013 @failingTest
1123 test_function_asyncStar() async { 1014 test_function_asyncStar() async {
1124 await super.test_function_asyncStar(); 1015 await super.test_function_asyncStar();
1125 } 1016 }
1126 1017
1127 @failingTest 1018 @failingTest
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1263 test_getter_documented() async { 1154 test_getter_documented() async {
1264 await super.test_getter_documented(); 1155 await super.test_getter_documented();
1265 } 1156 }
1266 1157
1267 @failingTest 1158 @failingTest
1268 test_getter_external() async { 1159 test_getter_external() async {
1269 await super.test_getter_external(); 1160 await super.test_getter_external();
1270 } 1161 }
1271 1162
1272 @failingTest 1163 @failingTest
1273 test_getter_inferred_type_nonStatic_implicit_return() async {
1274 await super.test_getter_inferred_type_nonStatic_implicit_return();
1275 }
1276
1277 @failingTest
1278 test_getters() async { 1164 test_getters() async {
1279 await super.test_getters(); 1165 await super.test_getters();
1280 } 1166 }
1281 1167
1282 @failingTest 1168 @failingTest
1283 test_implicitTopLevelVariable_getterFirst() async { 1169 test_implicitTopLevelVariable_getterFirst() async {
1284 await super.test_implicitTopLevelVariable_getterFirst(); 1170 await super.test_implicitTopLevelVariable_getterFirst();
1285 } 1171 }
1286 1172
1287 @failingTest 1173 @failingTest
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 test_imports() async { 1229 test_imports() async {
1344 await super.test_imports(); 1230 await super.test_imports();
1345 } 1231 }
1346 1232
1347 @failingTest 1233 @failingTest
1348 test_inferred_function_type_for_variable_in_generic_function() async { 1234 test_inferred_function_type_for_variable_in_generic_function() async {
1349 await super.test_inferred_function_type_for_variable_in_generic_function(); 1235 await super.test_inferred_function_type_for_variable_in_generic_function();
1350 } 1236 }
1351 1237
1352 @failingTest 1238 @failingTest
1353 test_inferred_function_type_in_generic_class_constructor() async {
1354 await super.test_inferred_function_type_in_generic_class_constructor();
1355 }
1356
1357 @failingTest
1358 test_inferred_function_type_in_generic_class_getter() async {
1359 await super.test_inferred_function_type_in_generic_class_getter();
1360 }
1361
1362 @failingTest
1363 test_inferred_function_type_in_generic_class_in_generic_method() async { 1239 test_inferred_function_type_in_generic_class_in_generic_method() async {
1364 await super 1240 await super
1365 .test_inferred_function_type_in_generic_class_in_generic_method(); 1241 .test_inferred_function_type_in_generic_class_in_generic_method();
1366 } 1242 }
1367 1243
1368 @failingTest 1244 @failingTest
1369 test_inferred_function_type_in_generic_class_setter() async {
1370 await super.test_inferred_function_type_in_generic_class_setter();
1371 }
1372
1373 @failingTest
1374 test_inferred_type_is_typedef() async { 1245 test_inferred_type_is_typedef() async {
1375 await super.test_inferred_type_is_typedef(); 1246 await super.test_inferred_type_is_typedef();
1376 } 1247 }
1377 1248
1378 @failingTest 1249 @failingTest
1379 test_inferred_type_refers_to_bound_type_param() async { 1250 test_inferred_type_refers_to_bound_type_param() async {
1380 await super.test_inferred_type_refers_to_bound_type_param(); 1251 await super.test_inferred_type_refers_to_bound_type_param();
1381 } 1252 }
1382 1253
1383 @failingTest 1254 @failingTest
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1425 await super.test_inferredType_definedInSdkLibraryPart(); 1296 await super.test_inferredType_definedInSdkLibraryPart();
1426 } 1297 }
1427 1298
1428 @failingTest 1299 @failingTest
1429 test_inferredType_usesSyntheticFunctionType_functionTypedParam() async { 1300 test_inferredType_usesSyntheticFunctionType_functionTypedParam() async {
1430 await super 1301 await super
1431 .test_inferredType_usesSyntheticFunctionType_functionTypedParam(); 1302 .test_inferredType_usesSyntheticFunctionType_functionTypedParam();
1432 } 1303 }
1433 1304
1434 @failingTest 1305 @failingTest
1435 test_inheritance_errors() async {
1436 await super.test_inheritance_errors();
1437 }
1438
1439 @failingTest
1440 test_initializer_executable_with_return_type_from_closure() async { 1306 test_initializer_executable_with_return_type_from_closure() async {
1441 await super.test_initializer_executable_with_return_type_from_closure(); 1307 await super.test_initializer_executable_with_return_type_from_closure();
1442 } 1308 }
1443 1309
1444 @failingTest 1310 @failingTest
1445 test_initializer_executable_with_return_type_from_closure_await_dynamic() asyn c { 1311 test_initializer_executable_with_return_type_from_closure_await_dynamic() asyn c {
1446 await super 1312 await super
1447 .test_initializer_executable_with_return_type_from_closure_await_dynamic (); 1313 .test_initializer_executable_with_return_type_from_closure_await_dynamic ();
1448 } 1314 }
1449 1315
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 test_setter_documented() async { 1798 test_setter_documented() async {
1933 await super.test_setter_documented(); 1799 await super.test_setter_documented();
1934 } 1800 }
1935 1801
1936 @failingTest 1802 @failingTest
1937 test_setter_external() async { 1803 test_setter_external() async {
1938 await super.test_setter_external(); 1804 await super.test_setter_external();
1939 } 1805 }
1940 1806
1941 @failingTest 1807 @failingTest
1942 test_setter_inferred_type_nonStatic_implicit_param() async {
1943 await super.test_setter_inferred_type_nonStatic_implicit_param();
1944 }
1945
1946 @failingTest
1947 test_setter_inferred_type_static_implicit_return() async { 1808 test_setter_inferred_type_static_implicit_return() async {
1948 await super.test_setter_inferred_type_static_implicit_return(); 1809 await super.test_setter_inferred_type_static_implicit_return();
1949 } 1810 }
1950 1811
1951 @failingTest 1812 @failingTest
1952 test_setter_inferred_type_top_level_implicit_return() async { 1813 test_setter_inferred_type_top_level_implicit_return() async {
1953 await super.test_setter_inferred_type_top_level_implicit_return(); 1814 await super.test_setter_inferred_type_top_level_implicit_return();
1954 } 1815 }
1955 1816
1956 @failingTest 1817 @failingTest
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
2431 LibraryElementImpl getLibrary(String uriStr) { 2292 LibraryElementImpl getLibrary(String uriStr) {
2432 return _libraryMap.putIfAbsent(uriStr, () { 2293 return _libraryMap.putIfAbsent(uriStr, () {
2433 var kernel = _kernelMap[uriStr]; 2294 var kernel = _kernelMap[uriStr];
2434 if (kernel == null) return null; 2295 if (kernel == null) return null;
2435 var libraryContext = 2296 var libraryContext =
2436 new _KernelLibraryResynthesizerContextImpl(this, kernel); 2297 new _KernelLibraryResynthesizerContextImpl(this, kernel);
2437 return new LibraryElementImpl.forKernel(_analysisContext, libraryContext); 2298 return new LibraryElementImpl.forKernel(_analysisContext, libraryContext);
2438 }); 2299 });
2439 } 2300 }
2440 } 2301 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_common.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698