From a9c6ff4ac8c271aaada1965894b34933b662c044 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 26 Jan 2017 18:20:54 +0100 Subject: Refactor json return type generation. --- libsolidity/interface/InterfaceHandler.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libsolidity/interface/InterfaceHandler.h') diff --git a/libsolidity/interface/InterfaceHandler.h b/libsolidity/interface/InterfaceHandler.h index b7e1bb00..56927d44 100644 --- a/libsolidity/interface/InterfaceHandler.h +++ b/libsolidity/interface/InterfaceHandler.h @@ -37,6 +37,8 @@ namespace solidity // Forward declarations class ContractDefinition; +class Type; +using TypePointer = std::shared_ptr; struct DocTag; enum class DocumentationType: uint8_t; @@ -84,6 +86,14 @@ public: static Json::Value devDocumentation(ContractDefinition const& _contractDef); private: + /// @returns a json value suitable for a list of types in function input or output + /// parameters or other places. If @a _forLibrary is true, complex types are referenced + /// by name, otherwise they are anonymously expanded. + static Json::Value formatTypeList( + std::vector const& _names, + std::vector const& _types, + bool _forLibrary + ); /// @returns concatenation of all content under the given tag name. static std::string extractDoc(std::multimap const& _tags, std::string const& _name); }; -- cgit v1.2.3