public static IncrementalValuesProvider <(TLeft Left, TRight Right)> Combine <TLeft, TRight>(this IncrementalValuesProvider <TLeft> provider1, IncrementalValueProvider <TRight> provider2) => new IncrementalValuesProvider <(TLeft, TRight)>(new CombineNode <TLeft, TRight>(provider1.Node, provider2.Node));
 public static IncrementalValueProvider <ImmutableArray <TSource> > Collect <TSource>(this IncrementalValuesProvider <TSource> source) => new IncrementalValueProvider <ImmutableArray <TSource> >(new BatchNode <TSource>(source.Node));
 public static IncrementalValuesProvider <TResult> SelectMany <TSource, TResult>(this IncrementalValuesProvider <TSource> source, Func <TSource, CancellationToken, IEnumerable <TResult> > selector) => new IncrementalValuesProvider <TResult>(new TransformNode <TSource, TResult>(source.Node, selector.WrapUserFunctionAsImmutableArray()));
 public static IncrementalValuesProvider <TResult> Select <TSource, TResult>(this IncrementalValuesProvider <TSource> source, Func <TSource, CancellationToken, TResult> selector) => new IncrementalValuesProvider <TResult>(new TransformNode <TSource, TResult>(source.Node, selector.WrapUserFunction()));
Exemple #5
0
 public void RegisterImplementationSourceOutput <TSource>(IncrementalValuesProvider <TSource> source, Action <SourceProductionContext, TSource> action) => RegisterSourceOutput(source.Node, action, IncrementalGeneratorOutputKind.Implementation, _sourceExtension);
Exemple #6
0
 public void RegisterSourceOutput <TSource>(IncrementalValuesProvider <TSource> source, Action <SourceProductionContext, TSource> action) => source.Node.RegisterOutput(new SourceOutputNode <TSource>(source.Node, action.WrapUserAction()));