4 writes to PreviousToken
Microsoft.CodeAnalysis.Features (4)
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (4)
217
PreviousToken
= tokens[TriviaLocation.BeforeBeginningOfSpan],
223
PreviousToken
= tokens[TriviaLocation.AfterBeginningOfSpan].GetPreviousToken(includeZeroWidth: true),
229
PreviousToken
= tokens[TriviaLocation.BeforeEndOfSpan],
235
PreviousToken
= tokens[TriviaLocation.AfterEndOfSpan].GetPreviousToken(includeZeroWidth: true),
6 references to PreviousToken
Microsoft.CodeAnalysis.Features (6)
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (6)
63
var previousToken = map.GetOrAdd(localCopy.Item1.
PreviousToken
, _ => localCopy.Item1.
PreviousToken
);
64
map[localCopy.Item1.
PreviousToken
] = previousToken.WithTrailingTrivia(localCopy.Item2.TrailingTrivia);
147
if (tokenPair.
PreviousToken
.RawKind == 0)
272
triviaMap.TryGetValue(tokenPair.
PreviousToken
, out var previousTriviaPair);
278
return tokenPair.
PreviousToken
.TrailingTrivia.Concat(trailingTrivia).Concat(leadingTrivia).Concat(tokenPair.NextToken.LeadingTrivia);