Click or drag to resize

CodeFixContext Class



Context for code fixes provided by an CodeFixProvider.
Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysis.CodeFixesCodeFixContext

Namespace:  Microsoft.CodeAnalysis.CodeFixes
Assembly:  Microsoft.CodeAnalysis.Workspaces (in Microsoft.CodeAnalysis.Workspaces.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class CodeFixContext : ValueType

The CodeFixContext type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCancellationToken
CancellationToken.
Public propertyDiagnostics
Diagnostics to fix. NOTE: All the diagnostics in this collection have the same Span.
Public propertyDocument
Document corresponding to the Span to fix.
Public propertySpan
Text span within the Document to fix.
Top
Methods
See Also