mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
restyleing
removed unnecessary check
This commit is contained in:
parent
ebb4d5e298
commit
27a89a36e1
3
AST.h
3
AST.h
@ -450,7 +450,8 @@ public:
|
|||||||
Visibility _visibility,
|
Visibility _visibility,
|
||||||
bool _isStateVar = false,
|
bool _isStateVar = false,
|
||||||
bool _isIndexed = false,
|
bool _isIndexed = false,
|
||||||
bool _isConstant = false):
|
bool _isConstant = false
|
||||||
|
):
|
||||||
Declaration(_location, _name, _visibility),
|
Declaration(_location, _name, _visibility),
|
||||||
m_typeName(_type),
|
m_typeName(_type),
|
||||||
m_value(_value),
|
m_value(_value),
|
||||||
|
@ -330,9 +330,6 @@ ASTPointer<VariableDeclaration> Parser::parseVariableDeclaration(
|
|||||||
}
|
}
|
||||||
if (token == Token::Const)
|
if (token == Token::Const)
|
||||||
{
|
{
|
||||||
solAssert(_options.isStateVariable, "");
|
|
||||||
if (m_scanner->peekNextToken() != Token::Identifier && !Token::isElementaryTypeName(m_scanner->peekNextToken()))
|
|
||||||
BOOST_THROW_EXCEPTION(createParserError("Invalid use of \"constant\" specifier"));
|
|
||||||
isDeclaredConst = true;
|
isDeclaredConst = true;
|
||||||
m_scanner->next();
|
m_scanner->next();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user