Inheritance: Xamarin.ApiDiff.Comparer
Example #1
0
 public override void RenderObsoleteMessage(StringBuilder output, MemberComparer member, string description, string optionalObsoleteMessage)
 {
     output.Append("[Obsolete (");
     if (!String.IsNullOrEmpty(optionalObsoleteMessage))
     {
         output.Append('"').Append(optionalObsoleteMessage).Append('"');
     }
     output.AppendLine(")]");
     output.Append(description);
 }
Example #2
0
 public override void RenderObsoleteMessage(StringBuilder output, MemberComparer member, string description, string optionalObsoleteMessage)
 {
     output.Append($"<span class='obsolete obsolete-{member.ElementName}' data-is-non-breaking>");
     output.Append("[Obsolete (");
     if (!String.IsNullOrEmpty(optionalObsoleteMessage))
     {
         output.Append('"').Append(optionalObsoleteMessage).Append('"');
     }
     output.AppendLine(")]");
     output.Append(description);
     output.Append("</span>");
 }
Example #3
0
 public override void RemoveMember(TextWriter output, MemberComparer member, bool breaking, string obsolete, string description)
 {
     Indent(output);
     output.Write("<span class='removed removed-{0} {2}' {1}>", member.ElementName, breaking ? "data-is-breaking" : "data-is-non-breaking", breaking ? "breaking" : string.Empty);
     if (obsolete.Length > 0)
     {
         output.Write(obsolete);
         Indent(output);
     }
     output.Write(description);
     output.WriteLine("</span>");
 }
Example #4
0
 public override void BeginMemberRemoval(TextWriter output, IEnumerable <XElement> list, MemberComparer member)
 {
     if (State.BaseType == "System.Enum")
     {
         output.WriteLine("<p>Removed value{0}:</p>", list.Count() > 1 ? "s" : String.Empty);
         output.WriteLine("<pre class='removed' data-is-breaking>");
     }
     else
     {
         output.WriteLine("<p>Removed {0}:</p>\n", list.Count() > 1 ? member.GroupName : member.ElementName);
         output.WriteLine("<pre>");
     }
     State.Indent++;
 }
Example #5
0
 public override void AddMember(TextWriter output, MemberComparer member, bool isInterfaceBreakingChange, string obsolete, string description)
 {
     output.Write("<span class='added added-{0} {1}' {2}>", member.ElementName, isInterfaceBreakingChange ? "breaking" : string.Empty, isInterfaceBreakingChange ? "data-is-breaking" : "data-is-non-breaking");
     output.Write($"{obsolete}{description}");
     output.WriteLine("</span>");
 }
Example #6
0
 public abstract void RenderObsoleteMessage(StringBuilder output, MemberComparer member, string description, string optionalObsoleteMessage);
Example #7
0
 public abstract void RemoveMember(TextWriter output, MemberComparer member, bool breaking, string obsolete, string description);
Example #8
0
 public abstract void BeginMemberRemoval(TextWriter output, IEnumerable <XElement> list, MemberComparer member);
Example #9
0
 public abstract void AddMember(TextWriter output, MemberComparer member, bool isInterfaceBreakingChange, string obsolete, string description);
Example #10
0
 public override void AddMember(TextWriter output, MemberComparer member, bool isInterfaceBreakingChange, string obsolete, string description)
 {
     output.Write(obsolete);
     output.WriteLine(description);
 }
Example #11
0
 public override void BeginMemberAddition(TextWriter output, IEnumerable <XElement> list, MemberComparer member)
 {
     if (State.BaseType == "System.Enum")
     {
         output.WriteLine("Added value{0}:", list.Count() > 1 ? "s" : String.Empty);
     }
     else
     {
         output.WriteLine("Added {0}:", list.Count() > 1 ? member.GroupName : member.ElementName);
     }
     output.WriteLine();
     output.WriteLine("```csharp");
 }
Example #12
0
 public override void RemoveMember(TextWriter output, MemberComparer member, bool is_breaking, string obsolete, string description)
 {
     output.Write(obsolete);
     output.WriteLine(description);
 }