* doc.cs : apply "override filter" also to properties.
Fixed bug #76730.
* test-xml-047-ref.xml test-xml-047.cs :
Another override filtering test (works with gmcs).
* cs1574-7.cs : fixed code format ("Line") to make it working.
* cs0419-3.cs : new test for ambiguity resolution.
* known-issues-gmcs : actually cs1574-7.cs is kind of regression,
thus no need to be added here.
svn path=/trunk/mcs/; revision=53150
+2005-11-16 Atsushi Enomoto <atsushi@ximian.com>
+
+ * cs1574-7.cs : fixed code format ("Line") to make it working.
+ * cs0419-3.cs : new test for ambiguity resolution.
+ * known-issues-gmcs : actually cs1574-7.cs is kind of regression,
+ thus no need to be added here.
+
2005-11-16 Atsushi Enomoto <atsushi@ximian.com>
* cs1574-7.cs : new test to warn doc reference to interface members
--- /dev/null
+// cs0419-3.cs: Ambiguous reference in cref attribute `XmlDocument.Load'. Assuming `System.Xml.XmlDocument.Load(System.IO.Stream)' but other overloads including `System.Xml.XmlDocument.Load(string)' have also matched
+// Line: 10
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+//
+// NOTE: this error message is dependent on the order of members, so feel free to modify the message if is going not to match.
+
+using System.Xml;
+
+/// <summary>
+/// <see cref="XmlDocument.Load" />
+/// </summary>
+public class EntryPoint
+{
+ static void Main () {
+ }
+}
// cs1574-7.cs: XML comment on `A' has cref attribute `ExecuteSilently' that could not be resolved
-// Compiler options: -doc:dummy.xml -warnaserror
// Line: 11
+// Compiler options: -doc:dummy.xml -warnaserror
/// <summary />
public interface IExecutable {
/// <summary />
cs1540-2.cs # new in GMCS
cs1540-3.cs NO ERROR # new in GMCS
cs1540-5.cs NO ERROR # new in GMCS
-cs1574-7.cs
cs1586.cs
cs1641.cs
cs1667-3.cs
+2005-11-16 Atsushi Enomoto <atsushi@ximian.com>
+
+ * doc.cs : apply "override filter" also to properties.
+ Fixed bug #76730.
+
2005-11-16 Atsushi Enomoto <atsushi@ximian.com>
* doc.cs : renamed FindMembers() to FindMethodBase(). For interfaces,
bindingFlags,
MethodSignature.method_signature_filter,
signature);
+ if (ml == null)
+ return empty_member_infos;
+ return FilterOverridenMembersOut (type, (MemberInfo []) ml);
+ }
+
+ private static MemberInfo [] FilterOverridenMembersOut (
+ Type type, MemberInfo [] ml)
+ {
+ if (ml == null)
+ return empty_member_infos;
if (type.IsInterface)
- return ml != null ? (MemberInfo []) ml :
- empty_member_infos;
+ return ml;
- ArrayList al = new ArrayList (ml.Count);
- for (int i = 0; i < ml.Count; i++) {
+ ArrayList al = new ArrayList (ml.Length);
+ for (int i = 0; i < ml.Length; i++) {
// Interface methods which are returned
// from the filter must exist in the
// target type (if there is only a
MethodBase x = ml [i] as MethodBase;
if (x != null) {
bool overriden = false;
- for (int j = 0; j < ml.Count; j++) {
+ for (int j = 0; j < ml.Length; j++) {
if (j == i)
continue;
MethodBase y = ml [j] as MethodBase;
type, MemberTypes.All,
BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance,
memberName, null);
+ mis = FilterOverridenMembersOut (type, mis);
if (mis == null || mis.Length == 0)
return null;
if (warn419 && IsAmbiguous (mis))
+2005-11-16 Atsushi Enomoto <atsushi@ximian.com>
+
+ * test-xml-047-ref.xml test-xml-047.cs :
+ Another override filtering test (works with gmcs).
+
2005-11-16 Atsushi Enomoto <atsushi@ximian.com>
* test-xml-046-ref.xml test-xml-046.cs : new test for bug #76726.
--- /dev/null
+<?xml version="1.0"?>
+<doc>
+ <assembly>
+ <name>test-xml-047</name>
+ </assembly>
+ <members>
+ <member name="T:EntryPoint">
+ <summary>
+ <see cref="M:System.Boolean.GetHashCode"/>
+ </summary>
+ </member>
+ </members>
+</doc>
--- /dev/null
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+
+using System;
+
+/// <summary>
+/// <see cref="bool.GetHashCode" />
+/// </summary>
+public class EntryPoint
+{
+ static void Main () {
+ }
+}