mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rename contractName to typeName when parsing new expression
This commit is contained in:
parent
eafd852a76
commit
584356e7f6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user