We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0713c7 commit 0c3e9cdCopy full SHA for 0c3e9cd
src/CSharpGuidelinesAnalyzer/CSharpGuidelinesAnalyzer/DiagnosticCollector.cs
@@ -1,5 +1,6 @@
1
using System;
2
using System.Collections.Generic;
3
+using System.Collections.Immutable;
4
using JetBrains.Annotations;
5
using Microsoft.CodeAnalysis;
6
@@ -22,7 +23,7 @@ public ICollection<Diagnostic> Diagnostics
22
23
{
24
if (diagnostics == null)
25
- return [];
26
+ return ImmutableArray<Diagnostic>.Empty;
27
}
28
29
return diagnostics;
0 commit comments