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)
234
InsertText(textChanges, selectedSpan.Start, commentInfo.
BlockCommentEndString
);
237
amountToAddToStart = commentInfo.
BlockCommentEndString
.Length;
243
InsertText(textChanges, selectedSpan.End, commentInfo.
BlockCommentEndString
);
255
InsertText(textChanges, span.End, commentInfo.
BlockCommentEndString
);
262
var endMarkerPosition = spanToRemove.End - commentInfo.
BlockCommentEndString
.Length;
264
if (Equals(blockCommentSelection.GetSubstringFromText(endMarkerPosition, commentInfo.
BlockCommentEndString
.Length),
265
commentInfo.
BlockCommentEndString
))
267
DeleteText(textChanges, new TextSpan(endMarkerPosition, commentInfo.
BlockCommentEndString
.Length));
325
|| _trimmedText.StartsWith(commentInfo.
BlockCommentEndString
, StringComparison.Ordinal);
335
|| _trimmedText.EndsWith(commentInfo.
BlockCommentEndString
, StringComparison.Ordinal);
CommentSelection\CommentUncommentSelectionCommandHandler.cs (8)
175
InsertText(textChanges, span.End, commentInfo.
BlockCommentEndString
);
218
if (trimmedSpanText.StartsWith(info.BlockCommentStartString, StringComparison.Ordinal) && trimmedSpanText.EndsWith(info.
BlockCommentEndString
, StringComparison.Ordinal))
221
var positionOfEnd = span.Start + spanText.LastIndexOf(info.
BlockCommentEndString
, StringComparison.Ordinal);
242
var lastEnd = text.LastIndexOf(info.
BlockCommentEndString
, span.Start, caseSensitive: true);
245
positionOfEnd = text.IndexOf(info.
BlockCommentEndString
, span.End, caseSensitive: true);
247
else if (lastEnd + info.
BlockCommentEndString
.Length > span.End)
265
spansToSelect.Add(new CommentTrackingSpan(TextSpan.FromBounds(positionOfStart, positionOfEnd + info.
BlockCommentEndString
.Length)));
267
DeleteText(textChanges, new TextSpan(positionOfEnd, info.
BlockCommentEndString
.Length));
CommentSelection\ToggleBlockCommentCommandHandler.cs (3)
46
var closeIdx = allText.IndexOf(commentInfo.
BlockCommentEndString
, openIdx + commentInfo.BlockCommentStartString.Length, caseSensitive: true);
50
closeIdx = allText.Length - commentInfo.
BlockCommentEndString
.Length;
53
var blockCommentSpan = new TextSpan(openIdx, closeIdx + commentInfo.
BlockCommentEndString
.Length - openIdx);