36 references to Operation
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CommentSelection\CSharpCommentSelectionTests.cs (1)
128commandHandler.ExecuteCommand(textView, textBuffer, Operation.Uncomment, TestCommandExecutionContext.Create());
Microsoft.CodeAnalysis.EditorFeatures (23)
CommentSelection\AbstractCommentSelectionBase.cs (3)
146if (edits.ResultOperation == Operation.Uncomment && document.SupportsSyntaxTree) 173internal static ITrackingSpan CreateTrackingSpan(Operation operation, ITextSnapshot snapshot, TextSpan textSpan) 176var spanTrackingMode = operation == Operation.Comment
CommentSelection\AbstractToggleBlockCommentBase.cs (5)
35new(new List<TextChange>(), new List<CommentTrackingSpan>(), Operation.Uncomment); 107var returnOperation = Operation.Uncomment; 117returnOperation = Operation.Comment; 122if (returnOperation == Operation.Comment)
CommentSelection\CommentSelectionResult.cs (2)
28public Operation ResultOperation { get; } 30public CommentSelectionResult(IEnumerable<TextChange> textChanges, IEnumerable<CommentTrackingSpan> trackingSpans, Operation resultOperation)
CommentSelection\CommentUncommentSelectionCommandHandler.cs (9)
33AbstractCommentSelectionBase<Operation>, 54=> this.ExecuteCommand(args.TextView, args.SubjectBuffer, Operation.Comment, context); 63=> this.ExecuteCommand(args.TextView, args.SubjectBuffer, Operation.Uncomment, context); 67protected override string GetTitle(Operation operation) 68=> operation == Operation.Comment 72protected override string GetMessage(Operation operation) 73=> operation == Operation.Comment 84Operation operation, CancellationToken cancellationToken) 90if (operation == Operation.Comment)
CommentSelection\ToggleLineCommentCommandHandler.cs (4)
41new(new List<TextChange>(), new List<CommentTrackingSpan>(), Operation.Uncomment); 96Operation operation; 105operation = Operation.Comment; 114operation = Operation.Uncomment;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
CommentSelection\CommentUncommentSelectionCommandHandlerTests.cs (8)
705=> CommentOrUncommentSelection(code, expectedChanges, new[] { expectedSelectedSpan }, supportBlockComments, Operation.Uncomment); 708=> CommentOrUncommentSelection(code, expectedChanges, expectedSelectedSpans, supportBlockComments, Operation.Uncomment); 711=> CommentOrUncommentSelection(code, expectedChanges, null /*expectedSelectedSpans*/, supportBlockComments, Operation.Comment); 714=> CommentOrUncommentSelection(code, expectedChanges, expectedSelectedSpans, supportBlockComments, Operation.Comment); 717=> CommentOrUncommentSelection(exportProvider, textView, expectedChanges, expectedSelectedSpans, supportBlockComments, Operation.Comment); 727Operation operation) 743Operation operation) 757.Select(textSpan => AbstractCommentSelectionBase<Operation>.CreateTrackingSpan(
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (4)
CommentSelection\VisualBasicCommentSelectionTests.vb (4)
36InvokeCommentOperationOnSelectionAfterReplacingLfToCrLf(code.Value, expected.Value, Operation.Comment) 53InvokeCommentOperationOnSelectionAfterReplacingLfToCrLf(code.Value, expected.Value, Operation.Uncomment) 70InvokeCommentOperationOnSelectionAfterReplacingLfToCrLf(code.Value, expected.Value, Operation.Uncomment) 73Private Shared Sub InvokeCommentOperationOnSelectionAfterReplacingLfToCrLf(code As String, expected As String, operation As Operation)