@@ -148,7 +148,8 @@ use crate::util::{bail, ident, KvParser};
148
148
/// [properties](https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_basics.html#properties-setters-and-getters)
149
149
/// (fields with a `get` or `set` declaration) and
150
150
/// [exports](https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_exports.html)
151
- /// (fields annotated with `@export`). In the gdext API, these two concepts are represented with `#[var]` and `#[export]` attributes respectively.
151
+ /// (fields annotated with `@export`). In the gdext API, these two concepts are represented with `#[var]` and `#[export]` attributes respectively,
152
+ /// which in turn are backed by the [`Var`](../register/property/trait.Var.html) and [`Export`](../register/property/trait.Export.html) traits.
152
153
///
153
154
/// ## Property registration
154
155
///
@@ -474,7 +475,17 @@ use crate::util::{bail, ident, KvParser};
474
475
/// }
475
476
/// }
476
477
/// ```
477
- #[ proc_macro_derive( GodotClass , attributes( class, base, hint, var, export, init, signal) ) ]
478
+ #[ doc(
479
+ alias = "class" ,
480
+ alias = "base" ,
481
+ alias = "init" ,
482
+ alias = "no_init" ,
483
+ alias = "var" ,
484
+ alias = "export" ,
485
+ alias = "tool" ,
486
+ alias = "rename"
487
+ ) ]
488
+ #[ proc_macro_derive( GodotClass , attributes( class, base, hint, var, export, init) ) ]
478
489
pub fn derive_godot_class ( input : TokenStream ) -> TokenStream {
479
490
translate ( input, class:: derive_godot_class)
480
491
}
@@ -773,6 +784,15 @@ pub fn derive_godot_class(input: TokenStream) -> TokenStream {
773
784
/// pub fn two(&self) { }
774
785
/// }
775
786
/// ```
787
+ #[ doc(
788
+ alias = "func" ,
789
+ alias = "rpc" ,
790
+ alias = "virtual" ,
791
+ alias = "signal" ,
792
+ alias = "constant" ,
793
+ alias = "rename" ,
794
+ alias = "secondary"
795
+ ) ]
776
796
#[ proc_macro_attribute]
777
797
pub fn godot_api ( meta : TokenStream , input : TokenStream ) -> TokenStream {
778
798
translate ( input, |body| {
@@ -827,9 +847,9 @@ pub fn godot_dyn(_meta: TokenStream, input: TokenStream) -> TokenStream {
827
847
translate ( input, class:: attribute_godot_dyn)
828
848
}
829
849
830
- /// Derive macro for [`GodotConvert`](../builtin/ meta/trait.GodotConvert.html) on structs.
850
+ /// Derive macro for [`GodotConvert`](../meta/trait.GodotConvert.html) on structs.
831
851
///
832
- /// This derive macro also derives [`ToGodot`](../builtin/ meta/trait.ToGodot.html) and [`FromGodot`](../builtin /meta/trait.FromGodot.html).
852
+ /// This derive macro also derives [`ToGodot`](../meta/trait.ToGodot.html) and [`FromGodot`](../meta/trait.FromGodot.html).
833
853
///
834
854
/// # Choosing a Via type
835
855
///
@@ -960,7 +980,7 @@ pub fn derive_godot_convert(input: TokenStream) -> TokenStream {
960
980
961
981
/// Derive macro for [`Var`](../register/property/trait.Var.html) on enums.
962
982
///
963
- /// This expects a derived [`GodotConvert`](../builtin/ meta/trait.GodotConvert.html) implementation, using a manual
983
+ /// This expects a derived [`GodotConvert`](../meta/trait.GodotConvert.html) implementation, using a manual
964
984
/// implementation of `GodotConvert` may lead to incorrect values being displayed in Godot.
965
985
#[ proc_macro_derive( Var , attributes( godot) ) ]
966
986
pub fn derive_var ( input : TokenStream ) -> TokenStream {
0 commit comments