File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
// See the LICENSE file in the project root for more information.
4
4
5
- using System . Collections . Generic ;
6
5
using System . Collections . Immutable ;
7
6
using System . Linq ;
8
7
using System . Text ;
@@ -51,7 +50,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
51
50
. Where ( static item => item . Hierarchy is not null ) ;
52
51
53
52
// Output the diagnostics
54
- context . ReportDiagnostics ( propertyInfoWithErrors . Select ( static ( item , _ ) => item . Info . Errors . AsImmutableArray ( ) ) ) ;
53
+ context . ReportDiagnostics ( propertyInfoWithErrors . Select ( static ( item , _ ) => item . Info . Errors ) ) ;
55
54
56
55
// Get the filtered sequence to enable caching
57
56
IncrementalValuesProvider < ( HierarchyInfo Hierarchy , Result < PropertyInfo > Info ) > propertyInfo =
Original file line number Diff line number Diff line change 3
3
// See the LICENSE file in the project root for more information.
4
4
5
5
using System ;
6
- using System . Collections . Generic ;
7
6
using System . Collections . Immutable ;
8
7
using System . Linq ;
9
8
using System . Text ;
@@ -92,7 +91,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
92
91
. Where ( static item => item is not null ) ! ;
93
92
94
93
// Emit the diagnostic, if needed
95
- context . ReportDiagnostics ( generationInfoWithErrors . Select ( static ( item , _ ) => item . Errors . AsImmutableArray ( ) ) ) ;
94
+ context . ReportDiagnostics ( generationInfoWithErrors . Select ( static ( item , _ ) => item . Errors ) ) ;
96
95
97
96
// Get the filtered sequence to enable caching
98
97
IncrementalValuesProvider < ( HierarchyInfo Hierarchy , bool IsSealed , TInfo Info ) > generationInfo =
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public static void ReportDiagnostics(this IncrementalGeneratorInitializationCont
67
67
/// </summary>
68
68
/// <param name="context">The input <see cref="IncrementalGeneratorInitializationContext"/> instance.</param>
69
69
/// <param name="diagnostics">The input <see cref="IncrementalValuesProvider{TValues}"/> sequence of diagnostics.</param>
70
- public static void ReportDiagnostics ( this IncrementalGeneratorInitializationContext context , IncrementalValuesProvider < ImmutableArray < DiagnosticInfo > > diagnostics )
70
+ public static void ReportDiagnostics ( this IncrementalGeneratorInitializationContext context , IncrementalValuesProvider < EquatableArray < DiagnosticInfo > > diagnostics )
71
71
{
72
72
context . RegisterSourceOutput ( diagnostics , static ( context , diagnostics ) =>
73
73
{
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
48
48
. Where ( static item => item . Hierarchy is not null ) ! ;
49
49
50
50
// Output the diagnostics
51
- context . ReportDiagnostics ( commandInfoWithErrors . Select ( static ( item , _ ) => item . Info . Errors . AsImmutableArray ( ) ) ) ;
51
+ context . ReportDiagnostics ( commandInfoWithErrors . Select ( static ( item , _ ) => item . Info . Errors ) ) ;
52
52
53
53
// Get the filtered sequence to enable caching
54
54
IncrementalValuesProvider < ( HierarchyInfo Hierarchy , Result < CommandInfo > Info ) > commandInfo =
You can’t perform that action at this time.
0 commit comments