* mb-parser.jay:
* block.cs: Support and successfully find goto target labels
declared out of block that contains the goto statement.
svn path=/trunk/mcs/; revision=47289
+2005-07-13 Maverson Eduardo Schulze Rosa <maverson@gmail.com>
+ * mb-parser.jay:
+ * block.cs: Support and successfully find goto target labels
+ declared out of block that contains the goto statement.
+
2005-07-13 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
*statement.cs: extract class Block into new source block.cs
*mbas.exe.sources: added newly extracted block.cs
return null;
foreach (Block child in children) {
- if (!child.Implicit)
- continue;
+ // if (!child.Implicit)
+ // continue;
s = child.LookupLabel (name);
if (s != null)
goto_statement
: GOTO label_name
{
+ Block block = current_block;
+
+ while( current_block.Parent != null )
+ current_block = current_block.Parent;
+
$$ = new Goto (current_block, (string) $2, lexer.Location);
+
+ current_block = block;
}
;