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