diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2005-03-29 16:27:05 +0400 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2005-03-29 16:27:05 +0400 |
commit | 22c7174256b1626d62ee0e125abb5996bc636a30 (patch) | |
tree | 53593a411e9b091d214df566739307d17e669860 /mcs/errors/ChangeLog | |
parent | 1466ec3475e6126d0a6dfb95b633f6175c4661d5 (diff) |
In mcs:
Fix #47991. Remove a TODO.
* statement.cs (Block.Toplevel): Make into a field.
(Block.Parameters): Move into ToplevelBlock.
(Block.known_variables): Rename from child_variable_names.
(Block.Block): Remove variants that take Parameters. Initialize
'Toplevel' with the immediately surrounding toplevel block.
(Block.AddKnownVariable): Rename from AddChildVariableName. Add a
LocalInfo parameter.
(Block.GetKnownVariableInfo): New.
(Block.IsVariableNameUsedInChildBlock): Update.
(Block.IsVariableNameUsedInBlock): New. Checks if a name is used in
the block, even though it may not be in scope.
(Block.AddVariable): Remove Parameters parameter. Use
Toplevel.Parameters instead.
(Block.AddConstant): Remove Parameters parameter.
(Block.GetParameterReference): Update to use Toplevel.Parameters.
(Block.IsParamaterReference): Likewise.
(Block.IsLocalParameter): Likewise. Simplify a lot.
(ToplevelBlock.Parameters): New. Moved from Block.
(ToplevelBlock.ToplevelBlock): Update to changes. Always
initialize Parameters to a non-null value.
* cs-parser.jay: Update to changes.
* ecore.cs (SimpleName.SimpleNameResolve): Emit cs0136 error for
simple names that mean different things in the same block. Use
Block.IsVariableNameUsedInBlock.
In errors:
* cs0136-3.cs, cs0136-4.cs: New tests from #47991.
svn path=/trunk/mcs/; revision=42330
Diffstat (limited to 'mcs/errors/ChangeLog')
-rw-r--r-- | mcs/errors/ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mcs/errors/ChangeLog b/mcs/errors/ChangeLog index c38d6c3eb06..6d753ae21fa 100644 --- a/mcs/errors/ChangeLog +++ b/mcs/errors/ChangeLog @@ -1,3 +1,7 @@ +2005-03-29 Raja R Harinath <rharinath@novell.com> + + * cs0136-3.cs, cs0136-4.cs: New tests from #47991. + 2005-03-18 Raja R Harinath <rharinath@novell.com> * Makefile (DISTFILES): Don't distribute TestRunner.exe. |