1 write to SyntaxReceiver
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorContexts.cs (1)
32SyntaxReceiver = (syntaxReceiver as SyntaxContextReceiverAdaptor)?.Receiver;
14 references to SyntaxReceiver
Microsoft.CodeAnalysis (2)
SourceGeneration\GeneratorContexts.cs (1)
157/// 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.Gen.ComplianceReports (1)
ComplianceReportsGenerator.cs (1)
52var receiver = context.SyntaxReceiver as TypeDeclarationSyntaxReceiver;
Microsoft.Gen.MetadataExtractor (8)
MetadataReportsGenerator.cs (6)
61if (context.SyntaxReceiver is not TypeDeclarationSyntaxReceiver || 62((TypeDeclarationSyntaxReceiver)context.SyntaxReceiver).TypeDeclarations.Count == 0 || 68if ((context.SyntaxReceiver is not TypeDeclarationSyntaxReceiver || ((TypeDeclarationSyntaxReceiver)context.SyntaxReceiver).TypeDeclarations.Count == 0)) 95metadataReport.metricReport = HandleMetricReportGeneration(context, (TypeDeclarationSyntaxReceiver)context.SyntaxReceiver); 96metadataReport.complianceReport = HandleComplianceReportGeneration(context, (TypeDeclarationSyntaxReceiver)context.SyntaxReceiver);
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (1)
52var receiver = context.SyntaxReceiver as TypeDeclarationSyntaxReceiver;
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsGenerator.cs (1)
40if (context.SyntaxReceiver is not ClassDeclarationSyntaxReceiver receiver ||
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
GeneratorTests.cs (1)
62Assert.Null(defaultGeneralExecutionContext.SyntaxReceiver);
Microsoft.Gen.MetricsReports (1)
MetricsReportsGenerator.cs (1)
40if (context.SyntaxReceiver is not ClassDeclarationSyntaxReceiver receiver ||
Microsoft.Gen.MetricsReports.Unit.Tests (1)
GeneratorTests.cs (1)
31Assert.Null(defaultGeneralExecutionContext.SyntaxReceiver);