API Browser

Member group

GetCodeFixes

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

Overloads / Variants

GetCodeFixes

func GetCodeFixes(projectId: ProjectId, providers: IEnumerable<CodeFixProvider>, analyzerOptions: CompilationWithAnalyzersOptions? = null, cancellationToken: CancellationToken = default) -> ImmutableArray<CodeFix>

Source file: Workspace.cs

Gets code fixes for project diagnostics produced by the supplied providers.

Parameters

Name Type Description
projectId ProjectId
providers IEnumerable<CodeFixProvider>
analyzerOptions CompilationWithAnalyzersOptions?
cancellationToken CancellationToken

Return value

ImmutableArray<CodeFix>

GetCodeFixes

func GetCodeFixes(projectId: ProjectId, providers: IEnumerable<CodeFixProvider>, diagnostics: IEnumerable<Diagnostic>, cancellationToken: CancellationToken = default) -> ImmutableArray<CodeFix>

Source file: Workspace.cs

Gets code fixes for an existing diagnostic set without recomputing project diagnostics.

Parameters

Name Type Description
projectId ProjectId
providers IEnumerable<CodeFixProvider>
diagnostics IEnumerable<Diagnostic>
cancellationToken CancellationToken

Return value

ImmutableArray<CodeFix>