CSharpGeneratorDriver Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
In this article
public sealed class CSharpGeneratorDriver : Microsoft.CodeAnalysis.GeneratorDriver
type CSharpGeneratorDriver = class
inherit GeneratorDriver
Public NotInheritable Class CSharpGeneratorDriver
Inherits GeneratorDriver
Inheritance
Constructors
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 ISourceGenerator s and the provided options or default.
Create(IEnumerable<ISourceGenerator>, IEnumerable<AdditionalText>, CSharpParseOptions, AnalyzerConfigOptionsProvider, GeneratorDriverOptions)
Creates a new instance of CSharpGeneratorDriver with the specified ISourceGenerator s and the provided options or default.
Create(IIncrementalGenerator[])
Creates a new instance of CSharpGeneratorDriver with the specified IIncrementalGenerator s and default options
Create(ISourceGenerator[])
Creates a new instance of CSharpGeneratorDriver with the specified ISourceGenerator s 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 )
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