1 instantiation of TypeDeclarationSyntaxReceiver
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Shared\TypeDeclarationSyntaxReceiver.cs (1)
20
internal static ISyntaxReceiver Create() => new
TypeDeclarationSyntaxReceiver
();
12 references to TypeDeclarationSyntaxReceiver
Microsoft.Gen.MetadataExtractor (12)
MetadataReportsGenerator.cs (9)
50
context.RegisterForSyntaxNotifications(
TypeDeclarationSyntaxReceiver
.Create);
61
if (context.SyntaxReceiver is not
TypeDeclarationSyntaxReceiver
||
62
((
TypeDeclarationSyntaxReceiver
)context.SyntaxReceiver).TypeDeclarations.Count == 0 ||
68
if ((context.SyntaxReceiver is not
TypeDeclarationSyntaxReceiver
|| ((
TypeDeclarationSyntaxReceiver
)context.SyntaxReceiver).TypeDeclarations.Count == 0))
95
metadataReport.metricReport = HandleMetricReportGeneration(context, (
TypeDeclarationSyntaxReceiver
)context.SyntaxReceiver);
96
metadataReport.complianceReport = HandleComplianceReportGeneration(context, (
TypeDeclarationSyntaxReceiver
)context.SyntaxReceiver);
121
private static string HandleMetricReportGeneration(GeneratorExecutionContext context,
TypeDeclarationSyntaxReceiver
receiver)
144
private static string HandleComplianceReportGeneration(GeneratorExecutionContext context,
TypeDeclarationSyntaxReceiver
receiver)
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (3)
47
context.RegisterForSyntaxNotifications(
TypeDeclarationSyntaxReceiver
.Create);
52
var
receiver = context.SyntaxReceiver as
TypeDeclarationSyntaxReceiver
;