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