Merge pull request #1545 from federicobond/refactor-rename

Rename contractName to typeName when parsing new expression
This commit is contained in:
chriseth 2017-01-05 10:53:08 +01:00 committed by GitHub
commit 0031e6a530

View File

@ -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();