Skip to main content

has_local_natspec

Function has_local_natspec 

Source
fn has_local_natspec(docs: &DocComments<'_>) -> bool
Expand description

Returns the base contract name from @inheritdoc Base, or None. Whether the declaration carries any local NatSpec item other than @inheritdoc. Solidity only auto-inherits documentation for a member with none, so implicit inheritance is gated on this being false; a local @custom:*, @title or @author counts as local documentation just like @notice/@dev/@param/@return.