SymbolRenamer.RenameSymbolsAsync Method
Containing Type: SymbolRenamer
Assembly: Roslynator.Workspaces.Core.dll
Overloads
Method | Summary |
---|---|
RenameSymbolsAsync(IEnumerable<Project>, Func<ISymbol, Boolean>, Func<ISymbol, String>, SymbolRenamerOptions, IProgress<SymbolRenameProgress>, CancellationToken) | Renames symbols in the specified projects. All projects must be in the same solution. |
RenameSymbolsAsync(Project, Func<ISymbol, Boolean>, Func<ISymbol, String>, SymbolRenamerOptions, IProgress<SymbolRenameProgress>, CancellationToken) | Renames symbols in the specified project. |
RenameSymbolsAsync(Solution, Func<ISymbol, Boolean>, Func<ISymbol, String>, SymbolRenamerOptions, IProgress<SymbolRenameProgress>, CancellationToken) | Renames symbols in the specified solution. |
RenameSymbolsAsync(IEnumerable<Project>, Func<ISymbol, Boolean>, Func<ISymbol, String>, SymbolRenamerOptions, IProgress<SymbolRenameProgress>, CancellationToken)
Renames symbols in the specified projects. All projects must be in the same solution.
public static System.Threading.Tasks.Task RenameSymbolsAsync(System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Project> projects, Func<Microsoft.CodeAnalysis.ISymbol, bool> predicate, Func<Microsoft.CodeAnalysis.ISymbol, string> getNewName, Roslynator.Rename.SymbolRenamerOptions? options = null, IProgress<Roslynator.Rename.SymbolRenameProgress>? progress = null, System.Threading.CancellationToken cancellationToken = default)
Parameters
projects IEnumerable<Project>
predicate Func<ISymbol, Boolean>
getNewName Func<ISymbol, String>
options SymbolRenamerOptions
progress IProgress<SymbolRenameProgress>
cancellationToken CancellationToken
Returns
Exceptions
RenameSymbolsAsync(Project, Func<ISymbol, Boolean>, Func<ISymbol, String>, SymbolRenamerOptions, IProgress<SymbolRenameProgress>, CancellationToken)
Renames symbols in the specified project.
public static System.Threading.Tasks.Task RenameSymbolsAsync(Microsoft.CodeAnalysis.Project project, Func<Microsoft.CodeAnalysis.ISymbol, bool> predicate, Func<Microsoft.CodeAnalysis.ISymbol, string> getNewName, Roslynator.Rename.SymbolRenamerOptions? options = null, IProgress<Roslynator.Rename.SymbolRenameProgress>? progress = null, System.Threading.CancellationToken cancellationToken = default)
Parameters
project Project
predicate Func<ISymbol, Boolean>
getNewName Func<ISymbol, String>
options SymbolRenamerOptions
progress IProgress<SymbolRenameProgress>
cancellationToken CancellationToken
Returns
RenameSymbolsAsync(Solution, Func<ISymbol, Boolean>, Func<ISymbol, String>, SymbolRenamerOptions, IProgress<SymbolRenameProgress>, CancellationToken)
Renames symbols in the specified solution.
public static System.Threading.Tasks.Task RenameSymbolsAsync(Microsoft.CodeAnalysis.Solution solution, Func<Microsoft.CodeAnalysis.ISymbol, bool> predicate, Func<Microsoft.CodeAnalysis.ISymbol, string> getNewName, Roslynator.Rename.SymbolRenamerOptions? options = null, IProgress<Roslynator.Rename.SymbolRenameProgress>? progress = null, System.Threading.CancellationToken cancellationToken = default)
Parameters
solution Solution
predicate Func<ISymbol, Boolean>
getNewName Func<ISymbol, String>
options SymbolRenamerOptions
progress IProgress<SymbolRenameProgress>
cancellationToken CancellationToken