1 write to SingleLineCommentString
Microsoft.CodeAnalysis.Features (1)
CommentSelection\CommentSelectionInfo.cs (1)
13SingleLineCommentString = singleLineCommentString;
8 references to SingleLineCommentString
Microsoft.CodeAnalysis.EditorFeatures (8)
CommentSelection\CommentUncommentSelectionCommandHandler.cs (4)
281if (lineText.Trim().StartsWith(info.SingleLineCommentString, StringComparison.Ordinal)) 283DeleteText(textChanges, new TextSpan(line.Start.Position + lineText.IndexOf(info.SingleLineCommentString, StringComparison.Ordinal), info.SingleLineCommentString.Length)); 310InsertText(textChanges, line.Start + indentToCommentAt, info.SingleLineCommentString);
CommentSelection\ToggleLineCommentCommandHandler.cs (4)
126var commentIndex = text.IndexOf(commentInfo.SingleLineCommentString) + line.Start; 127var spanToRemove = TextSpan.FromBounds(commentIndex, commentIndex + commentInfo.SingleLineCommentString.Length); 148InsertText(textChanges, line.Start + indentation, commentInfo.SingleLineCommentString); 185return lineText.Trim().StartsWith(info.SingleLineCommentString, StringComparison.Ordinal) || line.IsEmptyOrWhitespace();