File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
crates/bevy_reflect/bevy_reflect_derive/src Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ impl<'a> ReflectStruct<'a> {
309309 }
310310
311311 /// Whether this reflected struct represents a remote type or not.
312- pub fn is_remote ( & self ) -> bool {
312+ pub fn is_remote_wrapper ( & self ) -> bool {
313313 self . remote_ty . is_some ( )
314314 }
315315
@@ -379,7 +379,7 @@ impl<'a> ReflectEnum<'a> {
379379 }
380380
381381 /// Whether this reflected enum represents a remote type or not.
382- pub fn is_remote ( & self ) -> bool {
382+ pub fn is_remote_wrapper ( & self ) -> bool {
383383 self . remote_ty . is_some ( )
384384 }
385385
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ pub(crate) fn impl_enum(reflect_enum: &ReflectEnum) -> TokenStream {
4343 variant_constructors,
4444 } = get_variant_constructors ( reflect_enum, & ref_value, false ) ;
4545
46- let match_branches = if reflect_enum. is_remote ( ) {
46+ let match_branches = if reflect_enum. is_remote_wrapper ( ) {
4747 quote ! {
4848 #( #variant_names => Some ( Self ( #variant_constructors) ) , ) *
4949 }
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use quote::quote;
88pub ( crate ) fn impl_enum ( reflect_enum : & ReflectEnum ) -> TokenStream {
99 let bevy_reflect_path = reflect_enum. meta ( ) . bevy_reflect_path ( ) ;
1010 let enum_name = reflect_enum. meta ( ) . type_name ( ) ;
11- let is_remote = reflect_enum. is_remote ( ) ;
11+ let is_remote = reflect_enum. is_remote_wrapper ( ) ;
1212
1313 // For `match self` expressions where self is a reference
1414 let match_this = if is_remote {
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ impl FieldAccessors {
7373 where
7474 F : FnMut ( & StructField , proc_macro2:: TokenStream ) -> proc_macro2:: TokenStream ,
7575 {
76- let is_remote = reflect_struct. is_remote ( ) ;
76+ let is_remote = reflect_struct. is_remote_wrapper ( ) ;
7777 reflect_struct
7878 . active_fields ( )
7979 . map ( |field| {
You can’t perform that action at this time.
0 commit comments