Open sandboxFocus

Class DiagnosticReporter

A utility class that makes it easy to report diagnostics from object queries in different environments. The default implementation writes messages to the console using the ReportToConsole(IReadOnlyList<IIntrospectionDiagnostic>) method. The action can be changed by setting the ReportAction property.

Inheritance
DiagnosticReporter
Namespace: Metalama.Framework.Workspaces
Assembly: Metalama.Framework.Workspaces.dll
Syntax
public static class DiagnosticReporter

Properties

Name Description
ReportAction
ReportedErrors
ReportedWarnings

Methods

Name Description
ClearCounters()
Report(IEnumerable<IDeclaration>, Severity, string, string)
Report(IEnumerable<IIntrospectionDiagnostic>)
Report(IEnumerable<IIntrospectionReference>, Severity, string, string)
ReportToConsole(IReadOnlyList<IIntrospectionDiagnostic>)