aboutsummaryrefslogtreecommitdiffstats
path: root/Parser.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-12-17 07:28:26 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-12-17 07:28:26 +0800
commitaa83d5ea3cd8bfaf3ff77a684848316662dee07b (patch)
tree6c88eb4d8bbddd4eda1f9f25c426d1eeedf9468d /Parser.cpp
parent5c05b8d725f383185ccd3afc700c2c8bac33b16f (diff)
downloaddexon-solidity-aa83d5ea3cd8bfaf3ff77a684848316662dee07b.tar
dexon-solidity-aa83d5ea3cd8bfaf3ff77a684848316662dee07b.tar.gz
dexon-solidity-aa83d5ea3cd8bfaf3ff77a684848316662dee07b.tar.bz2
dexon-solidity-aa83d5ea3cd8bfaf3ff77a684848316662dee07b.tar.lz
dexon-solidity-aa83d5ea3cd8bfaf3ff77a684848316662dee07b.tar.xz
dexon-solidity-aa83d5ea3cd8bfaf3ff77a684848316662dee07b.tar.zst
dexon-solidity-aa83d5ea3cd8bfaf3ff77a684848316662dee07b.zip
Moving comment to function body
Diffstat (limited to 'Parser.cpp')
-rw-r--r--Parser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Parser.cpp b/Parser.cpp
index 73235675..e287319d 100644
--- a/Parser.cpp
+++ b/Parser.cpp
@@ -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()
{
+ // 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 ||
m_scanner->getCurrentToken() == Token::VAR ||
((Token::isElementaryTypeName(m_scanner->getCurrentToken()) ||