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

Method Suggest

Suggest(CodeFix, IDiagnosticLocation)

Suggest a code fix without reporting a diagnostic.

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

The CodeFix.

IDiagnosticLocation location

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