aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/CompilerStack.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-11-16 02:16:07 +0800
committerGitHub <noreply@github.com>2016-11-16 02:16:07 +0800
commit192a81892dca3762c050f159da202c8c8f90f72c (patch)
tree049fdd9eaf1bbe8ec18ff643739378a076d54e9e /libsolidity/interface/CompilerStack.h
parent0072160d7772b2f30c2c6af4428728cb31641696 (diff)
parent227f6aab4f96003e0f7c99194a9ea1095041970f (diff)
downloaddexon-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/CompilerStack.h')
-rw-r--r--libsolidity/interface/CompilerStack.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h
index da479638..1fd30c4d 100644
--- a/libsolidity/interface/CompilerStack.h
+++ b/libsolidity/interface/CompilerStack.h
@@ -162,14 +162,14 @@ public:
/// @returns a mapping assigning each source name its index inside the vector returned
/// by sourceNames().
std::map<std::string, unsigned> sourceIndices() const;
- /// @returns a string representing the contract interface in JSON.
+ /// @returns a JSON representing the contract interface.
/// Prerequisite: Successful call to parse or compile.
- std::string const& interface(std::string const& _contractName = "") const;
- /// @returns a string representing the contract's documentation in JSON.
+ Json::Value const& interface(std::string const& _contractName = "") const;
+ /// @returns a JSON representing the contract's 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
- std::string const& metadata(std::string const& _contractName, DocumentationType _type) const;
+ Json::Value const& metadata(std::string const& _contractName, DocumentationType _type) const;
/// @returns the previously used scanner, useful for counting lines during error reporting.
Scanner const& scanner(std::string const& _sourceName = "") const;
@@ -213,9 +213,9 @@ private:
eth::LinkerObject object;
eth::LinkerObject runtimeObject;
eth::LinkerObject cloneObject;
- mutable std::unique_ptr<std::string const> interface;
- mutable std::unique_ptr<std::string const> userDocumentation;
- mutable std::unique_ptr<std::string const> devDocumentation;
+ mutable std::unique_ptr<Json::Value const> interface;
+ mutable std::unique_ptr<Json::Value const> userDocumentation;
+ mutable std::unique_ptr<Json::Value const> devDocumentation;
mutable std::unique_ptr<std::string const> sourceMapping;
mutable std::unique_ptr<std::string const> runtimeSourceMapping;
};