In mcs:
[mono.git] / mcs / mcs / doc.cs
index ca85b27b089f66a6a356ce7489e818425e141d6e..fc5043d11b6b0114dd68602ca915c8fda86c48b1 100644 (file)
@@ -594,7 +594,7 @@ namespace Mono.CSharp {
                        }
 
                        // don't use identifier here. System[] is not alloed.
-                       if (Namespace.IsNamespace (name)) {
+                       if (RootNamespace.Global.IsNamespace (name)) {
                                xref.SetAttribute ("cref", "N:" + name);
                                return; // a namespace
                        }
@@ -742,16 +742,6 @@ namespace Mono.CSharp {
                        }
                }
 
-               // Enum
-               public static void GenerateEnumDocComment (Enum e, DeclSpace ds)
-               {
-                       GenerateDocComment (e, ds);
-                       foreach (string name in e.ordered_enums) {
-                               MemberCore mc = e.GetDefinition (name);
-                               GenerateDocComment (mc, e);
-                       }
-               }
-
                private static void Normalize (MemberCore mc, ref string name)
                {
                        if (name.Length > 0 && name [0] == '@')
@@ -885,10 +875,12 @@ namespace Mono.CSharp {
 
                        if (root.Enums != null)
                                foreach (Enum e in root.Enums)
-                                       DocUtil.GenerateEnumDocComment (e, null);
+                                       e.GenerateDocComment (null);
 
                        IDictionary table = new ListDictionary ();
                        foreach (ClassPart cp in PartialComments.Keys) {
+                               // FIXME: IDictionary does not guarantee that the keys will be
+                               //        accessed in the order they were added.
                                table [cp.PartialContainer] += cp.DocComment;
                        }
                        foreach (PartialContainer pc in table.Keys) {