- added assertion

This commit is contained in:
liana
2015-02-09 02:25:18 +01:00
committed by Liana Husikyan
parent 97b443e181
commit 516e46ea6b
+1
View File
@@ -284,6 +284,7 @@ ASTPointer<VariableDeclaration> Parser::parseVariableDeclaration(VarDeclParserOp
if (_options.allowEmptyName && m_scanner->getCurrentToken() != Token::IDENTIFIER)
{
identifier = make_shared<ASTString>("");
solAssert(!!type, "");
nodeFactory.setEndPositionFromNode(type);
}
else