pub fn resolve_inheritdoc<'a>(
sources: &'a Value,
decl_node: &'a Value,
doc_text: &str,
) -> Option<String>Expand description
Resolve @inheritdoc ParentName by matching function selectors.
- Parse the parent contract name from
@inheritdoc ParentName - Get the declaration’s
functionSelector - Find the parent contract in
baseContractsof the scope contract - Match by selector in the parent’s child nodes
- Return the matched parent node’s documentation