25 references to DiffStyle
Microsoft.DotNet.AsmDiff (25)
DiffEngine.cs (8)
253
bool hasSame = HasStyle(relevantTokens,
DiffStyle
.None);
254
bool hasAdditions = HasStyle(relevantTokens,
DiffStyle
.Added);
255
bool hasRemovals = HasStyle(relevantTokens,
DiffStyle
.Removed);
256
bool hasIncompatibility = HasStyle(relevantTokens,
DiffStyle
.NotCompatible);
270
private static bool HasStyle(IEnumerable<DiffToken> tokens,
DiffStyle
diffStyle)
278
public static bool HasStyle(this DiffToken token,
DiffStyle
diffStyle)
281
if (diffStyle ==
DiffStyle
.None)
282
return token.Style ==
DiffStyle
.None;
DiffRecorder.cs (12)
14
private Stack<
DiffStyle
> _styleStack = new Stack<
DiffStyle
>();
54
var
diffStyle = GetCurrentDiffStyle();
59
private
DiffStyle
GetCurrentDiffStyle()
61
return _styleStack.Aggregate(
DiffStyle
.None, (current, diffStyle) => current | diffStyle);
141
var
convertedStyle = ConvertStyle(style);
146
private static
DiffStyle
ConvertStyle(SyntaxStyle style)
151
return
DiffStyle
.Added;
153
return
DiffStyle
.Removed;
155
return
DiffStyle
.InterfaceMember;
157
return
DiffStyle
.InheritedMember;
159
return
DiffStyle
.NotCompatible;
DiffToken.cs (5)
8
public
DiffStyle
Style { get; private set; }
12
public DiffToken(
DiffStyle
style, DiffTokenKind kind, string text)
19
public bool HasStyle(
DiffStyle
diffStyle)
22
if (diffStyle ==
DiffStyle
.None)
23
return Style ==
DiffStyle
.None;