diff options
author | chriseth <chris@ethereum.org> | 2017-01-05 17:53:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-05 17:53:08 +0800 |
commit | 0031e6a530a12d98752a1ad85750f25c9890a6ba (patch) | |
tree | da147b82710080d9db96d0f9b3443386b8316e63 | |
parent | 43d3f048e6df045697a3a77989c3e8a7f91603e9 (diff) | |
parent | 584356e7f63bbbd14a073760e2b5091f8b0919ef (diff) | |
download | dexon-solidity-0031e6a530a12d98752a1ad85750f25c9890a6ba.tar dexon-solidity-0031e6a530a12d98752a1ad85750f25c9890a6ba.tar.gz dexon-solidity-0031e6a530a12d98752a1ad85750f25c9890a6ba.tar.bz2 dexon-solidity-0031e6a530a12d98752a1ad85750f25c9890a6ba.tar.lz dexon-solidity-0031e6a530a12d98752a1ad85750f25c9890a6ba.tar.xz dexon-solidity-0031e6a530a12d98752a1ad85750f25c9890a6ba.tar.zst dexon-solidity-0031e6a530a12d98752a1ad85750f25c9890a6ba.zip |
Merge pull request #1545 from federicobond/refactor-rename
Rename contractName to typeName when parsing new expression
-rw-r--r-- | libsolidity/parsing/Parser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp index f02a4a45..e26e2908 100644 --- a/libsolidity/parsing/Parser.cpp +++ b/libsolidity/parsing/Parser.cpp @@ -1153,9 +1153,9 @@ ASTPointer<Expression> Parser::parseLeftHandSideExpression( else if (m_scanner->currentToken() == Token::New) { expectToken(Token::New); - ASTPointer<TypeName> contractName(parseTypeName(false)); - nodeFactory.setEndPositionFromNode(contractName); - expression = nodeFactory.createNode<NewExpression>(contractName); + ASTPointer<TypeName> typeName(parseTypeName(false)); + nodeFactory.setEndPositionFromNode(typeName); + expression = nodeFactory.createNode<NewExpression>(typeName); } else expression = parsePrimaryExpression(); |