Add field to get_fn_metadata_list.
This commit is contained in:
parent
96bfd93610
commit
276d4457c3
@ -174,6 +174,17 @@ fn collect_fn_metadata(
|
|||||||
.collect::<Array>()
|
.collect::<Array>()
|
||||||
.into(),
|
.into(),
|
||||||
);
|
);
|
||||||
|
#[cfg(feature = "metadata")]
|
||||||
|
if !func.comments.is_empty() {
|
||||||
|
map.insert(
|
||||||
|
dict.get("comments").expect(DICT).clone(),
|
||||||
|
func.comments
|
||||||
|
.iter()
|
||||||
|
.map(|s| Into::into(&**s))
|
||||||
|
.collect::<Array>()
|
||||||
|
.into(),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
map
|
map
|
||||||
}
|
}
|
||||||
@ -188,6 +199,8 @@ fn collect_fn_metadata(
|
|||||||
"private",
|
"private",
|
||||||
"is_anonymous",
|
"is_anonymous",
|
||||||
"params",
|
"params",
|
||||||
|
#[cfg(feature = "metadata")]
|
||||||
|
"comments",
|
||||||
]
|
]
|
||||||
.iter()
|
.iter()
|
||||||
.map(|&s| s.into())
|
.map(|&s| s.into())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user