mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove unneccesary interface from Natspec
This commit is contained in:
1 parent
01fbc63623
commit
5bb4bfb08b
3 files changed
+6
-31
No files matched your search
@@ -26,28 +26,11 @@
|
||||
#include <libsolidity/interface/Natspec.h>
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <libsolidity/ast/AST.h>
|
||||
#include <libsolidity/interface/CompilerStack.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace dev;
|
||||
using namespace dev::solidity;
|
||||
|
||||
Json::Value Natspec::documentation(
|
||||
ContractDefinition const& _contractDef,
|
||||
DocumentationType _type
|
||||
)
|
||||
{
|
||||
switch(_type)
|
||||
{
|
||||
case DocumentationType::NatspecUser:
|
||||
return userDocumentation(_contractDef);
|
||||
case DocumentationType::NatspecDev:
|
||||
return devDocumentation(_contractDef);
|
||||
}
|
||||
|
||||
BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Unknown documentation type"));
|
||||
}
|
||||
|
||||
Json::Value Natspec::userDocumentation(ContractDefinition const& _contractDef)
|
||||
{
|
||||
Json::Value doc;
|
||||
|
||||
Reference in new issue
Block a user