mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Basic logging in Solidity (though no tests yet).
This commit is contained in:
@@ -143,6 +143,11 @@ string const& CompilerStack::getInterface(string const& _contractName) const
|
||||
return getJsonDocumentation(_contractName, DocumentationType::ABI_INTERFACE);
|
||||
}
|
||||
|
||||
string const& CompilerStack::getSolidityInterface(string const& _contractName) const
|
||||
{
|
||||
return getJsonDocumentation(_contractName, DocumentationType::ABI_SOLIDITY_INTERFACE);
|
||||
}
|
||||
|
||||
string const& CompilerStack::getJsonDocumentation(string const& _contractName, DocumentationType _type) const
|
||||
{
|
||||
if (!m_parseSuccessful)
|
||||
@@ -162,6 +167,9 @@ string const& CompilerStack::getJsonDocumentation(string const& _contractName, D
|
||||
case DocumentationType::ABI_INTERFACE:
|
||||
doc = &contract.interface;
|
||||
break;
|
||||
case DocumentationType::ABI_SOLIDITY_INTERFACE:
|
||||
doc = &contract.solidityInterface;
|
||||
break;
|
||||
default:
|
||||
BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Illegal documentation type."));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user