143 references to Empty
Aspire.Hosting.Dapr (1)
DaprSidecarOptions.cs (1)
148public IImmutableSet<string> ResourcesPaths { get; init; } = ImmutableHashSet<string>.Empty;
IdeCoreBenchmarks (3)
CSharpIdeAnalyzerBenchmarks.cs (1)
55refactoringNodes: ImmutableHashSet<string>.Empty,
IncrementalAnalyzerBenchmarks.cs (2)
52analyzerIds: ImmutableHashSet<string>.Empty, 53refactoringNodes: ImmutableHashSet<string>.Empty,
Microsoft.AspNetCore.Analyzers (1)
CompilationFeatureDetector.cs (1)
24return ImmutableHashSet<string>.Empty;
Microsoft.Build (2)
Evaluation\LazyItemEvaluator.cs (1)
502return _itemLists.Values.SelectMany(itemList => itemList.GetItemData(ImmutableHashSet<string>.Empty))
Evaluation\LazyItemEvaluator.EvaluatorData.cs (1)
52? items.GetMatchedItems(globsToIgnore: ImmutableHashSet<string>.Empty)
Microsoft.Build.Engine.OM.UnitTests (4)
Definition\Project_Tests.cs (4)
3798("A", expectedIncludes, expectedExcludes, ImmutableHashSet<string>.Empty) 3821("A", new []{"*"}, new[] {"*"}.ToImmutableHashSet(), ImmutableHashSet<string>.Empty), 3850("A", new []{"*"}, ImmutableHashSet<string>.Empty, ImmutableHashSet<string>.Empty)
Microsoft.Build.Tasks.Core (1)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigCache.cs (1)
22private readonly ImmutableHashSet<string> _filesInDirectories = ImmutableHashSet<string>.Empty;
Microsoft.CodeAnalysis (17)
Binding\UseSiteInfo.cs (5)
66SecondaryDependencies = secondaryDependencies ?? ImmutableHashSet<TAssemblySymbol>.Empty; 92secondaryDependencies = (secondaryDependencies ?? ImmutableHashSet<TAssemblySymbol>.Empty).Union(SecondaryDependencies ?? ImmutableHashSet<TAssemblySymbol>.Empty); 475Initialize(diagnosticInfo, dependencies: ImmutableHashSet<TAssemblySymbol>.Empty); 485var secondaryDependencies = useSiteInfo.SecondaryDependencies ?? ImmutableHashSet<TAssemblySymbol>.Empty;
DiagnosticAnalyzer\AnalysisResult.cs (1)
91var excludedAnalyzersSet = excludedAnalyzers.Any() ? excludedAnalyzers.ToImmutableHashSet() : ImmutableHashSet<DiagnosticAnalyzer>.Empty;
DiagnosticAnalyzer\AnalyzerDriver.cs (4)
1324return ImmutableHashSet<ISymbol>.Empty; 1344return generatedSymbolsBuilder != null ? generatedSymbolsBuilder.ToImmutable() : ImmutableHashSet<ISymbol>.Empty; 1369return ImmutableHashSet<DiagnosticAnalyzer>.Empty; 1421return suppressedAnalyzersBuilder != null ? suppressedAnalyzersBuilder.ToImmutable() : ImmutableHashSet<DiagnosticAnalyzer>.Empty;
InternalUtilities\MultiDictionary.cs (1)
134_equalityComparer = equalityComparer ?? ImmutableHashSet<V>.Empty.KeyComparer;
MetadataReader\PEModule.cs (2)
1413var unmanagedConventionTypes = ImmutableHashSet<INamedTypeSymbolInternal>.Empty; 1491var result = ImmutableHashSet<string>.Empty;
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
66/// <inheritdoc cref="ImmutableHashSet{T}.Empty"/>
Symbols\Attributes\UnmanagedCallersOnlyAttributeData.cs (3)
13internal static readonly UnmanagedCallersOnlyAttributeData Uninitialized = new UnmanagedCallersOnlyAttributeData(callingConventionTypes: ImmutableHashSet<INamedTypeSymbolInternal>.Empty); 14internal static readonly UnmanagedCallersOnlyAttributeData AttributePresentDataNotBound = new UnmanagedCallersOnlyAttributeData(callingConventionTypes: ImmutableHashSet<INamedTypeSymbolInternal>.Empty); 15private static readonly UnmanagedCallersOnlyAttributeData PlatformDefault = new UnmanagedCallersOnlyAttributeData(callingConventionTypes: ImmutableHashSet<INamedTypeSymbolInternal>.Empty);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
134_equalityComparer = equalityComparer ?? ImmutableHashSet<V>.Empty.KeyComparer;
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
66/// <inheritdoc cref="ImmutableHashSet{T}.Empty"/>
Microsoft.CodeAnalysis.Collections.Package (1)
ImmutableSegmentedHashSet`1.cs (1)
66/// <inheritdoc cref="ImmutableHashSet{T}.Empty"/>
Microsoft.CodeAnalysis.CSharp (44)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (6)
703actualUnmanagedCallingConventionTypes = ImmutableHashSet<INamedTypeSymbolInternal>.Empty; 723actualUnmanagedCallingConventionTypes = ImmutableHashSet<INamedTypeSymbolInternal>.Empty; 730actualUnmanagedCallingConventionTypes = ImmutableHashSet<INamedTypeSymbolInternal>.Empty; 734actualUnmanagedCallingConventionTypes = ImmutableHashSet<INamedTypeSymbolInternal>.Empty; 738actualUnmanagedCallingConventionTypes = ImmutableHashSet<INamedTypeSymbolInternal>.Empty; 742actualUnmanagedCallingConventionTypes = ImmutableHashSet<INamedTypeSymbolInternal>.Empty;
Compilation\CSharpCompilation.cs (1)
143private ImmutableHashSet<SyntaxTree>? _usageOfUsingsRecordedInTrees = ImmutableHashSet<SyntaxTree>.Empty;
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
152public override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
106public sealed override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\Attributes\WellKnownAttributeData\ParameterWellKnownAttributeData.cs (1)
145private ImmutableHashSet<string> _notNullIfParameterNotNull = ImmutableHashSet<string>.Empty;
Symbols\Attributes\WellKnownAttributeData\ReturnTypeWellKnownAttributeData.cs (1)
46private ImmutableHashSet<string> _notNullIfParameterNotNull = ImmutableHashSet<string>.Empty;
Symbols\ErrorMethodSymbol.cs (1)
175public override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (3)
674_lazyCallingConventionModifiers = ImmutableHashSet<CustomModifier>.Empty; 689_lazyCallingConventionModifiers = ImmutableHashSet<CustomModifier>.Empty; 846public override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
88internal override ImmutableHashSet<string> NotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\MethodSymbol.cs (1)
1005callingConventionTypes = ImmutableHashSet<INamedTypeSymbolInternal>.Empty;
Symbols\SignatureOnlyMethodSymbol.cs (1)
81public override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\Source\ConstantEvaluationHelpers.cs (2)
124node.DependedOnBy = ImmutableHashSet<SourceFieldSymbolWithSyntaxReference>.Empty; 144node.DependedOnBy = ImmutableHashSet<SourceFieldSymbolWithSyntaxReference>.Empty;
Symbols\Source\SourceClonedParameterSymbol.cs (1)
150get { return ImmutableHashSet<string>.Empty; }
Symbols\Source\SourceComplexParameterSymbol.cs (1)
194=> GetDecodedWellKnownAttributeData()?.NotNullIfParameterNotNull ?? ImmutableHashSet<string>.Empty;
Symbols\Source\SourceFieldSymbol.cs (3)
288return ImmutableHashSet<SourceFieldSymbolWithSyntaxReference>.Empty; 310dependencies = ImmutableHashSet<SourceFieldSymbolWithSyntaxReference>.Empty; 314dependencies = ImmutableHashSet<SourceFieldSymbolWithSyntaxReference>.Empty.Union(builder);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
113=> GetDecodedReturnTypeWellKnownAttributeData()?.NotNullIfParameterNotNull ?? ImmutableHashSet<string>.Empty;
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
376public sealed override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\Source\SourceSimpleParameterSymbol.cs (1)
132internal override ImmutableHashSet<string> NotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\Source\ThisParameterSymbol.cs (1)
80get { return ImmutableHashSet<string>.Empty; }
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (1)
53internal override ImmutableHashSet<string> NotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
169public override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
147public sealed override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
122public sealed override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
108public sealed override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
161public sealed override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
151public override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
234public override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
127get { return ImmutableHashSet<string>.Empty; }
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
199public override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
165public override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
145public override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => ImmutableHashSet<string>.Empty;
Utilities\ValueSetFactory.EnumeratedValueSet.cs (3)
38=> new EnumeratedValueSet<T>(included: false, ImmutableHashSet<T>.Empty, tc); 41=> new EnumeratedValueSet<T>(included: true, ImmutableHashSet<T>.Empty, tc); 44=> new EnumeratedValueSet<T>(included: true, ImmutableHashSet<T>.Empty.Add(value), tc);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (9)
NavigateTo\NavigateToSearcherTests.cs (9)
43ImmutableHashSet<string>.Empty, 66ImmutableHashSet<string>.Empty, 93ImmutableHashSet<string>.Empty, 146kinds: ImmutableHashSet<string>.Empty, 186kinds: ImmutableHashSet<string>.Empty, 223kinds: ImmutableHashSet<string>.Empty, 260kinds: ImmutableHashSet<string>.Empty, 291kinds: ImmutableHashSet<string>.Empty, 349kinds: ImmutableHashSet<string>.Empty,
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (24)
IntelliSense\CSharpCompletionCommandHandlerTests.vb (21)
4242Dim slowProvider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of SlowProvider)().Single() 5131Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of BooleanTaskControlledCompletionProvider)().Single() 5182Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of BooleanTaskControlledCompletionProvider)().Single() 5258Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of BooleanTaskControlledCompletionProvider)().Single() 5327Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of BooleanTaskControlledCompletionProvider)().Single() 5844Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of MultipleChangeCompletionProvider)().Single() 5912Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of MultipleChangeCompletionProvider)().Single() 6644Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of IntelliCodeMockProvider)().Single() 6669Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of IntelliCodeMockProvider)().Single() 6699Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of IntelliCodeMockProvider)().Single() 6728Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of IntelliCodeMockProvider)().Single() 6753Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of IntelliCodeMockWeirdProvider)().Single() 6778Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of IntelliCodeMockWeirdProvider)().Single() 6805Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of IntelliCodeMockProvider)().Single() 6855Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of IntelliCodeMockProvider)().Single() 9538Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of TestMatchPriorityCompletionProvider)().Single() 9570Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of TestMatchPriorityCompletionProvider)().Single() 10295Dim notifyProvider As NotifyCommittingItemCompletionProvider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of NotifyCommittingItemCompletionProvider)().Single() 10378Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of TestProvider)().Single() 10433Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of TestProvider)().Single() 10487Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of TestProvider)().Single()
IntelliSense\VisualBasicCompletionCommandHandlerTests.vb (3)
407Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of TriggeredCompletionProvider)().Single() 445Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of TriggeredCompletionProvider)().Single() 479Dim provider = completionService.GetTestAccessor().GetImportedAndBuiltInProviders(ImmutableHashSet(Of String).Empty).OfType(Of TriggeredCompletionProvider)().Single()
Microsoft.CodeAnalysis.Features (4)
ExternalAccess\VSTypeScript\VSTypeScriptNavigateToSearchService.cs (1)
30public IImmutableSet<string> KindsProvided => _searchService?.KindsProvided ?? ImmutableHashSet<string>.Empty;
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
297.FindReferencesAsync(symbol, document.Project.Solution, ImmutableHashSet<Document>.Empty.Add(document), cancellationToken)
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
442.FindReferencesAsync(parameterSymbol, document.Project.Solution, ImmutableHashSet<Document>.Empty.Add(document), cancellationToken).ConfigureAwait(false);
NavigateTo\NavigateToSearcher.cs (1)
526=> ImmutableHashSet<string>.Empty;
Microsoft.CodeAnalysis.UnitTests (1)
InternalUtilities\SpecializedCollectionsTests.cs (1)
24? ImmutableHashSet<int>.Empty
Microsoft.CodeAnalysis.VisualBasic (7)
Declarations\DeclarationTreeBuilder.vb (2)
757memberNames:=ImmutableHashSet(Of String).Empty, 783memberNames:=ImmutableHashSet(Of String).Empty,
Symbols\Source\SourceFieldSymbol.vb (5)
323node.DependedOnBy = ImmutableHashSet(Of SourceFieldSymbol).Empty 341node.DependedOnBy = ImmutableHashSet(Of SourceFieldSymbol).Empty 364Return ImmutableHashSet(Of SourceFieldSymbol).Empty 383result = ImmutableHashSet(Of SourceFieldSymbol).Empty 385result = ImmutableHashSet(Of SourceFieldSymbol).Empty.Union(builder)
Microsoft.CodeAnalysis.Workspaces (3)
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
115var conflictLocations = ImmutableHashSet<ConflictLocationInfo>.Empty;
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
134_equalityComparer = equalityComparer ?? ImmutableHashSet<V>.Empty.KeyComparer;
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
66/// <inheritdoc cref="ImmutableHashSet{T}.Empty"/>
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.cs (1)
176var projectFilter = ImmutableHashSet<string>.Empty;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
134_equalityComparer = equalityComparer ?? ImmutableHashSet<V>.Empty.KeyComparer;
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
66/// <inheritdoc cref="ImmutableHashSet{T}.Empty"/>
Microsoft.Interop.SourceGeneration (1)
MarshallingInfoParser.cs (1)
287private ImmutableHashSet<string> _activeInspectingElements = ImmutableHashSet<string>.Empty;
Microsoft.VisualStudio.LanguageServices (4)
CallHierarchy\Finders\AbstractCallFinder.cs (1)
141return ImmutableHashSet<Document>.Empty;
NavigateTo\RoslynSearchItemsSource.cs (2)
23private static readonly IImmutableSet<string> s_typeKinds = ImmutableHashSet<string>.Empty 30private static readonly IImmutableSet<string> s_memberKinds = ImmutableHashSet<string>.Empty
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (1)
155var diagnosticsToFix = ImmutableHashSet<DiagnosticData>.Empty;
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Snippets\SnippetCompletionProvider.vb (1)
94Public Overrides ReadOnly Property TriggerCharacters As ImmutableHashSet(Of Char) = ImmutableHashSet(Of Char).Empty
System.Collections.Immutable (10)
System\Collections\Immutable\ImmutableHashSet.cs (9)
20return ImmutableHashSet<T>.Empty; 33return ImmutableHashSet<T>.Empty.WithComparer(equalityComparer); 44return ImmutableHashSet<T>.Empty.Add(item); 56return ImmutableHashSet<T>.Empty.WithComparer(equalityComparer).Add(item); 67return ImmutableHashSet<T>.Empty.Union(items); 79return ImmutableHashSet<T>.Empty.WithComparer(equalityComparer).Union(items); 103return ImmutableHashSet<T>.Empty.Union(items); 129return ImmutableHashSet<T>.Empty.WithComparer(equalityComparer).Union(items); 169return ImmutableHashSet<TSource>.Empty.WithComparer(equalityComparer).Union(source);
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
86return this.IsEmpty ? this : ImmutableHashSet<T>.Empty.WithComparer(_equalityComparer);