Delen via


GeneratorRunResult.Diagnostics Property

Definition

A collection of Diagnostics reported by Generator

public System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic> Diagnostics { get; }
member this.Diagnostics : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>
Public ReadOnly Property Diagnostics As ImmutableArray(Of Diagnostic)

Property Value

Remarks

When generation fails due to an Exception being thrown, a single diagnostic is added to represent the failure. Any generator reported diagnostics up to the failure point are not included.

Applies to