- added assertion

This commit is contained in:
liana 2015-02-06 16:57:26 +01:00 committed by Liana Husikyan
parent 97b443e181
commit 516e46ea6b

View File

@ -284,6 +284,7 @@ ASTPointer<VariableDeclaration> Parser::parseVariableDeclaration(VarDeclParserOp
if (_options.allowEmptyName && m_scanner->getCurrentToken() != Token::IDENTIFIER) if (_options.allowEmptyName && m_scanner->getCurrentToken() != Token::IDENTIFIER)
{ {
identifier = make_shared<ASTString>(""); identifier = make_shared<ASTString>("");
solAssert(!!type, "");
nodeFactory.setEndPositionFromNode(type); nodeFactory.setEndPositionFromNode(type);
} }
else else