2005-07-10 Ben Maurer <bmaurer@ximian.com>
authorBen Maurer <benm@mono-cvs.ximian.com>
Sun, 10 Jul 2005 18:08:09 +0000 (18:08 -0000)
committerBen Maurer <benm@mono-cvs.ximian.com>
Sun, 10 Jul 2005 18:08:09 +0000 (18:08 -0000)
* outline.cs: mark abstract methods with the "abstract" keyword.

svn path=/trunk/mcs/; revision=47154

mcs/tools/monop/ChangeLog
mcs/tools/monop/outline.cs

index a4d6daf1101942d9ca72db05f7290222fe289ddd..ed2b5eeb4c2def8a8f1101ba33bdaaeac8f32b63 100644 (file)
@@ -1,3 +1,7 @@
+2005-07-10  Ben Maurer  <bmaurer@ximian.com>
+
+       * outline.cs: mark abstract methods with the "abstract" keyword.
+
 2005-07-09  Ben Maurer  <bmaurer@ximian.com>
 
        * outline.cs: Actually get the namespacing conditions right so
index a8bbbff58058fcc03921111c83730a1dd2711c45..d37e22ac4e255e268155f868fac879f6936601e0 100644 (file)
@@ -473,13 +473,17 @@ public class Outline {
        {
                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;
        }