Udostępnij za pośrednictwem


GeneratorRunResult Struct

Definition

Represents the results of a single ISourceGenerator generation pass.

public readonly struct GeneratorRunResult
type GeneratorRunResult = struct
Public Structure GeneratorRunResult
Inheritance
GeneratorRunResult

Properties

Diagnostics

A collection of Diagnostics reported by Generator

Exception

An Exception instance that was thrown by the generator, or null if the generator completed without error.

GeneratedSources

The sources that were added by Generator during the generation pass this result represents.

Generator

The ISourceGenerator that produced this result.

TrackedOutputSteps

A collection of the named output steps executed during the generator pass this result represents.

TrackedSteps

A collection of the named incremental steps (both intermediate and final output ones) executed during the generator pass this result represents.

Applies to