fixed case statements

This commit is contained in:
RJ Catalano 2015-12-15 11:37:00 -06:00
parent 767103be57
commit 5a462afd03
2 changed files with 3 additions and 1 deletions

View File

@ -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; }
}; };
/** /**

View File

@ -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