diff options
author | chriseth <chris@ethereum.org> | 2017-06-14 20:32:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-14 20:32:27 +0800 |
commit | 21aafaa70439e41da1c9eb6b37d08707d90b35f0 (patch) | |
tree | 6a8a1a585950f7987b1f2630e1f23c16c05d5cce /libsolidity | |
parent | e232a105f036e40c9da5c3ce051c5ebd4236b558 (diff) | |
parent | 83f0e00900a51c03cc7d8c088bbac0c4814a9e49 (diff) | |
download | dexon-solidity-21aafaa70439e41da1c9eb6b37d08707d90b35f0.tar dexon-solidity-21aafaa70439e41da1c9eb6b37d08707d90b35f0.tar.gz dexon-solidity-21aafaa70439e41da1c9eb6b37d08707d90b35f0.tar.bz2 dexon-solidity-21aafaa70439e41da1c9eb6b37d08707d90b35f0.tar.lz dexon-solidity-21aafaa70439e41da1c9eb6b37d08707d90b35f0.tar.xz dexon-solidity-21aafaa70439e41da1c9eb6b37d08707d90b35f0.tar.zst dexon-solidity-21aafaa70439e41da1c9eb6b37d08707d90b35f0.zip |
Merge pull request #2331 from ethereum/ASTDocumentationEntry
documentation field added to ContractDefinition-Node
Diffstat (limited to 'libsolidity')
-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 1de2e801..4ad1f962 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)), |