fixes right button position causing right button not showing on horizontal scrollbars
[mono.git] / mcs / tools / corcompare / MissingMethod.cs
1 // Mono.Util.CorCompare.MissingMethod
2 //
3 // Author(s):
4 //   Nick Drochak (ndrochak@gol.com)
5 //
6 // (C) 2001-2002 Nick Drochak
7
8 using System;
9 using System.Reflection;
10 using System.Text;
11
12 namespace Mono.Util.CorCompare {
13
14         /// <summary>
15         ///     Represents a class method that is completely missing
16         /// </summary>
17         /// <remarks>
18         ///     created by - Nick
19         ///     created on - 2/20/2002 10:43:57 PM
20         /// </remarks>
21         class MissingMethod : MissingMember 
22         {
23                 // e.g. <method name="Equals" status="missing"/>
24                 public MissingMethod (MemberInfo infoMono, MemberInfo infoMS) : base (infoMono, infoMS) {}
25
26                 public override string Name {
27                         get {
28                                 string s = Info.ToString();
29                                 int index = s.IndexOf(' ');
30                                 return s.Substring(index + 1);
31                         }
32                 }
33
34                 public override string Type {
35                         get {
36                                 return "method";
37                         }
38                 }
39
40                 public override NodeStatus Analyze ()
41                 {
42                         m_nodeStatus = base.Analyze ();
43
44                         if (mInfoMono != null && mInfoMS != null)
45                         {
46                                 MethodBase miMono = (MethodBase) mInfoMono;
47                                 MethodBase miMS   = (MethodBase) mInfoMS;
48
49                                 AddFlagWarning (miMono.IsAbstract, miMS.IsAbstract, "abstract");
50                                 AddFlagWarning (miMono.IsStatic, miMS.IsStatic, "static");
51                                 AddFlagWarning (miMono.IsVirtual && !miMono.IsFinal, miMS.IsVirtual && !miMS.IsFinal, "virtual");
52                                 AddFlagWarning (miMono.IsConstructor, miMS.IsConstructor, "a constructor");
53                                 //AddFlagWarning (miMono.IsFinal, miMS.IsFinal, "sealed");
54                         }
55                         return m_nodeStatus;
56                 }
57         }
58 }