1 instantiation of GeneratorPostInitializationContext
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorContexts.cs (1)
206
Callbacks.PostInitCallback = (context) => callback(new
GeneratorPostInitializationContext
(context.AdditionalSources, context.CancellationToken));
10 references to GeneratorPostInitializationContext
Microsoft.CodeAnalysis (4)
SourceGeneration\GeneratorContexts.cs (4)
194
/// any generators that have opted in will have their provided callback invoked with a <see cref="
GeneratorPostInitializationContext
"/> instance
202
/// <param name="callback">An <see cref="Action{T}"/> that accepts a <see cref="
GeneratorPostInitializationContext
"/> that will be invoked after initialization.</param>
203
public void RegisterForPostInitialization(Action<
GeneratorPostInitializationContext
> callback)
252
/// Context passed to a source generator when it has opted-in to PostInitialization via <see cref="GeneratorInitializationContext.RegisterForPostInitialization(Action{
GeneratorPostInitializationContext
})"/>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
SourceGeneration\GeneratorDriverTests.cs (6)
887
static void postInit(
GeneratorPostInitializationContext
context)
913
static void postInit(
GeneratorPostInitializationContext
context)
940
static void postInit(
GeneratorPostInitializationContext
context)
970
void postInit(
GeneratorPostInitializationContext
context)
1000
static void postInit(
GeneratorPostInitializationContext
context)
1035
static void postInit(
GeneratorPostInitializationContext
context)