mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add Natspec devdoc inheritance support for events
This commit is contained in:
committed by
Kamil Śliwak
parent
ce18dddd20
commit
4aac4c7bc4
@@ -168,7 +168,7 @@ Json::Value Natspec::devDocumentation(ContractDefinition const& _contractDef)
|
||||
));
|
||||
}
|
||||
|
||||
for (auto const& event: _contractDef.events())
|
||||
for (auto const& event: _contractDef.definedInterfaceEvents())
|
||||
if (auto devDoc = devDocumentation(event->annotation().docTags); !devDoc.empty())
|
||||
doc["events"][event->functionType(true)->externalSignature()] = devDoc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user