Ejemplo n.º 1
0
 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));
Ejemplo n.º 2
0
 public static IncrementalValueProvider <ImmutableArray <TSource> > Collect <TSource>(this IncrementalValuesProvider <TSource> source) => new IncrementalValueProvider <ImmutableArray <TSource> >(new BatchNode <TSource>(source.Node));
Ejemplo n.º 3
0
 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()));
Ejemplo n.º 4
0
 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()));
Ejemplo n.º 5
0
 public void RegisterImplementationSourceOutput <TSource>(IncrementalValuesProvider <TSource> source, Action <SourceProductionContext, TSource> action) => RegisterSourceOutput(source.Node, action, IncrementalGeneratorOutputKind.Implementation, _sourceExtension);
Ejemplo n.º 6
0
 public void RegisterSourceOutput <TSource>(IncrementalValuesProvider <TSource> source, Action <SourceProductionContext, TSource> action) => source.Node.RegisterOutput(new SourceOutputNode <TSource>(source.Node, action.WrapUserAction()));