11 instantiations of ConcurrentSet
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
255var includedPreferredItems = new ConcurrentSet<string>();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
659var diagnostics = new ConcurrentSet<DiagnosticData>();
Microsoft.CodeAnalysis.Features (4)
AbstractUseAutoPropertyAnalyzer.cs (2)
37private static readonly ObjectPool<ConcurrentSet<IFieldSymbol>> s_fieldSetPool = new(() => new()); 38private static readonly ObjectPool<ConcurrentSet<SyntaxNode>> s_nodeSetPool = new(() => new());
CodeLens\CodeLensFindReferenceProgress.cs (1)
58_locations = new ConcurrentSet<Location>(LocationComparer.Instance);
Workspace\BackgroundCompiler.cs (1)
23private readonly ConcurrentSet<Compilation> _mostRecentCompilations = new();
Microsoft.CodeAnalysis.Workspaces (4)
ExtensionManager\AbstractExtensionManager.cs (2)
12private readonly ConcurrentSet<object> _disabledProviders = new(ReferenceEqualityComparer.Instance); 13private readonly ConcurrentSet<object> _ignoredProviders = new(ReferenceEqualityComparer.Instance);
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
197var cachedModels = new ConcurrentSet<SemanticModel>();
Serialization\SolutionReplicationContext.cs (1)
13private static readonly ObjectPool<ConcurrentSet<IDisposable>> s_pool = new(() => new());
Microsoft.VisualStudio.LanguageServices (1)
SymbolSearch\AbstractDelayStartedService.cs (1)
34private readonly ConcurrentSet<string> _registeredLanguages = new();
29 references to ConcurrentSet
Microsoft.CodeAnalysis.CSharp.Features (4)
CSharpUseAutoPropertyAnalyzer.cs (4)
46HashSet<string> fieldNames, ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldWrites, SemanticModel semanticModel, SyntaxNode codeBlock, CancellationToken cancellationToken) 53ConcurrentSet<IFieldSymbol> ineligibleFields, 100SemanticModel semanticModel, MemberAccessExpressionSyntax memberAccess, ConcurrentSet<IFieldSymbol> ineligibleFields, CancellationToken cancellationToken) 123private static void AddIneligibleFields(ConcurrentSet<IFieldSymbol> ineligibleFields, SymbolInfo symbolInfo)
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
255var includedPreferredItems = new ConcurrentSet<string>();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
659var diagnostics = new ConcurrentSet<DiagnosticData>();
Microsoft.CodeAnalysis.Features (13)
AbstractUseAutoPropertyAnalyzer.cs (11)
37private static readonly ObjectPool<ConcurrentSet<IFieldSymbol>> s_fieldSetPool = new(() => new()); 38private static readonly ObjectPool<ConcurrentSet<SyntaxNode>> s_nodeSetPool = new(() => new()); 39private static readonly ObjectPool<ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>>> s_fieldWriteLocationPool = new(() => new()); 41private static readonly Func<IFieldSymbol, ConcurrentSet<SyntaxNode>> s_createFieldWriteNodeSet = _ => s_nodeSetPool.Allocate(); 58protected static void AddFieldWrite(ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldWrites, IFieldSymbol field, SyntaxNode node) 80HashSet<string> fieldNames, ConcurrentSet<IFieldSymbol> ineligibleFields, SemanticModel semanticModel, SyntaxNode codeBlock, CancellationToken cancellationToken); 83HashSet<string> fieldNames, ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldWrites, SemanticModel semanticModel, SyntaxNode codeBlock, CancellationToken cancellationToken); 105var ineligibleFields = s_fieldSetPool.Allocate(); 288ConcurrentSet<IFieldSymbol> ineligibleFields, 289ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> nonConstructorFieldWrites, 306nonConstructorFieldWrites.TryGetValue(result.Field, out var writeLocations) &&
CodeLens\CodeLensFindReferenceProgress.cs (1)
31private readonly ConcurrentSet<Location> _locations;
Workspace\BackgroundCompiler.cs (1)
23private readonly ConcurrentSet<Compilation> _mostRecentCompilations = new();
Microsoft.CodeAnalysis.VisualBasic.Features (2)
VisualBasicUseAutoPropertyAnalyzer.vb (2)
39Protected Overrides Sub RegisterIneligibleFieldsAction(fieldNames As HashSet(Of String), ineligibleFields As ConcurrentSet(Of IFieldSymbol), semanticModel As SemanticModel, codeBlock As SyntaxNode, cancellationToken As CancellationToken) 138fieldWrites As ConcurrentDictionary(Of IFieldSymbol, ConcurrentSet(Of SyntaxNode)),
Microsoft.CodeAnalysis.Workspaces (7)
ExtensionManager\AbstractExtensionManager.cs (2)
12private readonly ConcurrentSet<object> _disabledProviders = new(ReferenceEqualityComparer.Instance); 13private readonly ConcurrentSet<object> _ignoredProviders = new(ReferenceEqualityComparer.Instance);
Extensions.cs (2)
130public static void ClearAndFree<T>(this ObjectPool<ConcurrentSet<T>> pool, ConcurrentSet<T> set) where T : notnull
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
197var cachedModels = new ConcurrentSet<SemanticModel>();
Serialization\SolutionReplicationContext.cs (2)
13private static readonly ObjectPool<ConcurrentSet<IDisposable>> s_pool = new(() => new()); 15private readonly ConcurrentSet<IDisposable> _resources;
Microsoft.VisualStudio.LanguageServices (1)
SymbolSearch\AbstractDelayStartedService.cs (1)
34private readonly ConcurrentSet<string> _registeredLanguages = new();