aboutsummaryrefslogtreecommitdiffstats
path: root/InterfaceHandler.h
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2014-12-11 19:08:51 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2014-12-11 19:08:51 +0800
commitbea34ab0730c483e9b9b2465ea3b2e1b8186ef01 (patch)
tree1d31a694e3faa5856acc5a54b3f620703a70f2bf /InterfaceHandler.h
parentf86187a6e804761d5eb9e3e2bc0fc6c9c1976b68 (diff)
parent222790ffab92aa1c18d27c2c8550221475654bee (diff)
downloaddexon-solidity-bea34ab0730c483e9b9b2465ea3b2e1b8186ef01.tar.gz
dexon-solidity-bea34ab0730c483e9b9b2465ea3b2e1b8186ef01.tar.zst
dexon-solidity-bea34ab0730c483e9b9b2465ea3b2e1b8186ef01.zip
Merge branch 'macox_fixes' into build_enhancement
Conflicts: test/solidityNatspecJSON.cpp
Diffstat (limited to 'InterfaceHandler.h')
-rw-r--r--InterfaceHandler.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/InterfaceHandler.h b/InterfaceHandler.h
index 4fa63fcd..b1cd4b56 100644
--- a/InterfaceHandler.h
+++ b/InterfaceHandler.h
@@ -45,7 +45,15 @@ enum class DocTagType: uint8_t
DEV,
NOTICE,
PARAM,
- RETURN
+ RETURN,
+ AUTHOR,
+ TITLE
+};
+
+enum class CommentOwner
+{
+ CONTRACT,
+ FUNCTION
};
class InterfaceHandler
@@ -89,12 +97,14 @@ private:
std::string::const_iterator _end);
std::string::const_iterator appendDocTagParam(std::string::const_iterator _pos,
std::string::const_iterator _end);
- void parseDocString(std::string const& _string);
+ void parseDocString(std::string const& _string, CommentOwner _owner);
std::string::const_iterator appendDocTag(std::string::const_iterator _pos,
- std::string::const_iterator _end);
+ std::string::const_iterator _end,
+ CommentOwner _owner);
std::string::const_iterator parseDocTag(std::string::const_iterator _pos,
std::string::const_iterator _end,
- std::string const& _tag);
+ std::string const& _tag,
+ CommentOwner _owner);
Json::StyledWriter m_writer;
@@ -103,6 +113,9 @@ private:
std::string m_notice;
std::string m_dev;
std::string m_return;
+ std::string m_contractAuthor;
+ std::string m_author;
+ std::string m_title;
std::vector<std::pair<std::string, std::string>> m_params;
};