* System.CodeDom.Compiler/CodeGenerator.cs: Clear out the current member
authorJonathan Pryor <jpryor@novell.com>
Tue, 13 Apr 2010 18:48:04 +0000 (18:48 -0000)
committerJonathan Pryor <jpryor@novell.com>
Tue, 13 Apr 2010 18:48:04 +0000 (18:48 -0000)
commit3a3269001b86585f14d845aa2e15f7d9b5b88ae4
treea624f8a41ddc4c6e80adf5ac9240ed61afca4efd
parentee7334759ab1704b218087414b858113c76475dc
* System.CodeDom.Compiler/CodeGenerator.cs: Clear out the current member
  when beginning Type generation.  This prevents "invalid"
  `#endregion`s; if the CodeGenerator instance is reused for multiple
  types, the last member of the first type has an EndDirective, then
  the EndDirectvies will be generated before any members of the 2nd
  type.  Don't do that.
* Test/System.CodeDom.Compiler/CodeGeneratorTest.cs: Add some testing
  for CodeRegionDirectives.

svn path=/trunk/mcs/; revision=155321
mcs/class/System/System.CodeDom.Compiler/ChangeLog
mcs/class/System/System.CodeDom.Compiler/CodeGenerator.cs
mcs/class/System/Test/System.CodeDom.Compiler/ChangeLog
mcs/class/System/Test/System.CodeDom.Compiler/CodeGeneratorTest.cs