mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fixed case statements
This commit is contained in:
parent
767103be57
commit
5a462afd03
@ -1153,6 +1153,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector<ASTPointer<Expression>> m_components;
|
std::vector<ASTPointer<Expression>> m_components;
|
||||||
|
bool isInlineArray() const { return m_isArray; }
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1034,7 +1034,8 @@ ASTPointer<Expression> Parser::parsePrimaryExpression()
|
|||||||
nodeFactory.markEndPosition();
|
nodeFactory.markEndPosition();
|
||||||
expression = nodeFactory.createNode<Identifier>(getLiteralAndAdvance());
|
expression = nodeFactory.createNode<Identifier>(getLiteralAndAdvance());
|
||||||
break;
|
break;
|
||||||
case Token::LParen || Token::LBrack:
|
case Token::LParen:
|
||||||
|
case Token::LBrack:
|
||||||
{
|
{
|
||||||
// Tuple or parenthesized expression.
|
// Tuple or parenthesized expression.
|
||||||
// Special cases: () is empty tuple type, (x) is not a real tuple, (x,) is one-dimensional tuple
|
// Special cases: () is empty tuple type, (x) is not a real tuple, (x,) is one-dimensional tuple
|
||||||
|
Loading…
Reference in New Issue
Block a user