aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerStack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CompilerStack.cpp')
-rw-r--r--CompilerStack.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/CompilerStack.cpp b/CompilerStack.cpp
index a3399823..7cd8316c 100644
--- a/CompilerStack.cpp
+++ b/CompilerStack.cpp
@@ -124,10 +124,18 @@ void CompilerStack::parse()
resolver.updateDeclaration(*m_globalContext->getCurrentThis());
resolver.checkTypeRequirements(*contract);
m_contracts[contract->getName()].contract = contract;
+ parseNatspecDocumentation(*contract);
}
m_parseSuccessful = true;
}
+void CompilerStack::parseNatspecDocumentation(ContractDefinition& _contract)
+{
+ InterfaceHandler interfaceHandler;
+ interfaceHandler.generateDevDocumentation(_contract);
+ interfaceHandler.generateUserDocumentation(_contract);
+}
+
void CompilerStack::parse(string const& _sourceCode)
{
setSource(_sourceCode);