29 references to Empty
Microsoft.CodeAnalysis (13)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
381
_lazyAnalyzerGateMap = ImmutableSegmentedDictionary<DiagnosticAnalyzer, SemaphoreSlim>.
Empty
;
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActionsForAnalyzer.cs (2)
79
ImmutableSegmentedDictionary<TLanguageKindEnum, ImmutableArray<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>>.
Empty
;
97
ImmutableSegmentedDictionary<OperationKind, ImmutableArray<OperationAnalyzerAction>>.
Empty
;
ImmutableSegmentedDictionary.cs (6)
19
=> ImmutableSegmentedDictionary<TKey, TValue>.
Empty
;
23
=> ImmutableSegmentedDictionary<TKey, TValue>.
Empty
.WithComparer(keyComparer);
35
=> ImmutableSegmentedDictionary<TKey, TValue>.
Empty
.AddRange(items);
39
=> ImmutableSegmentedDictionary<TKey, TValue>.
Empty
.WithComparer(keyComparer).AddRange(items);
63
return ImmutableSegmentedDictionary<TKey, TValue>.
Empty
.WithComparer(keyComparer).AddRange(items);
80
return ImmutableSegmentedDictionary<TKey, TValue>.
Empty
.WithComparer(keyComparer)
ImmutableSegmentedDictionary`2.cs (3)
190
return
Empty
.WithComparer(self.KeyComparer);
289
if (keyComparer ==
Empty
.KeyComparer)
291
return
Empty
;
SourceGeneration\Nodes\StateTableStore.cs (1)
18
public static readonly StateTableStore Empty = new StateTableStore(ImmutableSegmentedDictionary<object, IStateTable>.
Empty
);
Microsoft.CodeAnalysis.CSharp (7)
Declarations\DeclarationTreeBuilder.cs (2)
170
memberNames: ImmutableSegmentedDictionary<string, VoidResult>.
Empty
,
731
memberNames: ImmutableSegmentedDictionary<string, VoidResult>.
Empty
,
FlowAnalysis\NullableWalker.cs (1)
999
var requiredMembers = containingType.BaseTypeNoUseSiteDiagnostics?.AllRequiredMembers ?? ImmutableSegmentedDictionary<string, Symbol>.
Empty
;
Symbols\NamedTypeSymbol.cs (4)
29
private static readonly ImmutableSegmentedDictionary<string, Symbol> RequiredMembersErrorSentinel = ImmutableSegmentedDictionary<string, Symbol>.
Empty
.Add("<error sentinel>", null!);
32
/// <see langword="default"/> if uninitialized. <see cref="RequiredMembersErrorSentinel"/> if there are errors. <see cref="ImmutableSegmentedDictionary{TKey, TValue}.
Empty
"/> if
567
return ImmutableSegmentedDictionary<string, Symbol>.
Empty
;
585
? builder?.ToImmutable() ?? ImmutableSegmentedDictionary<string, Symbol>.
Empty
Microsoft.CodeAnalysis.UnitTests (9)
Collections\ImmutableSegmentedDictionaryBuilderTest.cs (5)
37
var builder = ImmutableSegmentedDictionary<int, string>.
Empty
.ToBuilder();
57
var set = ImmutableSegmentedDictionary<int, string>.
Empty
.Add(1, "1");
82
var mutable = ImmutableSegmentedDictionary<int, string>.
Empty
.ToBuilder();
96
var builder = ImmutableSegmentedDictionary<int, string?>.
Empty
126
var collection = ImmutableSegmentedDictionary<int, string?>.
Empty
.Add(1, null);
Collections\ImmutableSegmentedDictionaryTest.cs (4)
74
ContainsValueTestHelper(ImmutableSegmentedDictionary<int, GenericParameterHelper>.
Empty
, 1, new GenericParameterHelper());
273
Assert.True(IsSame(ImmutableSegmentedDictionary<string, int>.
Empty
, dictionary.Clear()));
286
Assert.False(IsSame(ImmutableSegmentedDictionary<string, int>.
Empty
, clearedDictionary.Clear()));
328
return ImmutableSegmentedDictionary<TKey, TValue>.
Empty
.WithComparer(keyComparer);