16 references to Instance
Microsoft.CodeAnalysis (16)
CodeGen\LocalSlotManager.cs (2)
54
(Cci.SymbolEquivalentEqualityComparer.
Instance
.Equals(_type, other._type));
58
=> Hash.Combine(Cci.SymbolEquivalentEqualityComparer.
Instance
.GetHashCode(_type), (int)_constraints);
Emit\EditAndContinue\DefinitionMap.cs (1)
500
var awaiters = new Dictionary<Cci.ITypeReference, int>(Cci.SymbolEquivalentEqualityComparer.
Instance
);
Emit\EditAndContinue\DeltaMetadataWriter.cs (8)
111
_parameterDefList = new Dictionary<IParameterDefinition, IMethodDefinition>(Cci.SymbolEquivalentEqualityComparer.
Instance
);
131
_addedOrChangedMethods = new Dictionary<IMethodDefinition, AddedOrChangedMethodInfo>(Cci.SymbolEquivalentEqualityComparer.
Instance
);
197
var generationOrdinals = CreateDictionary(_previousGeneration.GenerationOrdinals, SymbolEquivalentEqualityComparer.
Instance
);
212
typesAdded: AddRange(_previousGeneration.TypesAdded, addedTypes, comparer: SymbolEquivalentEqualityComparer.
Instance
),
213
eventsAdded: AddRange(_previousGeneration.EventsAdded, _eventDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.
Instance
),
214
fieldsAdded: AddRange(_previousGeneration.FieldsAdded, _fieldDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.
Instance
),
215
methodsAdded: AddRange(_previousGeneration.MethodsAdded, _methodDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.
Instance
),
217
propertiesAdded: AddRange(_previousGeneration.PropertiesAdded, _propertyDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.
Instance
),
Emit\EditAndContinue\EncHoistedLocalInfo.cs (2)
35
Cci.SymbolEquivalentEqualityComparer.
Instance
.Equals(Type, other.Type);
41
=> Hash.Combine(Cci.SymbolEquivalentEqualityComparer.
Instance
.GetHashCode(Type), SlotInfo.GetHashCode());
Emit\EditAndContinue\EncLocalInfo.cs (2)
47
Cci.SymbolEquivalentEqualityComparer.
Instance
.Equals(Type, other.Type) &&
60
Hash.Combine(Cci.SymbolEquivalentEqualityComparer.
Instance
.GetHashCode(Type),
Emit\EditAndContinue\SymbolMatcher.cs (1)
79
var result = new Dictionary<K, V>(Cci.SymbolEquivalentEqualityComparer.
Instance
);