4 implementations of ISyntaxContextReceiver
Microsoft.CodeAnalysis (1)
SourceGeneration\SyntaxContextReceiverAdaptor.cs (1)
12
internal sealed class SyntaxContextReceiverAdaptor :
ISyntaxContextReceiver
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
2154
private class TestSyntaxContextReceiver : TestReceiverBase<GeneratorSyntaxContext>,
ISyntaxContextReceiver
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Roslyn3.11.cs (1)
43
private sealed class SyntaxContextReceiver :
ISyntaxContextReceiver
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Roslyn3.11.cs (1)
88
private sealed class SyntaxContextReceiver :
ISyntaxContextReceiver
38 references to ISyntaxContextReceiver
Microsoft.CodeAnalysis (31)
SourceGeneration\GeneratorAdaptor.cs (1)
85
public
ISyntaxContextReceiver
? Receiver;
SourceGeneration\GeneratorContexts.cs (11)
24
internal 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.
70
public
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)
12
private readonly
ISyntaxContextReceiver
_syntaxReceiver;
16
ISyntaxContextReceiver
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>
78
public delegate
ISyntaxContextReceiver
? SyntaxContextReceiverCreator();
SourceGeneration\Nodes\SyntaxReceiverStrategy.cs (3)
35
private readonly NodeStateTable<
ISyntaxContextReceiver
?>.Builder _nodeStateTable;
36
private readonly
ISyntaxContextReceiver
? _receiver;
43
_nodeStateTable = driverStateTable.GetStateTableOrEmpty<
ISyntaxContextReceiver
?>(_key).ToBuilder(stepName: null, trackIncrementalSteps);
SourceGeneration\Nodes\SyntaxValueProvider.cs (4)
55
internal IncrementalValueProvider<
ISyntaxContextReceiver
?> CreateSyntaxReceiverProvider(SyntaxContextReceiverCreator creator)
57
var node = new SyntaxInputNode<
ISyntaxContextReceiver
?>(
58
new SyntaxReceiverStrategy<
ISyntaxContextReceiver
?>(creator, _registerOutput, _syntaxHelper), RegisterOutputAndDeferredInput);
60
return 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)
89
ISyntaxContextReceiver
? receiver = null;
115
ISyntaxContextReceiver
? receiver = null;
141
ISyntaxContextReceiver
? contextReceiver = null;
168
ISyntaxContextReceiver
? contextReceiver = null;
278
ISyntaxContextReceiver
? receiver = null;
586
ISyntaxContextReceiver
? syntaxContextRx = null;
823
ISyntaxContextReceiver
? syntaxContextRx = null;