[mono-api-html] Include base type changes in API diffs
authorSebastien Pouliot <sebastien@xamarin.com>
Thu, 19 Mar 2015 12:32:36 +0000 (08:32 -0400)
committerSebastien Pouliot <sebastien@xamarin.com>
Thu, 19 Mar 2015 12:32:36 +0000 (08:32 -0400)
mcs/tools/corcompare/mono-api-html/ClassComparer.cs

index 87680c0295009035d7e90ca19559a132e853567e..dae6c09ca49111cd27e99f4ac5c96d6cb612f134 100644 (file)
@@ -206,6 +206,13 @@ namespace Xamarin.ApiDiff {
                        var output = Output;
                        State.Output = new StringWriter ();
 
+                       var sb = source.GetAttribute ("base");
+                       var tb = target.GetAttribute ("base");
+                       if (sb != tb) {
+                               Output.Write ("Modified base type: ");
+                               Output.WriteLine (new ApiChange ().AppendModified (sb, tb, true).Member.ToString ());
+                       }
+
                        ccomparer.Compare (source, target);
                        icomparer.Compare (source, target);
                        fcomparer.Compare (source, target);