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