* cs-parser.jay, statement.cs: Handle parser error in code
completition.
svn path=/trunk/mcs/; revision=148024
+2009-12-10 Marek Safar <marek.safar@gmail.com>
+
+ * cs-parser.jay, statement.cs: Handle parser error in code
+ completition.
+
2009-12-10 Marek Safar <marek.safar@gmail.com>
* ecore.cs: Ignore base imported methods when they are already
| error
{
Error_SyntaxError (yyToken);
- $$ = null;
+ $$ = EmptyStatement.Value;
}
;
//
int statement_count = statements.Count;
for (int ix = 0; ix < statement_count; ix++){
- Statement s = (Statement) statements [ix];
+ Statement s = statements [ix];
// Check possible empty statement (CS0642)
if (ix + 1 < statement_count && ec.Report.WarningLevel >= 3 &&
statements [ix + 1] is ExplicitBlock)