4 implementations of ISyntaxContextReceiver
Microsoft.CodeAnalysis (1)
SourceGeneration\SyntaxContextReceiverAdaptor.cs (1)
12internal sealed class SyntaxContextReceiverAdaptor : ISyntaxContextReceiver
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
2154private class TestSyntaxContextReceiver : TestReceiverBase<GeneratorSyntaxContext>, ISyntaxContextReceiver
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Roslyn3.11.cs (1)
43private sealed class SyntaxContextReceiver : ISyntaxContextReceiver
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Roslyn3.11.cs (1)
88private sealed class SyntaxContextReceiver : ISyntaxContextReceiver
38 references to ISyntaxContextReceiver
Microsoft.CodeAnalysis (31)
SourceGeneration\GeneratorAdaptor.cs (1)
85public ISyntaxContextReceiver? Receiver;
SourceGeneration\GeneratorContexts.cs (11)
24internal GeneratorExecutionContext(Compilation compilation, ParseOptions parseOptions, ImmutableArray<AdditionalText> additionalTexts, AnalyzerConfigOptionsProvider optionsProvider, ISyntaxContextReceiver? syntaxReceiver, string sourceExtension, CancellationToken cancellationToken = default) 68/// If the generator registered an <see cref="ISyntaxContextReceiver"/> during initialization, this will be the instance created for this generation pass. 70public ISyntaxContextReceiver? SyntaxContextReceiver { get; } 168/// Register a <see cref="SyntaxContextReceiverCreator"/> for this generator, which can be used to create an instance of an <see cref="ISyntaxContextReceiver"/>. 172/// an instance of <see cref="ISyntaxContextReceiver"/>. This receiver will have its <see cref="ISyntaxContextReceiver.OnVisitSyntaxNode(GeneratorSyntaxContext)"/> 175/// During <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/> the generator can obtain the <see cref="ISyntaxContextReceiver"/> instance that was 179/// A new instance of <see cref="ISyntaxContextReceiver"/> is created prior to every call to <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/>, 182/// <param name="receiverCreator">A <see cref="SyntaxContextReceiverCreator"/> that can be invoked to create an instance of <see cref="ISyntaxContextReceiver"/></param> 226/// Context passed to an <see cref="ISyntaxContextReceiver"/> when <see cref="ISyntaxContextReceiver.OnVisitSyntaxNode(GeneratorSyntaxContext)"/> is called
SourceGeneration\GeneratorSyntaxWalker.cs (2)
12private readonly ISyntaxContextReceiver _syntaxReceiver; 16ISyntaxContextReceiver syntaxReceiver,
SourceGeneration\ISyntaxReceiver.cs (9)
27/// <see cref="ISyntaxContextReceiver" />, not both. 50/// A <see cref="ISourceGenerator"/> can provide an instance of <see cref="ISyntaxContextReceiver"/> 54/// obtain an instance of <see cref="ISyntaxContextReceiver"/>. This instance will have its 58/// The <see cref="ISyntaxContextReceiver"/> can record any information about the nodes visited. 63/// A new instance of <see cref="ISyntaxContextReceiver"/> is created per-generation, meaning the instance 67/// <see cref="ISyntaxContextReceiver" />, not both. 75/// Allows a generator to provide instances of an <see cref="ISyntaxContextReceiver"/> 77/// <returns>An instance of an <see cref="ISyntaxContextReceiver"/></returns> 78public delegate ISyntaxContextReceiver? SyntaxContextReceiverCreator();
SourceGeneration\Nodes\SyntaxReceiverStrategy.cs (3)
35private readonly NodeStateTable<ISyntaxContextReceiver?>.Builder _nodeStateTable; 36private readonly ISyntaxContextReceiver? _receiver; 43_nodeStateTable = driverStateTable.GetStateTableOrEmpty<ISyntaxContextReceiver?>(_key).ToBuilder(stepName: null, trackIncrementalSteps);
SourceGeneration\Nodes\SyntaxValueProvider.cs (4)
55internal IncrementalValueProvider<ISyntaxContextReceiver?> CreateSyntaxReceiverProvider(SyntaxContextReceiverCreator creator) 57var node = new SyntaxInputNode<ISyntaxContextReceiver?>( 58new SyntaxReceiverStrategy<ISyntaxContextReceiver?>(creator, _registerOutput, _syntaxHelper), RegisterOutputAndDeferredInput); 60return new IncrementalValueProvider<ISyntaxContextReceiver?>(node, _context.CatchAnalyzerExceptions);
SourceGeneration\SyntaxContextReceiverAdaptor.cs (1)
10/// Wraps an <see cref="ISyntaxReceiver"/> in an <see cref="ISyntaxContextReceiver"/>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
SourceGeneration\SyntaxAwareGeneratorTests.cs (7)
89ISyntaxContextReceiver? receiver = null; 115ISyntaxContextReceiver? receiver = null; 141ISyntaxContextReceiver? contextReceiver = null; 168ISyntaxContextReceiver? contextReceiver = null; 278ISyntaxContextReceiver? receiver = null; 586ISyntaxContextReceiver? syntaxContextRx = null; 823ISyntaxContextReceiver? syntaxContextRx = null;