Add typed methods definition.

This commit is contained in:
Stephen Chung
2023-03-22 16:05:25 +08:00
parent 3d4a278f2e
commit e60d0fc0bc
14 changed files with 275 additions and 71 deletions

View File

@@ -208,6 +208,10 @@ fn collect_fn_metadata(
"is_anonymous".into(),
func.name.starts_with(FN_ANONYMOUS).into(),
);
#[cfg(not(feature = "no_object"))]
if let Some(ref this_type) = func.this_type {
map.insert("this_type".into(), this_type.into());
}
map.insert(
"params".into(),
func.params