Наследование: Xamarin.ApiDiff.Comparer
Пример #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);
 }
Пример #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>");
 }
Пример #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>");
 }
Пример #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++;
 }
Пример #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>");
 }
Пример #6
0
 public abstract void RenderObsoleteMessage(StringBuilder output, MemberComparer member, string description, string optionalObsoleteMessage);
Пример #7
0
 public abstract void RemoveMember(TextWriter output, MemberComparer member, bool breaking, string obsolete, string description);
Пример #8
0
 public abstract void BeginMemberRemoval(TextWriter output, IEnumerable <XElement> list, MemberComparer member);
Пример #9
0
 public abstract void AddMember(TextWriter output, MemberComparer member, bool isInterfaceBreakingChange, string obsolete, string description);
Пример #10
0
 public override void AddMember(TextWriter output, MemberComparer member, bool isInterfaceBreakingChange, string obsolete, string description)
 {
     output.Write(obsolete);
     output.WriteLine(description);
 }
Пример #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");
 }
Пример #12
0
 public override void RemoveMember(TextWriter output, MemberComparer member, bool is_breaking, string obsolete, string description)
 {
     output.Write(obsolete);
     output.WriteLine(description);
 }