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)
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user