19 references to AfterBeginningOfSpan
Microsoft.CodeAnalysis.Features (19)
ExtractMethod\AbstractSyntaxTriviaService.cs (9)
36
Contract.ThrowIfFalse(textSpan.Contains(tokens[TriviaLocation.
AfterBeginningOfSpan
].Span) && textSpan.Contains(tokens[TriviaLocation.BeforeEndOfSpan].Span));
81
token = map.GetOrAdd(tokens[TriviaLocation.
AfterBeginningOfSpan
], _ => tokens[TriviaLocation.
AfterBeginningOfSpan
]);
82
map[tokens[TriviaLocation.
AfterBeginningOfSpan
]] = token.WithLeadingTrivia(emptyList).WithAdditionalAnnotations(annotations[TriviaLocation.
AfterBeginningOfSpan
]);
95
var triviaAtBeginning = SplitTrivia(tokens[TriviaLocation.BeforeBeginningOfSpan], tokens[TriviaLocation.
AfterBeginningOfSpan
], t => t.FullSpan.End <= textSpan.Start);
101
[TriviaLocation.
AfterBeginningOfSpan
] = triviaAtBeginning.Item2,
113
[TriviaLocation.
AfterBeginningOfSpan
] = root.FindTokenOnRightOfPosition(textSpan.Start, includeSkipped: false)
115
tokens[TriviaLocation.BeforeBeginningOfSpan] = tokens[TriviaLocation.
AfterBeginningOfSpan
].GetPreviousToken(includeZeroWidth: true);
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (10)
113
tokens[TriviaLocation.
AfterBeginningOfSpan
].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);
186
tuple = map.GetOrAdd(tokens[TriviaLocation.
AfterBeginningOfSpan
], _ => default);
187
map[tokens[TriviaLocation.
AfterBeginningOfSpan
]] = new LeadingTrailingTriviaPair
189
LeadingTrivia = _triviaList[TriviaLocation.
AfterBeginningOfSpan
],
221
[TriviaLocation.
AfterBeginningOfSpan
] = new PreviousNextTokenPair
223
PreviousToken = tokens[TriviaLocation.
AfterBeginningOfSpan
].GetPreviousToken(includeZeroWidth: true),
224
NextToken = tokens[TriviaLocation.
AfterBeginningOfSpan
]