1 instantiation of GeneratorExecutionContext
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorAdaptor.cs (1)
76return new GeneratorExecutionContext(Compilation, ParseOptions, AdditionalTexts, ConfigOptions, Receiver, sourceExtension, cancellationToken);
46 references to GeneratorExecutionContext
Microsoft.CodeAnalysis (19)
SourceGeneration\GeneratorAdaptor.cs (2)
54var generatorExecutionContext = contextBuilder.ToExecutionContext(_sourceExtension, productionContext.CancellationToken); 73public 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 145/// During <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/> the generator can obtain the <see cref="ISyntaxReceiver"/> instance that was 146/// created by accessing the <see cref="GeneratorExecutionContext.SyntaxReceiver"/> property. Any information that was collected by the receiver can be 167/// During <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/> the generator can obtain the <see cref="ISyntaxContextReceiver"/> instance that was 168/// created by accessing the <see cref="GeneratorExecutionContext.SyntaxContextReceiver"/> property. Any information that was collected by the receiver can be 171/// A new instance of <see cref="ISyntaxContextReceiver"/> is created prior to every call to <see cref="ISourceGenerator.Execute(GeneratorExecutionContext)"/>, 190/// 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)
33/// to add source files via the <see cref="GeneratorExecutionContext.AddSource(string, SourceText)"/> 36/// <param name="context">The <see cref="GeneratorExecutionContext"/> to add source to</param> 41/// A generator can use the <see cref="GeneratorExecutionContext.Compilation"/> property to 45void 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)
149/// Represents the results of an <see cref="ISourceGenerator"/> calling <see cref="GeneratorExecutionContext.AddSource(string, SourceText)"/>.
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
13866public void Execute(GeneratorExecutionContext context) => throw new System.Exception("THROW"); 13911public void Execute(GeneratorExecutionContext context) { }
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
440private static void GenerateSource(GeneratorExecutionContext context)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Rename\CSharp\SourceGeneratorTests.vb (1)
85Public Sub Execute(context As GeneratorExecutionContext) Implements ISourceGenerator.Execute
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 (11)
SourceGeneration\TestGenerators.cs (9)
35public void Execute(GeneratorExecutionContext context) 54private readonly Func<GeneratorExecutionContext, Location> _produceLocation; 56public DiagnosticProducingGenerator(Func<GeneratorExecutionContext, Location> produceLocation) 65public void Execute(GeneratorExecutionContext context) 81private readonly Action<GeneratorExecutionContext> _onExecute; 84public CallbackGenerator(Action<GeneratorInitializationContext> onInit, Action<GeneratorExecutionContext> onExecute, string? source = "") 91public void Execute(GeneratorExecutionContext context) 104public CallbackGenerator2(Action<GeneratorInitializationContext> onInit, Action<GeneratorExecutionContext> onExecute, string? source = "") : base(onInit, onExecute, source) 159public 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)
21public 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)
438Public Sub Execute(context As GeneratorExecutionContext) Implements ISourceGenerator.Execute 490Public Sub Execute(context As GeneratorExecutionContext) Implements ISourceGenerator.Execute