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