Exemple #1
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed default value of parameter '{0}' in {1} which may cause an unintentional behavioral change in code. The value was changed from '{2}' to '{3}'.",
                        FormatItem.ParameterName(NewParameter, StyleFlags.Italics),
                        FormatItem.ParameterizedItemName(NewParameterizedItem, StyleFlags.Bold),
                        FormatItem.DefaultParameterValue(OldParameter, StyleFlags.Italics),
                        FormatItem.DefaultParameterValue(NewParameter, StyleFlags.Italics));
Exemple #2
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed the ref or out modifier of parameter '{0}' in {1} which will cause invocations to not compile.",
                        FormatItem.ParameterName(NewParameter, StyleFlags.Italics),
                        FormatItem.ParameterizedItemName(NewParameterizedItem, StyleFlags.Bold));
Exemple #3
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Removed override of abstract {0} {1} in {2} which may derived classes to not compile.",
                        FormatItem.MemberKind(OldMemberOverride),
                        FormatItem.MemberName(OldMemberOverride, StyleFlags.Italics),
                        FormatItem.MemberName(NewType, StyleFlags.Bold));
Exemple #4
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Added a new abstract {0} {1} which will cause derived classes to not compile.",
                        FormatItem.MemberKind(NewMember),
                        FormatItem.MemberName(NewMember, StyleFlags.Bold));
Exemple #5
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Removed the equivalent to assembly {0} in the new version, which will cause projects referencing the assembly to not compile.",
                        FormatItem.AssemblyName(OldAssembly, StyleFlags.Bold));
Exemple #6
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Removed implementation of interface {0} from {1} which may cause code using the {2} to not compile.",
                        FormatItem.MemberName(OldInterfaceType, StyleFlags.Italics),
                        FormatItem.MemberName(NewType, StyleFlags.Bold),
                        FormatItem.MemberKind(NewType));
Exemple #7
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed constraints for the generic type parameter {0} in {1} {2} which may cause constructions of the entity to not compile.",
                        FormatItem.MemberName(NewGenericParameter, StyleFlags.Italics),
                        FormatItem.MemberKind(NewGenericParameter.GenericDeclaringMember),
                        FormatItem.MemberName(NewGenericParameter.GenericDeclaringMember, StyleFlags.Bold));
Exemple #8
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Added or removed the static modifier of {0} {1} which may cause code using the {0} to not compile.",
                        FormatItem.MemberKind(NewMember),
                        FormatItem.MemberName(NewMember, StyleFlags.Bold));
Exemple #9
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed read-write field {0} to read-only which will cause writes to the field to not compile.",
                        FormatItem.MemberName(NewField, StyleFlags.Bold));
Exemple #10
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed non-static sealed class {0} to static which will cause instantiations of the sealed class to not compile.",
                        FormatItem.MemberName(NewType, StyleFlags.Bold));
Exemple #11
0
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed accessibility of {0} from public to protected which may cause code to not compile.",
                        FormatItem.MemberName(NewMember, StyleFlags.Bold));
Exemple #12
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Added a new interface {0} {1} which will cause implementing types to not compile.",
                        FormatItem.MemberKind(NewMember),
                        FormatItem.MemberName(NewMember, StyleFlags.Bold));
Exemple #13
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Added a new base interface {1} to {0} which will cause implementing types to not compile.",
                        FormatItem.MemberName(NewType, StyleFlags.Bold),
                        FormatItem.MemberName(NewInterfaceType, StyleFlags.Italics));
Exemple #14
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed the name of a parameter from '{0}' to '{1}' in {2} which will cause named arguments in invocations to not compile.",
                        FormatItem.ParameterName(OldParameter, StyleFlags.Italics),
                        FormatItem.ParameterName(NewParameter, StyleFlags.Italics),
                        FormatItem.ParameterizedItemName(NewParameterizedItem, StyleFlags.Bold));
Exemple #15
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed variance (in or out modifier) for the generic type parameter {0} in {1} {2} which may cause implicit conversions of the {1} to not compile.",
                        FormatItem.MemberName(NewGenericParameter, StyleFlags.Italics),
                        FormatItem.MemberKind(NewGenericParameter.GenericDeclaringMember),
                        FormatItem.MemberName(NewGenericParameter.GenericDeclaringMember, StyleFlags.Bold));
Exemple #16
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed the type of parameter '{0}' in {1} in a way which may cause invocations to not compile. Type was changed from {2} to {3}.",
                        FormatItem.ParameterName(NewParameter, StyleFlags.Italics),
                        FormatItem.ParameterizedItemName(NewParameterizedItem, StyleFlags.Bold),
                        FormatItem.TypedItemTypeName(OldParameter, StyleFlags.Italics),
                        FormatItem.TypedItemTypeName(NewParameter, StyleFlags.Italics));
Exemple #17
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed virtual {0} {1} to non-virtual which will cause derived classes overriding the {0} to not compile.",
                        FormatItem.MemberKind(NewMember),
                        FormatItem.MemberName(NewMember, StyleFlags.Bold));
Exemple #18
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed the base sealed class of {0} to something not derived from the previous base sealed class which may cause code using the sealed class to not compile. The base sealed class was changed from {1} to {2}.",
                        FormatItem.MemberName(NewType, StyleFlags.Bold),
                        FormatItem.MemberName(OldType.BaseType, StyleFlags.Italics),
                        FormatItem.MemberName(NewType.BaseType, StyleFlags.Italics));
Exemple #19
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed the type of {0} {1} in a way which may cause code using the {0} to not compile. Type was changed from {2} to {3}.",
                        FormatItem.TypedItemKind(NewTypedItem),
                        FormatItem.TypedItemName(NewTypedItem, StyleFlags.Bold),
                        FormatItem.TypedItemTypeName(OldTypedItem, StyleFlags.Italics),
                        FormatItem.TypedItemTypeName(NewTypedItem, StyleFlags.Italics));
Exemple #20
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Removed the 'this' modifier from the first parameter of {0} which will cause code using the method as an extension method to not compile.",
                        FormatItem.MemberName(NewMethod, StyleFlags.Bold));
Exemple #21
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed the parameter count of {0} in a way which may cause invocations to not compile. Previous declaration was {1}.",
                        FormatItem.ParameterizedItemName(NewParameterizedItem, StyleFlags.Bold),
                        FormatItem.ParameterizedItemName(OldParameterizedItem, StyleFlags.Italics));
Exemple #22
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Removed {0} {1} which will cause code using the {0} to not compile.",
                        FormatItem.MemberKind(OldMember),
                        FormatItem.MemberName(OldMember, StyleFlags.Bold));
Exemple #23
0
 /// <summary>
 /// Formats a message explaining the breaking change using the specified formatter.
 /// </summary>
 public abstract void FormatMessage(IBreakingChangeFormatter formatter);
Exemple #24
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Removed or changed the visibility of the get or set accessor of {0} {1} which may code using the {0} to not compile.",
                        FormatItem.MemberKind(NewProperty),
                        FormatItem.MemberName(NewProperty, StyleFlags.Bold));
Exemple #25
0
 /// <inheritdoc/>
 public override void FormatMessage(IBreakingChangeFormatter formatter) =>
 formatter.AppendFormat("Changed sealed class {0} from unsealed to sealed which will cause derived classes to not compile.",
                        FormatItem.MemberName(NewType, StyleFlags.Bold));