1 write to BlockCommentEndString
Microsoft.CodeAnalysis.Features (1)
CommentSelection\CommentSelectionInfo.cs (1)
15
BlockCommentEndString
= blockCommentEndString;
21 references to BlockCommentEndString
Microsoft.CodeAnalysis.EditorFeatures (21)
CommentSelection\AbstractToggleBlockCommentBase.cs (10)
239
InsertText(textChanges, selectedSpan.Start, commentInfo.
BlockCommentEndString
);
242
amountToAddToStart = commentInfo.
BlockCommentEndString
.Length;
248
InsertText(textChanges, selectedSpan.End, commentInfo.
BlockCommentEndString
);
260
InsertText(textChanges, span.End, commentInfo.
BlockCommentEndString
);
267
var endMarkerPosition = spanToRemove.End - commentInfo.
BlockCommentEndString
.Length;
269
if (Equals(blockCommentSelection.GetSubstringFromText(endMarkerPosition, commentInfo.
BlockCommentEndString
.Length),
270
commentInfo.
BlockCommentEndString
))
272
DeleteText(textChanges, new TextSpan(endMarkerPosition, commentInfo.
BlockCommentEndString
.Length));
330
|| _trimmedText.StartsWith(commentInfo.
BlockCommentEndString
, StringComparison.Ordinal);
340
|| _trimmedText.EndsWith(commentInfo.
BlockCommentEndString
, StringComparison.Ordinal);
CommentSelection\CommentUncommentSelectionCommandHandler.cs (8)
183
InsertText(textChanges, span.End, commentInfo.
BlockCommentEndString
);
226
if (trimmedSpanText.StartsWith(info.BlockCommentStartString, StringComparison.Ordinal) && trimmedSpanText.EndsWith(info.
BlockCommentEndString
, StringComparison.Ordinal))
229
var positionOfEnd = span.Start + spanText.LastIndexOf(info.
BlockCommentEndString
, StringComparison.Ordinal);
250
var lastEnd = text.LastIndexOf(info.
BlockCommentEndString
, span.Start, caseSensitive: true);
253
positionOfEnd = text.IndexOf(info.
BlockCommentEndString
, span.End, caseSensitive: true);
255
else if (lastEnd + info.
BlockCommentEndString
.Length > span.End)
273
spansToSelect.Add(new CommentTrackingSpan(TextSpan.FromBounds(positionOfStart, positionOfEnd + info.
BlockCommentEndString
.Length)));
275
DeleteText(textChanges, new TextSpan(positionOfEnd, info.
BlockCommentEndString
.Length));
CommentSelection\ToggleBlockCommentCommandHandler.cs (3)
54
var closeIdx = allText.IndexOf(commentInfo.
BlockCommentEndString
, openIdx + commentInfo.BlockCommentStartString.Length, caseSensitive: true);
58
closeIdx = allText.Length - commentInfo.
BlockCommentEndString
.Length;
61
var blockCommentSpan = new TextSpan(openIdx, closeIdx + commentInfo.
BlockCommentEndString
.Length - openIdx);