Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Diagnostics / Scoped­Diagnostic­Sink / Suggest

Method Suggest

Suggest(CodeFix)

Suggest a code fix without reporting a diagnostic.

Declaration
public void Suggest(CodeFix codeFix)
Parameters
Type Name Description
CodeFix codeFix

The CodeFix.

Suggest(CodeFix, IDiagnosticLocation)

Suggest a code fix without reporting a diagnostic.

Declaration
public void Suggest(CodeFix codeFix, IDiagnosticLocation location)
Parameters
Type Name Description
CodeFix codeFix

The CodeFix.

IDiagnosticLocation location

The code location for which the code fix should be suggested, typically an IDeclaration.

Implements
IDiagnosticSink.Suggest(CodeFix, IDiagnosticLocation)