1 instantiation of GeneratorExecutionContext
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorAdaptor.cs (1)
90return new GeneratorExecutionContext(Compilation, ParseOptions, AdditionalTexts, ConfigOptions, Receiver, sourceExtension, cancellationToken);
80 references to GeneratorExecutionContext
Microsoft.CodeAnalysis (19)
SourceGeneration\GeneratorAdaptor.cs (2)
66var generatorExecutionContext = contextBuilder.ToExecutionContext(_sourceExtension, productionContext.CancellationToken); 87public GeneratorExecutionContext ToExecutionContext(string sourceExtension, CancellationToken cancellationToken)
SourceGeneration\GeneratorContexts.cs (7)
16/// Context passed to a source generator when <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/> is called 153/// During <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/> the generator can obtain the <see cref="ISyntaxReceiver"/> instance that was 154/// created by accessing the <see cref="GeneratorExecutionContext.SyntaxReceiver"/> property. Any information that was collected by the receiver can be 175/// During <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/> the generator can obtain the <see cref="ISyntaxContextReceiver"/> instance that was 176/// created by accessing the <see cref="GeneratorExecutionContext.SyntaxContextReceiver"/> property. Any information that was collected by the receiver can be 179/// A new instance of <see cref="ISyntaxContextReceiver"/> is created prior to every call to <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/>, 198/// 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)
163/// Represents the results of an <see cref="ISourceGenerator"/> calling <see cref="GeneratorExecutionContext.AddSource(string, SourceText)"/>.
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
14772public void Execute(GeneratorExecutionContext context) => throw new System.Exception("THROW"); 14817public void Execute(GeneratorExecutionContext context) { }
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
ConvertToRecord\ConvertToRecordCodeRefactoringTests.cs (1)
4524public void Execute(GeneratorExecutionContext context)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeFixes\CodeFixServiceTests.cs (1)
601public void Execute(GeneratorExecutionContext context)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Rename\CSharp\SourceGeneratorTests.vb (1)
87Public Sub Execute(context As GeneratorExecutionContext) Implements ISourceGenerator.Execute
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
412internal static void GenerateSource(GeneratorExecutionContext context)
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
DeterministicKeyBuilderTests.Helpers.cs (2)
46public void Execute(GeneratorExecutionContext context) => throw new NotImplementedException(); 53public void Execute(GeneratorExecutionContext context) => throw new NotImplementedException();
Microsoft.CodeAnalysis.Test.Utilities (12)
SourceGeneration\TestGenerators.cs (10)
37public void Execute(GeneratorExecutionContext context) 56private readonly Func<GeneratorExecutionContext, Location> _produceLocation; 58public DiagnosticProducingGenerator(Func<GeneratorExecutionContext, Location> produceLocation) 67public void Execute(GeneratorExecutionContext context) 83Action<GeneratorExecutionContext> onExecute, 87public CallbackGenerator(Action<GeneratorInitializationContext> onInit, Action<GeneratorExecutionContext> onExecute, string? source = "") 92public CallbackGenerator(Action<GeneratorInitializationContext> onInit, Action<GeneratorExecutionContext> onExecute, Func<(string hintName, string? source)> computeSource) 117public void Execute(GeneratorExecutionContext context) 132public CallbackGenerator2(Action<GeneratorInitializationContext> onInit, Action<GeneratorExecutionContext> onExecute, string? source = "") : base(onInit, onExecute, source) 193public IncrementalAndSourceCallbackGenerator(Action<GeneratorInitializationContext> onInit, Action<GeneratorExecutionContext> onExecute, Action<IncrementalGeneratorInitializationContext> onIncrementalInit)
SourceGeneration\TestSourceGenerator.cs (2)
15public Action<GeneratorExecutionContext>? ExecuteImpl; 17public void Execute(GeneratorExecutionContext context)
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
HelloWorldGenerator.cs (1)
25public void Execute(GeneratorExecutionContext context)
Microsoft.CodeAnalysis.UnitTests (7)
Analyzers\AnalyzerFileReferenceTests.cs (7)
619public void Execute(GeneratorExecutionContext context) => throw new NotImplementedException(); 635public void Execute(GeneratorExecutionContext context) => throw new NotImplementedException(); 685public void Execute(GeneratorExecutionContext context) => throw new NotImplementedException(); 691public void Execute(GeneratorExecutionContext context) => throw new NotImplementedException(); 698public virtual void Execute(GeneratorExecutionContext context) => throw new NotImplementedException(); 705public override void Execute(GeneratorExecutionContext context) => throw new NotImplementedException(); 740public void Execute(GeneratorExecutionContext context) => throw new NotImplementedException();
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
SourceGeneration\GeneratorDriverTests.vb (2)
837Public Sub Execute(context As GeneratorExecutionContext) Implements ISourceGenerator.Execute 891Public Sub Execute(context As GeneratorExecutionContext) Implements ISourceGenerator.Execute
Microsoft.Gen.ComplianceReports (3)
ComplianceReportsGenerator.cs (1)
50public void Execute(GeneratorExecutionContext context)
src\Generators\Shared\GeneratorUtilities.cs (2)
138/// <param name="context"><see cref="GeneratorExecutionContext"/>.</param> 141public static bool ShouldGenerateReport(GeneratorExecutionContext context, string msBuildProperty)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
343public void Execute(GeneratorExecutionContext context)
Microsoft.Gen.ContextualOptions (2)
src\Generators\Shared\GeneratorUtilities.cs (2)
138/// <param name="context"><see cref="GeneratorExecutionContext"/>.</param> 141public static bool ShouldGenerateReport(GeneratorExecutionContext context, string msBuildProperty)
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
343public void Execute(GeneratorExecutionContext context)
Microsoft.Gen.Logging (2)
src\Generators\Shared\GeneratorUtilities.cs (2)
138/// <param name="context"><see cref="GeneratorExecutionContext"/>.</param> 141public static bool ShouldGenerateReport(GeneratorExecutionContext context, string msBuildProperty)
Microsoft.Gen.Logging.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
343public void Execute(GeneratorExecutionContext context)
Microsoft.Gen.MetadataExtractor (7)
MetadataReportsGenerator.cs (3)
57public void Execute(GeneratorExecutionContext context) 121private static string HandleMetricReportGeneration(GeneratorExecutionContext context, TypeDeclarationSyntaxReceiver receiver) 144private static string HandleComplianceReportGeneration(GeneratorExecutionContext context, TypeDeclarationSyntaxReceiver receiver)
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (1)
50public void Execute(GeneratorExecutionContext context)
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsGenerator.cs (1)
37public void Execute(GeneratorExecutionContext context)
src\Generators\Shared\GeneratorUtilities.cs (2)
138/// <param name="context"><see cref="GeneratorExecutionContext"/>.</param> 141public static bool ShouldGenerateReport(GeneratorExecutionContext context, string msBuildProperty)
Microsoft.Gen.MetadataExtractor.Unit.Tests (2)
GeneratorTests.cs (1)
59GeneratorExecutionContext defaultGeneralExecutionContext = default;
test\Generators\Shared\RoslynTestUtils.cs (1)
343public void Execute(GeneratorExecutionContext context)
Microsoft.Gen.Metrics (2)
src\Generators\Shared\GeneratorUtilities.cs (2)
138/// <param name="context"><see cref="GeneratorExecutionContext"/>.</param> 141public static bool ShouldGenerateReport(GeneratorExecutionContext context, string msBuildProperty)
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
343public void Execute(GeneratorExecutionContext context)
Microsoft.Gen.MetricsReports (3)
MetricsReportsGenerator.cs (1)
37public void Execute(GeneratorExecutionContext context)
src\Generators\Shared\GeneratorUtilities.cs (2)
138/// <param name="context"><see cref="GeneratorExecutionContext"/>.</param> 141public static bool ShouldGenerateReport(GeneratorExecutionContext context, string msBuildProperty)
Microsoft.Gen.MetricsReports.Unit.Tests (2)
GeneratorTests.cs (1)
28GeneratorExecutionContext defaultGeneralExecutionContext = default;
test\Generators\Shared\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)