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