19 references to BeforeEndOfSpan
Microsoft.CodeAnalysis.Features (19)
ExtractMethod\AbstractSyntaxTriviaService.cs (9)
36
Contract.ThrowIfFalse(textSpan.Contains(tokens[TriviaLocation.AfterBeginningOfSpan].Span) && textSpan.Contains(tokens[TriviaLocation.
BeforeEndOfSpan
].Span));
84
token = map.GetOrAdd(tokens[TriviaLocation.
BeforeEndOfSpan
], _ => tokens[TriviaLocation.
BeforeEndOfSpan
]);
85
map[tokens[TriviaLocation.
BeforeEndOfSpan
]] = token.WithTrailingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.
BeforeEndOfSpan
]);
96
var triviaAtEnd = SplitTrivia(tokens[TriviaLocation.
BeforeEndOfSpan
], tokens[TriviaLocation.AfterEndOfSpan], t => t.FullSpan.Start < textSpan.End);
103
[TriviaLocation.
BeforeEndOfSpan
] = triviaAtEnd.Item1,
116
tokens[TriviaLocation.
BeforeEndOfSpan
] = root.FindTokenOnLeftOfPosition(textSpan.End, includeSkipped: false);
117
tokens[TriviaLocation.AfterEndOfSpan] = tokens[TriviaLocation.
BeforeEndOfSpan
].GetNextToken(includeZeroWidth: true);
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (10)
114
tokens[TriviaLocation.
BeforeEndOfSpan
].RawKind == 0 /* don't care */ ||
115
tokens[TriviaLocation.AfterBeginningOfSpan] == tokens[TriviaLocation.
BeforeEndOfSpan
] ||
116
tokens[TriviaLocation.AfterBeginningOfSpan].GetPreviousToken(includeZeroWidth: true) == tokens[TriviaLocation.
BeforeEndOfSpan
] ||
117
tokens[TriviaLocation.AfterBeginningOfSpan].Span.End <= tokens[TriviaLocation.
BeforeEndOfSpan
].SpanStart);
193
tuple = map.GetOrAdd(tokens[TriviaLocation.
BeforeEndOfSpan
], _ => default);
194
map[tokens[TriviaLocation.
BeforeEndOfSpan
]] = new LeadingTrailingTriviaPair
197
TrailingTrivia = _triviaList[TriviaLocation.
BeforeEndOfSpan
]
227
[TriviaLocation.
BeforeEndOfSpan
] = new PreviousNextTokenPair
229
PreviousToken = tokens[TriviaLocation.
BeforeEndOfSpan
],
230
NextToken = tokens[TriviaLocation.
BeforeEndOfSpan
].GetNextToken(includeZeroWidth: true)