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 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/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
10 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; | 10 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 test_const_invalid_intLiteral() async { | 216 test_const_invalid_intLiteral() async { |
217 await super.test_const_invalid_intLiteral(); | 217 await super.test_const_invalid_intLiteral(); |
218 } | 218 } |
219 | 219 |
220 @failingTest | 220 @failingTest |
221 test_const_invalid_topLevel() async { | 221 test_const_invalid_topLevel() async { |
222 await super.test_const_invalid_topLevel(); | 222 await super.test_const_invalid_topLevel(); |
223 } | 223 } |
224 | 224 |
225 @failingTest | 225 @failingTest |
226 test_const_invokeConstructor_generic_named_imported() async { | |
227 await super.test_const_invokeConstructor_generic_named_imported(); | |
228 } | |
229 | |
230 @failingTest | |
231 test_const_invokeConstructor_generic_named_imported_withPrefix() async { | 226 test_const_invokeConstructor_generic_named_imported_withPrefix() async { |
232 await super | 227 await super |
233 .test_const_invokeConstructor_generic_named_imported_withPrefix(); | 228 .test_const_invokeConstructor_generic_named_imported_withPrefix(); |
234 } | 229 } |
235 | 230 |
236 @failingTest | 231 @failingTest |
237 test_const_invokeConstructor_generic_unnamed_imported() async { | |
238 await super.test_const_invokeConstructor_generic_unnamed_imported(); | |
239 } | |
240 | |
241 @failingTest | |
242 test_const_invokeConstructor_generic_unnamed_imported_withPrefix() async { | 232 test_const_invokeConstructor_generic_unnamed_imported_withPrefix() async { |
243 await super | 233 await super |
244 .test_const_invokeConstructor_generic_unnamed_imported_withPrefix(); | 234 .test_const_invokeConstructor_generic_unnamed_imported_withPrefix(); |
245 } | 235 } |
246 | 236 |
247 @failingTest | 237 @failingTest |
248 test_const_invokeConstructor_named_imported() async { | |
249 await super.test_const_invokeConstructor_named_imported(); | |
250 } | |
251 | |
252 @failingTest | |
253 test_const_invokeConstructor_named_imported_withPrefix() async { | 238 test_const_invokeConstructor_named_imported_withPrefix() async { |
254 await super.test_const_invokeConstructor_named_imported_withPrefix(); | 239 await super.test_const_invokeConstructor_named_imported_withPrefix(); |
255 } | 240 } |
256 | 241 |
257 @failingTest | 242 @failingTest |
258 test_const_invokeConstructor_named_unresolved() async { | 243 test_const_invokeConstructor_named_unresolved() async { |
259 await super.test_const_invokeConstructor_named_unresolved(); | 244 await super.test_const_invokeConstructor_named_unresolved(); |
260 } | 245 } |
261 | 246 |
262 @failingTest | 247 @failingTest |
(...skipping 15 matching lines...) Expand all Loading... |
278 test_const_invokeConstructor_named_unresolved5() async { | 263 test_const_invokeConstructor_named_unresolved5() async { |
279 await super.test_const_invokeConstructor_named_unresolved5(); | 264 await super.test_const_invokeConstructor_named_unresolved5(); |
280 } | 265 } |
281 | 266 |
282 @failingTest | 267 @failingTest |
283 test_const_invokeConstructor_named_unresolved6() async { | 268 test_const_invokeConstructor_named_unresolved6() async { |
284 await super.test_const_invokeConstructor_named_unresolved6(); | 269 await super.test_const_invokeConstructor_named_unresolved6(); |
285 } | 270 } |
286 | 271 |
287 @failingTest | 272 @failingTest |
288 test_const_invokeConstructor_unnamed_imported() async { | |
289 await super.test_const_invokeConstructor_unnamed_imported(); | |
290 } | |
291 | |
292 @failingTest | |
293 test_const_invokeConstructor_unnamed_imported_withPrefix() async { | 273 test_const_invokeConstructor_unnamed_imported_withPrefix() async { |
294 await super.test_const_invokeConstructor_unnamed_imported_withPrefix(); | 274 await super.test_const_invokeConstructor_unnamed_imported_withPrefix(); |
295 } | 275 } |
296 | 276 |
297 @failingTest | 277 @failingTest |
298 test_const_invokeConstructor_unnamed_unresolved() async { | 278 test_const_invokeConstructor_unnamed_unresolved() async { |
299 await super.test_const_invokeConstructor_unnamed_unresolved(); | 279 await super.test_const_invokeConstructor_unnamed_unresolved(); |
300 } | 280 } |
301 | 281 |
302 @failingTest | 282 @failingTest |
303 test_const_invokeConstructor_unnamed_unresolved2() async { | 283 test_const_invokeConstructor_unnamed_unresolved2() async { |
304 await super.test_const_invokeConstructor_unnamed_unresolved2(); | 284 await super.test_const_invokeConstructor_unnamed_unresolved2(); |
305 } | 285 } |
306 | 286 |
307 @failingTest | 287 @failingTest |
308 test_const_invokeConstructor_unnamed_unresolved3() async { | 288 test_const_invokeConstructor_unnamed_unresolved3() async { |
309 await super.test_const_invokeConstructor_unnamed_unresolved3(); | 289 await super.test_const_invokeConstructor_unnamed_unresolved3(); |
310 } | 290 } |
311 | 291 |
312 @failingTest | 292 @failingTest |
313 test_const_length_ofClassConstField_imported() async { | |
314 await super.test_const_length_ofClassConstField_imported(); | |
315 } | |
316 | |
317 @failingTest | |
318 test_const_length_ofClassConstField_imported_withPrefix() async { | 293 test_const_length_ofClassConstField_imported_withPrefix() async { |
319 await super.test_const_length_ofClassConstField_imported_withPrefix(); | 294 await super.test_const_length_ofClassConstField_imported_withPrefix(); |
320 } | 295 } |
321 | 296 |
322 @failingTest | 297 @failingTest |
323 test_const_length_ofTopLevelVariable_imported() async { | 298 test_const_length_ofTopLevelVariable_imported() async { |
324 await super.test_const_length_ofTopLevelVariable_imported(); | 299 await super.test_const_length_ofTopLevelVariable_imported(); |
325 } | 300 } |
326 | 301 |
327 @failingTest | 302 @failingTest |
328 test_const_length_ofTopLevelVariable_imported_withPrefix() async { | 303 test_const_length_ofTopLevelVariable_imported_withPrefix() async { |
329 await super.test_const_length_ofTopLevelVariable_imported_withPrefix(); | 304 await super.test_const_length_ofTopLevelVariable_imported_withPrefix(); |
330 } | 305 } |
331 | 306 |
332 @failingTest | 307 @failingTest |
333 test_const_length_staticMethod() async { | 308 test_const_length_staticMethod() async { |
334 await super.test_const_length_staticMethod(); | 309 await super.test_const_length_staticMethod(); |
335 } | 310 } |
336 | 311 |
337 @failingTest | 312 @failingTest |
338 test_const_reference_staticField_imported() async { | |
339 await super.test_const_reference_staticField_imported(); | |
340 } | |
341 | |
342 @failingTest | |
343 test_const_reference_staticField_imported_withPrefix() async { | 313 test_const_reference_staticField_imported_withPrefix() async { |
344 await super.test_const_reference_staticField_imported_withPrefix(); | 314 await super.test_const_reference_staticField_imported_withPrefix(); |
345 } | 315 } |
346 | 316 |
347 @failingTest | 317 @failingTest |
348 test_const_reference_staticMethod() async { | 318 test_const_reference_staticMethod() async { |
349 await super.test_const_reference_staticMethod(); | 319 await super.test_const_reference_staticMethod(); |
350 } | 320 } |
351 | 321 |
352 @failingTest | 322 @failingTest |
(...skipping 15 matching lines...) Expand all Loading... |
368 test_const_reference_topLevelFunction_imported() async { | 338 test_const_reference_topLevelFunction_imported() async { |
369 await super.test_const_reference_topLevelFunction_imported(); | 339 await super.test_const_reference_topLevelFunction_imported(); |
370 } | 340 } |
371 | 341 |
372 @failingTest | 342 @failingTest |
373 test_const_reference_topLevelFunction_imported_withPrefix() async { | 343 test_const_reference_topLevelFunction_imported_withPrefix() async { |
374 await super.test_const_reference_topLevelFunction_imported_withPrefix(); | 344 await super.test_const_reference_topLevelFunction_imported_withPrefix(); |
375 } | 345 } |
376 | 346 |
377 @failingTest | 347 @failingTest |
378 test_const_reference_topLevelVariable_imported() async { | |
379 await super.test_const_reference_topLevelVariable_imported(); | |
380 } | |
381 | |
382 @failingTest | |
383 test_const_reference_topLevelVariable_imported_withPrefix() async { | 348 test_const_reference_topLevelVariable_imported_withPrefix() async { |
384 await super.test_const_reference_topLevelVariable_imported_withPrefix(); | 349 await super.test_const_reference_topLevelVariable_imported_withPrefix(); |
385 } | 350 } |
386 | 351 |
387 @failingTest | 352 @failingTest |
388 test_const_reference_type() async { | 353 test_const_reference_type() async { |
389 await super.test_const_reference_type(); | 354 await super.test_const_reference_type(); |
390 } | 355 } |
391 | 356 |
392 @failingTest | 357 @failingTest |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 test_const_topLevel_super() async { | 398 test_const_topLevel_super() async { |
434 await super.test_const_topLevel_super(); | 399 await super.test_const_topLevel_super(); |
435 } | 400 } |
436 | 401 |
437 @failingTest | 402 @failingTest |
438 test_const_topLevel_this() async { | 403 test_const_topLevel_this() async { |
439 await super.test_const_topLevel_this(); | 404 await super.test_const_topLevel_this(); |
440 } | 405 } |
441 | 406 |
442 @failingTest | 407 @failingTest |
443 test_const_topLevel_typedList_imported() async { | |
444 await super.test_const_topLevel_typedList_imported(); | |
445 } | |
446 | |
447 @failingTest | |
448 test_const_topLevel_typedList_importedWithPrefix() async { | 408 test_const_topLevel_typedList_importedWithPrefix() async { |
449 await super.test_const_topLevel_typedList_importedWithPrefix(); | 409 await super.test_const_topLevel_typedList_importedWithPrefix(); |
450 } | 410 } |
451 | 411 |
452 @failingTest | 412 @failingTest |
453 test_constExpr_pushReference_enum_field() async { | 413 test_constExpr_pushReference_enum_field() async { |
454 await super.test_constExpr_pushReference_enum_field(); | 414 await super.test_constExpr_pushReference_enum_field(); |
455 } | 415 } |
456 | 416 |
457 @failingTest | 417 @failingTest |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 test_field_propagatedType_final_dep_inPart() async { | 759 test_field_propagatedType_final_dep_inPart() async { |
800 await super.test_field_propagatedType_final_dep_inPart(); | 760 await super.test_field_propagatedType_final_dep_inPart(); |
801 } | 761 } |
802 | 762 |
803 @failingTest | 763 @failingTest |
804 test_field_propagatedType_final_noDep_instance() async { | 764 test_field_propagatedType_final_noDep_instance() async { |
805 await super.test_field_propagatedType_final_noDep_instance(); | 765 await super.test_field_propagatedType_final_noDep_instance(); |
806 } | 766 } |
807 | 767 |
808 @failingTest | 768 @failingTest |
809 test_function_async() async { | |
810 await super.test_function_async(); | |
811 } | |
812 | |
813 @failingTest | |
814 test_function_asyncStar() async { | |
815 await super.test_function_asyncStar(); | |
816 } | |
817 | |
818 @failingTest | |
819 test_function_documented() async { | 769 test_function_documented() async { |
820 await super.test_function_documented(); | 770 await super.test_function_documented(); |
821 } | 771 } |
822 | 772 |
823 @failingTest | 773 @failingTest |
824 test_function_entry_point_in_export() async { | 774 test_function_entry_point_in_export() async { |
825 await super.test_function_entry_point_in_export(); | 775 await super.test_function_entry_point_in_export(); |
826 } | 776 } |
827 | 777 |
828 @failingTest | 778 @failingTest |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 test_import_prefixed() async { | 959 test_import_prefixed() async { |
1010 await super.test_import_prefixed(); | 960 await super.test_import_prefixed(); |
1011 } | 961 } |
1012 | 962 |
1013 @failingTest | 963 @failingTest |
1014 test_import_self() async { | 964 test_import_self() async { |
1015 await super.test_import_self(); | 965 await super.test_import_self(); |
1016 } | 966 } |
1017 | 967 |
1018 @failingTest | 968 @failingTest |
1019 test_import_short_absolute() async { | |
1020 await super.test_import_short_absolute(); | |
1021 } | |
1022 | |
1023 @failingTest | |
1024 test_import_show() async { | 969 test_import_show() async { |
1025 await super.test_import_show(); | 970 await super.test_import_show(); |
1026 } | 971 } |
1027 | 972 |
1028 @failingTest | 973 @failingTest |
1029 test_imports() async { | |
1030 await super.test_imports(); | |
1031 } | |
1032 | |
1033 @failingTest | |
1034 test_inferred_function_type_for_variable_in_generic_function() async { | 974 test_inferred_function_type_for_variable_in_generic_function() async { |
1035 await super.test_inferred_function_type_for_variable_in_generic_function(); | 975 await super.test_inferred_function_type_for_variable_in_generic_function(); |
1036 } | 976 } |
1037 | 977 |
1038 @failingTest | 978 @failingTest |
1039 test_inferred_function_type_in_generic_class_in_generic_method() async { | 979 test_inferred_function_type_in_generic_class_in_generic_method() async { |
1040 await super | 980 await super |
1041 .test_inferred_function_type_in_generic_class_in_generic_method(); | 981 .test_inferred_function_type_in_generic_class_in_generic_method(); |
1042 } | 982 } |
1043 | 983 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1261 test_main_typedef_via_export() async { | 1201 test_main_typedef_via_export() async { |
1262 await super.test_main_typedef_via_export(); | 1202 await super.test_main_typedef_via_export(); |
1263 } | 1203 } |
1264 | 1204 |
1265 @failingTest | 1205 @failingTest |
1266 test_main_variable_via_export() async { | 1206 test_main_variable_via_export() async { |
1267 await super.test_main_variable_via_export(); | 1207 await super.test_main_variable_via_export(); |
1268 } | 1208 } |
1269 | 1209 |
1270 @failingTest | 1210 @failingTest |
1271 test_member_function_async() async { | |
1272 await super.test_member_function_async(); | |
1273 } | |
1274 | |
1275 @failingTest | |
1276 test_member_function_asyncStar() async { | |
1277 await super.test_member_function_asyncStar(); | |
1278 } | |
1279 | |
1280 @failingTest | |
1281 test_metadata_classDeclaration() async { | 1211 test_metadata_classDeclaration() async { |
1282 await super.test_metadata_classDeclaration(); | 1212 await super.test_metadata_classDeclaration(); |
1283 } | 1213 } |
1284 | 1214 |
1285 @failingTest | 1215 @failingTest |
1286 test_metadata_classTypeAlias() async { | 1216 test_metadata_classTypeAlias() async { |
1287 await super.test_metadata_classTypeAlias(); | 1217 await super.test_metadata_classTypeAlias(); |
1288 } | 1218 } |
1289 | 1219 |
1290 @failingTest | 1220 @failingTest |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1461 test_method_type_parameter_in_generic_class() async { | 1391 test_method_type_parameter_in_generic_class() async { |
1462 await super.test_method_type_parameter_in_generic_class(); | 1392 await super.test_method_type_parameter_in_generic_class(); |
1463 } | 1393 } |
1464 | 1394 |
1465 @failingTest | 1395 @failingTest |
1466 test_method_type_parameter_with_function_typed_parameter() async { | 1396 test_method_type_parameter_with_function_typed_parameter() async { |
1467 await super.test_method_type_parameter_with_function_typed_parameter(); | 1397 await super.test_method_type_parameter_with_function_typed_parameter(); |
1468 } | 1398 } |
1469 | 1399 |
1470 @failingTest | 1400 @failingTest |
1471 test_nameConflict_exportedAndLocal() async { | |
1472 await super.test_nameConflict_exportedAndLocal(); | |
1473 } | |
1474 | |
1475 @failingTest | |
1476 test_nameConflict_exportedAndLocal_exported() async { | |
1477 await super.test_nameConflict_exportedAndLocal_exported(); | |
1478 } | |
1479 | |
1480 @failingTest | |
1481 test_nameConflict_exportedAndParted() async { | |
1482 await super.test_nameConflict_exportedAndParted(); | |
1483 } | |
1484 | |
1485 @failingTest | |
1486 test_nameConflict_importWithRelativeUri_exportWithAbsolute() async { | |
1487 await super.test_nameConflict_importWithRelativeUri_exportWithAbsolute(); | |
1488 } | |
1489 | |
1490 @failingTest | |
1491 test_nested_generic_functions_in_generic_class_with_function_typed_params() as
ync { | 1401 test_nested_generic_functions_in_generic_class_with_function_typed_params() as
ync { |
1492 await super | 1402 await super |
1493 .test_nested_generic_functions_in_generic_class_with_function_typed_para
ms(); | 1403 .test_nested_generic_functions_in_generic_class_with_function_typed_para
ms(); |
1494 } | 1404 } |
1495 | 1405 |
1496 @failingTest | 1406 @failingTest |
1497 test_nested_generic_functions_in_generic_class_with_local_variables() async { | 1407 test_nested_generic_functions_in_generic_class_with_local_variables() async { |
1498 await super | 1408 await super |
1499 .test_nested_generic_functions_in_generic_class_with_local_variables(); | 1409 .test_nested_generic_functions_in_generic_class_with_local_variables(); |
1500 } | 1410 } |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1678 test_type_reference_to_import_export_in_subdirs() async { | 1588 test_type_reference_to_import_export_in_subdirs() async { |
1679 await super.test_type_reference_to_import_export_in_subdirs(); | 1589 await super.test_type_reference_to_import_export_in_subdirs(); |
1680 } | 1590 } |
1681 | 1591 |
1682 @failingTest | 1592 @failingTest |
1683 test_type_reference_to_import_part() async { | 1593 test_type_reference_to_import_part() async { |
1684 await super.test_type_reference_to_import_part(); | 1594 await super.test_type_reference_to_import_part(); |
1685 } | 1595 } |
1686 | 1596 |
1687 @failingTest | 1597 @failingTest |
1688 test_type_reference_to_import_part2() async { | |
1689 await super.test_type_reference_to_import_part2(); | |
1690 } | |
1691 | |
1692 @failingTest | |
1693 test_type_reference_to_import_part_in_subdir() async { | 1598 test_type_reference_to_import_part_in_subdir() async { |
1694 await super.test_type_reference_to_import_part_in_subdir(); | 1599 await super.test_type_reference_to_import_part_in_subdir(); |
1695 } | 1600 } |
1696 | 1601 |
1697 @failingTest | 1602 @failingTest |
1698 test_type_reference_to_import_relative() async { | 1603 test_type_reference_to_import_relative() async { |
1699 await super.test_type_reference_to_import_relative(); | 1604 await super.test_type_reference_to_import_relative(); |
1700 } | 1605 } |
1701 | 1606 |
1702 @failingTest | 1607 @failingTest |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1923 test_variable_getterInPart_setterInLib() async { | 1828 test_variable_getterInPart_setterInLib() async { |
1924 await super.test_variable_getterInPart_setterInLib(); | 1829 await super.test_variable_getterInPart_setterInLib(); |
1925 } | 1830 } |
1926 | 1831 |
1927 @failingTest | 1832 @failingTest |
1928 test_variable_getterInPart_setterInPart() async { | 1833 test_variable_getterInPart_setterInPart() async { |
1929 await super.test_variable_getterInPart_setterInPart(); | 1834 await super.test_variable_getterInPart_setterInPart(); |
1930 } | 1835 } |
1931 | 1836 |
1932 @failingTest | 1837 @failingTest |
1933 test_variable_propagatedType_final_dep_inLib() async { | |
1934 await super.test_variable_propagatedType_final_dep_inLib(); | |
1935 } | |
1936 | |
1937 @failingTest | |
1938 test_variable_propagatedType_final_dep_inPart() async { | 1838 test_variable_propagatedType_final_dep_inPart() async { |
1939 await super.test_variable_propagatedType_final_dep_inPart(); | 1839 await super.test_variable_propagatedType_final_dep_inPart(); |
1940 } | 1840 } |
1941 | 1841 |
1942 @failingTest | 1842 @failingTest |
1943 test_variable_propagatedType_implicit_dep() async { | |
1944 await super.test_variable_propagatedType_implicit_dep(); | |
1945 } | |
1946 | |
1947 @failingTest | |
1948 test_variable_setterInPart_getterInPart() async { | 1843 test_variable_setterInPart_getterInPart() async { |
1949 await super.test_variable_setterInPart_getterInPart(); | 1844 await super.test_variable_setterInPart_getterInPart(); |
1950 } | 1845 } |
1951 } | 1846 } |
1952 | 1847 |
1953 /** | 1848 /** |
1954 * Builder of [Expression]s from [kernel.Expression]s. | 1849 * Builder of [Expression]s from [kernel.Expression]s. |
1955 */ | 1850 */ |
1956 class _ExprBuilder { | 1851 class _ExprBuilder { |
1957 final _KernelLibraryResynthesizerContextImpl _context; | 1852 final _KernelLibraryResynthesizerContextImpl _context; |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2259 return new _ExprBuilder(this).build(expression); | 2154 return new _ExprBuilder(this).build(expression); |
2260 } | 2155 } |
2261 | 2156 |
2262 @override | 2157 @override |
2263 InterfaceType getInterfaceType( | 2158 InterfaceType getInterfaceType( |
2264 ElementImpl context, kernel.Supertype kernelType) { | 2159 ElementImpl context, kernel.Supertype kernelType) { |
2265 return _getInterfaceType( | 2160 return _getInterfaceType( |
2266 kernelType.className.canonicalName, kernelType.typeArguments); | 2161 kernelType.className.canonicalName, kernelType.typeArguments); |
2267 } | 2162 } |
2268 | 2163 |
| 2164 @override |
| 2165 LibraryElement getLibrary(String uriStr) { |
| 2166 return _resynthesizer.getLibrary(uriStr); |
| 2167 } |
| 2168 |
2269 DartType getType(ElementImpl context, kernel.DartType kernelType) { | 2169 DartType getType(ElementImpl context, kernel.DartType kernelType) { |
2270 if (kernelType is kernel.DynamicType) return DynamicTypeImpl.instance; | 2170 if (kernelType is kernel.DynamicType) return DynamicTypeImpl.instance; |
2271 if (kernelType is kernel.VoidType) return VoidTypeImpl.instance; | 2171 if (kernelType is kernel.VoidType) return VoidTypeImpl.instance; |
2272 if (kernelType is kernel.InterfaceType) { | 2172 if (kernelType is kernel.InterfaceType) { |
2273 return _getInterfaceType( | 2173 return _getInterfaceType( |
2274 kernelType.className.canonicalName, kernelType.typeArguments); | 2174 kernelType.className.canonicalName, kernelType.typeArguments); |
2275 } | 2175 } |
2276 if (kernelType is kernel.TypeParameterType) { | 2176 if (kernelType is kernel.TypeParameterType) { |
2277 kernel.TypeParameter kTypeParameter = kernelType.parameter; | 2177 kernel.TypeParameter kTypeParameter = kernelType.parameter; |
2278 return _getTypeParameter(context, kTypeParameter).type; | 2178 return _getTypeParameter(context, kTypeParameter).type; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2422 } | 2322 } |
2423 | 2323 |
2424 /** | 2324 /** |
2425 * Get the [Source] object for the given [uri]. | 2325 * Get the [Source] object for the given [uri]. |
2426 */ | 2326 */ |
2427 Source _getSource(String uri) { | 2327 Source _getSource(String uri) { |
2428 return _sources.putIfAbsent( | 2328 return _sources.putIfAbsent( |
2429 uri, () => _analysisContext.sourceFactory.forUri(uri)); | 2329 uri, () => _analysisContext.sourceFactory.forUri(uri)); |
2430 } | 2330 } |
2431 } | 2331 } |
OLD | NEW |