@@ -452,7 +452,7 @@ fn convert_to_match_expression_or_none(tokens: Option<TokenStream>) -> TokenStre
452
452
453
453
/// Codegen for `#[godot_api] impl GodotExt for MyType`
454
454
fn transform_trait_impl ( original_impl : Impl ) -> Result < TokenStream , Error > {
455
- let ( class_name, trait_name ) = util:: validate_trait_impl_virtual ( & original_impl, "godot_api" ) ?;
455
+ let ( class_name, trait_path ) = util:: validate_trait_impl_virtual ( & original_impl, "godot_api" ) ?;
456
456
let class_name_obj = util:: class_name_obj ( & class_name) ;
457
457
458
458
let mut godot_init_impl = TokenStream :: new ( ) ;
@@ -505,7 +505,7 @@ fn transform_trait_impl(original_impl: Impl) -> Result<TokenStream, Error> {
505
505
#( #cfg_attrs) *
506
506
impl :: godot:: obj:: cap:: GodotRegisterClass for #class_name {
507
507
fn __godot_register_class( builder: & mut :: godot:: builder:: GodotBuilder <Self >) {
508
- <Self as #trait_name >:: register_class( builder)
508
+ <Self as #trait_path >:: register_class( builder)
509
509
}
510
510
}
511
511
} ;
@@ -534,7 +534,7 @@ fn transform_trait_impl(original_impl: Impl) -> Result<TokenStream, Error> {
534
534
#( #cfg_attrs) *
535
535
impl :: godot:: obj:: cap:: GodotDefault for #class_name {
536
536
fn __godot_user_init( base: :: godot:: obj:: Base <Self :: Base >) -> Self {
537
- <Self as #trait_name >:: init( base)
537
+ <Self as #trait_path >:: init( base)
538
538
}
539
539
}
540
540
} ;
@@ -559,7 +559,7 @@ fn transform_trait_impl(original_impl: Impl) -> Result<TokenStream, Error> {
559
559
#( #cfg_attrs) *
560
560
impl :: godot:: obj:: cap:: GodotToString for #class_name {
561
561
fn __godot_to_string( & self ) -> :: godot:: builtin:: GString {
562
- <Self as #trait_name >:: to_string( self )
562
+ <Self as #trait_path >:: to_string( self )
563
563
}
564
564
}
565
565
} ;
@@ -583,7 +583,7 @@ fn transform_trait_impl(original_impl: Impl) -> Result<TokenStream, Error> {
583
583
return ;
584
584
}
585
585
586
- <Self as #trait_name >:: on_notification( self , what. into( ) )
586
+ <Self as #trait_path >:: on_notification( self , what. into( ) )
587
587
}
588
588
}
589
589
} ;
@@ -605,7 +605,7 @@ fn transform_trait_impl(original_impl: Impl) -> Result<TokenStream, Error> {
605
605
return None ;
606
606
}
607
607
608
- <Self as #trait_name >:: get_property( self , property)
608
+ <Self as #trait_path >:: get_property( self , property)
609
609
}
610
610
}
611
611
} ;
@@ -626,7 +626,7 @@ fn transform_trait_impl(original_impl: Impl) -> Result<TokenStream, Error> {
626
626
return false ;
627
627
}
628
628
629
- <Self as #trait_name >:: set_property( self , property, value)
629
+ <Self as #trait_path >:: set_property( self , property, value)
630
630
}
631
631
}
632
632
} ;
0 commit comments