From 2e7190534be9d6994cdd485b1d94400e039693d3 Mon Sep 17 00:00:00 2001 From: djudjuu Date: Tue, 30 May 2017 18:52:43 +0200 Subject: documentation field added to ContractDefinition-Node --- libsolidity/ast/ASTJsonConverter.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libsolidity/ast') diff --git a/libsolidity/ast/ASTJsonConverter.cpp b/libsolidity/ast/ASTJsonConverter.cpp index cdf70cf9..d2f27519 100644 --- a/libsolidity/ast/ASTJsonConverter.cpp +++ b/libsolidity/ast/ASTJsonConverter.cpp @@ -252,6 +252,7 @@ bool ASTJsonConverter::visit(ContractDefinition const& _node) { setJsonNode(_node, "ContractDefinition", { make_pair("name", _node.name()), + make_pair("documentation", _node.documentation() ? Json::Value(*_node.documentation()) : Json::nullValue), make_pair("contractKind", contractKind(_node.contractKind())), make_pair("fullyImplemented", _node.annotation().isFullyImplemented), make_pair("linearizedBaseContracts", getContainerIds(_node.annotation().linearizedBaseContracts)), -- cgit