19 instantiations of ConcurrentSet
Microsoft.CodeAnalysis (6)
CommandLine\TouchedFileLogger.cs (2)
23
_readFiles = new
ConcurrentSet
<string>();
24
_writtenFiles = new
ConcurrentSet
<string>();
DiagnosticAnalyzer\AnalyzerDriver.cs (3)
384
_programmaticSuppressions = HasDiagnosticSuppressors ? new
ConcurrentSet
<Suppression>() : null;
385
_diagnosticsProcessedForProgrammaticSuppressions = HasDiagnosticSuppressors ? new
ConcurrentSet
<Diagnostic>(ReferenceEqualityComparer.Instance) : null;
477
var suppressedDiagnosticIds = trackSuppressedDiagnosticIds ? new
ConcurrentSet
<string>() : null;
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
42
private readonly ConcurrentSet<Diagnostic> _exceptionDiagnostics = new
ConcurrentSet
<Diagnostic>();
Microsoft.CodeAnalysis.CSharp (7)
Binder\BindingDiagnosticBag.cs (1)
18
private 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)
35
private readonly ConcurrentSet<TypeSymbol> _reportedErrorTypesMap = new
ConcurrentSet
<TypeSymbol>();
Symbols\Compilation_UsedAssemblies.cs (1)
244
Interlocked.CompareExchange(ref _lazyUsedAssemblyReferences, new
ConcurrentSet
<AssemblySymbol>(), null);
Symbols\Source\SourceAssemblySymbol.cs (3)
102
private readonly ConcurrentSet<FieldSymbol> _unreadFields = new
ConcurrentSet
<FieldSymbol>();
109
internal ConcurrentSet<TypeSymbol> TypesReferencedInExternalMethods = new
ConcurrentSet
<TypeSymbol>();
1179
Interlocked.CompareExchange(ref _lazyOmittedAttributeIndices, new
ConcurrentSet
<int>(), null);
Symbols\Source\SourceLocalSymbol.cs (1)
419
Interlocked.CompareExchange(ref _forbiddenReferences, new
ConcurrentSet
<SyntaxNode>(), null);
Microsoft.CodeAnalysis.Test.Utilities (6)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
758
internal readonly ConcurrentSet<ISymbol> CallbackSymbols =
new
();
1149
var pendingSymbols = new
ConcurrentSet
<INamedTypeSymbol>();
1882
SymbolsStarted = new
ConcurrentSet
<ISymbol>();
1979
var symbolsEnded = new
ConcurrentSet
<ISymbol>();
2403
_symbolCallbacks = new
ConcurrentSet
<ISymbol>();
2919
CanceledCompilations = new
ConcurrentSet
<Compilation>();
37 references to ConcurrentSet
Microsoft.CodeAnalysis (18)
CommandLine\TouchedFileLogger.cs (4)
18
private
ConcurrentSet
<string> _readFiles;
19
private
ConcurrentSet
<string> _writtenFiles;
67
var
readFiles = Interlocked.Exchange(
92
var
writtenFiles = Interlocked.Exchange(
DiagnosticAnalyzer\AnalyzerDriver.cs (13)
48
private readonly
ConcurrentSet
<Suppression>? _programmaticSuppressions;
53
private readonly
ConcurrentSet
<Diagnostic>? _diagnosticsProcessedForProgrammaticSuppressions;
278
private
ConcurrentSet
<string>? _lazySuppressedDiagnosticIdsForUnsuppressedAnalyzers;
285
private
ConcurrentSet
<string> SuppressedDiagnosticIdsForUnsuppressedAnalyzers
399
ConcurrentSet
<string>? suppressedDiagnosticIds,
477
var
suppressedDiagnosticIds = trackSuppressedDiagnosticIds ? new ConcurrentSet<string>() : null;
644
/// <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>
673
/// <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>
1162
static ImmutableDictionary<Diagnostic, ProgrammaticSuppressionInfo> createProgrammaticSuppressionsByDiagnosticMap(
ConcurrentSet
<Suppression> programmaticSuppressions)
1972
internal static Action<Diagnostic, AnalyzerOptions, CancellationToken> GetDiagnosticSink(Action<Diagnostic> addDiagnosticCore, Compilation compilation, SeverityFilter severityFilter,
ConcurrentSet
<string>? suppressedDiagnosticIds)
1984
internal static Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, bool, CancellationToken> GetDiagnosticSink(Action<Diagnostic, DiagnosticAnalyzer, bool> addLocalDiagnosticCore, Compilation compilation, SeverityFilter severityFilter,
ConcurrentSet
<string>? suppressedDiagnosticIds)
1996
internal static Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions?, CancellationToken> GetDiagnosticSink(Action<Diagnostic, DiagnosticAnalyzer> addDiagnosticCore, Compilation compilation, SeverityFilter severityFilter,
ConcurrentSet
<string>? suppressedDiagnosticIds)
2008
private static Diagnostic? GetFilteredDiagnostic(Diagnostic diagnostic, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter,
ConcurrentSet
<string>? suppressedDiagnosticIds, CancellationToken cancellationToken)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
42
private readonly
ConcurrentSet
<Diagnostic> _exceptionDiagnostics = new ConcurrentSet<Diagnostic>();
Microsoft.CodeAnalysis.CSharp (13)
Compilation\CSharpCompilation.cs (1)
2502
private
ConcurrentSet
<MethodSymbol>? _moduleInitializerMethods;
Compiler\ClsComplianceChecker.cs (1)
44
Debug.Assert(diagnostics.DependenciesBag is null || diagnostics.DependenciesBag is
ConcurrentSet
<AssemblySymbol>);
Compiler\MethodCompiler.cs (1)
93
Debug.Assert(diagnostics.DependenciesBag == null || diagnostics.DependenciesBag is
ConcurrentSet
<AssemblySymbol>);
Emitter\Model\PEModuleBuilder.cs (1)
35
private readonly
ConcurrentSet
<TypeSymbol> _reportedErrorTypesMap = new ConcurrentSet<TypeSymbol>();
FlowAnalysis\DefiniteAssignment.cs (1)
2608
var
seen = assembly.TypesReferencedInExternalMethods;
Symbols\Compilation_UsedAssemblies.cs (4)
19
private
ConcurrentSet
<AssemblySymbol>? _lazyUsedAssemblyReferences;
24
ConcurrentSet
<AssemblySymbol>? usedAssemblies = GetCompleteSetOfUsedAssemblies(cancellationToken);
63
private
ConcurrentSet
<AssemblySymbol>? GetCompleteSetOfUsedAssemblies(CancellationToken cancellationToken)
159
ConcurrentSet
<AssemblySymbol>? usedAssemblies;
Symbols\Source\SourceAssemblySymbol.cs (3)
87
private
ConcurrentSet
<int> _lazyOmittedAttributeIndices;
102
private readonly
ConcurrentSet
<FieldSymbol> _unreadFields = new ConcurrentSet<FieldSymbol>();
109
internal
ConcurrentSet
<TypeSymbol> TypesReferencedInExternalMethods = new ConcurrentSet<TypeSymbol>();
Symbols\Source\SourceLocalSymbol.cs (1)
43
private
ConcurrentSet
<SyntaxNode>? _forbiddenReferences;
Microsoft.CodeAnalysis.Test.Utilities (6)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
758
internal readonly
ConcurrentSet
<ISymbol> CallbackSymbols = new();
1149
var
pendingSymbols = new ConcurrentSet<INamedTypeSymbol>();
1885
internal
ConcurrentSet
<ISymbol> SymbolsStarted { get; }
1979
var
symbolsEnded = new ConcurrentSet<ISymbol>();
2397
private readonly
ConcurrentSet
<ISymbol> _symbolCallbacks;
2923
public
ConcurrentSet
<Compilation> CanceledCompilations { get; }