VisualBasicGeneratorDriver.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Create(ImmutableArray<ISourceGenerator>, ImmutableArray<AdditionalText>, VisualBasicParseOptions, AnalyzerConfigOptionsProvider)
public static Microsoft.CodeAnalysis.VisualBasic.VisualBasicGeneratorDriver Create (System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator> generators, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.AdditionalText> additionalTexts = default, Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions parseOptions = default, Microsoft.CodeAnalysis.Diagnostics.AnalyzerConfigOptionsProvider analyzerConfigOptionsProvider = default);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public static Microsoft.CodeAnalysis.VisualBasic.VisualBasicGeneratorDriver Create (System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator> generators, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.AdditionalText> additionalTexts, Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions parseOptions, Microsoft.CodeAnalysis.Diagnostics.AnalyzerConfigOptionsProvider analyzerConfigOptionsProvider);
static member Create : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.AdditionalText> * Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions * Microsoft.CodeAnalysis.Diagnostics.AnalyzerConfigOptionsProvider -> Microsoft.CodeAnalysis.VisualBasic.VisualBasicGeneratorDriver
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
static member Create : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.AdditionalText> * Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions * Microsoft.CodeAnalysis.Diagnostics.AnalyzerConfigOptionsProvider -> Microsoft.CodeAnalysis.VisualBasic.VisualBasicGeneratorDriver
Public Shared Function Create (generators As ImmutableArray(Of ISourceGenerator), Optional additionalTexts As ImmutableArray(Of AdditionalText) = Nothing, Optional parseOptions As VisualBasicParseOptions = Nothing, Optional analyzerConfigOptionsProvider As AnalyzerConfigOptionsProvider = Nothing) As VisualBasicGeneratorDriver
Public Shared Function Create (generators As ImmutableArray(Of ISourceGenerator), additionalTexts As ImmutableArray(Of AdditionalText), parseOptions As VisualBasicParseOptions, analyzerConfigOptionsProvider As AnalyzerConfigOptionsProvider) As VisualBasicGeneratorDriver
参数
- generators
- ImmutableArray<ISourceGenerator>
- additionalTexts
- ImmutableArray<AdditionalText>
- parseOptions
- VisualBasicParseOptions
- analyzerConfigOptionsProvider
- AnalyzerConfigOptionsProvider
返回
- 属性
适用于
Create(ImmutableArray<ISourceGenerator>, ImmutableArray<AdditionalText>, VisualBasicParseOptions, AnalyzerConfigOptionsProvider, GeneratorDriverOptions)
public static Microsoft.CodeAnalysis.VisualBasic.VisualBasicGeneratorDriver Create (System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator> generators, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.AdditionalText> additionalTexts = default, Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions parseOptions = default, Microsoft.CodeAnalysis.Diagnostics.AnalyzerConfigOptionsProvider analyzerConfigOptionsProvider = default, Microsoft.CodeAnalysis.GeneratorDriverOptions driverOptions = default);
static member Create : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.AdditionalText> * Microsoft.CodeAnalysis.VisualBasic.VisualBasicParseOptions * Microsoft.CodeAnalysis.Diagnostics.AnalyzerConfigOptionsProvider * Microsoft.CodeAnalysis.GeneratorDriverOptions -> Microsoft.CodeAnalysis.VisualBasic.VisualBasicGeneratorDriver
Public Shared Function Create (generators As ImmutableArray(Of ISourceGenerator), Optional additionalTexts As ImmutableArray(Of AdditionalText) = Nothing, Optional parseOptions As VisualBasicParseOptions = Nothing, Optional analyzerConfigOptionsProvider As AnalyzerConfigOptionsProvider = Nothing, Optional driverOptions As GeneratorDriverOptions = Nothing) As VisualBasicGeneratorDriver
参数
- generators
- ImmutableArray<ISourceGenerator>
- additionalTexts
- ImmutableArray<AdditionalText>
- parseOptions
- VisualBasicParseOptions
- analyzerConfigOptionsProvider
- AnalyzerConfigOptionsProvider
- driverOptions
- GeneratorDriverOptions