From 43398adc99b1e05c80dd31d44d742b4851c8771d Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Mon, 15 Jun 2015 15:21:23 +0200 Subject: contract documentation is now parsing during compilation and not by request. --- AST.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'AST.h') diff --git a/AST.h b/AST.h index 658b3de9..38262d00 100644 --- a/AST.h +++ b/AST.h @@ -281,6 +281,12 @@ public: /// Returns the fallback function or nullptr if no fallback function was specified. FunctionDefinition const* getFallbackFunction() const; + std::unique_ptr userDocumentation() const; + void setUserDocumentation(std::string const& _userDocumentation); + + std::unique_ptr devDocumentation() const; + void setDevDocumentation(std::string const& _devDocumentation); + private: /// Checks that two functions defined in this contract with the same name have different /// arguments and that there is at most one constructor. @@ -302,6 +308,10 @@ private: std::vector> m_functionModifiers; std::vector> m_events; + // parsed Natspec documentation of the contract. + std::string m_userDocumentation; + std::string m_devDocumentation; + std::vector m_linearizedBaseContracts; mutable std::unique_ptr, FunctionTypePointer>>> m_interfaceFunctionList; mutable std::unique_ptr>> m_interfaceEvents; -- cgit v1.2.3