mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Moving comment to function body
This commit is contained in:
parent
5c05b8d725
commit
aa83d5ea3c
@ -596,12 +596,12 @@ vector<ASTPointer<Expression>> Parser::parseFunctionCallArguments()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// distinguish between variable definition (and potentially assignment) and expression statement
|
|
||||||
// (which include assignments to other expressions and pre-declared variables)
|
|
||||||
// We have a variable definition if we get a keyword that specifies a type name, or
|
|
||||||
// in the case of a user-defined type, we have two identifiers following each other.
|
|
||||||
bool Parser::peekVariableDefinition()
|
bool Parser::peekVariableDefinition()
|
||||||
{
|
{
|
||||||
|
// distinguish between variable definition (and potentially assignment) and expression statement
|
||||||
|
// (which include assignments to other expressions and pre-declared variables)
|
||||||
|
// We have a variable definition if we get a keyword that specifies a type name, or
|
||||||
|
// in the case of a user-defined type, we have two identifiers following each other.
|
||||||
return (m_scanner->getCurrentToken() == Token::MAPPING ||
|
return (m_scanner->getCurrentToken() == Token::MAPPING ||
|
||||||
m_scanner->getCurrentToken() == Token::VAR ||
|
m_scanner->getCurrentToken() == Token::VAR ||
|
||||||
((Token::isElementaryTypeName(m_scanner->getCurrentToken()) ||
|
((Token::isElementaryTypeName(m_scanner->getCurrentToken()) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user