mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #11291 from ethereum/natspec
Remove dead code in NatSpec
This commit is contained in:
commit
9e6d26ffca
@ -164,7 +164,7 @@ DocStringParser::iter DocStringParser::parseDocTagParam(iter _pos, iter _end)
|
||||
|
||||
DocStringParser::iter DocStringParser::parseDocTag(iter _pos, iter _end, string const& _tag)
|
||||
{
|
||||
// LTODO: need to check for @(start of a tag) between here and the end of line
|
||||
// TODO: need to check for @(start of a tag) between here and the end of line
|
||||
// for all cases.
|
||||
if (!m_lastTag || _tag != "")
|
||||
{
|
||||
|
@ -35,7 +35,7 @@ class ErrorReporter;
|
||||
namespace solidity::frontend
|
||||
{
|
||||
|
||||
class StructurallyDocumented;
|
||||
class StructuredDocumentation;
|
||||
|
||||
class DocStringParser
|
||||
{
|
||||
@ -49,13 +49,10 @@ public:
|
||||
|
||||
private:
|
||||
using iter = std::string::const_iterator;
|
||||
void resetUser();
|
||||
void resetDev();
|
||||
|
||||
iter parseDocTagLine(iter _pos, iter _end, bool _appending);
|
||||
iter parseDocTagParam(iter _pos, iter _end);
|
||||
iter appendDocTagParam(iter _pos, iter _end);
|
||||
void parseDocString(std::string const& _string);
|
||||
|
||||
/// Parses the doc tag named @a _tag, adds it to m_docTags and returns the position
|
||||
/// after the tag.
|
||||
iter parseDocTag(iter _pos, iter _end, std::string const& _tag);
|
||||
|
@ -1419,7 +1419,7 @@ ASTPointer<ForStatement> Parser::parseForStatement(ASTPointer<ASTString> const&
|
||||
expectToken(Token::For);
|
||||
expectToken(Token::LParen);
|
||||
|
||||
// LTODO: Maybe here have some predicate like peekExpression() instead of checking for semicolon and RParen?
|
||||
// TODO: Maybe here have some predicate like peekExpression() instead of checking for semicolon and RParen?
|
||||
if (m_scanner->currentToken() != Token::Semicolon)
|
||||
initExpression = parseSimpleStatement(ASTPointer<ASTString>());
|
||||
expectToken(Token::Semicolon);
|
||||
|
Loading…
Reference in New Issue
Block a user