17 references to BeforeBeginningOfSpan
Microsoft.CodeAnalysis.Features (17)
ExtractMethod\AbstractSyntaxTriviaService.cs (8)
40
var annotations = Enumerable.Range((int)TriviaLocation.
BeforeBeginningOfSpan
, TriviaLocationsCount)
78
token = map.GetOrAdd(tokens[TriviaLocation.
BeforeBeginningOfSpan
], _ => tokens[TriviaLocation.
BeforeBeginningOfSpan
]);
79
map[tokens[TriviaLocation.
BeforeBeginningOfSpan
]] = token.WithTrailingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.
BeforeBeginningOfSpan
]);
95
var triviaAtBeginning = SplitTrivia(tokens[TriviaLocation.
BeforeBeginningOfSpan
], tokens[TriviaLocation.AfterBeginningOfSpan], t => t.FullSpan.End <= textSpan.Start);
100
[TriviaLocation.
BeforeBeginningOfSpan
] = triviaAtBeginning.Item1,
115
tokens[TriviaLocation.
BeforeBeginningOfSpan
] = tokens[TriviaLocation.AfterBeginningOfSpan].GetPreviousToken(includeZeroWidth: true);
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (9)
106
var tokens = Enumerable.Range((int)TriviaLocation.
BeforeBeginningOfSpan
, TriviaLocationsCount)
131
var triviaPairs = Enumerable.Range((int)TriviaLocation.
BeforeBeginningOfSpan
, TriviaLocationsCount)
159
for (var i = (int)TriviaLocation.
BeforeBeginningOfSpan
; i <= (int)TriviaLocation.AfterEndOfSpan; i++)
179
tuple = map.GetOrAdd(tokens[TriviaLocation.
BeforeBeginningOfSpan
], _ => default);
180
map[tokens[TriviaLocation.
BeforeBeginningOfSpan
]] = new LeadingTrailingTriviaPair
183
TrailingTrivia = _triviaList[TriviaLocation.
BeforeBeginningOfSpan
]
215
[TriviaLocation.
BeforeBeginningOfSpan
] = new PreviousNextTokenPair
217
PreviousToken = tokens[TriviaLocation.
BeforeBeginningOfSpan
],
218
NextToken = tokens[TriviaLocation.
BeforeBeginningOfSpan
].GetNextToken(includeZeroWidth: true)