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)
239InsertText(textChanges, selectedSpan.Start, commentInfo.BlockCommentEndString); 242amountToAddToStart = commentInfo.BlockCommentEndString.Length; 248InsertText(textChanges, selectedSpan.End, commentInfo.BlockCommentEndString); 260InsertText(textChanges, span.End, commentInfo.BlockCommentEndString); 267var endMarkerPosition = spanToRemove.End - commentInfo.BlockCommentEndString.Length; 269if (Equals(blockCommentSelection.GetSubstringFromText(endMarkerPosition, commentInfo.BlockCommentEndString.Length), 270commentInfo.BlockCommentEndString)) 272DeleteText(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)
183InsertText(textChanges, span.End, commentInfo.BlockCommentEndString); 226if (trimmedSpanText.StartsWith(info.BlockCommentStartString, StringComparison.Ordinal) && trimmedSpanText.EndsWith(info.BlockCommentEndString, StringComparison.Ordinal)) 229var positionOfEnd = span.Start + spanText.LastIndexOf(info.BlockCommentEndString, StringComparison.Ordinal); 250var lastEnd = text.LastIndexOf(info.BlockCommentEndString, span.Start, caseSensitive: true); 253positionOfEnd = text.IndexOf(info.BlockCommentEndString, span.End, caseSensitive: true); 255else if (lastEnd + info.BlockCommentEndString.Length > span.End) 273spansToSelect.Add(new CommentTrackingSpan(TextSpan.FromBounds(positionOfStart, positionOfEnd + info.BlockCommentEndString.Length))); 275DeleteText(textChanges, new TextSpan(positionOfEnd, info.BlockCommentEndString.Length));
CommentSelection\ToggleBlockCommentCommandHandler.cs (3)
54var closeIdx = allText.IndexOf(commentInfo.BlockCommentEndString, openIdx + commentInfo.BlockCommentStartString.Length, caseSensitive: true); 58closeIdx = allText.Length - commentInfo.BlockCommentEndString.Length; 61var blockCommentSpan = new TextSpan(openIdx, closeIdx + commentInfo.BlockCommentEndString.Length - openIdx);