GeneratorRunResult.Diagnostics Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.