dart-sdk/tests/lib/mirrors
Alexander Markov fe2ea6a55f [vm] Add minimal support for mirrors of extension type members
Support extension type members in dart:mirrors similarly to extensions.
Add MethodMirror.isExtensionTypeMember and VariableMirror.isExtensionTypeMember.

TEST=tests/lib/mirrors/method_mirror_extension_test.dart
Fixes https://github.com/dart-lang/sdk/issues/54266

CoreLibraryReviewExempt: VM-only dart:mirrors API change
Change-Id: I9c1c22118ee52e98d5013c881eb6ad5686df656e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/340284
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2023-12-07 21:48:50 +00:00
..
abstract_class_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
abstract_test.dart
accessor_cache_overflow_test.dart Reland "[vm] Fix some further mirror breaks with frontend NNBD checks enabled." 2020-03-13 17:11:52 +00:00
apply3_test.dart
array_tracing2_test.dart
array_tracing3_test.dart
array_tracing_test.dart
bad_argument_types_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
basic_types_in_dart_core_test.dart [vm] Update some return types of mirror natives to be explicitly nullable. 2020-03-11 22:47:30 +00:00
circular_factory_redirection_test.dart
class_declarations_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
class_mirror_location_other.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
class_mirror_location_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
class_mirror_type_variables_data.dart
class_mirror_type_variables_expect.dart Reland "[VM/runtime] Refactor the representation of type parameters in the VM." 2021-05-05 23:43:14 +00:00
class_mirror_type_variables_test.dart
closure_mirror_import1.dart
closure_mirror_import2.dart
closures_test.dart
closurization_equivalence_test.dart
const_evaluation_test.dart
constructor_kinds_test.dart
constructor_optional_args_test.dart
constructor_private_name_test.dart
constructors_test.dart [vm] Further mirrors and test fixes. 2020-02-10 20:58:05 +00:00
dart2js_mirrors_test.dart
declarations_model.dart pre-emptively fix some tests for class modifiers flag flip 2023-03-01 20:11:25 +00:00
declarations_model_easier.dart
declarations_type_test.dart
deferred_constraints_constants_lib.dart
deferred_constraints_constants_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
deferred_mirrors_metadata_lib.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
deferred_mirrors_metadata_test.dart Revert "[vm] Fix some further mirror breaks with frontend NNBD checks enabled." 2020-03-12 22:41:41 +00:00
deferred_mirrors_metatarget_lib.dart
deferred_mirrors_metatarget_test.dart Revert "[vm] Fix some further mirror breaks with frontend NNBD checks enabled." 2020-03-12 22:41:41 +00:00
deferred_mirrors_update_lib.dart
deferred_mirrors_update_test.dart Revert "[vm] Fix some further mirror breaks with frontend NNBD checks enabled." 2020-03-12 22:41:41 +00:00
delegate_call_through_getter_test.dart
delegate_class_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
delegate_function_invocation_test.dart Spelling tests 2022-12-19 12:56:47 +00:00
delegate_library_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
delegate_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
disable_tree_shaking_test.dart
dynamic_load_error.dart
dynamic_load_success.dart
dynamic_load_test.dart
empty.dart
empty_test.dart
enum_mirror_test.dart
enum_test.dart
equality_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
fake_function_with_call_test.dart
fake_function_without_call_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
field_metadata_test.dart
field_type_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
function_apply_mirrors_lib.dart
function_apply_mirrors_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
function_apply_test.dart
function_type_mirror_test.dart
generic_bounded_by_type_parameter_test.dart Reland "[VM/runtime] Refactor the representation of type parameters in the VM." 2021-05-05 23:43:14 +00:00
generic_bounded_test.dart Reland "[VM/runtime] Refactor the representation of type parameters in the VM." 2021-05-05 23:43:14 +00:00
generic_class_declaration_test.dart Reland "[VM/runtime] Refactor the representation of type parameters in the VM." 2021-05-05 23:43:14 +00:00
generic_f_bounded_mixin_application_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
generic_f_bounded_test.dart Reland "[VM/runtime] Refactor the representation of type parameters in the VM." 2021-05-05 23:43:14 +00:00
generic_function_typedef_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
generic_interface_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
generic_list_test.dart Reland "[vm] Fix some further mirror breaks with frontend NNBD checks enabled." 2020-03-13 17:11:52 +00:00
generic_local_function_test.dart [cfe] Report error on missing return from non-nullable function 2020-03-24 08:21:36 +00:00
generic_method_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
generic_mixin_applications_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
generic_mixin_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
generic_superclass_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
generic_type_mirror_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
generics_double_substitution_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
generics_dynamic_test.dart [cfe] Report error on missing return from non-nullable function 2020-03-24 08:21:36 +00:00
generics_helper.dart
generics_special_types_test.dart
generics_substitution_test.dart Reland "[VM/runtime] Refactor the representation of type parameters in the VM." 2021-05-05 23:43:14 +00:00
generics_test.dart Reland "[VM/runtime] Refactor the representation of type parameters in the VM." 2021-05-05 23:43:14 +00:00
get_field_cache_test.dart
get_field_static_test.dart
get_field_test.dart
get_symbol_name_no_such_method_test.dart
get_symbol_name_test.dart
globalized_closures2_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
globalized_closures_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
hierarchy_invariants_test.dart
hot_get_field_test.dart
hot_set_field_test.dart
immutable_collections_test.dart
inference_and_no_such_method_test.dart
inherit_field_test.dart
inherited_metadata_test.dart
initializing_formals_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
instance_creation_in_function_annotation_test.dart
instance_members_easier_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
instance_members_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
instance_members_unimplemented_interface_test.dart
instance_members_with_override_test.dart Clean up uses of @virtual in tests 2020-06-26 20:33:55 +00:00
instantiate_abstract_class_test.dart Spelling tests 2022-12-19 12:56:47 +00:00
intercepted_cache_test.dart
intercepted_class_test.dart
intercepted_object_test.dart Add more class modifiers to dart:collection. 2023-04-04 10:39:48 +00:00
intercepted_superclass_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
invocation_cache_test.dart
invocation_fuzz_test.dart [gardening] Resolve _NativeCallableIsolateLocal fuzzer TODO 2023-08-29 06:42:58 +00:00
invocation_mirror_invoke_on2_test.dart
invocation_mirror_invoke_on_test.dart
invoke_call_on_closure_test.dart
invoke_call_through_getter_previously_accessed_test.dart
invoke_call_through_getter_test.dart
invoke_call_through_implicit_getter_previously_accessed_test.dart
invoke_call_through_implicit_getter_test.dart
invoke_closurization2_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
invoke_closurization_test.dart
invoke_import_test.dart
invoke_named_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
invoke_natives_malicious_test.dart [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
invoke_private_test.dart
invoke_private_wrong_library_test.dart
invoke_test.dart
invoke_throws_test.dart
io_html_mutual_exclusion_test.dart
is_odd_test.dart
issue21079_test.dart [vm] Add class modifiers to dart:isolate 2023-03-28 12:36:45 +00:00
lazy_static_test.dart
libraries_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
library_declarations_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
library_enumeration_deferred_loading_test.dart Revert "[vm] Fix some further mirror breaks with frontend NNBD checks enabled." 2020-03-12 22:41:41 +00:00
library_exports_hidden.dart
library_exports_hidden_test.dart
library_exports_shown.dart
library_exports_shown_test.dart
library_import_deferred_loading_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
library_imports_a.dart
library_imports_b.dart
library_imports_bad_metadata_test.dart
library_imports_deferred_test.dart Reland "Add more interface and final modifiers to dart:core." 2023-03-30 20:34:09 +00:00
library_imports_hidden.dart
library_imports_hidden_test.dart
library_imports_metadata.dart
library_imports_metadata_test.dart
library_imports_prefixed.dart
library_imports_prefixed_show_hide.dart
library_imports_prefixed_show_hide_test.dart
library_imports_prefixed_test.dart
library_imports_shown.dart
library_imports_shown_test.dart
library_metadata2_lib1.dart
library_metadata2_lib2.dart
library_metadata2_test.dart
library_metadata_test.dart
library_metatarget_test.dart
library_metatarget_test_annotations_lib.dart
library_metatarget_test_lib.dart
library_uri_io_test.dart [test] Fix lib/mirrors/library_uri_io_test to pass when running not from source 2020-10-14 00:54:17 +00:00
library_uri_package_test.dart Replace Uri.scheme == with Uri.isScheme 2022-02-08 21:38:57 +00:00
library_with_annotated_declaration.dart
library_without_declaration.dart
list_constructor_test.dart [3.0 alpha] Remove deprecated dart:core List() constructor. 2022-12-15 11:36:22 +00:00
load_library_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
local_function_is_static_test.dart
local_isolate_test.dart
metadata_allowed_values_import.dart
metadata_allowed_values_test.dart Enable experiment generic_metadata 2021-04-27 20:16:08 +00:00
metadata_class_mirror_test.dart
metadata_const_map_test.dart
metadata_constructed_constant_test.dart Remove support for --emit-metadata in DDC 2020-03-05 23:26:13 +00:00
metadata_constructor_arguments_test.dart Remove support for --emit-metadata in DDC 2020-03-05 23:26:13 +00:00
metadata_nested_constructor_call_test.dart Remove support for --emit-metadata in DDC 2020-03-05 23:26:13 +00:00
metadata_scope_test.dart Fix scope resolution of metadata on type parameters 2021-08-17 15:17:02 +00:00
metadata_symbol_literal_test.dart [test] Fix some nits in strong mode mirror tests 2020-03-19 22:29:56 +00:00
metadata_test.dart
metadata_type_literal_test.dart
method_mirror_extension_test.dart Expire experiments released in earlier stable versions. 2021-11-11 08:28:31 +00:00
method_mirror_extension_type_test.dart [vm] Add minimal support for mirrors of extension type members 2023-12-07 21:48:50 +00:00
method_mirror_location_other.dart Spelling tests 2022-12-19 12:56:47 +00:00
method_mirror_location_test.dart Spelling tests 2022-12-19 12:56:47 +00:00
method_mirror_name_test.dart
method_mirror_properties_test.dart [vm] Add minimal support for mirrors of extension type members 2023-12-07 21:48:50 +00:00
method_mirror_returntype_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
method_mirror_source_line_ending_cr.dart
method_mirror_source_line_ending_crlf.dart
method_mirror_source_line_ending_lf.dart
method_mirror_source_line_ending_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
method_mirror_source_other.dart
method_mirror_source_test.dart [cfe] Report error on missing return from non-nullable function 2020-03-24 08:21:36 +00:00
mirror_in_static_init_test.dart [test] Fix some nits in strong mode mirror tests 2020-03-19 22:29:56 +00:00
mirrors_nsm_mismatch_test.dart
mirrors_nsm_test.dart
mirrors_reader.dart Spelling tests 2022-12-19 12:56:47 +00:00
mirrors_reader_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
mirrors_resolve_fields_test.dart
mirrors_test.dart Spelling tests 2022-12-19 12:56:47 +00:00
mirrors_visitor.dart
mixin_application_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
mixin_members_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
mixin_simple_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
mixin_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
model.dart
model_test.dart
new_instance_optional_arguments_test.dart
new_instance_with_type_arguments_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
no_metadata_test.dart
null2_test.dart
null_test.dart [tests] Avoid small --optimization-counter-threshold in tests 2022-10-10 21:04:18 +00:00
operator_test.dart [cfe] Report error on missing return from non-nullable function 2020-03-24 08:21:36 +00:00
optional_parameters_test.dart
other_declarations_location_test.dart [vm] Further mirrors and test fixes. 2020-02-10 20:58:05 +00:00
other_library.dart
parameter_abstract_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
parameter_annotation_mirror_test.dart
parameter_is_const_test.dart
parameter_metadata_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
parameter_of_mixin_app_constructor_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
parameter_optional_order_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
parameter_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
private_class_field_other.dart
private_class_field_test.dart
private_field_helper.dart
private_field_test.dart
private_symbol_mangling_lib.dart
private_symbol_mangling_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
private_symbol_test.dart
private_types_test.dart
proxy_type_test.dart Spelling tests 2022-12-19 12:56:47 +00:00
raw_type_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
redirecting_factory_different_type_test.dart
redirecting_factory_reflection_test.dart
redirecting_factory_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
reflect_class_test.dart
reflect_model_test.dart
reflect_runtime_type_test.dart
reflect_two_classes_test.dart
reflect_uninstantiated_class_test.dart
reflected_type_classes_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
reflected_type_function_type_test.dart
reflected_type_generics_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
reflected_type_helper.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
reflected_type_special_types_test.dart
reflected_type_test.dart
reflected_type_typedefs_test.dart
reflected_type_typevars_test.dart
reflectively_instantiate_uninstantiated_class_test.dart
regress_13462_0_test.dart
regress_13462_1_test.dart
regress_14304_test.dart [cfe] Report error on missing return from non-nullable function 2020-03-24 08:21:36 +00:00
regress_16321_test.dart
regress_18535_test.dart
regress_19731_test.dart
regress_26187_test.dart
regress_28255_test.dart
regress_33259_test.dart
regress_34982_test.dart
regress_38035_test.dart
regress_b196606044_test.dart Reland "[vm] Hide internal implementation List types and expose them as List" 2021-08-16 22:52:21 +00:00
relation_assignable_test.dart
relation_subclass_test.dart [nnbd] Fix some more strong mode tests 2020-04-22 00:12:24 +00:00
relation_subtype_test.dart
repeated_private_anon_mixin_app1.dart pre-emptively fix some tests for class modifiers flag flip 2023-03-01 20:11:25 +00:00
repeated_private_anon_mixin_app2.dart pre-emptively fix some tests for class modifiers flag flip 2023-03-01 20:11:25 +00:00
repeated_private_anon_mixin_app_test.dart pre-emptively fix some tests for class modifiers flag flip 2023-03-01 20:11:25 +00:00
return_type_test.dart [cfe] Report error on missing return from non-nullable function 2020-03-24 08:21:36 +00:00
runtime_type_test.dart
set_field_with_final_inheritance_test.dart
set_field_with_final_test.dart
spawn_function_root_library_test.dart
static_const_field_test.dart
static_members_easier_test.dart [cfe] Update greatest closure of ? to Object? 2020-05-04 08:14:43 +00:00
static_members_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
static_metatarget_test.dart
static_test.dart
stringify.dart Reland "[vm] Fix some further mirror breaks with frontend NNBD checks enabled." 2020-03-13 17:11:52 +00:00
superclass2_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
superclass_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
symbol_validation_test.dart
syntax_error_test.dart Update mirrors/syntax_error_test.dart for NNBD. 2020-05-06 16:40:52 +00:00
synthetic_accessor_properties_test.dart [nnbd] Fix a mirrors test in strong mode. 2020-04-08 21:14:14 +00:00
to_string_test.dart
top_level_accessors_test.dart
type_argument_is_type_variable_test.dart Reland "[VM/runtime] Refactor the representation of type parameters in the VM." 2021-05-05 23:43:14 +00:00
type_mirror_for_type_test.dart [cfe] Report error on missing return from non-nullable function 2020-03-24 08:21:36 +00:00
type_variable_is_static_test.dart
type_variable_owner_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
typearguments_mirror_test.dart
typedef_deferred_library_test.dart Revert "[vm] Fix some further mirror breaks with frontend NNBD checks enabled." 2020-03-12 22:41:41 +00:00
typedef_in_signature_test.dart
typedef_library.dart
typedef_library_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
typedef_metadata_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
typedef_reflected_type_test.dart [nnbd] Fix some more strong mode tests 2020-04-22 00:12:24 +00:00
typevariable_mirror_metadata_test.dart [test] Update copied mirrors tests for Dart 3. 2020-01-23 18:09:37 +00:00
unmangled_type_test.dart
unnamed_library_test.dart
unnamed_mixin_application_test.dart Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
variable_is_const_test.dart