Class AnalyzerFinding
- Namespace
- RDCore.SDK.Model.Diagnostics
- Assembly
- RDCore.SDK.dll
One thing an analyzer has to say about a module.
public sealed record AnalyzerFinding : IEquatable<AnalyzerFinding>
- Inheritance
-
AnalyzerFinding
- Implements
- Inherited Members
Constructors
AnalyzerFinding(RDCoreDiagnosticId, SourceRange, DiagnosticSeverity, string)
One thing an analyzer has to say about a module.
public AnalyzerFinding(RDCoreDiagnosticId Id, SourceRange Range, DiagnosticSeverity Severity, string Message)
Parameters
IdRDCoreDiagnosticIdThe diagnostic: what it is, and the code it is reported under.
RangeSourceRangeWhere in the document it is.
SeverityDiagnosticSeverityHow serious it is.
MessagestringWhat is worth saying about it, in the language of the reader.
Properties
Fixes
What can be done about the finding, which the platform offers as code actions (DiagnosticFixes); null when nothing is known to fix it.
public DiagnosticFixes? Fixes { get; init; }
Property Value
Id
The diagnostic: what it is, and the code it is reported under.
public RDCoreDiagnosticId Id { get; init; }
Property Value
Message
What is worth saying about it, in the language of the reader.
public string Message { get; init; }
Property Value
Range
Where in the document it is.
public SourceRange Range { get; init; }
Property Value
Severity
How serious it is.
public DiagnosticSeverity Severity { get; init; }
Property Value
Tags
What the client is told about how to render the range (LSP 3.17 DiagnosticTag): Unnecessary for code
that is dead, which a client renders faded, as it renders code that cannot be reached.
public IReadOnlyList<DiagnosticTag> Tags { get; init; }