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)
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>();
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)
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>();