Hi guys,
As a friend of mine Jon Kessler was working on some Gtk# docs he noted
that every enum was marked as having two unimplemented methods. I took a
look into this and noticed that when we look for methods we look at both
private methods and methods that are inherited.
It turns out that two members of System.Enumeration are marked as TODO.
However, these are *not* showed as methods of the class on the tree.
This patch makes sure that we only count methods that are shown on the
tree as unfinished. I think it makes the interface less confusing.
Is this OK to commit?
-- Ben
Index: ecma-provider.cs
===================================================================
RCS file: /cvs/public/monodoc/browser/ecma-provider.cs,v
retrieving revision 1.58
diff -u -r1.58 ecma-provider.cs
--- ecma-provider.cs 25 Jul 2003 03:35:25 -0000 1.58
+++ ecma-provider.cs 25 Jul 2003 21:50:13 -0000
@@ -831,7 +831,7 @@
else return "Not implemented.";
}
- MemberInfo[] mis = t.GetMember(membername, BF.Static | BF.Instance | BF.Public | BF.NonPublic);
+ MemberInfo[] mis = t.GetMember(membername, BF.Static | BF.Instance | BF.Public | BF.DeclaredOnly);
if (mis.Length == 0) return "This member has not been implemented.";
if (mis.Length == 1) return MonoImpInfo(mis[0], "member", strlong);
@@ -904,7 +904,7 @@
string s = MonoImpInfo(t, "type", strlong);
if (strlong) {
- MemberInfo[] mis = t.GetMembers(BF.Static | BF.Instance | BF.Public | BF.NonPublic);
+ MemberInfo[] mis = t.GetMembers(BF.Static | BF.Instance | BF.Public | BF.DeclaredOnly);
// Scan members for MonoTODO attributes
int mctr = 0;