#pragma warning disable S3963 // The static fields are dependent between them so the values cannot be set inline static ParseOptionsHelper() { BeforeCSharp7 = CSharp5.Concat(CSharp6); BeforeCSharp8 = BeforeCSharp7.Concat(CSharp7); FromCSharp8 = CSharp8; FromCSharp7 = CSharp7.Concat(FromCSharp8); FromCSharp6 = CSharp6.Concat(FromCSharp7); FromVisualBasic15 = VisualBasic15.Concat(VisualBasic16); FromVisualBasic14 = VisualBasic14.Concat(FromVisualBasic15); FromVisualBasic12 = VisualBasic12.Concat(FromVisualBasic14); defaultParseOptions = FromCSharp7.Concat(FromVisualBasic12); }
#pragma warning disable S3963 // The static fields are dependent between them so the values cannot be set inline static ParseOptionsHelper() { var cs7 = CreateOptions(CSharp7, CSharp7_1, CSharp7_2, CSharp7_3); var vb15 = CreateOptions(VisualBasic15, VisualBasic15_3, VisualBasic15_5); BeforeCSharp7 = CreateOptions(CSharp5).Concat(CreateOptions(CSharp6)).FilterByEnvironment(); BeforeCSharp8 = BeforeCSharp7.Concat(cs7).FilterByEnvironment(); FromCSharp8 = CreateOptions(CSharp8).FilterByEnvironment(); FromCSharp7 = cs7.Concat(FromCSharp8).FilterByEnvironment(); FromCSharp6 = CreateOptions(CSharp6).Concat(FromCSharp7).FilterByEnvironment(); FromVisualBasic15 = vb15.Concat(CreateOptions(VisualBasic16)).FilterByEnvironment(); FromVisualBasic14 = CreateOptions(VisualBasic14).Concat(FromVisualBasic15).FilterByEnvironment(); FromVisualBasic12 = CreateOptions(VisualBasic12).Concat(FromVisualBasic14).FilterByEnvironment(); defaultParseOptions = FromCSharp7.Concat(FromVisualBasic12).ToImmutableArray(); // Values depends on the build environment }