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