diff options
author | chriseth <chris@ethereum.org> | 2017-08-21 22:46:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-21 22:46:00 +0800 |
commit | d270879c8ff4447417c1c0cfce0b008b4df7bc9c (patch) | |
tree | 6a9b40652fdf9b6291595a85c7cbb6edb1c092a7 /libsolidity/interface/CompilerStack.h | |
parent | 48651fc057d75b604eb65b8979b109d3887b6cbd (diff) | |
parent | 7222fac45680dd9955fd37c6245760014a19873a (diff) | |
download | dexon-solidity-d270879c8ff4447417c1c0cfce0b008b4df7bc9c.tar dexon-solidity-d270879c8ff4447417c1c0cfce0b008b4df7bc9c.tar.gz dexon-solidity-d270879c8ff4447417c1c0cfce0b008b4df7bc9c.tar.bz2 dexon-solidity-d270879c8ff4447417c1c0cfce0b008b4df7bc9c.tar.lz dexon-solidity-d270879c8ff4447417c1c0cfce0b008b4df7bc9c.tar.xz dexon-solidity-d270879c8ff4447417c1c0cfce0b008b4df7bc9c.tar.zst dexon-solidity-d270879c8ff4447417c1c0cfce0b008b4df7bc9c.zip |
Merge pull request #2748 from ethereum/natspec
Remove DocumentationType from natspec
Diffstat (limited to 'libsolidity/interface/CompilerStack.h')
-rw-r--r-- | libsolidity/interface/CompilerStack.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h index d287f224..54e3e23f 100644 --- a/libsolidity/interface/CompilerStack.h +++ b/libsolidity/interface/CompilerStack.h @@ -63,12 +63,6 @@ class Natspec; class Error; class DeclarationContainer; -enum class DocumentationType: uint8_t -{ - NatspecUser = 1, - NatspecDev -}; - /** * Easy to use and self-contained Solidity compiler with as few header dependencies as possible. * It holds state and can be used to either step through the compilation stages (and abort e.g. @@ -203,11 +197,13 @@ public: /// Prerequisite: Successful call to parse or compile. Json::Value const& contractABI(std::string const& _contractName = "") const; - /// @returns a JSON representing the contract's documentation. + /// @returns a JSON representing the contract's user documentation. + /// Prerequisite: Successful call to parse or compile. + Json::Value const& natspecUser(std::string const& _contractName) const; + + /// @returns a JSON representing the contract's developer documentation. /// Prerequisite: Successful call to parse or compile. - /// @param type The type of the documentation to get. - /// Can be one of 4 types defined at @c DocumentationType - Json::Value const& natspec(std::string const& _contractName, DocumentationType _type) const; + Json::Value const& natspecDev(std::string const& _contractName) const; /// @returns a JSON representing a map of method identifiers (hashes) to function names. Json::Value methodIdentifiers(std::string const& _contractName) const; @@ -274,7 +270,8 @@ private: std::string createMetadata(Contract const& _contract) const; std::string computeSourceMapping(eth::AssemblyItems const& _items) const; Json::Value const& contractABI(Contract const&) const; - Json::Value const& natspec(Contract const&, DocumentationType _type) const; + Json::Value const& natspecUser(Contract const&) const; + Json::Value const& natspecDev(Contract const&) const; /// @returns the offset of the entry point of the given function into the list of assembly items /// or zero if it is not found or does not exist. |