diff options
author | liana <liana@ethdev.com> | 2015-02-06 23:42:27 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-02-09 09:25:18 +0800 |
commit | 97b443e1812a4b5564191db7123442882f0db8f7 (patch) | |
tree | 0320ee850ab0abd27646758c6bb1f9af8fb62257 /Parser.cpp | |
parent | bcccfa8805dfe471b2e3711a23dcb2e0caf7e7bb (diff) | |
download | dexon-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.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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(); |