mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Export statement documentation.
This commit is contained in:
@@ -99,6 +99,9 @@ void ASTJsonConverter::setJsonNode(
|
||||
m_currentValue = Json::objectValue;
|
||||
m_currentValue["id"] = nodeId(_node);
|
||||
m_currentValue["src"] = sourceLocationToString(_node.location());
|
||||
if (auto const* documented = dynamic_cast<Documented const*>(&_node))
|
||||
if (documented->documentation())
|
||||
m_currentValue["documentation"] = *documented->documentation();
|
||||
m_currentValue["nodeType"] = _nodeType;
|
||||
for (auto& e: _attributes)
|
||||
m_currentValue[e.first] = std::move(e.second);
|
||||
|
||||
Reference in New Issue
Block a user