API Browser

Method

ApplyCodeFixes

func ApplyCodeFixes(projectId: ProjectId, providers: IEnumerable<CodeFixProvider>, predicate: (CodeFix -> bool)? = null, maxIterations: int = 100, analyzerOptions: CompilationWithAnalyzersOptions? = null, cancellationToken: CancellationToken = default) -> ApplyCodeFixesResult

Declaring type: Workspace
Namespace: Raven.CodeAnalysis
Assembly: Raven.CodeAnalysis.dll
Source file: Workspace.cs

Applies code fixes one-at-a-time, reanalyzing between each application.

Parameters

Name Type Description
projectId ProjectId
providers IEnumerable<CodeFixProvider>
predicate CodeFix -> Boolean?
maxIterations Int32
analyzerOptions CompilationWithAnalyzersOptions?
cancellationToken CancellationToken

Return value

ApplyCodeFixesResult