70 references to IncrementalGeneratorOutputKind
Microsoft.AspNetCore.Http.Extensions.Tests (9)
RequestDelegateGenerator\CompileTimeCreationTests.cs (8)
65
driverOptions: new GeneratorDriverOptions(
IncrementalGeneratorOutputKind
.None, trackIncrementalGeneratorSteps: true),
91
driverOptions: new GeneratorDriverOptions(
IncrementalGeneratorOutputKind
.None, trackIncrementalGeneratorSteps: true),
173
driverOptions: new GeneratorDriverOptions(
IncrementalGeneratorOutputKind
.None, trackIncrementalGeneratorSteps: true),
240
driverOptions: new GeneratorDriverOptions(
IncrementalGeneratorOutputKind
.None, trackIncrementalGeneratorSteps: true),
294
driverOptions: new GeneratorDriverOptions(
IncrementalGeneratorOutputKind
.None, trackIncrementalGeneratorSteps: true),
341
driverOptions: new GeneratorDriverOptions(
IncrementalGeneratorOutputKind
.None, trackIncrementalGeneratorSteps: true),
677
driverOptions: new GeneratorDriverOptions(
IncrementalGeneratorOutputKind
.None, trackIncrementalGeneratorSteps: true),
734
driverOptions: new GeneratorDriverOptions(
IncrementalGeneratorOutputKind
.None, trackIncrementalGeneratorSteps: true),
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
62
driverOptions: new GeneratorDriverOptions(
IncrementalGeneratorOutputKind
.None, trackIncrementalGeneratorSteps: true),
Microsoft.AspNetCore.Http.Microbenchmarks (2)
RequestDelegateGeneratorBenchmarks.cs (1)
40
driverOptions: new GeneratorDriverOptions(
IncrementalGeneratorOutputKind
.None, trackIncrementalGeneratorSteps: true),
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
62
driverOptions: new GeneratorDriverOptions(
IncrementalGeneratorOutputKind
.None, trackIncrementalGeneratorSteps: true),
Microsoft.CodeAnalysis (28)
SourceGeneration\GeneratorDriver.cs (6)
267
IncrementalExecutionContext context = UpdateOutputs(outputNodes,
IncrementalGeneratorOutputKind
.PostInit, new GeneratorRunStateTable.Builder(false), cancellationToken);
324
var context = UpdateOutputs(generatorState.OutputNodes,
IncrementalGeneratorOutputKind
.Source |
IncrementalGeneratorOutputKind
.Implementation |
IncrementalGeneratorOutputKind
.Host, new GeneratorRunStateTable.Builder(state.TrackIncrementalSteps), cancellationToken, driverStateBuilder);
354
private IncrementalExecutionContext UpdateOutputs(ImmutableArray<IIncrementalGeneratorOutputNode> outputNodes,
IncrementalGeneratorOutputKind
outputKind, GeneratorRunStateTable.Builder generatorRunStateBuilder, CancellationToken cancellationToken, DriverStateTable.Builder? driverStateBuilder = null)
356
Debug.Assert(outputKind !=
IncrementalGeneratorOutputKind
.None);
SourceGeneration\GeneratorDriverOptions.cs (5)
15
public readonly
IncrementalGeneratorOutputKind
DisabledOutputs;
25
public GeneratorDriverOptions(
IncrementalGeneratorOutputKind
disabledOutputs)
30
public GeneratorDriverOptions(
IncrementalGeneratorOutputKind
disabledOutputs, bool trackIncrementalGeneratorSteps)
43
public GeneratorDriverOptions(
IncrementalGeneratorOutputKind
disabledOutputs =
IncrementalGeneratorOutputKind
.None, bool trackIncrementalGeneratorSteps = false, string? baseDirectory = null)
SourceGeneration\GeneratorDriverState.cs (1)
98
internal readonly
IncrementalGeneratorOutputKind
DisabledOutputs;
SourceGeneration\IncrementalContexts.cs (5)
68
public void RegisterSourceOutput<TSource>(IncrementalValueProvider<TSource> source, Action<SourceProductionContext, TSource> action) => RegisterSourceOutput(source.Node, action,
IncrementalGeneratorOutputKind
.Source, _sourceExtension);
70
public void RegisterSourceOutput<TSource>(IncrementalValuesProvider<TSource> source, Action<SourceProductionContext, TSource> action) => RegisterSourceOutput(source.Node, action,
IncrementalGeneratorOutputKind
.Source, _sourceExtension);
72
public void RegisterImplementationSourceOutput<TSource>(IncrementalValueProvider<TSource> source, Action<SourceProductionContext, TSource> action) => RegisterSourceOutput(source.Node, action,
IncrementalGeneratorOutputKind
.Implementation, _sourceExtension);
74
public void RegisterImplementationSourceOutput<TSource>(IncrementalValuesProvider<TSource> source, Action<SourceProductionContext, TSource> action) => RegisterSourceOutput(source.Node, action,
IncrementalGeneratorOutputKind
.Implementation, _sourceExtension);
92
private void RegisterSourceOutput<TSource>(IIncrementalGeneratorNode<TSource> node, Action<SourceProductionContext, TSource> action,
IncrementalGeneratorOutputKind
kind, string sourceExt)
SourceGeneration\Nodes\HostOutputNode.cs (2)
31
public
IncrementalGeneratorOutputKind
Kind =>
IncrementalGeneratorOutputKind
.Host;
SourceGeneration\Nodes\IIncrementalGeneratorOutputNode.cs (1)
17
IncrementalGeneratorOutputKind
Kind { get; }
SourceGeneration\Nodes\PostInitOutputNode.cs (2)
19
public
IncrementalGeneratorOutputKind
Kind =>
IncrementalGeneratorOutputKind
.PostInit;
SourceGeneration\Nodes\SourceOutputNode.cs (6)
24
private readonly
IncrementalGeneratorOutputKind
_outputKind;
28
public SourceOutputNode(IIncrementalGeneratorNode<TInput> source, Action<SourceProductionContext, TInput, CancellationToken> action,
IncrementalGeneratorOutputKind
outputKind, string sourceExtension)
33
Debug.Assert(outputKind ==
IncrementalGeneratorOutputKind
.Source || outputKind ==
IncrementalGeneratorOutputKind
.Implementation);
38
public
IncrementalGeneratorOutputKind
Kind => _outputKind;
42
string stepName = Kind ==
IncrementalGeneratorOutputKind
.Source ? WellKnownGeneratorOutputs.SourceOutput : WellKnownGeneratorOutputs.ImplementationSourceOutput;
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCompiler.cs (1)
378
return CSharpGeneratorDriver.Create(generators, additionalTexts, (CSharpParseOptions)parseOptions, analyzerConfigOptionsProvider, driverOptions: new GeneratorDriverOptions(disabledOutputs:
IncrementalGeneratorOutputKind
.Host, baseDirectory: baseDirectory));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (28)
SourceGeneration\GeneratorDriverTests.cs (26)
2568
driverOptions: new GeneratorDriverOptions(disabledOutputs:
IncrementalGeneratorOutputKind
.None, trackIncrementalGeneratorSteps: true));
3066
[InlineData(
IncrementalGeneratorOutputKind
.Source |
IncrementalGeneratorOutputKind
.Implementation)]
3067
[InlineData(
IncrementalGeneratorOutputKind
.Source |
IncrementalGeneratorOutputKind
.PostInit)]
3068
[InlineData(
IncrementalGeneratorOutputKind
.Implementation |
IncrementalGeneratorOutputKind
.PostInit)]
3069
[InlineData(
IncrementalGeneratorOutputKind
.Source |
IncrementalGeneratorOutputKind
.Host)]
3070
[InlineData(
IncrementalGeneratorOutputKind
.Implementation |
IncrementalGeneratorOutputKind
.Host)]
3071
[InlineData(
IncrementalGeneratorOutputKind
.Source |
IncrementalGeneratorOutputKind
.Implementation |
IncrementalGeneratorOutputKind
.PostInit)]
3072
[InlineData(
IncrementalGeneratorOutputKind
.Source |
IncrementalGeneratorOutputKind
.Implementation |
IncrementalGeneratorOutputKind
.PostInit |
IncrementalGeneratorOutputKind
.Host)]
3073
public void Generator_Output_Kinds_Can_Be_Disabled(
IncrementalGeneratorOutputKind
disabledOutput)
3104
foreach (
IncrementalGeneratorOutputKind
kind in Enum.GetValues(typeof(
IncrementalGeneratorOutputKind
)))
3106
if (kind ==
IncrementalGeneratorOutputKind
.None)
3111
if (kind ==
IncrementalGeneratorOutputKind
.Host)
3122
if (kind ==
IncrementalGeneratorOutputKind
.Host)
3132
bool isTextForKind(GeneratedSourceResult s) => s.HintName == Enum.GetName(typeof(
IncrementalGeneratorOutputKind
), kind) + ".cs";
4541
driverOptions: new GeneratorDriverOptions(
IncrementalGeneratorOutputKind
.Host));
SourceGeneration\StateTableTests.cs (1)
1355
driverOptions: new GeneratorDriverOptions(
IncrementalGeneratorOutputKind
.None, trackIncrementalGeneratorSteps),
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
1317
driverOptions: new GeneratorDriverOptions(
IncrementalGeneratorOutputKind
.None, trackIncrementalGeneratorSteps: false));
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCompiler.vb (1)
302
driverOptions:=New GeneratorDriverOptions(disabledOutputs:=
IncrementalGeneratorOutputKind
.Host, baseDirectory:=baseDirectory))
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Host\LanguageServices\TestCSharpCompilationFactoryServiceWithIncrementalGeneratorTracking.cs (1)
60
return CSharpGeneratorDriver.Create(generators, additionalTexts, (CSharpParseOptions)parseOptions, optionsProvider, new GeneratorDriverOptions(
IncrementalGeneratorOutputKind
.None, trackIncrementalGeneratorSteps: true, baseDirectory: TempRoot.Root));