31 references to ConcurrentSet
Microsoft.CodeAnalysis.CodeStyle (31)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (15)
44
private static readonly ObjectPool<
ConcurrentSet
<SyntaxNode>> s_nodeSetPool = new(() => []);
46
private static readonly ObjectPool<ConcurrentDictionary<IFieldSymbol,
ConcurrentSet
<SyntaxNode>>> s_fieldToUsageLocationPool = new(() => []);
63
protected static void AddFieldUsage(ConcurrentDictionary<IFieldSymbol,
ConcurrentSet
<SyntaxNode>> fieldWrites, IFieldSymbol field, SyntaxNode location)
66
private static void ClearAndFree(ConcurrentDictionary<IFieldSymbol,
ConcurrentSet
<SyntaxNode>> multiMap)
103
HashSet<string> fieldNames, ConcurrentDictionary<IFieldSymbol,
ConcurrentSet
<SyntaxNode>> ineligibleFieldUsageIfOutsideProperty, SemanticModel semanticModel, SyntaxNode codeBlock, CancellationToken cancellationToken);
229
ConcurrentDictionary<IFieldSymbol,
ConcurrentSet
<SyntaxNode>> fieldReads,
230
ConcurrentDictionary<IFieldSymbol,
ConcurrentSet
<SyntaxNode>> fieldWrites,
539
ConcurrentDictionary<IFieldSymbol,
ConcurrentSet
<SyntaxNode>> ineligibleFieldUsageIfOutsideProperty,
540
ConcurrentDictionary<IFieldSymbol,
ConcurrentSet
<SyntaxNode>> fieldReads,
541
ConcurrentDictionary<IFieldSymbol,
ConcurrentSet
<SyntaxNode>> fieldWrites,
550
if (ineligibleFieldUsageIfOutsideProperty.TryGetValue(result.Field, out
var
ineligibleFieldUsages))
571
fieldWrites.TryGetValue(result.Field, out
var
writeLocations1) &&
584
fieldWrites.TryGetValue(result.Field, out
var
writeLocations2) &&
593
fieldReads.TryGetValue(result.Field, out
var
specificFieldReads) &&
603
fieldWrites.TryGetValue(result.Field, out
var
specificFieldWrites) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (9)
82
public static PooledObject<
ConcurrentSet
<T>> GetPooledObject<T>(this ObjectPool<
ConcurrentSet
<T>> pool, out
ConcurrentSet
<T> set)
85
var pooledObject = PooledObject<
ConcurrentSet
<T>>.Create(pool);
125
public static
ConcurrentSet
<T> AllocateAndClear<T>(this ObjectPool<
ConcurrentSet
<T>> pool) where T : notnull
127
var
set = pool.Allocate();
219
public static void ClearAndFree<T>(this ObjectPool<
ConcurrentSet
<T>> pool,
ConcurrentSet
<T> set) where T : notnull
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
73
public static PooledObject<
ConcurrentSet
<TItem>> Create<TItem>(ObjectPool<
ConcurrentSet
<TItem>> pool) where TItem : notnull
75
return new PooledObject<
ConcurrentSet
<TItem>>(
130
private static
ConcurrentSet
<TItem> Allocator<TItem>(ObjectPool<
ConcurrentSet
<TItem>> pool) where TItem : notnull
136
private static void Releaser<TItem>(ObjectPool<
ConcurrentSet
<TItem>> pool,
ConcurrentSet
<TItem> obj) where TItem : notnull