aboutsummaryrefslogtreecommitdiffstats
path: root/Parser.cpp
diff options
context:
space:
mode:
authorliana <liana@ethdev.com>2015-02-06 23:42:27 +0800
committerLiana Husikyan <liana@ethdev.com>2015-02-09 09:25:18 +0800
commit97b443e1812a4b5564191db7123442882f0db8f7 (patch)
tree0320ee850ab0abd27646758c6bb1f9af8fb62257 /Parser.cpp
parentbcccfa8805dfe471b2e3711a23dcb2e0caf7e7bb (diff)
downloaddexon-solidity-97b443e1812a4b5564191db7123442882f0db8f7.tar.gz
dexon-solidity-97b443e1812a4b5564191db7123442882f0db8f7.tar.zst
dexon-solidity-97b443e1812a4b5564191db7123442882f0db8f7.zip
- some more changes
Diffstat (limited to 'Parser.cpp')
-rw-r--r--Parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Parser.cpp b/Parser.cpp
index 491b5f84..a542d9b7 100644
--- a/Parser.cpp
+++ b/Parser.cpp
@@ -267,6 +267,8 @@ ASTPointer<VariableDeclaration> Parser::parseVariableDeclaration(VarDeclParserOp
{
ASTNodeFactory nodeFactory(*this);
ASTPointer<TypeName> type = parseTypeName(_options.allowVar);
+ if (type != nullptr)
+ nodeFactory.setEndPositionFromNode(type);
bool isIndexed = false;
ASTPointer<ASTString> identifier;
Token::Value token = m_scanner->getCurrentToken();