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