1 write to Compilation
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorContexts.cs (1)
28Compilation = compilation;
17 references to Compilation
Microsoft.CodeAnalysis (4)
SourceGeneration\GeneratorContexts.cs (3)
102/// The severity of the diagnostic may cause the compilation to fail, depending on the <see cref="Compilation"/> settings. 110DiagnosticAnalysisContextHelpers.VerifyArguments(diagnostic, Compilation, isSupportedDiagnostic: static (_, _) => true, CancellationToken); 201/// will be visited by a registered <see cref="ISyntaxReceiver"/> and available for semantic analysis as part of the <see cref="GeneratorExecutionContext.Compilation"/>
SourceGeneration\ISourceGenerator.cs (1)
44/// A generator can use the <see cref="GeneratorExecutionContext.Compilation"/> property to
Microsoft.Gen.ComplianceReports (3)
ComplianceReportsGenerator.cs (3)
65if (!SymbolLoader.TryLoad(context.Compilation, out var symbolHolder)) 71var parser = new Parser(context.Compilation, symbolHolder!, context.CancellationToken); 80string report = emitter.Emit(classifiedTypes, context.Compilation.AssemblyName!);
Microsoft.Gen.MetadataExtractor (9)
MetadataReportsGenerator.cs (5)
100.Append(context.Compilation.AssemblyName!) 123var meteringParser = new Metrics.Parser(context.Compilation, context.ReportDiagnostic, context.CancellationToken); 146if (!SymbolLoader.TryLoad(context.Compilation, out var symbolHolder)) 151var parser = new Parser(context.Compilation, symbolHolder!, context.CancellationToken); 160string report = emitter.Emit(classifiedTypes, context.Compilation.AssemblyName!, false);
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (3)
65if (!SymbolLoader.TryLoad(context.Compilation, out var symbolHolder)) 71var parser = new Parser(context.Compilation, symbolHolder!, context.CancellationToken); 80string report = emitter.Emit(classifiedTypes, context.Compilation.AssemblyName!);
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsGenerator.cs (1)
68var meteringParser = new Metrics.Parser(context.Compilation, context.ReportDiagnostic, context.CancellationToken);
Microsoft.Gen.MetricsReports (1)
MetricsReportsGenerator.cs (1)
68var meteringParser = new Metrics.Parser(context.Compilation, context.ReportDiagnostic, context.CancellationToken);