12 references to SyntaxContextReceiverCreator
Microsoft.CodeAnalysis (11)
SourceGeneration\GeneratorAdaptor.cs (1)
56
var
syntaxContextReceiverCreator = generatorInitContext.Callbacks.SyntaxContextReceiverCreator;
SourceGeneration\GeneratorContexts.cs (6)
163
CheckIsEmpty(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>
183
public void RegisterForSyntaxNotifications(
SyntaxContextReceiverCreator
receiverCreator)
185
CheckIsEmpty(Callbacks.SyntaxContextReceiverCreator, $"{nameof(SyntaxReceiverCreator)} / {nameof(
SyntaxContextReceiverCreator
)}");
219
internal
SyntaxContextReceiverCreator
? SyntaxContextReceiverCreator { get; set; }
SourceGeneration\Nodes\SyntaxReceiverStrategy.cs (2)
16
private readonly
SyntaxContextReceiverCreator
_receiverCreator;
21
SyntaxContextReceiverCreator
receiverCreator,
SourceGeneration\Nodes\SyntaxValueProvider.cs (1)
55
internal IncrementalValueProvider<ISyntaxContextReceiver?> CreateSyntaxReceiverProvider(
SyntaxContextReceiverCreator
creator)
SourceGeneration\SyntaxContextReceiverAdaptor.cs (1)
23
public static
SyntaxContextReceiverCreator
Create(SyntaxReceiverCreator creator) => () =>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
826
onInit: (i) => i.RegisterForSyntaxNotifications((
SyntaxContextReceiverCreator
)(() => null!)),