|
@@ -2,8 +2,6 @@
|
|
|
// The .NET Foundation licenses this file to you under the MIT License.
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
-#nullable disable
|
|
|
-
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
namespace System.Reactive.Joins
|
|
@@ -57,7 +55,7 @@ namespace System.Reactive.Joins
|
|
|
{
|
|
|
var onError = new Action<Exception>(observer.OnError);
|
|
|
var firstJoinObserver = CreateObserver(externalSubscriptions, Expression.First, onError);
|
|
|
- var activePlan = default(ActivePlan<T1>);
|
|
|
+ var activePlan = default(ActivePlan<T1>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1>(firstJoinObserver,
|
|
|
first =>
|
|
@@ -103,7 +101,7 @@ namespace System.Reactive.Joins
|
|
|
var onError = new Action<Exception>(observer.OnError);
|
|
|
var firstJoinObserver = CreateObserver(externalSubscriptions, Expression.First, onError);
|
|
|
var secondJoinObserver = CreateObserver(externalSubscriptions, Expression.Second, onError);
|
|
|
- var activePlan = default(ActivePlan<T1, T2>);
|
|
|
+ var activePlan = default(ActivePlan<T1, T2>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1, T2>(firstJoinObserver, secondJoinObserver,
|
|
|
(first, second) =>
|
|
@@ -153,7 +151,7 @@ namespace System.Reactive.Joins
|
|
|
var firstJoinObserver = CreateObserver(externalSubscriptions, Expression.First, onError);
|
|
|
var secondJoinObserver = CreateObserver(externalSubscriptions, Expression.Second, onError);
|
|
|
var thirdJoinObserver = CreateObserver(externalSubscriptions, Expression.Third, onError);
|
|
|
- var activePlan = default(ActivePlan<T1, T2, T3>);
|
|
|
+ var activePlan = default(ActivePlan<T1, T2, T3>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1, T2, T3>(firstJoinObserver, secondJoinObserver, thirdJoinObserver,
|
|
|
(first, second, third) =>
|
|
@@ -206,7 +204,7 @@ namespace System.Reactive.Joins
|
|
|
var secondJoinObserver = CreateObserver(externalSubscriptions, Expression.Second, onError);
|
|
|
var thirdJoinObserver = CreateObserver(externalSubscriptions, Expression.Third, onError);
|
|
|
var fourthJoinObserver = CreateObserver(externalSubscriptions, Expression.Fourth, onError);
|
|
|
- var activePlan = default(ActivePlan<T1, T2, T3, T4>);
|
|
|
+ var activePlan = default(ActivePlan<T1, T2, T3, T4>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1, T2, T3, T4>(firstJoinObserver, secondJoinObserver, thirdJoinObserver, fourthJoinObserver,
|
|
|
(first, second, third, fourth) =>
|
|
@@ -262,7 +260,7 @@ namespace System.Reactive.Joins
|
|
|
var thirdJoinObserver = CreateObserver(externalSubscriptions, Expression.Third, onError);
|
|
|
var fourthJoinObserver = CreateObserver(externalSubscriptions, Expression.Fourth, onError);
|
|
|
var fifthJoinObserver = CreateObserver(externalSubscriptions, Expression.Fifth, onError);
|
|
|
- var activePlan = default(ActivePlan<T1, T2, T3, T4, T5>);
|
|
|
+ var activePlan = default(ActivePlan<T1, T2, T3, T4, T5>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1, T2, T3, T4, T5>(firstJoinObserver, secondJoinObserver, thirdJoinObserver, fourthJoinObserver, fifthJoinObserver,
|
|
|
(first, second, third, fourth, fifth) =>
|
|
@@ -321,7 +319,7 @@ namespace System.Reactive.Joins
|
|
|
var fourthJoinObserver = CreateObserver(externalSubscriptions, Expression.Fourth, onError);
|
|
|
var fifthJoinObserver = CreateObserver(externalSubscriptions, Expression.Fifth, onError);
|
|
|
var sixthJoinObserver = CreateObserver(externalSubscriptions, Expression.Sixth, onError);
|
|
|
- var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6>);
|
|
|
+ var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1, T2, T3, T4, T5, T6>(firstJoinObserver, secondJoinObserver, thirdJoinObserver,
|
|
|
fourthJoinObserver, fifthJoinObserver, sixthJoinObserver,
|
|
@@ -384,7 +382,7 @@ namespace System.Reactive.Joins
|
|
|
var fifthJoinObserver = CreateObserver(externalSubscriptions, Expression.Fifth, onError);
|
|
|
var sixthJoinObserver = CreateObserver(externalSubscriptions, Expression.Sixth, onError);
|
|
|
var seventhJoinObserver = CreateObserver(externalSubscriptions, Expression.Seventh, onError);
|
|
|
- var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7>);
|
|
|
+ var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1, T2, T3, T4, T5, T6, T7>(firstJoinObserver, secondJoinObserver, thirdJoinObserver,
|
|
|
fourthJoinObserver, fifthJoinObserver, sixthJoinObserver, seventhJoinObserver,
|
|
@@ -450,7 +448,7 @@ namespace System.Reactive.Joins
|
|
|
var sixthJoinObserver = CreateObserver(externalSubscriptions, Expression.Sixth, onError);
|
|
|
var seventhJoinObserver = CreateObserver(externalSubscriptions, Expression.Seventh, onError);
|
|
|
var eighthJoinObserver = CreateObserver(externalSubscriptions, Expression.Eighth, onError);
|
|
|
- var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8>);
|
|
|
+ var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8>(firstJoinObserver, secondJoinObserver, thirdJoinObserver,
|
|
|
fourthJoinObserver, fifthJoinObserver, sixthJoinObserver, seventhJoinObserver, eighthJoinObserver,
|
|
@@ -519,7 +517,7 @@ namespace System.Reactive.Joins
|
|
|
var seventhJoinObserver = CreateObserver(externalSubscriptions, Expression.Seventh, onError);
|
|
|
var eighthJoinObserver = CreateObserver(externalSubscriptions, Expression.Eighth, onError);
|
|
|
var ninthJoinObserver = CreateObserver(externalSubscriptions, Expression.Ninth, onError);
|
|
|
- var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9>);
|
|
|
+ var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9>(firstJoinObserver, secondJoinObserver, thirdJoinObserver,
|
|
|
fourthJoinObserver, fifthJoinObserver, sixthJoinObserver, seventhJoinObserver, eighthJoinObserver, ninthJoinObserver,
|
|
@@ -591,7 +589,7 @@ namespace System.Reactive.Joins
|
|
|
var eighthJoinObserver = CreateObserver(externalSubscriptions, Expression.Eighth, onError);
|
|
|
var ninthJoinObserver = CreateObserver(externalSubscriptions, Expression.Ninth, onError);
|
|
|
var tenthJoinObserver = CreateObserver(externalSubscriptions, Expression.Tenth, onError);
|
|
|
- var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>);
|
|
|
+ var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(firstJoinObserver, secondJoinObserver, thirdJoinObserver,
|
|
|
fourthJoinObserver, fifthJoinObserver, sixthJoinObserver, seventhJoinObserver, eighthJoinObserver, ninthJoinObserver, tenthJoinObserver,
|
|
@@ -667,7 +665,7 @@ namespace System.Reactive.Joins
|
|
|
var tenthJoinObserver = CreateObserver(externalSubscriptions, Expression.Tenth, onError);
|
|
|
var eleventhJoinObserver = CreateObserver(externalSubscriptions, Expression.Eleventh, onError);
|
|
|
|
|
|
- var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>);
|
|
|
+ var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(firstJoinObserver, secondJoinObserver, thirdJoinObserver,
|
|
|
fourthJoinObserver, fifthJoinObserver, sixthJoinObserver, seventhJoinObserver, eighthJoinObserver, ninthJoinObserver, tenthJoinObserver, eleventhJoinObserver,
|
|
@@ -746,7 +744,7 @@ namespace System.Reactive.Joins
|
|
|
var eleventhJoinObserver = CreateObserver(externalSubscriptions, Expression.Eleventh, onError);
|
|
|
var twelfthJoinObserver = CreateObserver(externalSubscriptions, Expression.Twelfth, onError);
|
|
|
|
|
|
- var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>);
|
|
|
+ var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(firstJoinObserver, secondJoinObserver, thirdJoinObserver,
|
|
|
fourthJoinObserver, fifthJoinObserver, sixthJoinObserver, seventhJoinObserver, eighthJoinObserver, ninthJoinObserver, tenthJoinObserver, eleventhJoinObserver,
|
|
@@ -830,7 +828,7 @@ namespace System.Reactive.Joins
|
|
|
var twelfthJoinObserver = CreateObserver(externalSubscriptions, Expression.Twelfth, onError);
|
|
|
var thirteenthJoinObserver = CreateObserver(externalSubscriptions, Expression.Thirteenth, onError);
|
|
|
|
|
|
- var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>);
|
|
|
+ var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(firstJoinObserver, secondJoinObserver, thirdJoinObserver,
|
|
|
fourthJoinObserver, fifthJoinObserver, sixthJoinObserver, seventhJoinObserver, eighthJoinObserver, ninthJoinObserver, tenthJoinObserver, eleventhJoinObserver,
|
|
@@ -917,7 +915,7 @@ namespace System.Reactive.Joins
|
|
|
var thirteenthJoinObserver = CreateObserver(externalSubscriptions, Expression.Thirteenth, onError);
|
|
|
var fourteenthJoinObserver = CreateObserver(externalSubscriptions, Expression.Fourteenth, onError);
|
|
|
|
|
|
- var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>);
|
|
|
+ var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(
|
|
|
firstJoinObserver, secondJoinObserver, thirdJoinObserver,
|
|
@@ -1010,7 +1008,7 @@ namespace System.Reactive.Joins
|
|
|
var fourteenthJoinObserver = CreateObserver(externalSubscriptions, Expression.Fourteenth, onError);
|
|
|
var fifteenthJoinObserver = CreateObserver(externalSubscriptions, Expression.Fifteenth, onError);
|
|
|
|
|
|
- var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>);
|
|
|
+ var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(
|
|
|
firstJoinObserver, secondJoinObserver, thirdJoinObserver,
|
|
@@ -1105,7 +1103,7 @@ namespace System.Reactive.Joins
|
|
|
var fifteenthJoinObserver = CreateObserver(externalSubscriptions, Expression.Fifteenth, onError);
|
|
|
var sixteenthJoinObserver = CreateObserver(externalSubscriptions, Expression.Sixteenth, onError);
|
|
|
|
|
|
- var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>);
|
|
|
+ var activePlan = default(ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>)!;
|
|
|
|
|
|
activePlan = new ActivePlan<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(
|
|
|
firstJoinObserver, secondJoinObserver, thirdJoinObserver,
|