mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix function call option parsing and add to grammar.
This commit is contained in:
parent
5de3379d82
commit
5247a6600e
@ -96,6 +96,7 @@ Expression
|
|||||||
| IndexRangeAccess
|
| IndexRangeAccess
|
||||||
| MemberAccess
|
| MemberAccess
|
||||||
| FunctionCall
|
| FunctionCall
|
||||||
|
| Expression '{' NameValueList '}'
|
||||||
| '(' Expression ')'
|
| '(' Expression ')'
|
||||||
| ('!' | '~' | 'delete' | '++' | '--' | '+' | '-') Expression
|
| ('!' | '~' | 'delete' | '++' | '--' | '+' | '-') Expression
|
||||||
| Expression '**' Expression
|
| Expression '**' Expression
|
||||||
|
@ -1768,7 +1768,7 @@ ASTPointer<Expression> Parser::parseLeftHandSideExpression(
|
|||||||
nodeFactory.markEndPosition();
|
nodeFactory.markEndPosition();
|
||||||
expectToken(Token::RBrace);
|
expectToken(Token::RBrace);
|
||||||
|
|
||||||
expression = parseLeftHandSideExpression(nodeFactory.createNode<FunctionCallOptions>(expression, optionList.first, optionList.second));
|
expression = nodeFactory.createNode<FunctionCallOptions>(expression, optionList.first, optionList.second);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user