Merge pull request #10924 from ethereum/exportDocs

Export statement documentation.
This commit is contained in:
chriseth
2021-02-09 18:23:45 +01:00
committed by GitHub
8 changed files with 1298 additions and 0 deletions
+3
View File
@@ -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);