1 write to BlockCommentStartString
Microsoft.CodeAnalysis.Features (1)
CommentSelection\CommentSelectionInfo.cs (1)
14BlockCommentStartString = blockCommentStartString;
14 references to BlockCommentStartString
Microsoft.CodeAnalysis.EditorFeatures (14)
CommentSelection\AbstractToggleBlockCommentBase.cs (7)
235InsertText(textChanges, selectedSpan.Start, commentInfo.BlockCommentStartString); 244InsertText(textChanges, selectedSpan.End, commentInfo.BlockCommentStartString); 246amountToAddToEnd = -commentInfo.BlockCommentStartString.Length; 254InsertText(textChanges, span.Start, commentInfo.BlockCommentStartString); 261DeleteText(textChanges, new TextSpan(spanToRemove.Start, commentInfo.BlockCommentStartString.Length)); 324return _trimmedText.StartsWith(commentInfo.BlockCommentStartString, StringComparison.Ordinal) 334return _trimmedText.EndsWith(commentInfo.BlockCommentStartString, StringComparison.Ordinal)
CommentSelection\CommentUncommentSelectionCommandHandler.cs (5)
174InsertText(textChanges, span.Start, commentInfo.BlockCommentStartString); 218if (trimmedSpanText.StartsWith(info.BlockCommentStartString, StringComparison.Ordinal) && trimmedSpanText.EndsWith(info.BlockCommentEndString, StringComparison.Ordinal)) 220var positionOfStart = span.Start + spanText.IndexOf(info.BlockCommentStartString, StringComparison.Ordinal); 237var positionOfStart = text.LastIndexOf(info.BlockCommentStartString, span.Start, caseSensitive: true); 266DeleteText(textChanges, new TextSpan(positionOfStart, info.BlockCommentStartString.Length));
CommentSelection\ToggleBlockCommentCommandHandler.cs (2)
43while ((openIdx = allText.IndexOf(commentInfo.BlockCommentStartString, openIdx, caseSensitive: true)) >= 0) 46var closeIdx = allText.IndexOf(commentInfo.BlockCommentEndString, openIdx + commentInfo.BlockCommentStartString.Length, caseSensitive: true);