Open sandboxFocus

Class CodeFixHelper

Provides helper members for working with code fixes in diagnostics.

Inheritance
CodeFixHelper
Namespace: Metalama.Framework.Diagnostics
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class CodeFixHelper
Remarks

This class provides constants and a predefined diagnostic definition for adding code fixes to aspects. Code fixes allow aspects to suggest automated corrections to code issues they detect.

Fields

Name Description
DiagnosticPropertyName

The name of the diagnostic property that contains code fix titles.

DiagnosticPropertyValueSeparator

The character used to separate multiple code fix titles in the diagnostic property.

SuggestionDiagnostic

A predefined DiagnosticDefinition that can be used to add code fixes without reporting a visible diagnostic.

See Also