81 references to RefactorAllScope
Microsoft.CodeAnalysis.CSharp.Features (13)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.FixAllProvider.cs (3)
30
public override IEnumerable<
RefactorAllScope
> GetSupportedRefactorAllScopes()
31
=> [
RefactorAllScope
.Solution];
35
Debug.Assert(fixAllContext.Scope ==
RefactorAllScope
.Solution);
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
44
protected override ImmutableArray<
RefactorAllScope
> SupportedRefactorAllScopes => AllRefactorAllScopes;
ConvertNamespace\ConvertNamespaceCodeRefactoringProvider.cs (3)
32
protected override ImmutableArray<
RefactorAllScope
> SupportedRefactorAllScopes
33
=> [
RefactorAllScope
.Project,
RefactorAllScope
.Solution];
ConvertToExtension\ConvertToExtensionFixAllProvider.cs (4)
26
[
RefactorAllScope
.Document,
RefactorAllScope
.Project,
RefactorAllScope
.Solution,
RefactorAllScope
.ContainingType])
ConvertToRawString\ConvertStringToRawStringCodeRefactoringProvider.cs (1)
44
protected override ImmutableArray<
RefactorAllScope
> SupportedRefactorAllScopes => AllRefactorAllScopes;
UseExpressionBody\UseExpressionBodyCodeRefactoringProvider.cs (1)
58
protected override ImmutableArray<
RefactorAllScope
> SupportedRefactorAllScopes => AllRefactorAllScopes;
Microsoft.CodeAnalysis.Features (8)
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (3)
30
protected sealed override ImmutableArray<
RefactorAllScope
> SupportedRefactorAllScopes { get; }
31
= [
RefactorAllScope
.Project,
RefactorAllScope
.Solution];
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
32
protected sealed override ImmutableArray<
RefactorAllScope
> SupportedRefactorAllScopes => AllRefactorAllScopes;
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
50
protected override ImmutableArray<
RefactorAllScope
> SupportedRefactorAllScopes { get; } = AllRefactorAllScopes;
OrganizeImports\OrganizeImportsCodeRefactoringProvider.cs (3)
27
protected override ImmutableArray<
RefactorAllScope
> SupportedRefactorAllScopes => [
RefactorAllScope
.Project,
RefactorAllScope
.Solution];
Microsoft.CodeAnalysis.Workspaces (60)
CodeFixesAndRefactorings\FixAllProviderInfo.cs (1)
123
ImmutableArray<
RefactorAllScope
> supportedScopes)
CodeRefactorings\CodeRefactoringProvider.cs (1)
28
/// registered by this code refactoring provider across the supported <see cref="
RefactorAllScope
"/>s.
CodeRefactorings\FixAllOccurences\DocumentBasedRefactorAllProvider.cs (7)
28
internal abstract class DocumentBasedRefactorAllProvider(ImmutableArray<
RefactorAllScope
> supportedRefactorAllScopes)
31
private readonly ImmutableArray<
RefactorAllScope
> _supportedRefactorAllScopes = supportedRefactorAllScopes;
62
public sealed override IEnumerable<
RefactorAllScope
> GetSupportedRefactorAllScopes()
86
Contract.ThrowIfFalse(refactorAllContext.Scope is
RefactorAllScope
.Document or
RefactorAllScope
.Project
87
or
RefactorAllScope
.ContainingMember or
RefactorAllScope
.ContainingType);
CodeRefactorings\FixAllOccurences\RefactorAllContext.cs (3)
39
/// <see cref="
RefactorAllScope
"/> to refactor all occurrences.
41
public
RefactorAllScope
Scope => (
RefactorAllScope
)State.Scope;
CodeRefactorings\FixAllOccurences\RefactorAllProvider.cs (11)
25
private protected static ImmutableArray<
RefactorAllScope
> DefaultSupportedRefactorAllScopes
26
= [
RefactorAllScope
.Document,
RefactorAllScope
.Project,
RefactorAllScope
.Solution];
28
public virtual IEnumerable<
RefactorAllScope
> GetSupportedRefactorAllScopes()
69
/// Supported <see cref="
RefactorAllScope
"/>s for the refactor all provider.
70
/// Note that <see cref="
RefactorAllScope
.Custom"/> is not supported by the <see cref="DocumentBasedRefactorAllProvider"/>
75
ImmutableArray<
RefactorAllScope
> supportedRefactorAllScopes)
82
ImmutableArray<
RefactorAllScope
> supportedRefactorAllScopes,
91
if (supportedRefactorAllScopes.Contains(
RefactorAllScope
.Custom))
99
ImmutableArray<
RefactorAllScope
> supportedRefactorAllScopes,
CodeRefactorings\FixAllOccurences\RefactorAllScope.cs (15)
57
var refactorFields = typeof(
RefactorAllScope
)
69
public static FixAllScope ToFixAllScope(this
RefactorAllScope
scope)
72
RefactorAllScope
.Document => FixAllScope.Document,
73
RefactorAllScope
.Project => FixAllScope.Project,
74
RefactorAllScope
.Solution => FixAllScope.Solution,
75
RefactorAllScope
.Custom => FixAllScope.Custom,
76
RefactorAllScope
.ContainingMember => FixAllScope.ContainingMember,
77
RefactorAllScope
.ContainingType => FixAllScope.ContainingType,
81
public static
RefactorAllScope
ToRefactorAllScope(this FixAllScope scope)
84
FixAllScope.Document =>
RefactorAllScope
.Document,
85
FixAllScope.Project =>
RefactorAllScope
.Project,
86
FixAllScope.Solution =>
RefactorAllScope
.Solution,
87
FixAllScope.Custom =>
RefactorAllScope
.Custom,
88
FixAllScope.ContainingMember =>
RefactorAllScope
.ContainingMember,
89
FixAllScope.ContainingType =>
RefactorAllScope
.ContainingType,
CodeRefactorings\FixAllOccurences\RefactorAllState.cs (11)
25
/// cref="
RefactorAllScope
.ContainingMember"/> and <see cref="
RefactorAllScope
.ContainingType"/> scopes.
38
RefactorAllScope
refactorAllScope,
50
RefactorAllScope
refactorAllScope,
63
RefactorAllScope
refactorAllScope,
86
/// Gets the spans to refactor by document for the <see cref="
RefactorAllScope
"/> for this refactor all occurrences
94
case
RefactorAllScope
.ContainingType or
RefactorAllScope
.ContainingMember:
105
case
RefactorAllScope
.Document:
110
case
RefactorAllScope
.Project:
114
case
RefactorAllScope
.Solution:
CodeRefactorings\SyntaxEditorBasedCodeRefactoringProvider.cs (11)
18
protected static readonly ImmutableArray<
RefactorAllScope
> DefaultRefactorAllScopes = [
RefactorAllScope
.Document,
RefactorAllScope
.Project,
RefactorAllScope
.Solution];
19
protected static readonly ImmutableArray<
RefactorAllScope
> AllRefactorAllScopes = [
RefactorAllScope
.Document,
RefactorAllScope
.Project,
RefactorAllScope
.Solution,
RefactorAllScope
.ContainingType,
RefactorAllScope
.ContainingMember];
21
protected abstract ImmutableArray<
RefactorAllScope
> SupportedRefactorAllScopes { get; }