1 write to SelectedSpan
Microsoft.CodeAnalysis.EditorFeatures (1)
CommentSelection\AbstractToggleBlockCommentBase.cs (1)
296
SelectedSpan
= TextSpan.FromBounds(selectedSnapshotSpan.Start, selectedSnapshotSpan.End);
16 references to SelectedSpan
Microsoft.CodeAnalysis.EditorFeatures (16)
CommentSelection\AbstractToggleBlockCommentBase.cs (16)
140
if (blockCommentSelection.
SelectedSpan
.IsEmpty
177
var spanToAdd = blockCommentSelection.
SelectedSpan
;
223
var selectedSpan = blockCommentSelection.
SelectedSpan
;
297
IntersectingBlockComments = GetIntersectingBlockComments(allBlockComments,
SelectedSpan
);
366
var selectedLine = snapshot.GetLineFromPosition(
SelectedSpan
.Start);
367
var lineStartToCaretIsWhitespace = IsSpanWhitespace(TextSpan.FromBounds(selectedLine.Start,
SelectedSpan
.Start));
368
var caretToLineEndIsWhitespace = IsSpanWhitespace(TextSpan.FromBounds(
SelectedSpan
.Start, selectedLine.End));
372
&&
SelectedSpan
.Start < blockComment.Start
373
&& snapshot.AreOnSameLine(
SelectedSpan
.Start, blockComment.Start))
375
if (IsSpanWhitespace(TextSpan.FromBounds(
SelectedSpan
.Start, blockComment.Start)))
382
&&
SelectedSpan
.Start > blockComment.End
383
&& snapshot.AreOnSameLine(
SelectedSpan
.Start, blockComment.End))
385
if (IsSpanWhitespace(TextSpan.FromBounds(blockComment.End,
SelectedSpan
.Start)))
412
var spanStart =
SelectedSpan
.Start;
430
if (spanStart <
SelectedSpan
.End)
432
var uncommentedSpan = TextSpan.FromBounds(spanStart,
SelectedSpan
.End);