diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-06-15 21:21:23 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-07-16 19:57:55 +0800 |
commit | 43398adc99b1e05c80dd31d44d742b4851c8771d (patch) | |
tree | 00e7e4434bb7b9b66a63b17b4834a780b55141ce /CompilerStack.cpp | |
parent | 54fa8ed7a69cdb9e4e83b3039d4e8a8806f11976 (diff) | |
download | dexon-solidity-43398adc99b1e05c80dd31d44d742b4851c8771d.tar dexon-solidity-43398adc99b1e05c80dd31d44d742b4851c8771d.tar.gz dexon-solidity-43398adc99b1e05c80dd31d44d742b4851c8771d.tar.bz2 dexon-solidity-43398adc99b1e05c80dd31d44d742b4851c8771d.tar.lz dexon-solidity-43398adc99b1e05c80dd31d44d742b4851c8771d.tar.xz dexon-solidity-43398adc99b1e05c80dd31d44d742b4851c8771d.tar.zst dexon-solidity-43398adc99b1e05c80dd31d44d742b4851c8771d.zip |
contract documentation is now parsing during compilation and not by request.
Diffstat (limited to 'CompilerStack.cpp')
-rw-r--r-- | CompilerStack.cpp | 8 |
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); |