Rename contractName to typeName when parsing new expression

This commit is contained in:
Federico Bond 2017-01-04 23:09:10 -03:00
parent eafd852a76
commit 584356e7f6

View File

@ -1153,9 +1153,9 @@ ASTPointer<Expression> Parser::parseLeftHandSideExpression(
else if (m_scanner->currentToken() == Token::New) else if (m_scanner->currentToken() == Token::New)
{ {
expectToken(Token::New); expectToken(Token::New);
ASTPointer<TypeName> contractName(parseTypeName(false)); ASTPointer<TypeName> typeName(parseTypeName(false));
nodeFactory.setEndPositionFromNode(contractName); nodeFactory.setEndPositionFromNode(typeName);
expression = nodeFactory.createNode<NewExpression>(contractName); expression = nodeFactory.createNode<NewExpression>(typeName);
} }
else else
expression = parsePrimaryExpression(); expression = parsePrimaryExpression();