diff options
author | Federico Bond <federicobond@gmail.com> | 2017-01-05 10:09:10 +0800 |
---|---|---|
committer | Federico Bond <federicobond@gmail.com> | 2017-01-05 10:09:10 +0800 |
commit | 584356e7f63bbbd14a073760e2b5091f8b0919ef (patch) | |
tree | 37a8c02949f60df68b5f688d7e05da6e0aea0254 /libsolidity/parsing | |
parent | eafd852a766645da0cb466bff681b9bbb1d6da00 (diff) | |
download | dexon-solidity-584356e7f63bbbd14a073760e2b5091f8b0919ef.tar.gz dexon-solidity-584356e7f63bbbd14a073760e2b5091f8b0919ef.tar.zst dexon-solidity-584356e7f63bbbd14a073760e2b5091f8b0919ef.zip |
Rename contractName to typeName when parsing new expression
Diffstat (limited to 'libsolidity/parsing')
-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(); |