2007-03-20 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / mcs / doc.cs
index 90a9d1bb66f255d215ffcb3c66916412a5f54c0c..7bf5a78fa493e7bd497802ca05c605c41898c3fd 100644 (file)
@@ -65,9 +65,6 @@ namespace Mono.CSharp {
                        if (t.Delegates != null)
                                foreach (Delegate de in t.Delegates)
                                        de.GenerateDocComment (t);
-                       if (t.Enums != null)
-                               foreach (Enum en in t.Enums)
-                                       en.GenerateDocComment (t);
 
                        if (t.Constants != null)
                                foreach (Const c in t.Constants)
@@ -327,7 +324,7 @@ namespace Mono.CSharp {
                        case "void":
                                return typeof (void);
                        }
-                       FullNamedExpression e = ds.LookupType (identifier, mc.Location, false);
+                       FullNamedExpression e = ds.LookupNamespaceOrType (identifier, mc.Location, false);
                        if (e != null) {
                                if (!(e is TypeExpr))
                                        return null;
@@ -366,7 +363,7 @@ namespace Mono.CSharp {
 
                static bool IsOverride (PropertyInfo deriv_prop, PropertyInfo base_prop)
                {
-                       if (!Invocation.IsAncestralType (base_prop.DeclaringType, deriv_prop.DeclaringType))
+                       if (!MethodGroupExpr.IsAncestralType (base_prop.DeclaringType, deriv_prop.DeclaringType))
                                return false;
 
                        Type [] deriv_pd = TypeManager.GetArgumentTypes (deriv_prop);
@@ -405,7 +402,7 @@ namespace Mono.CSharp {
                                                        continue;
                                                MethodBase my = ml [j] as MethodBase;
                                                if (mx != null && my != null &&
-                                                       Invocation.IsOverride (my, mx)) {
+                                                       MethodGroupExpr.IsOverride (my, mx)) {
                                                        overriden = true;
                                                        break;
                                                }
@@ -855,9 +852,9 @@ namespace Mono.CSharp {
                // Returns a string that represents the signature for this 
                // member which should be used in XML documentation.
                //
-               public static string GetMethodDocCommentName (MethodCore mc, DeclSpace ds)
+               public static string GetMethodDocCommentName (MemberCore mc, Parameters parameters, DeclSpace ds)
                {
-                       Parameter [] plist = mc.Parameters.FixedParameters;
+                       Parameter [] plist = parameters.FixedParameters;
                        string paramSpec = String.Empty;
                        if (plist != null) {
                                StringBuilder psb = new StringBuilder ();
@@ -1029,9 +1026,6 @@ namespace Mono.CSharp {
                public void GenerateDocComment ()
                {
                        TypeContainer root = RootContext.ToplevelTypes;
-                       if (root.Interfaces != null)
-                               foreach (Interface i in root.Interfaces) 
-                                       DocUtil.GenerateTypeDocComment (i, null);
 
                        if (root.Types != null)
                                foreach (TypeContainer tc in root.Types)
@@ -1040,11 +1034,6 @@ namespace Mono.CSharp {
                        if (root.Delegates != null)
                                foreach (Delegate d in root.Delegates) 
                                        DocUtil.GenerateDocComment (d, null);
-
-                       if (root.Enums != null)
-                               foreach (Enum e in root.Enums)
-                                       e.GenerateDocComment (null);
-
                }
        }
 }