11 instantiations of IReferenceOrISignature
Microsoft.CodeAnalysis (11)
CodeGen\ArrayMembers.cs (1)
107var key = ((byte)id, new IReferenceOrISignature(arrayType));
CodeGen\TokenMap.cs (4)
33if (_itemIdentityToToken.TryGetValue(new IReferenceOrISignature(item), out uint token)) 39return AddItem(new IReferenceOrISignature(item), out referenceAdded); 44if (_itemIdentityToToken.TryGetValue(new IReferenceOrISignature(item), out uint token)) 50return AddItem(new IReferenceOrISignature(item), out referenceAdded);
PEWriter\ReferenceIndexerBase.cs (6)
59if (!_alreadySeen.Add(new IReferenceOrISignature(fieldReference))) 146if (!_alreadySeen.Add(new IReferenceOrISignature(methodReference))) 417if (!_alreadySeen.Add(new IReferenceOrISignature(typeReference))) 425if (!_alreadyHasToken.Add(new IReferenceOrISignature(typeReference))) 443if (_alreadyHasToken.Add(new IReferenceOrISignature(unspecializedNestedTypeReference))) 449if (this.typeReferenceNeedsToken && _alreadyHasToken.Add(new IReferenceOrISignature(typeReference)))
8 references to IReferenceOrISignature
Microsoft.CodeAnalysis (8)
CodeGen\ArrayMembers.cs (2)
99private readonly ConcurrentDictionary<(byte methodKind, IReferenceOrISignature arrayType), ArrayMethod> _dict = 100new ConcurrentDictionary<(byte, IReferenceOrISignature), ArrayMethod>();
CodeGen\TokenMap.cs (2)
25private readonly ConcurrentDictionary<IReferenceOrISignature, uint> _itemIdentityToToken = new(); 53private uint AddItem(IReferenceOrISignature item, out bool referenceAdded)
IReferenceOrISignature.cs (2)
19internal readonly struct IReferenceOrISignature : IEquatable<IReferenceOrISignature> 30public bool Equals(IReferenceOrISignature other) => ReferenceEquals(_item, other._item);
PEWriter\ReferenceIndexerBase.cs (2)
18private readonly HashSet<IReferenceOrISignature> _alreadySeen = new(); 19private readonly HashSet<IReferenceOrISignature> _alreadyHasToken = new();