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