CSharpGeneratorDriver Class

Definition

A GeneratorDriver implementation for the CSharp language.

public sealed class CSharpGeneratorDriver : Microsoft.CodeAnalysis.GeneratorDriver
type CSharpGeneratorDriver = class
    inherit GeneratorDriver
Public NotInheritable Class CSharpGeneratorDriver
Inherits GeneratorDriver
Inheritance
CSharpGeneratorDriver

Constructors

CSharpGeneratorDriver(ParseOptions, ImmutableArray<ISourceGenerator>, AnalyzerConfigOptionsProvider, ImmutableArray<AdditionalText>)
CSharpGeneratorDriver(ParseOptions, ImmutableArray<ISourceGenerator>, ImmutableArray<AdditionalText>)

Methods

AddAdditionalTexts(ImmutableArray<AdditionalText>) (Inherited from GeneratorDriver)
AddGenerators(ImmutableArray<ISourceGenerator>) (Inherited from GeneratorDriver)
Create(IEnumerable<ISourceGenerator>, IEnumerable<AdditionalText>, CSharpParseOptions, AnalyzerConfigOptionsProvider)

Creates a new instance of CSharpGeneratorDriver with the specified ISourceGenerators and the provided options or default.

Create(IEnumerable<ISourceGenerator>, IEnumerable<AdditionalText>, CSharpParseOptions, AnalyzerConfigOptionsProvider, GeneratorDriverOptions)

Creates a new instance of CSharpGeneratorDriver with the specified ISourceGenerators and the provided options or default.

Create(IIncrementalGenerator[])

Creates a new instance of CSharpGeneratorDriver with the specified IIncrementalGenerators and default options

Create(ISourceGenerator[])

Creates a new instance of CSharpGeneratorDriver with the specified ISourceGenerators and default options

GetRunResult() (Inherited from GeneratorDriver)
GetTimingInfo() (Inherited from GeneratorDriver)
RemoveAdditionalTexts(ImmutableArray<AdditionalText>) (Inherited from GeneratorDriver)
RemoveGenerators(ImmutableArray<ISourceGenerator>) (Inherited from GeneratorDriver)
ReplaceAdditionalText(AdditionalText, AdditionalText) (Inherited from GeneratorDriver)
ReplaceAdditionalTexts(ImmutableArray<AdditionalText>) (Inherited from GeneratorDriver)
ReplaceGenerators(ImmutableArray<ISourceGenerator>) (Inherited from GeneratorDriver)
RunFullGeneration(Compilation, Compilation, ImmutableArray<Diagnostic>, CancellationToken) (Inherited from GeneratorDriver)
RunGenerators(Compilation, CancellationToken) (Inherited from GeneratorDriver)
RunGeneratorsAndUpdateCompilation(Compilation, Compilation, ImmutableArray<Diagnostic>, CancellationToken) (Inherited from GeneratorDriver)
TryApplyEdits(Compilation, Compilation, Boolean, CancellationToken) (Inherited from GeneratorDriver)
WithUpdatedAnalyzerConfigOptions(AnalyzerConfigOptionsProvider) (Inherited from GeneratorDriver)
WithUpdatedParseOptions(ParseOptions) (Inherited from GeneratorDriver)

Applies to