2005-11-13 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Sun, 13 Nov 2005 17:30:36 +0000 (17:30 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Sun, 13 Nov 2005 17:30:36 +0000 (17:30 -0000)
* doc.cs : when there was no '.' in cref to methods in doc comment,
  then parameters were missing in the output. Fixed bug #76691.

* test-xml-041.xml test-xml-041.cs : new test for bug #76691.

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

mcs/mcs/ChangeLog
mcs/mcs/doc.cs
mcs/tests/ChangeLog
mcs/tests/test-xml-041-ref.xml [new file with mode: 0644]
mcs/tests/test-xml-041.cs [new file with mode: 0644]

index 4d44a35b0d716fd698743a2783310e6514d5dd95..492de88ad28714176c660c1ab9cd34779a71a511 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * doc.cs : when there was no '.' in cref to methods in doc comment,
+         then parameters were missing in the output. Fixed bug #76691.
+
 2005-11-13  Atsushi Enomoto  <atsushi@ximian.com>
 
        * driver.cs : don't output docs when there is an error.
index 1077cb8533df0357757e98fef0056cc3291342b2..6ee812cce4c739467b206f8fa4f0adc32f02d992 100644 (file)
@@ -620,7 +620,7 @@ namespace Mono.CSharp {
                                if (warnResult > 0)
                                        return;
                                if (mi != null) {
-                                       xref.SetAttribute ("cref", GetMemberDocHead (mi.MemberType) + ds.TypeBuilder.FullName.Replace ("+", ".") + "." + name);
+                                       xref.SetAttribute ("cref", GetMemberDocHead (mi.MemberType) + ds.TypeBuilder.FullName.Replace ("+", ".") + "." + name + parameters);
                                        return; // local member name
                                }
                        }
index 6d6743b25a62243844a198223e24ea22b94712ff..8d8ff15531350df4048e8bf9b54230e7b54a5245 100644 (file)
@@ -1,3 +1,7 @@
+2005-11-13  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * test-xml-041.xml test-xml-041.cs : new test for bug #76691.
+
 2005-11-13  Atsushi Enomoto  <atsushi@ximian.com>
 
        * test-xml-040.xml test-xml-040.cs : new test for bug #76685.
diff --git a/mcs/tests/test-xml-041-ref.xml b/mcs/tests/test-xml-041-ref.xml
new file mode 100644 (file)
index 0000000..fc53a6c
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<doc>
+    <assembly>
+        <name>test-xml-041</name>
+    </assembly>
+    <members>
+        <member name="T:EntryPoint">
+            <summary />
+        </member>
+        <member name="T:EntryPoint.A">
+            <summary>
+            <see cref="M:EntryPoint.A.Decide(System.Int32)"/>
+            </summary>
+        </member>
+    </members>
+</doc>
diff --git a/mcs/tests/test-xml-041.cs b/mcs/tests/test-xml-041.cs
new file mode 100644 (file)
index 0000000..f7a55bd
--- /dev/null
@@ -0,0 +1,18 @@
+// Compiler options: -doc:xml-042.xml -warnaserror -warn:4
+/// <summary />
+public class EntryPoint
+{
+  static void Main()
+  {
+  }
+
+  /// <summary>
+  /// <see cref="Decide(int)" />
+  /// </summary>
+  private class A
+  {
+    public virtual void Decide(int a)
+    {
+    }
+  }
+}