6 instantiations of ConcurrentSet
Microsoft.CodeAnalysis (6)
CommandLine\TouchedFileLogger.cs (2)
23_readFiles = new ConcurrentSet<string>(); 24_writtenFiles = new ConcurrentSet<string>();
DiagnosticAnalyzer\AnalyzerDriver.cs (3)
381_programmaticSuppressions = HasDiagnosticSuppressors ? new ConcurrentSet<Suppression>() : null; 382_diagnosticsProcessedForProgrammaticSuppressions = HasDiagnosticSuppressors ? new ConcurrentSet<Diagnostic>(ReferenceEqualityComparer.Instance) : null; 474var suppressedDiagnosticIds = trackSuppressedDiagnosticIds ? new ConcurrentSet<string>() : null;
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
42private readonly ConcurrentSet<Diagnostic> _exceptionDiagnostics = new ConcurrentSet<Diagnostic>();
18 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)
45private readonly ConcurrentSet<Suppression>? _programmaticSuppressions; 50private readonly ConcurrentSet<Diagnostic>? _diagnosticsProcessedForProgrammaticSuppressions; 275private ConcurrentSet<string>? _lazySuppressedDiagnosticIdsForUnsuppressedAnalyzers; 282private ConcurrentSet<string> SuppressedDiagnosticIdsForUnsuppressedAnalyzers 396ConcurrentSet<string>? suppressedDiagnosticIds, 474var suppressedDiagnosticIds = trackSuppressedDiagnosticIds ? new ConcurrentSet<string>() : null; 634/// <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> 663/// <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> 1152static ImmutableDictionary<Diagnostic, ProgrammaticSuppressionInfo> createProgrammaticSuppressionsByDiagnosticMap(ConcurrentSet<Suppression> programmaticSuppressions) 1957internal static Action<Diagnostic, CancellationToken> GetDiagnosticSink(Action<Diagnostic> addDiagnosticCore, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds) 1969internal static Action<Diagnostic, DiagnosticAnalyzer, bool, CancellationToken> GetDiagnosticSink(Action<Diagnostic, DiagnosticAnalyzer, bool> addLocalDiagnosticCore, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds) 1981internal static Action<Diagnostic, DiagnosticAnalyzer, CancellationToken> GetDiagnosticSink(Action<Diagnostic, DiagnosticAnalyzer> addDiagnosticCore, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds) 1993private 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>();