1 write to SyntaxReceiver
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorContexts.cs (1)
30SyntaxReceiver = (syntaxReceiver as SyntaxContextReceiverAdaptor)?.Receiver;
16 references to SyntaxReceiver
Microsoft.CodeAnalysis (2)
SourceGeneration\GeneratorContexts.cs (1)
154/// created by accessing the <see cref="GeneratorExecutionContext.SyntaxReceiver"/> property. Any information that was collected by the receiver can be
SourceGeneration\ISyntaxReceiver.cs (1)
20/// created instance via the <see cref="GeneratorExecutionContext.SyntaxReceiver"/> property. The
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
SourceGeneration\SyntaxAwareGeneratorTests.cs (11)
42onExecute: (e) => receiver = e.SyntaxReceiver 68onExecute: (e) => receiver = e.SyntaxReceiver 145onExecute: (e) => { syntaxReceiver = e.SyntaxReceiver; contextReceiver = e.SyntaxContextReceiver; } 172onExecute: (e) => { syntaxReceiver = e.SyntaxReceiver; contextReceiver = e.SyntaxContextReceiver; } 243onExecute: (e) => receiver = e.SyntaxReceiver 324onExecute: (e) => receiver = e.SyntaxReceiver 510onExecute: (e) => { receiver = e.SyntaxReceiver; e.AddSource("test", SourceText.From("public class D{}", Encoding.UTF8)); } 590onExecute: (e) => { syntaxRx = e.SyntaxReceiver; syntaxContextRx = e.SyntaxContextReceiver; } 685onExecute: (e) => receiver = e.SyntaxReceiver 738onExecute: (e) => receiver = e.SyntaxReceiver 827onExecute: (e) => { syntaxRx = e.SyntaxReceiver; syntaxContextRx = e.SyntaxContextReceiver; }
Microsoft.Gen.ComplianceReports (1)
ComplianceReportsGenerator.cs (1)
52var receiver = context.SyntaxReceiver as TypeDeclarationSyntaxReceiver;
Microsoft.Gen.MetricsReports (1)
MetricsReportsGenerator.cs (1)
46if (context.SyntaxReceiver is not ClassDeclarationSyntaxReceiver receiver ||
Microsoft.Gen.MetricsReports.Unit.Tests (1)
GeneratorTests.cs (1)
31Assert.Null(defaultGeneralExecutionContext.SyntaxReceiver);