From 5a3cc313f1661450a1156708568b1edf05c4d441 Mon Sep 17 00:00:00 2001 From: liana Date: Fri, 6 Feb 2015 16:42:27 +0100 Subject: [PATCH] - some more changes --- libsolidity/Parser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsolidity/Parser.cpp b/libsolidity/Parser.cpp index 491b5f848..a542d9b70 100644 --- a/libsolidity/Parser.cpp +++ b/libsolidity/Parser.cpp @@ -267,6 +267,8 @@ ASTPointer Parser::parseVariableDeclaration(VarDeclParserOp { ASTNodeFactory nodeFactory(*this); ASTPointer type = parseTypeName(_options.allowVar); + if (type != nullptr) + nodeFactory.setEndPositionFromNode(type); bool isIndexed = false; ASTPointer identifier; Token::Value token = m_scanner->getCurrentToken();