Author: benm
Date: 2005-07-10 14:08:09 -0400 (Sun, 10 Jul 2005)
New Revision: 47154

Modified:
   trunk/mcs/tools/monop/ChangeLog
   trunk/mcs/tools/monop/outline.cs
Log:
2005-07-10  Ben Maurer  <[EMAIL PROTECTED]>

        * outline.cs: mark abstract methods with the "abstract" keyword.



Modified: trunk/mcs/tools/monop/ChangeLog
===================================================================
--- trunk/mcs/tools/monop/ChangeLog     2005-07-10 16:37:31 UTC (rev 47153)
+++ trunk/mcs/tools/monop/ChangeLog     2005-07-10 18:08:09 UTC (rev 47154)
@@ -1,3 +1,7 @@
+2005-07-10  Ben Maurer  <[EMAIL PROTECTED]>
+
+       * outline.cs: mark abstract methods with the "abstract" keyword.
+
 2005-07-09  Ben Maurer  <[EMAIL PROTECTED]>
 
        * outline.cs: Actually get the namespacing conditions right so

Modified: trunk/mcs/tools/monop/outline.cs
===================================================================
--- trunk/mcs/tools/monop/outline.cs    2005-07-10 16:37:31 UTC (rev 47153)
+++ trunk/mcs/tools/monop/outline.cs    2005-07-10 18:08:09 UTC (rev 47154)
@@ -473,13 +473,17 @@
        {
                if (method.IsStatic)
                        return "static ";
-       
+               
                // all interface methods are "virtual" but we don't say that in 
c#
-               if (method.IsVirtual && !method.DeclaringType.IsInterface)
+               if (method.IsVirtual && !method.DeclaringType.IsInterface) {
+                       if (method.IsAbstract)
+                               return "abstract ";
+
                        return ((method.Attributes & MethodAttributes.NewSlot) 
!= 0) ?
                                "virtual " :
-                               "override ";
-               
+                               "override ";    
+               }
+                               
                return null;
        }
 

_______________________________________________
Mono-patches maillist  -  Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to