1 instantiation of GeneratorExecutionContext
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorAdaptor.cs (1)
97return new GeneratorExecutionContext(Compilation, ParseOptions, AdditionalTexts, ConfigOptions, Receiver, sourceExtension, checksumAlgorithm, cancellationToken);
47 references to GeneratorExecutionContext
Microsoft.CodeAnalysis (19)
SourceGeneration\GeneratorAdaptor.cs (2)
67var generatorExecutionContext = contextBuilder.ToExecutionContext(_sourceExtension, productionContext.ChecksumAlgorithm, productionContext.CancellationToken); 94public GeneratorExecutionContext ToExecutionContext(string sourceExtension, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken)
SourceGeneration\GeneratorContexts.cs (7)
16/// Context passed to a source generator when <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/> is called 156/// During <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/> the generator can obtain the <see cref="ISyntaxReceiver"/> instance that was 157/// created by accessing the <see cref="GeneratorExecutionContext.SyntaxReceiver"/> property. Any information that was collected by the receiver can be 178/// During <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/> the generator can obtain the <see cref="ISyntaxContextReceiver"/> instance that was 179/// created by accessing the <see cref="GeneratorExecutionContext.SyntaxContextReceiver"/> property. Any information that was collected by the receiver can be 182/// A new instance of <see cref="ISyntaxContextReceiver"/> is created prior to every call to <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/>, 201/// will be visited by a registered <see cref="ISyntaxReceiver"/> and available for semantic analysis as part of the <see cref="GeneratorExecutionContext.Compilation"/>
SourceGeneration\IncrementalWrapper.cs (1)
29void ISourceGenerator.Execute(GeneratorExecutionContext context) => throw ExceptionUtilities.Unreachable();
SourceGeneration\ISourceGenerator.cs (4)
36/// to add source files via the <see cref="GeneratorExecutionContext.AddSource(string, SourceText)"/> 39/// <param name="context">The <see cref="GeneratorExecutionContext"/> to add source to</param> 44/// A generator can use the <see cref="GeneratorExecutionContext.Compilation"/> property to 49void Execute(GeneratorExecutionContext context);
SourceGeneration\ISyntaxReceiver.cs (4)
19/// <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/> the generator can obtain the 20/// created instance via the <see cref="GeneratorExecutionContext.SyntaxReceiver"/> property. The 59/// During <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/> the generator can obtain the 60/// created instance via the <see cref="GeneratorExecutionContext.SyntaxContextReceiver"/> property. The
SourceGeneration\RunResults.cs (1)
166/// Represents the results of an <see cref="ISourceGenerator"/> calling <see cref="GeneratorExecutionContext.AddSource(string, SourceText)"/>.
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
HelloWorldGenerator.cs (1)
25public void Execute(GeneratorExecutionContext context)
Microsoft.Gen.BuildMetadata (1)
GeneratorUtilities.cs (1)
140public static bool ShouldGenerateReport(GeneratorExecutionContext context, string msBuildProperty)
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
RoslynTestUtils.cs (1)
343public void Execute(GeneratorExecutionContext context)
Microsoft.Gen.ComplianceReports (2)
ComplianceReportsGenerator.cs (1)
50public void Execute(GeneratorExecutionContext context)
GeneratorUtilities.cs (1)
140public static bool ShouldGenerateReport(GeneratorExecutionContext context, string msBuildProperty)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
RoslynTestUtils.cs (1)
343public void Execute(GeneratorExecutionContext context)
Microsoft.Gen.ContextualOptions (1)
GeneratorUtilities.cs (1)
140public static bool ShouldGenerateReport(GeneratorExecutionContext context, string msBuildProperty)
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
RoslynTestUtils.cs (1)
343public void Execute(GeneratorExecutionContext context)
Microsoft.Gen.Logging (1)
GeneratorUtilities.cs (1)
140public static bool ShouldGenerateReport(GeneratorExecutionContext context, string msBuildProperty)
Microsoft.Gen.Logging.Unit.Tests (1)
RoslynTestUtils.cs (1)
343public void Execute(GeneratorExecutionContext context)
Microsoft.Gen.MetadataExtractor (6)
ComplianceReportsGenerator.cs (1)
50public void Execute(GeneratorExecutionContext context)
GeneratorUtilities.cs (1)
140public static bool ShouldGenerateReport(GeneratorExecutionContext context, string msBuildProperty)
MetadataReportsGenerator.cs (3)
57public void Execute(GeneratorExecutionContext context) 121private static string HandleMetricReportGeneration(GeneratorExecutionContext context, TypeDeclarationSyntaxReceiver receiver) 144private static string HandleComplianceReportGeneration(GeneratorExecutionContext context, TypeDeclarationSyntaxReceiver receiver)
MetricsReportsGenerator.cs (1)
37public void Execute(GeneratorExecutionContext context)
Microsoft.Gen.MetadataExtractor.Unit.Tests (2)
GeneratorTests.cs (1)
58GeneratorExecutionContext defaultGeneralExecutionContext = default;
RoslynTestUtils.cs (1)
343public void Execute(GeneratorExecutionContext context)
Microsoft.Gen.Metrics (1)
GeneratorUtilities.cs (1)
140public static bool ShouldGenerateReport(GeneratorExecutionContext context, string msBuildProperty)
Microsoft.Gen.Metrics.Unit.Tests (1)
RoslynTestUtils.cs (1)
343public void Execute(GeneratorExecutionContext context)
Microsoft.Gen.MetricsReports (2)
GeneratorUtilities.cs (1)
140public static bool ShouldGenerateReport(GeneratorExecutionContext context, string msBuildProperty)
MetricsReportsGenerator.cs (1)
37public void Execute(GeneratorExecutionContext context)
Microsoft.Gen.MetricsReports.Unit.Tests (2)
GeneratorTests.cs (1)
27GeneratorExecutionContext defaultGeneralExecutionContext = default;
RoslynTestUtils.cs (1)
343public void Execute(GeneratorExecutionContext context)
Microsoft.ML.AutoML.SourceGenerator (4)
EstimatorTypeGenerator.cs (1)
23public void Execute(GeneratorExecutionContext context)
SearchSpaceGenerator.cs (1)
20public void Execute(GeneratorExecutionContext context)
SweepableEstimatorFactoryGenerator.cs (1)
20public void Execute(GeneratorExecutionContext context)
SweepableEstimatorGenerator.cs (1)
19public void Execute(GeneratorExecutionContext context)