6 instantiations of LeadingTrailingTriviaPair
Microsoft.CodeAnalysis.Features (6)
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (6)
80
return new
LeadingTrailingTriviaPair
148
return new
LeadingTrailingTriviaPair
{ TrailingTrivia = [], LeadingTrivia = trivia };
180
map[tokens[TriviaLocation.BeforeBeginningOfSpan]] = new
LeadingTrailingTriviaPair
187
map[tokens[TriviaLocation.AfterBeginningOfSpan]] = new
LeadingTrailingTriviaPair
194
map[tokens[TriviaLocation.BeforeEndOfSpan]] = new
LeadingTrailingTriviaPair
201
map[tokens[TriviaLocation.AfterEndOfSpan]] = new
LeadingTrailingTriviaPair
13 references to LeadingTrailingTriviaPair
Microsoft.CodeAnalysis.Features (13)
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (12)
57
Dictionary<TriviaLocation,
LeadingTrailingTriviaPair
> triviaPairs)
73
private
LeadingTrailingTriviaPair
GetTrailingAndLeadingTrivia(IEnumerable<SyntaxTrivia> trivia)
142
private
LeadingTrailingTriviaPair
CreateTriviaPairs(
153
private static IEnumerable<(PreviousNextTokenPair,
LeadingTrailingTriviaPair
)> CreateUniqueTokenTriviaPairs(
155
Dictionary<TriviaLocation,
LeadingTrailingTriviaPair
> triviaPairs)
173
private Dictionary<SyntaxToken,
LeadingTrailingTriviaPair
> CreateTokenLeadingTrailingTriviaMap(
176
var
tuple = default(
LeadingTrailingTriviaPair
);
177
var map = new Dictionary<SyntaxToken,
LeadingTrailingTriviaPair
>();
270
Dictionary<SyntaxToken,
LeadingTrailingTriviaPair
> triviaMap)
272
triviaMap.TryGetValue(tokenPair.PreviousToken, out
var
previousTriviaPair);
275
triviaMap.TryGetValue(tokenPair.NextToken, out
var
nextTriviaPair);
ExtractMethod\ISyntaxTriviaService.cs (1)
34
internal delegate IEnumerable<SyntaxTrivia> TriviaResolver(TriviaLocation location, PreviousNextTokenPair tokenPair, Dictionary<SyntaxToken,
LeadingTrailingTriviaPair
> triviaMap);