feat: add `#[allow(missing_docs)]` to `children` prop in components (#934)
This commit is contained in:
parent
d2e3a156e8
commit
c471986024
|
@ -458,10 +458,18 @@ fn prop_builder_fields(vis: &Visibility, props: &[Prop]) -> TokenStream {
|
||||||
|
|
||||||
let builder_docs = prop_to_doc(prop, PropDocStyle::Inline);
|
let builder_docs = prop_to_doc(prop, PropDocStyle::Inline);
|
||||||
|
|
||||||
|
// Children won't need documentation in many cases
|
||||||
|
let allow_missing_docs = if name.ident == "children" {
|
||||||
|
quote!(#[allow(missing_docs)])
|
||||||
|
} else {
|
||||||
|
quote!()
|
||||||
|
};
|
||||||
|
|
||||||
quote! {
|
quote! {
|
||||||
#docs
|
#docs
|
||||||
#builder_docs
|
#builder_docs
|
||||||
#builder_attrs
|
#builder_attrs
|
||||||
|
#allow_missing_docs
|
||||||
#vis #name: #ty,
|
#vis #name: #ty,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue