Open sandboxFocus

Interface IIntrospectionDiagnostic

Represents a diagnostic (error, warning, information, hidden message).

Namespace: Metalama.Framework.Introspection
Assembly: Metalama.Framework.Introspection.dll
Syntax
public interface IIntrospectionDiagnostic

Properties

Name Description
Compilation

Gets the compilation in which the diagnostic was reported.

Declaration

Gets the declaration in which the diagnostic was reported.

Details
FilePath

Gets the path of the file in which the diagnostic was reported.

Id

Gets the diagnostic id (e.g. CS0123).

Line

Gets the line at which the diagnostic was reported.

Message

Gets the formatted diagnostic message.

Severity

Gets the diagnostic severity.

Source

Gets the source (Metalama or CSharp) of the diagnostic.