1 write to Compilation
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorContexts.cs (1)
28
Compilation
= 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.
110
DiagnosticAnalysisContextHelpers.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)
65
if (!SymbolLoader.TryLoad(context.
Compilation
, out var symbolHolder))
71
var parser = new Parser(context.
Compilation
, symbolHolder!, context.CancellationToken);
80
string report = emitter.Emit(classifiedTypes, context.
Compilation
.AssemblyName!);
Microsoft.Gen.MetadataExtractor (9)
MetadataReportsGenerator.cs (5)
100
.Append(context.
Compilation
.AssemblyName!)
123
var meteringParser = new Metrics.Parser(context.
Compilation
, context.ReportDiagnostic, context.CancellationToken);
146
if (!SymbolLoader.TryLoad(context.
Compilation
, out var symbolHolder))
151
var parser = new Parser(context.
Compilation
, symbolHolder!, context.CancellationToken);
160
string report = emitter.Emit(classifiedTypes, context.
Compilation
.AssemblyName!, false);
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (3)
65
if (!SymbolLoader.TryLoad(context.
Compilation
, out var symbolHolder))
71
var parser = new Parser(context.
Compilation
, symbolHolder!, context.CancellationToken);
80
string report = emitter.Emit(classifiedTypes, context.
Compilation
.AssemblyName!);
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsGenerator.cs (1)
68
var meteringParser = new Metrics.Parser(context.
Compilation
, context.ReportDiagnostic, context.CancellationToken);
Microsoft.Gen.MetricsReports (1)
MetricsReportsGenerator.cs (1)
68
var meteringParser = new Metrics.Parser(context.
Compilation
, context.ReportDiagnostic, context.CancellationToken);