8 references to MergeDirection
Microsoft.CodeAnalysis.Features (8)
SplitOrMergeIfStatements\AbstractMergeIfStatementsCodeRefactoringProvider.cs (4)
26
Func<CancellationToken, Task<Document>> createChangedDocument,
MergeDirection
direction, string ifKeywordText);
48
RegisterRefactoring(
MergeDirection
.Up, upperIfOrElseIf.Span, ifOrElseIf.Span);
51
RegisterRefactoring(
MergeDirection
.Down, ifOrElseIf.Span, lowerIfOrElseIf.Span);
53
void RegisterRefactoring(
MergeDirection
direction, TextSpan upperIfOrElseIfSpan, TextSpan lowerIfOrElseIfSpan)
SplitOrMergeIfStatements\Consecutive\AbstractMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (2)
48
protected sealed override CodeAction CreateCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument,
MergeDirection
direction, string ifKeywordText)
50
var resourceText = direction ==
MergeDirection
.Up ? FeaturesResources.Merge_with_previous_0_statement : FeaturesResources.Merge_with_next_0_statement;
SplitOrMergeIfStatements\Nested\AbstractMergeNestedIfStatementsCodeRefactoringProvider.cs (2)
36
protected sealed override CodeAction CreateCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument,
MergeDirection
direction, string ifKeywordText)
38
var resourceText = direction ==
MergeDirection
.Up ? FeaturesResources.Merge_with_outer_0_statement : FeaturesResources.Merge_with_nested_0_statement;