7 instantiations of ConcurrentSet
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
78var semanticModels = new ConcurrentSet<SemanticModel>();
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
251var includedPreferredItems = new ConcurrentSet<string>();
Microsoft.CodeAnalysis.Features (1)
CodeLens\CodeLensFindReferenceProgress.cs (1)
33private readonly ConcurrentSet<Location> _locations = new ConcurrentSet<Location>(LocationComparer.Instance);
Microsoft.CodeAnalysis.Workspaces (3)
ExtensionManager\AbstractExtensionManager.cs (2)
13private readonly ConcurrentSet<object> _disabledProviders = new(ReferenceEqualityComparer.Instance); 14private readonly ConcurrentSet<object> _ignoredProviders = new(ReferenceEqualityComparer.Instance);
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
198var cachedModels = new ConcurrentSet<SemanticModel>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
src\Workspaces\MSBuild\BuildHost\Rpc\RpcServer.cs (1)
62var runningTasks = new ConcurrentSet<Task>();
51 references to ConcurrentSet
Microsoft.CodeAnalysis.CSharp.Features (4)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
78var semanticModels = new ConcurrentSet<SemanticModel>();
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
49ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> ineligibleFieldUsageIfOutsideProperty,
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (2)
64private static readonly ObjectPool<ConcurrentSet<ISymbol>> s_concurrentSetPool = new(() => []); 160private readonly ConcurrentSet<ISymbol> _membersThatCannotBeRemoved = s_concurrentSetPool.Allocate();
Microsoft.CodeAnalysis.EditorFeatures (3)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
251var includedPreferredItems = new ConcurrentSet<string>();
Suggestions\SuggestedActionPriorityProvider.cs (2)
26public ConcurrentSet<DiagnosticAnalyzer> Analyzers { get; } = []; 27public ConcurrentSet<string> SupportedDiagnosticIds { get; } = [];
Microsoft.CodeAnalysis.Features (22)
CodeLens\CodeLensFindReferenceProgress.cs (1)
33private readonly ConcurrentSet<Location> _locations = new ConcurrentSet<Location>(LocationComparer.Instance);
Diagnostics\CodeAnalysisDiagnosticAnalyzerService.cs (1)
44private readonly ConcurrentSet<ProjectId> _clearedProjectIds = [];
RelatedDocuments\AbstractRelatedDocumentsService.cs (5)
28private static readonly ObjectPool<ConcurrentSet<T>> s_pool = new(() => []); 30public static PooledObject<ConcurrentSet<T>> GetInstance(out ConcurrentSet<T> set) 80using var _1 = ConcurrentSetPool<DocumentId>.GetInstance(out var seenDocumentIds); 81using var _2 = ConcurrentSetPool<string>.GetInstance(out var seenTypeNames);
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (15)
49private static readonly ObjectPool<ConcurrentSet<SyntaxNode>> s_nodeSetPool = new(() => []); 51private static readonly ObjectPool<ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>>> s_fieldToUsageLocationPool = new(() => []); 58protected static void AddFieldUsage(ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldWrites, IFieldSymbol field, SyntaxNode location) 61private static void ClearAndFree(ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> multiMap) 94HashSet<string> fieldNames, ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> ineligibleFieldUsageIfOutsideProperty, SemanticModel semanticModel, SyntaxNode codeBlock, CancellationToken cancellationToken); 222ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldReads, 223ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldWrites, 538ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> ineligibleFieldUsageIfOutsideProperty, 539ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldReads, 540ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldWrites, 549if (ineligibleFieldUsageIfOutsideProperty.TryGetValue(result.Field, out var ineligibleFieldUsages)) 570fieldWrites.TryGetValue(result.Field, out var writeLocations1) && 583fieldWrites.TryGetValue(result.Field, out var writeLocations2) && 592fieldReads.TryGetValue(result.Field, out var specificFieldReads) && 602fieldWrites.TryGetValue(result.Field, out var specificFieldWrites) &&
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\FileWatching\SimpleFileChangeWatcher.cs (1)
31private readonly ConcurrentSet<IndividualWatchedFile> _individualWatchedFiles = [];
Microsoft.CodeAnalysis.Workspaces (19)
ExtensionManager\AbstractExtensionManager.cs (2)
13private readonly ConcurrentSet<object> _disabledProviders = new(ReferenceEqualityComparer.Instance); 14private readonly ConcurrentSet<object> _ignoredProviders = new(ReferenceEqualityComparer.Instance);
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
198var cachedModels = new ConcurrentSet<SemanticModel>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (9)
82public static PooledObject<ConcurrentSet<T>> GetPooledObject<T>(this ObjectPool<ConcurrentSet<T>> pool, out ConcurrentSet<T> set) 85var pooledObject = PooledObject<ConcurrentSet<T>>.Create(pool); 125public static ConcurrentSet<T> AllocateAndClear<T>(this ObjectPool<ConcurrentSet<T>> pool) where T : notnull 127var set = pool.Allocate(); 219public static void ClearAndFree<T>(this ObjectPool<ConcurrentSet<T>> pool, ConcurrentSet<T> set) where T : notnull
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
73public static PooledObject<ConcurrentSet<TItem>> Create<TItem>(ObjectPool<ConcurrentSet<TItem>> pool) where TItem : notnull 75return new PooledObject<ConcurrentSet<TItem>>( 130private static ConcurrentSet<TItem> Allocator<TItem>(ObjectPool<ConcurrentSet<TItem>> pool) where TItem : notnull 136private static void Releaser<TItem>(ObjectPool<ConcurrentSet<TItem>> pool, ConcurrentSet<TItem> obj) where TItem : notnull
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
src\Workspaces\MSBuild\BuildHost\Rpc\RpcServer.cs (1)
62var runningTasks = new ConcurrentSet<Task>();
Microsoft.VisualStudio.LanguageServices (1)
SymbolSearch\AbstractDelayStartedService.cs (1)
35private readonly ConcurrentSet<string> _registeredLanguages = [];