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