mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Styling issues and add TODO in Interfacehandler
This commit is contained in:
parent
fbc35003ce
commit
aebd1490bd
@ -217,7 +217,8 @@ std::string::const_iterator InterfaceHandler::parseDocTag(std::string::const_ite
|
|||||||
CommentOwner _owner)
|
CommentOwner _owner)
|
||||||
{
|
{
|
||||||
// LTODO: need to check for @(start of a tag) between here and the end of line
|
// LTODO: need to check for @(start of a tag) between here and the end of line
|
||||||
// for all cases
|
// for all cases. Also somehow automate list of acceptable tags for each
|
||||||
|
// language construct since current way does not scale well.
|
||||||
if (m_lastTag == DocTagType::NONE || _tag != "")
|
if (m_lastTag == DocTagType::NONE || _tag != "")
|
||||||
{
|
{
|
||||||
if (_tag == "dev")
|
if (_tag == "dev")
|
||||||
@ -230,7 +231,7 @@ std::string::const_iterator InterfaceHandler::parseDocTag(std::string::const_ite
|
|||||||
{
|
{
|
||||||
if (_owner == CommentOwner::CONTRACT)
|
if (_owner == CommentOwner::CONTRACT)
|
||||||
return parseDocTagLine(_pos, _end, m_contractAuthor, DocTagType::AUTHOR);
|
return parseDocTagLine(_pos, _end, m_contractAuthor, DocTagType::AUTHOR);
|
||||||
else if(_owner == CommentOwner::FUNCTION)
|
else if (_owner == CommentOwner::FUNCTION)
|
||||||
return parseDocTagLine(_pos, _end, m_author, DocTagType::AUTHOR);
|
return parseDocTagLine(_pos, _end, m_author, DocTagType::AUTHOR);
|
||||||
else
|
else
|
||||||
// LTODO: for now this else makes no sense but later comments will go to more language constructs
|
// LTODO: for now this else makes no sense but later comments will go to more language constructs
|
||||||
@ -275,7 +276,7 @@ std::string::const_iterator InterfaceHandler::appendDocTag(std::string::const_it
|
|||||||
m_contractAuthor += " ";
|
m_contractAuthor += " ";
|
||||||
return parseDocTagLine(_pos, _end, m_contractAuthor, DocTagType::AUTHOR);
|
return parseDocTagLine(_pos, _end, m_contractAuthor, DocTagType::AUTHOR);
|
||||||
}
|
}
|
||||||
else if(_owner == CommentOwner::FUNCTION)
|
else if (_owner == CommentOwner::FUNCTION)
|
||||||
{
|
{
|
||||||
m_author += " ";
|
m_author += " ";
|
||||||
return parseDocTagLine(_pos, _end, m_author, DocTagType::AUTHOR);
|
return parseDocTagLine(_pos, _end, m_author, DocTagType::AUTHOR);
|
||||||
|
Loading…
Reference in New Issue
Block a user