diff options
author | chriseth <chris@ethereum.org> | 2016-11-16 02:16:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-16 02:16:07 +0800 |
commit | 192a81892dca3762c050f159da202c8c8f90f72c (patch) | |
tree | 049fdd9eaf1bbe8ec18ff643739378a076d54e9e /libsolidity/interface/InterfaceHandler.h | |
parent | 0072160d7772b2f30c2c6af4428728cb31641696 (diff) | |
parent | 227f6aab4f96003e0f7c99194a9ea1095041970f (diff) | |
download | dexon-solidity-192a81892dca3762c050f159da202c8c8f90f72c.tar dexon-solidity-192a81892dca3762c050f159da202c8c8f90f72c.tar.gz dexon-solidity-192a81892dca3762c050f159da202c8c8f90f72c.tar.bz2 dexon-solidity-192a81892dca3762c050f159da202c8c8f90f72c.tar.lz dexon-solidity-192a81892dca3762c050f159da202c8c8f90f72c.tar.xz dexon-solidity-192a81892dca3762c050f159da202c8c8f90f72c.tar.zst dexon-solidity-192a81892dca3762c050f159da202c8c8f90f72c.zip |
Merge pull request #1377 from ethereum/keep-json-values
Keep internal results in JSON
Diffstat (limited to 'libsolidity/interface/InterfaceHandler.h')
-rw-r--r-- | libsolidity/interface/InterfaceHandler.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libsolidity/interface/InterfaceHandler.h b/libsolidity/interface/InterfaceHandler.h index 54199e4e..d4f2eaf4 100644 --- a/libsolidity/interface/InterfaceHandler.h +++ b/libsolidity/interface/InterfaceHandler.h @@ -64,24 +64,24 @@ public: /// @param _contractDef The contract definition /// @param _type The type of the documentation. Can be one of the /// types provided by @c DocumentationType - /// @return A string with the json representation of provided type - static std::string documentation( + /// @return A JSON representation of provided type + static Json::Value documentation( ContractDefinition const& _contractDef, DocumentationType _type ); /// Get the ABI Interface of the contract /// @param _contractDef The contract definition - /// @return A string with the json representation of the contract's ABI Interface - static std::string abiInterface(ContractDefinition const& _contractDef); + /// @return A JSONrepresentation of the contract's ABI Interface + static Json::Value abiInterface(ContractDefinition const& _contractDef); /// Get the User documentation of the contract /// @param _contractDef The contract definition - /// @return A string with the json representation of the contract's user documentation - static std::string userDocumentation(ContractDefinition const& _contractDef); + /// @return A JSON representation of the contract's user documentation + static Json::Value userDocumentation(ContractDefinition const& _contractDef); /// Genereates the Developer's documentation of the contract /// @param _contractDef The contract definition - /// @return A string with the json representation + /// @return A JSON representation /// of the contract's developer documentation - static std::string devDocumentation(ContractDefinition const& _contractDef); + static Json::Value devDocumentation(ContractDefinition const& _contractDef); private: /// @returns concatenation of all content under the given tag name. |