pallet_macro: Generate default documentation for well known types (#8276)

This commit is contained in:
Alexander Theißen authored and GitHub committed 2021-03-07 22:45:53 -04:00
1 parent 6bd09c07bd
commit f39c2cf3f5
8 files changed
+112 -7

No files matched your search

@@ -41,6 +41,8 @@ pub struct CallDef {
pub methods: Vec<CallVariantDef>,
/// The span of the pallet::call attribute.
pub attr_span: proc_macro2::Span,
/// Docs, specified on the impl Block.
pub docs: Vec<syn::Lit>,
}
/// Definition of dispatchable typically: `#[weight...] fn foo(origin .., param1: ...) -> ..`
@@ -228,6 +230,7 @@ impl CallDef {
instances,
methods,
where_clause: item.generics.where_clause.clone(),
docs: helper::get_doc_literals(&item.attrs),
})
}
}