aboutsummaryrefslogtreecommitdiffstats
path: root/InterfaceHandler.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-12-04 08:27:38 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-12-04 08:27:38 +0800
commitba27dc74214d70a4ce8dcfcbb0b15a829f2b050d (patch)
tree4a5a2cb1c6b1718bab228e18b0fc142bd002faa4 /InterfaceHandler.cpp
parenta0ff2179d46404e265226981f8f7cd99c7aba5d1 (diff)
downloaddexon-solidity-ba27dc74214d70a4ce8dcfcbb0b15a829f2b050d.tar.gz
dexon-solidity-ba27dc74214d70a4ce8dcfcbb0b15a829f2b050d.tar.zst
dexon-solidity-ba27dc74214d70a4ce8dcfcbb0b15a829f2b050d.zip
Styling in libsolidity's InterfaceHandler
Diffstat (limited to 'InterfaceHandler.cpp')
-rw-r--r--InterfaceHandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/InterfaceHandler.cpp b/InterfaceHandler.cpp
index a2c52c1f..61570b8d 100644
--- a/InterfaceHandler.cpp
+++ b/InterfaceHandler.cpp
@@ -12,7 +12,7 @@ InterfaceHandler::InterfaceHandler()
}
std::unique_ptr<std::string> InterfaceHandler::getDocumentation(std::shared_ptr<ContractDefinition> _contractDef,
- enum documentation_type _type)
+ enum documentationType _type)
{
switch(_type)
{
@@ -39,7 +39,7 @@ std::unique_ptr<std::string> InterfaceHandler::getABIInterface(std::shared_ptr<C
Json::Value inputs(Json::arrayValue);
Json::Value outputs(Json::arrayValue);
- auto streamVariables = [](std::vector<ASTPointer<VariableDeclaration>> const& _vars)
+ auto populateParameters = [](std::vector<ASTPointer<VariableDeclaration>> const& _vars)
{
Json::Value params(Json::arrayValue);
for (ASTPointer<VariableDeclaration> const& var: _vars)
@@ -53,8 +53,8 @@ std::unique_ptr<std::string> InterfaceHandler::getABIInterface(std::shared_ptr<C
};
method["name"] = f->getName();
- method["inputs"] = streamVariables(f->getParameters());
- method["outputs"] = streamVariables(f->getReturnParameters());
+ method["inputs"] = populateParameters(f->getParameters());
+ method["outputs"] = populateParameters(f->getReturnParameters());
methods.append(method);
}
return std::unique_ptr<std::string>(new std::string(m_writer.write(methods)));