1 instantiation of GeneratorInitializationContext
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorAdaptor.cs (1)
40GeneratorInitializationContext generatorInitContext = new GeneratorInitializationContext(CancellationToken.None);
46 references to GeneratorInitializationContext
Microsoft.CodeAnalysis (6)
SourceGeneration\GeneratorAdaptor.cs (1)
40GeneratorInitializationContext generatorInitContext = new GeneratorInitializationContext(CancellationToken.None);
SourceGeneration\GeneratorContexts.cs (2)
128/// Context passed to a source generator when <see cref="ISourceGenerator.Initialize(GeneratorInitializationContext)"/> is called 252/// Context passed to a source generator when it has opted-in to PostInitialization via <see cref="GeneratorInitializationContext.RegisterForPostInitialization(Action{GeneratorPostInitializationContext})"/>
SourceGeneration\IncrementalWrapper.cs (1)
31void ISourceGenerator.Initialize(GeneratorInitializationContext context) => throw ExceptionUtilities.Unreachable();
SourceGeneration\ISourceGenerator.cs (2)
30/// <param name="context">The <see cref="GeneratorInitializationContext"/> to register callbacks on</param> 32void Initialize(GeneratorInitializationContext context);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
14717public void Initialize(GeneratorInitializationContext context) { } 14762public void Initialize(GeneratorInitializationContext context) => throw new System.Exception("THROW");
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
ConvertToRecord\ConvertToRecordCodeRefactoringTests.cs (1)
4522public void Initialize(GeneratorInitializationContext context) { }
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
SourceGeneration\GeneratorDriverTests.cs (1)
1029static void init(GeneratorInitializationContext context)
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
186GeneratorInitializationContext init = new GeneratorInitializationContext(CancellationToken.None);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeFixes\CodeFixServiceTests.cs (1)
607public void Initialize(GeneratorInitializationContext context)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Rename\CSharp\SourceGeneratorTests.vb (1)
84Public Sub Initialize(context As GeneratorInitializationContext) Implements ISourceGenerator.Initialize
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
DeterministicKeyBuilderTests.Helpers.cs (2)
48public void Initialize(GeneratorInitializationContext context) => throw new NotImplementedException(); 55public void Initialize(GeneratorInitializationContext context) => throw new NotImplementedException();
Microsoft.CodeAnalysis.Test.Utilities (10)
SourceGeneration\TestGenerators.cs (8)
43public void Initialize(GeneratorInitializationContext context) 63public void Initialize(GeneratorInitializationContext context) 82Action<GeneratorInitializationContext> onInit, 87public CallbackGenerator(Action<GeneratorInitializationContext> onInit, Action<GeneratorExecutionContext> onExecute, string? source = "") 92public CallbackGenerator(Action<GeneratorInitializationContext> onInit, Action<GeneratorExecutionContext> onExecute, Func<(string hintName, string? source)> computeSource) 114public void Initialize(GeneratorInitializationContext 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)
14public Action<GeneratorInitializationContext>? InitializeImpl; 20public void Initialize(GeneratorInitializationContext context)
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
HelloWorldGenerator.cs (1)
21public void Initialize(GeneratorInitializationContext context)
Microsoft.CodeAnalysis.UnitTests (6)
Analyzers\AnalyzerFileReferenceTests.cs (6)
620public void Initialize(GeneratorInitializationContext context) => throw new NotImplementedException(); 636public void Initialize(GeneratorInitializationContext context) => throw new NotImplementedException(); 686public void Initialize(GeneratorInitializationContext context) => throw new NotImplementedException(); 692public void Initialize(GeneratorInitializationContext context) => throw new NotImplementedException(); 699public void Initialize(GeneratorInitializationContext context) => throw new NotImplementedException(); 744public void Initialize(GeneratorInitializationContext context) => throw new NotImplementedException();
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
SourceGeneration\GeneratorDriverTests.vb (2)
753Public Sub Initialize(context As GeneratorInitializationContext) Implements ISourceGenerator.Initialize 807Public Sub Initialize(context As GeneratorInitializationContext) Implements ISourceGenerator.Initialize
Microsoft.Gen.ComplianceReports (1)
ComplianceReportsGenerator.cs (1)
45public void Initialize(GeneratorInitializationContext context)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
348public void Initialize(GeneratorInitializationContext context) =>
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
348public void Initialize(GeneratorInitializationContext context) =>
Microsoft.Gen.Logging.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
348public void Initialize(GeneratorInitializationContext context) =>
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
348public void Initialize(GeneratorInitializationContext context) =>
Microsoft.Gen.MetricsReports (1)
MetricsReportsGenerator.cs (1)
37public void Initialize(GeneratorInitializationContext context)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
348public void Initialize(GeneratorInitializationContext context) =>
Microsoft.ML.AutoML.SourceGenerator (4)
EstimatorTypeGenerator.cs (1)
56public void Initialize(GeneratorInitializationContext context)
SearchSpaceGenerator.cs (1)
141public void Initialize(GeneratorInitializationContext context)
SweepableEstimatorFactoryGenerator.cs (1)
51public void Initialize(GeneratorInitializationContext context)
SweepableEstimatorGenerator.cs (1)
77public void Initialize(GeneratorInitializationContext context)
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Roslyn3.11.cs (1)
27public void Initialize(GeneratorInitializationContext context)