5 instantiations of CommentSelectionInfo
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Internal\CommentSelection\FSharpCommentSelectionService.cs (1)
30
=>
new
(
Microsoft.CodeAnalysis.Features (4)
CommentSelection\AbstractCommentSelectionService.cs (2)
25
?
new
(supportsSingleLineComment: true, SupportsBlockComment, SingleLineCommentString, BlockCommentStartString, BlockCommentEndString)
26
:
new
(supportsSingleLineComment: true, SupportsBlockComment, SingleLineCommentString, blockCommentStartString: "", blockCommentEndString: "");
ExternalAccess\VSTypeScript\Api\VSTypeScriptCommentSelectionInfo.cs (1)
25
string blockCommentEndString) : this(
new
(
ExternalAccess\VSTypeScript\VSTypeScriptCommentSelectionService.cs (1)
29
=>
new
(
33 references to CommentSelectionInfo
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CommentSelection\CSharpToggleBlockCommentCommandHandler.cs (1)
48
TextSpan linesContainingSelections,
CommentSelectionInfo
commentInfo, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.EditorFeatures (26)
CommentSelection\AbstractToggleBlockCommentBase.cs (10)
61
TextSpan linesContainingSelections,
CommentSelectionInfo
commentInfo, CancellationToken cancellationToken);
86
var
commentInfo = service.GetInfo();
96
private CommentSelectionResult ToggleBlockComments(Document document,
CommentSelectionInfo
commentInfo,
137
ArrayBuilder<CommentTrackingSpan> trackingSpans,
CommentSelectionInfo
commentInfo)
167
ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> trackingSpans,
CommentSelectionInfo
commentInfo)
221
ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> trackingSpans,
CommentSelectionInfo
commentInfo)
257
private static void AddBlockComment(
CommentSelectionInfo
commentInfo, TextSpan span, ArrayBuilder<TextChange> textChanges)
264
ArrayBuilder<TextChange> textChanges,
CommentSelectionInfo
commentInfo)
327
public bool StartsWithAnyBlockCommentMarker(
CommentSelectionInfo
commentInfo)
337
public bool EndsWithAnyBlockCommentMarker(
CommentSelectionInfo
commentInfo)
CommentSelection\CommentUncommentSelectionCommandHandler.cs (9)
125
var
commentInfo = service.GetInfo();
170
private static void AddSingleLineComments(SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> trackingSpans, ITextSnapshotLine firstLine, ITextSnapshotLine lastLine,
CommentSelectionInfo
commentInfo)
179
private static void AddBlockComment(SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> trackingSpans,
CommentSelectionInfo
commentInfo)
193
var
info = service.GetInfo();
219
private static bool TryUncommentExactlyBlockComment(
CommentSelectionInfo
info, SnapshotSpan span, ArrayBuilder<TextChange> textChanges,
237
private static void UncommentContainingBlockComment(
CommentSelectionInfo
info, SnapshotSpan span, ArrayBuilder<TextChange> textChanges,
265
private static void UncommentPosition(
CommentSelectionInfo
info, ArrayBuilder<TextChange> textChanges,
278
private static bool TryUncommentSingleLineComments(
CommentSelectionInfo
info, SnapshotSpan span, ArrayBuilder<TextChange> textChanges,
310
CommentSelectionInfo
info, ArrayBuilder<TextChange> textChanges, ITextSnapshotLine firstLine, ITextSnapshotLine lastLine, int indentToCommentAt)
CommentSelection\ToggleBlockCommentCommandHandler.cs (1)
45
TextSpan linesContainingSelections,
CommentSelectionInfo
commentInfo, CancellationToken cancellationToken)
CommentSelection\ToggleLineCommentCommandHandler.cs (6)
74
var
commentInfo = service.GetInfo();
84
private static CommentSelectionResult ToggleLineComment(
CommentSelectionInfo
commentInfo,
125
CommentSelectionInfo
commentInfo)
147
CommentSelectionInfo
commentInfo)
184
private static bool SelectionHasUncommentedLines(ImmutableArray<ITextSnapshotLine> linesInSelection,
CommentSelectionInfo
commentInfo)
187
private static bool IsLineCommentedOrEmpty(ITextSnapshotLine line,
CommentSelectionInfo
info)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Internal\CommentSelection\FSharpCommentSelectionService.cs (1)
29
public
CommentSelectionInfo
GetInfo()
Microsoft.CodeAnalysis.Features (5)
CommentSelection\AbstractCommentSelectionService.cs (1)
23
public
CommentSelectionInfo
GetInfo()
CommentSelection\ICommentSelectionService.cs (1)
16
CommentSelectionInfo
GetInfo();
ExternalAccess\VSTypeScript\Api\VSTypeScriptCommentSelectionInfo.cs (2)
13
internal readonly
CommentSelectionInfo
UnderlyingObject;
15
internal VSTypeScriptCommentSelectionInfo(
CommentSelectionInfo
underlyingObject)
ExternalAccess\VSTypeScript\VSTypeScriptCommentSelectionService.cs (1)
28
public
CommentSelectionInfo
GetInfo()