Author: marek
Date: 2007-08-31 15:07:10 -0400 (Fri, 31 Aug 2007)
New Revision: 85150

Modified:
   trunk/mcs/gmcs/ChangeLog
   trunk/mcs/gmcs/generic.cs
Log:
2007-08-31  Marek Safar  <[EMAIL PROTECTED]>

        * generic.cs (TypeParameter): Uses common Emit.
        (.IsClsComplianceRequired): Is never required.
        


Modified: trunk/mcs/gmcs/ChangeLog
===================================================================
--- trunk/mcs/gmcs/ChangeLog    2007-08-31 19:06:29 UTC (rev 85149)
+++ trunk/mcs/gmcs/ChangeLog    2007-08-31 19:07:10 UTC (rev 85150)
@@ -1,5 +1,10 @@
 2007-08-31  Marek Safar  <[EMAIL PROTECTED]>
 
+       * generic.cs (TypeParameter): Uses common Emit.
+       (.IsClsComplianceRequired): Is never required.
+
+2007-08-31  Marek Safar  <[EMAIL PROTECTED]>
+
        * cs-parser.jay: Terminates query block correctly. Fixed orderby 
        chaining.
        

Modified: trunk/mcs/gmcs/generic.cs
===================================================================
--- trunk/mcs/gmcs/generic.cs   2007-08-31 19:06:29 UTC (rev 85149)
+++ trunk/mcs/gmcs/generic.cs   2007-08-31 19:07:10 UTC (rev 85150)
@@ -594,7 +594,8 @@
        /// <summary>
        ///   A type parameter from a generic type definition.
        /// </summary>
-       public class TypeParameter : MemberCore, IMemberContainer {
+       public class TypeParameter : MemberCore, IMemberContainer
+       {
                string name;
                DeclSpace decl;
                GenericConstraints gc;
@@ -831,10 +832,12 @@
                        return true;
                }
 
-               public void EmitAttributes ()
+               public override void Emit ()
                {
                        if (OptAttributes != null)
                                OptAttributes.Emit ();
+
+                       base.Emit ();
                }
 
                public override string DocCommentHeader {
@@ -977,6 +980,11 @@
                        if (constraints != null)
                                gc = new InflatedConstraints (constraints, 
declaring);
                }
+               
+               public override bool IsClsComplianceRequired ()
+               {
+                       return false;
+               }
 
                protected class InflatedConstraints : GenericConstraints
                {
@@ -1937,7 +1945,7 @@
                public void EmitAttributes ()
                {
                        for (int i = 0; i < TypeParameters.Length; i++)
-                               TypeParameters [i].EmitAttributes ();
+                               TypeParameters [i].Emit ();
 
                        if (OptAttributes != null)
                                OptAttributes.Emit ();

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to