aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-12-03 23:40:37 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-12-03 23:40:37 +0800
commit4eefbc941ef593d7649491a5f2681ecc2a61cfbe (patch)
tree5812f8d440e3fd615f16bb82af4db83260c0d288
parent2f7b263f9bc5e6bb75d0974721ca6b90cc9001e9 (diff)
downloaddexon-solidity-4eefbc941ef593d7649491a5f2681ecc2a61cfbe.tar.gz
dexon-solidity-4eefbc941ef593d7649491a5f2681ecc2a61cfbe.tar.zst
dexon-solidity-4eefbc941ef593d7649491a5f2681ecc2a61cfbe.zip
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
-rw-r--r--solidityJSONInterfaceTest.cpp2
-rw-r--r--solidityNatspecJSON.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/solidityJSONInterfaceTest.cpp b/solidityJSONInterfaceTest.cpp
index f46a3ad3..8fe0ea65 100644
--- a/solidityJSONInterfaceTest.cpp
+++ b/solidityJSONInterfaceTest.cpp
@@ -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;
diff --git a/solidityNatspecJSON.cpp b/solidityNatspecJSON.cpp
index f729e4ff..9e24d23e 100644
--- a/solidityNatspecJSON.cpp
+++ b/solidityNatspecJSON.cpp
@@ -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;