18 instantiations of ConcurrentSet
Microsoft.CodeAnalysis (6)
CommandLine\TouchedFileLogger.cs (2)
23_readFiles = new ConcurrentSet<string>(); 24_writtenFiles = new ConcurrentSet<string>();
DiagnosticAnalyzer\AnalyzerDriver.cs (3)
379_programmaticSuppressions = HasDiagnosticSuppressors ? new ConcurrentSet<Suppression>() : null; 380_diagnosticsProcessedForProgrammaticSuppressions = HasDiagnosticSuppressors ? new ConcurrentSet<Diagnostic>(ReferenceEqualityComparer.Instance) : null; 472var suppressedDiagnosticIds = trackSuppressedDiagnosticIds ? new ConcurrentSet<string>() : null;
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
42private readonly ConcurrentSet<Diagnostic> _exceptionDiagnostics = new ConcurrentSet<Diagnostic>();
Microsoft.CodeAnalysis.CSharp (6)
Binder\BindingDiagnosticBag.cs (1)
18private static readonly ObjectPool<BindingDiagnosticBag> s_poolWithConcurrent = new ObjectPool<BindingDiagnosticBag>(() => new BindingDiagnosticBag(s_poolWithConcurrent!, new DiagnosticBag(), new Roslyn.Utilities.ConcurrentSet<AssemblySymbol>()));
Emitter\Model\PEModuleBuilder.cs (1)
33private readonly ConcurrentSet<TypeSymbol> _reportedErrorTypesMap = new ConcurrentSet<TypeSymbol>();
Symbols\Compilation_UsedAssemblies.cs (1)
244Interlocked.CompareExchange(ref _lazyUsedAssemblyReferences, new ConcurrentSet<AssemblySymbol>(), null);
Symbols\Source\SourceAssemblySymbol.cs (3)
102private readonly ConcurrentSet<FieldSymbol> _unreadFields = new ConcurrentSet<FieldSymbol>(); 109internal ConcurrentSet<TypeSymbol> TypesReferencedInExternalMethods = new ConcurrentSet<TypeSymbol>(); 1179Interlocked.CompareExchange(ref _lazyOmittedAttributeIndices, new ConcurrentSet<int>(), null);
Microsoft.CodeAnalysis.Test.Utilities (6)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
758internal readonly ConcurrentSet<ISymbol> CallbackSymbols = new(); 1149var pendingSymbols = new ConcurrentSet<INamedTypeSymbol>(); 1882SymbolsStarted = new ConcurrentSet<ISymbol>(); 1979var symbolsEnded = new ConcurrentSet<ISymbol>(); 2403_symbolCallbacks = new ConcurrentSet<ISymbol>(); 2916CanceledCompilations = new ConcurrentSet<Compilation>();
36 references to ConcurrentSet
Microsoft.CodeAnalysis (18)
CommandLine\TouchedFileLogger.cs (4)
18private ConcurrentSet<string> _readFiles; 19private ConcurrentSet<string> _writtenFiles; 67var readFiles = Interlocked.Exchange( 92var writtenFiles = Interlocked.Exchange(
DiagnosticAnalyzer\AnalyzerDriver.cs (13)
43private readonly ConcurrentSet<Suppression>? _programmaticSuppressions; 48private readonly ConcurrentSet<Diagnostic>? _diagnosticsProcessedForProgrammaticSuppressions; 273private ConcurrentSet<string>? _lazySuppressedDiagnosticIdsForUnsuppressedAnalyzers; 280private ConcurrentSet<string> SuppressedDiagnosticIdsForUnsuppressedAnalyzers 394ConcurrentSet<string>? suppressedDiagnosticIds, 472var suppressedDiagnosticIds = trackSuppressedDiagnosticIds ? new ConcurrentSet<string>() : null; 632/// <remarks>Driver must be initialized before invoking this method, i.e. <see cref="Initialize(AnalyzerExecutor, DiagnosticQueue, CompilationData, AnalysisScope, ConcurrentSet{string}, CancellationToken)"/> method must have been invoked and <see cref="WhenInitializedTask"/> must be non-null.</remarks> 661/// <remarks>Driver must be initialized before invoking this method, i.e. <see cref="Initialize(AnalyzerExecutor, DiagnosticQueue, CompilationData, AnalysisScope, ConcurrentSet{string}, CancellationToken)"/> method must have been invoked and <see cref="WhenInitializedTask"/> must be non-null.</remarks> 1150static ImmutableDictionary<Diagnostic, ProgrammaticSuppressionInfo> createProgrammaticSuppressionsByDiagnosticMap(ConcurrentSet<Suppression> programmaticSuppressions) 1955internal static Action<Diagnostic, CancellationToken> GetDiagnosticSink(Action<Diagnostic> addDiagnosticCore, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds) 1967internal static Action<Diagnostic, DiagnosticAnalyzer, bool, CancellationToken> GetDiagnosticSink(Action<Diagnostic, DiagnosticAnalyzer, bool> addLocalDiagnosticCore, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds) 1979internal static Action<Diagnostic, DiagnosticAnalyzer, CancellationToken> GetDiagnosticSink(Action<Diagnostic, DiagnosticAnalyzer> addDiagnosticCore, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds) 1991private static Diagnostic? GetFilteredDiagnostic(Diagnostic diagnostic, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds, CancellationToken cancellationToken)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
42private readonly ConcurrentSet<Diagnostic> _exceptionDiagnostics = new ConcurrentSet<Diagnostic>();
Microsoft.CodeAnalysis.CSharp (12)
Compilation\CSharpCompilation.cs (1)
2444private ConcurrentSet<MethodSymbol>? _moduleInitializerMethods;
Compiler\ClsComplianceChecker.cs (1)
44Debug.Assert(diagnostics.DependenciesBag is null || diagnostics.DependenciesBag is ConcurrentSet<AssemblySymbol>);
Compiler\MethodCompiler.cs (1)
93Debug.Assert(diagnostics.DependenciesBag == null || diagnostics.DependenciesBag is ConcurrentSet<AssemblySymbol>);
Emitter\Model\PEModuleBuilder.cs (1)
33private readonly ConcurrentSet<TypeSymbol> _reportedErrorTypesMap = new ConcurrentSet<TypeSymbol>();
FlowAnalysis\DefiniteAssignment.cs (1)
2655var seen = assembly.TypesReferencedInExternalMethods;
Symbols\Compilation_UsedAssemblies.cs (4)
19private ConcurrentSet<AssemblySymbol>? _lazyUsedAssemblyReferences; 24ConcurrentSet<AssemblySymbol>? usedAssemblies = GetCompleteSetOfUsedAssemblies(cancellationToken); 63private ConcurrentSet<AssemblySymbol>? GetCompleteSetOfUsedAssemblies(CancellationToken cancellationToken) 159ConcurrentSet<AssemblySymbol>? usedAssemblies;
Symbols\Source\SourceAssemblySymbol.cs (3)
87private ConcurrentSet<int> _lazyOmittedAttributeIndices; 102private readonly ConcurrentSet<FieldSymbol> _unreadFields = new ConcurrentSet<FieldSymbol>(); 109internal ConcurrentSet<TypeSymbol> TypesReferencedInExternalMethods = new ConcurrentSet<TypeSymbol>();
Microsoft.CodeAnalysis.Test.Utilities (6)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
758internal readonly ConcurrentSet<ISymbol> CallbackSymbols = new(); 1149var pendingSymbols = new ConcurrentSet<INamedTypeSymbol>(); 1885internal ConcurrentSet<ISymbol> SymbolsStarted { get; } 1979var symbolsEnded = new ConcurrentSet<ISymbol>(); 2397private readonly ConcurrentSet<ISymbol> _symbolCallbacks; 2920public ConcurrentSet<Compilation> CanceledCompilations { get; }