1.2.0
Breaking API Change
Change the signature of IncrementalGenerator.OnInitialize
function. It now takes an instance of SgfInitializationContext
rather then IncrementalGeneratorInitializationContext
. This was done to allow me to wrap every invocation with a try catch. Before any exceptions thrown during generation would not be captured. When this happens your generator would just output a warning that it could not be created. Now the full callstack is reported to the output window
namespace Example
{
public class ExampleSourceGenerator : IncrementalGenerator
{
protected override void OnInitialize(SgfInitializationContext context)
{
}
}
}
There is also now OnException
which you can override to do your own error handling