From 639b85f4987db13bebdd751b205424810a7daab7 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 27 Sep 2017 19:27:36 +0200 Subject: Fix source location of VariableDeclarationStatement. --- libsolidity/parsing/Parser.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libsolidity') diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp index 9a8bb358..821e81d2 100644 --- a/libsolidity/parsing/Parser.cpp +++ b/libsolidity/parsing/Parser.cpp @@ -1133,6 +1133,7 @@ ASTPointer Parser::parseVariableDeclarationStateme options.allowVar = true; options.allowLocationSpecifier = true; variables.push_back(parseVariableDeclaration(options, _lookAheadArrayType)); + nodeFactory.setEndPositionFromNode(variables.back()); } if (m_scanner->currentToken() == Token::Assign) { -- cgit v1.2.3