diff options
author | djudjuu <julfaber@gmail.com> | 2017-05-31 00:52:43 +0800 |
---|---|---|
committer | djudjuu <julfaber@gmail.com> | 2017-05-31 00:52:43 +0800 |
commit | 2e7190534be9d6994cdd485b1d94400e039693d3 (patch) | |
tree | e24895aa8e2a2c3b211758284bac7d4f24e29bb7 | |
parent | 254b55728f66ea164e9085700a294ac4837f2029 (diff) | |
download | dexon-solidity-2e7190534be9d6994cdd485b1d94400e039693d3.tar dexon-solidity-2e7190534be9d6994cdd485b1d94400e039693d3.tar.gz dexon-solidity-2e7190534be9d6994cdd485b1d94400e039693d3.tar.bz2 dexon-solidity-2e7190534be9d6994cdd485b1d94400e039693d3.tar.lz dexon-solidity-2e7190534be9d6994cdd485b1d94400e039693d3.tar.xz dexon-solidity-2e7190534be9d6994cdd485b1d94400e039693d3.tar.zst dexon-solidity-2e7190534be9d6994cdd485b1d94400e039693d3.zip |
documentation field added to ContractDefinition-Node
-rw-r--r-- | libsolidity/ast/ASTJsonConverter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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)), |