12 references to SyntaxContextReceiverCreator
Microsoft.CodeAnalysis (11)
SourceGeneration\GeneratorAdaptor.cs (1)
56var syntaxContextReceiverCreator = generatorInitContext.Callbacks.SyntaxContextReceiverCreator;
SourceGeneration\GeneratorContexts.cs (6)
163CheckIsEmpty(Callbacks.SyntaxContextReceiverCreator, $"{nameof(SyntaxReceiverCreator)} / {nameof(SyntaxContextReceiverCreator)}"); 168/// Register a <see cref="SyntaxContextReceiverCreator"/> for this generator, which can be used to create an instance of an <see cref="ISyntaxContextReceiver"/>. 182/// <param name="receiverCreator">A <see cref="SyntaxContextReceiverCreator"/> that can be invoked to create an instance of <see cref="ISyntaxContextReceiver"/></param> 183public void RegisterForSyntaxNotifications(SyntaxContextReceiverCreator receiverCreator) 185CheckIsEmpty(Callbacks.SyntaxContextReceiverCreator, $"{nameof(SyntaxReceiverCreator)} / {nameof(SyntaxContextReceiverCreator)}"); 219internal SyntaxContextReceiverCreator? SyntaxContextReceiverCreator { get; set; }
SourceGeneration\Nodes\SyntaxReceiverStrategy.cs (2)
16private readonly SyntaxContextReceiverCreator _receiverCreator; 21SyntaxContextReceiverCreator receiverCreator,
SourceGeneration\Nodes\SyntaxValueProvider.cs (1)
55internal IncrementalValueProvider<ISyntaxContextReceiver?> CreateSyntaxReceiverProvider(SyntaxContextReceiverCreator creator)
SourceGeneration\SyntaxContextReceiverAdaptor.cs (1)
23public static SyntaxContextReceiverCreator Create(SyntaxReceiverCreator creator) => () =>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
826onInit: (i) => i.RegisterForSyntaxNotifications((SyntaxContextReceiverCreator)(() => null!)),