10 references to Source
Microsoft.CodeAnalysis (5)
SourceGeneration\GeneratorDriver.cs (1)
324
var context = UpdateOutputs(generatorState.OutputNodes, IncrementalGeneratorOutputKind.
Source
| IncrementalGeneratorOutputKind.Implementation | IncrementalGeneratorOutputKind.Host, new GeneratorRunStateTable.Builder(state.TrackIncrementalSteps), cancellationToken, driverStateBuilder);
SourceGeneration\IncrementalContexts.cs (2)
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);
SourceGeneration\Nodes\SourceOutputNode.cs (2)
33
Debug.Assert(outputKind == IncrementalGeneratorOutputKind.
Source
|| outputKind == IncrementalGeneratorOutputKind.Implementation);
42
string stepName = Kind == IncrementalGeneratorOutputKind.
Source
? WellKnownGeneratorOutputs.SourceOutput : WellKnownGeneratorOutputs.ImplementationSourceOutput;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
SourceGeneration\GeneratorDriverTests.cs (5)
3066
[InlineData(IncrementalGeneratorOutputKind.
Source
| IncrementalGeneratorOutputKind.Implementation)]
3067
[InlineData(IncrementalGeneratorOutputKind.
Source
| IncrementalGeneratorOutputKind.PostInit)]
3069
[InlineData(IncrementalGeneratorOutputKind.
Source
| IncrementalGeneratorOutputKind.Host)]
3071
[InlineData(IncrementalGeneratorOutputKind.
Source
| IncrementalGeneratorOutputKind.Implementation | IncrementalGeneratorOutputKind.PostInit)]
3072
[InlineData(IncrementalGeneratorOutputKind.
Source
| IncrementalGeneratorOutputKind.Implementation | IncrementalGeneratorOutputKind.PostInit | IncrementalGeneratorOutputKind.Host)]