mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Moving all Interface and Documentation functionality to own class
- Creating the Interface Handler class which will take care of the parsing of Natspec comments and of interfacing with and outputing to JSON files. - Will also handle the ABI interface creation
This commit is contained in:
parent
2f7b263f9b
commit
4eefbc941e
@ -50,7 +50,7 @@ public:
|
||||
msg += *extra;
|
||||
BOOST_FAIL(msg);
|
||||
}
|
||||
std::string generatedInterfaceString = m_compilerStack.getInterface();
|
||||
std::string generatedInterfaceString = *m_compilerStack.getJsonDocumentation(ABI_INTERFACE);
|
||||
Json::Value generatedInterface;
|
||||
m_reader.parse(generatedInterfaceString, generatedInterface);
|
||||
Json::Value expectedInterface;
|
||||
|
@ -55,9 +55,9 @@ public:
|
||||
}
|
||||
|
||||
if (_userDocumentation)
|
||||
generatedDocumentationString = m_compilerStack.getUserDocumentation();
|
||||
generatedDocumentationString = *m_compilerStack.getJsonDocumentation(NATSPEC_USER);
|
||||
else
|
||||
generatedDocumentationString = m_compilerStack.getDevDocumentation();
|
||||
generatedDocumentationString = *m_compilerStack.getJsonDocumentation(NATSPEC_DEV);
|
||||
Json::Value generatedDocumentation;
|
||||
m_reader.parse(generatedDocumentationString, generatedDocumentation);
|
||||
Json::Value expectedDocumentation;
|
||||
|
Loading…
Reference in New Issue
Block a user