1 write to SyntaxContextReceiver
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorContexts.cs (1)
31SyntaxContextReceiver = (syntaxReceiver is SyntaxContextReceiverAdaptor) ? null : syntaxReceiver;
10 references to SyntaxContextReceiver
Microsoft.CodeAnalysis (2)
SourceGeneration\GeneratorContexts.cs (1)
176/// created by accessing the <see cref="GeneratorExecutionContext.SyntaxContextReceiver"/> property. Any information that was collected by the receiver can be
SourceGeneration\ISyntaxReceiver.cs (1)
60/// created instance via the <see cref="GeneratorExecutionContext.SyntaxContextReceiver"/> property. The
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
SourceGeneration\SyntaxAwareGeneratorTests.cs (7)
93onExecute: (e) => receiver = e.SyntaxContextReceiver 119onExecute: (e) => receiver = e.SyntaxContextReceiver 145onExecute: (e) => { syntaxReceiver = e.SyntaxReceiver; contextReceiver = e.SyntaxContextReceiver; } 172onExecute: (e) => { syntaxReceiver = e.SyntaxReceiver; contextReceiver = e.SyntaxContextReceiver; } 282onExecute: (e) => receiver = e.SyntaxContextReceiver 590onExecute: (e) => { syntaxRx = e.SyntaxReceiver; syntaxContextRx = e.SyntaxContextReceiver; } 827onExecute: (e) => { syntaxRx = e.SyntaxReceiver; syntaxContextRx = e.SyntaxContextReceiver; }
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Roslyn3.11.cs (1)
26if (context.SyntaxContextReceiver is not SyntaxContextReceiver receiver || receiver.ClassDeclarations.Count == 0)