2 instantiations of SmallConcurrentSetOfInts
Microsoft.CodeAnalysis (2)
Collections\SmallConcurrentSetOfInts.cs (1)
102
SmallConcurrentSetOfInts tail = new
SmallConcurrentSetOfInts
(initialValue: i);
Compilation\Compilation.cs (1)
3525
private static readonly Func<SyntaxTree, SmallConcurrentSetOfInts> s_createSetCallback = t => new
SmallConcurrentSetOfInts
();
13 references to SmallConcurrentSetOfInts
Microsoft.CodeAnalysis (13)
Collections\SmallConcurrentSetOfInts.cs (8)
28
private
SmallConcurrentSetOfInts
? _next;
51
return
SmallConcurrentSetOfInts
.Contains(this, i);
54
private static bool Contains(
SmallConcurrentSetOfInts
set, int i)
56
SmallConcurrentSetOfInts
? current = set;
81
return
SmallConcurrentSetOfInts
.Add(this, i);
84
private static bool Add(
SmallConcurrentSetOfInts
set, int i)
98
var
nextSet = set._next;
102
SmallConcurrentSetOfInts
tail = new SmallConcurrentSetOfInts(initialValue: i);
Compilation\Compilation.cs (5)
3524
private ConcurrentDictionary<SyntaxTree,
SmallConcurrentSetOfInts
>? _lazyTreeToUsedImportDirectivesMap;
3525
private static readonly Func<SyntaxTree,
SmallConcurrentSetOfInts
> s_createSetCallback = t => new SmallConcurrentSetOfInts();
3527
private ConcurrentDictionary<SyntaxTree,
SmallConcurrentSetOfInts
> TreeToUsedImportDirectivesMap
3545
var
set = TreeToUsedImportDirectivesMap.GetOrAdd(syntaxTree, s_createSetCallback);
3558
SmallConcurrentSetOfInts
? usedImports;