[mcs] Assignment to value type readonly generated variables needs to check all member...
[mono.git] / mcs / mcs / module.cs
index 4eeb37d59fa723b135ab002a8072ca581a640446..e7e02a0bf14d7f0a1fe29840919fcb06dac0f745 100644 (file)
@@ -187,9 +187,6 @@ namespace Mono.CSharp
                }
 
                public int CounterAnonymousTypes { get; set; }
-               public int CounterAnonymousMethods { get; set; }
-               public int CounterAnonymousContainers { get; set; }
-               public int CounterSwitchTypes { get; set; }
 
                public AssemblyDefinition DeclaringAssembly {
                        get {
@@ -314,7 +311,7 @@ namespace Mono.CSharp
 
                public override void AddTypeContainer (TypeContainer tc)
                {
-                       containers.Add (tc);
+                       AddTypeContainerMember (tc);
                }
 
                public override void ApplyAttributeBuilder (Attribute a, MethodSpec ctor, byte[] cdata, PredefinedAttributes pa)