1 instantiation of DiffToken
Microsoft.DotNet.AsmDiff (1)
DiffRecorder.cs (1)
55var token = new DiffToken(diffStyle, kind, text);
16 references to DiffToken
Microsoft.DotNet.AsmDiff (16)
DiffEngine.cs (10)
144IEnumerable<DiffToken> tokens; 159private static void GetTokens(DiffConfiguration configuration, CancellationToken cancellationToken, out IEnumerable<DiffToken> tokens, out IEnumerable<DiffApiDefinition> apiDefinitions) 176private static IEnumerable<DiffLine> GetLines(IEnumerable<DiffToken> tokens, CancellationToken cancellationToken) 179var currentLineTokens = new List<DiffToken>(); 181foreach (var diffToken in tokens) 231foreach (var symbol in diffLine.Tokens.Where(t => t.Kind == DiffTokenKind.Symbol)) 247private static DiffLineKind GetDiffLineKind(IEnumerable<DiffToken> currentLineTokens) 249IEnumerable<DiffToken> relevantTokens = currentLineTokens.Where(t => t.Kind != DiffTokenKind.Indent && 270private static bool HasStyle(IEnumerable<DiffToken> tokens, DiffStyle diffStyle) 278public static bool HasStyle(this DiffToken token, DiffStyle diffStyle)
DiffLine.cs (3)
13public ReadOnlyCollection<DiffToken> Tokens { get; private set; } 15public DiffLine(DiffLineKind kind, IEnumerable<DiffToken> tokens) 18Tokens = new ReadOnlyCollection<DiffToken>(tokens.ToArray());
DiffRecorder.cs (3)
20public List<DiffToken> Tokens { get; } = new List<DiffToken>(); 55var token = new DiffToken(diffStyle, kind, text);