1 write to Callbacks
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorContexts.cs (1)
135
Callbacks
= new CallbackHolder();
9 references to Callbacks
Microsoft.CodeAnalysis (9)
SourceGeneration\GeneratorAdaptor.cs (3)
45
if (generatorInitContext.
Callbacks
.PostInitCallback is object)
47
context.RegisterPostInitializationOutput(generatorInitContext.
Callbacks
.PostInitCallback);
56
var syntaxContextReceiverCreator = generatorInitContext.
Callbacks
.SyntaxContextReceiverCreator;
SourceGeneration\GeneratorContexts.cs (6)
163
CheckIsEmpty(
Callbacks
.SyntaxContextReceiverCreator, $"{nameof(SyntaxReceiverCreator)} / {nameof(SyntaxContextReceiverCreator)}");
164
Callbacks
.SyntaxContextReceiverCreator = SyntaxContextReceiverAdaptor.Create(receiverCreator);
185
CheckIsEmpty(
Callbacks
.SyntaxContextReceiverCreator, $"{nameof(SyntaxReceiverCreator)} / {nameof(SyntaxContextReceiverCreator)}");
186
Callbacks
.SyntaxContextReceiverCreator = receiverCreator;
205
CheckIsEmpty(
Callbacks
.PostInitCallback);
206
Callbacks
.PostInitCallback = (context) => callback(new GeneratorPostInitializationContext(context.AdditionalSources, context.CancellationToken));