Comments and warnings.

This commit is contained in:
Christian 2015-02-23 14:55:06 +01:00
parent c8b03c51a0
commit 39c471f332
3 changed files with 4 additions and 2 deletions

View File

@ -631,6 +631,8 @@ ASTPointer<Statement> Parser::parseSimpleStatement()
return parseVariableDeclarationStatement(); return parseVariableDeclarationStatement();
case LookAheadInfo::ExpressionStatement: case LookAheadInfo::ExpressionStatement:
return parseExpressionStatement(); return parseExpressionStatement();
default:
break;
} }
// At this point, we have '(Identifier|ElementaryTypeName) "["'. // At this point, we have '(Identifier|ElementaryTypeName) "["'.

View File

@ -108,7 +108,7 @@ private:
}; };
/// Performs limited look-ahead to distinguish between variable declaration and expression statement. /// Performs limited look-ahead to distinguish between variable declaration and expression statement.
/// For source code of the form "a[][8]" ("IndexAccessStructure"), this it is not possible to /// For source code of the form "a[][8]" ("IndexAccessStructure"), this is not possible to
/// decide with constant look-ahead. /// decide with constant look-ahead.
LookAheadInfo peekStatementType() const; LookAheadInfo peekStatementType() const;
/// Returns a typename parsed in look-ahead fashion from something like "a[8][2**70]". /// Returns a typename parsed in look-ahead fashion from something like "a[8][2**70]".

View File

@ -279,7 +279,7 @@ public:
}; };
/** /**
* The type of an array, the flavours are byte array (bytes), statically- (<type>[<length>]) * The type of an array. The flavours are byte array (bytes), statically- (<type>[<length>])
* and dynamically-sized array (<type>[]). * and dynamically-sized array (<type>[]).
*/ */
class ArrayType: public Type class ArrayType: public Type