1 instantiation of ReferenceEqualityComparer
Microsoft.CodeAnalysis (1)
InternalUtilities\ReferenceEqualityComparer.cs (1)
15
public static readonly ReferenceEqualityComparer Instance =
new
();
147 references to ReferenceEqualityComparer
Microsoft.CodeAnalysis (51)
CodeGen\ILBuilder.cs (2)
17
using ReferenceEqualityComparer = Roslyn.Utilities.
ReferenceEqualityComparer
;
81
_labelInfos = new SmallDictionary<object, LabelInfo>(
ReferenceEqualityComparer
.Instance);
CodeGen\ItemTokenMap.cs (2)
9
using ReferenceEqualityComparer = Roslyn.Utilities.
ReferenceEqualityComparer
;
22
private readonly ConcurrentDictionary<T, uint> _itemToToken = new ConcurrentDictionary<T, uint>(
ReferenceEqualityComparer
.Instance);
CodeGen\LocalSlotManager.cs (2)
14
using ReferenceEqualityComparer = Roslyn.Utilities.
ReferenceEqualityComparer
;
97
map = new Dictionary<ILocalSymbolInternal, LocalDefinition>(
ReferenceEqualityComparer
.Instance);
Compilation\Compilation.cs (4)
31
using ReferenceEqualityComparer = Roslyn.Utilities.
ReferenceEqualityComparer
;
1209
ref _getTypeCache, static () => new ConcurrentCache<string, INamedTypeSymbol?>(50,
ReferenceEqualityComparer
.Instance));
1240
ref _getTypesCache, static () => new ConcurrentCache<string, ImmutableArray<INamedTypeSymbol>>(50,
ReferenceEqualityComparer
.Instance));
1248
|| Enumerable.SequenceEqual(addedArray, val,
ReferenceEqualityComparer
.Instance));
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
22
using ReferenceEqualityComparer = Roslyn.Utilities.
ReferenceEqualityComparer
;
382
_diagnosticsProcessedForProgrammaticSuppressions = HasDiagnosticSuppressors ? new ConcurrentSet<Diagnostic>(
ReferenceEqualityComparer
.Instance) : null;
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (1)
25
private static ImmutableDictionary<LocalizableString, Exception?> s_localizableStringToException = ImmutableDictionary<LocalizableString, Exception?>.Empty.WithComparers(Roslyn.Utilities.
ReferenceEqualityComparer
.Instance);
Emit\CommonPEModuleBuilder.cs (3)
19
using ReferenceEqualityComparer = Roslyn.Utilities.
ReferenceEqualityComparer
;
66
_methodBodyMap = new ConcurrentDictionary<IMethodSymbolInternal, Cci.IMethodBody>(
ReferenceEqualityComparer
.Instance);
869
new ConcurrentDictionary<TNamedTypeSymbol, SynthesizedDefinitions>(
ReferenceEqualityComparer
.Instance);
Emit\EditAndContinue\DeltaMetadataWriter.cs (7)
21
using ReferenceEqualityComparer = Roslyn.Utilities.
ReferenceEqualityComparer
;
103
_deletedTypeMembers = new Dictionary<ITypeDefinition, ImmutableArray<IMethodDefinition>>(
ReferenceEqualityComparer
.Instance);
121
_existingParameterDefs = new Dictionary<IParameterDefinition, int>(
ReferenceEqualityComparer
.Instance);
497
var result = new Dictionary<ITypeDefinition, ArrayBuilder<IMethodDefinition>>(
ReferenceEqualityComparer
.Instance);
498
var typesUsedByDeletedMembers = new Dictionary<ITypeDefinition, DeletedSourceTypeDefinition>(
ReferenceEqualityComparer
.Instance);
1543
: base(lastRowId,
ReferenceEqualityComparer
.Instance)
1727
: base(lastRowId,
ReferenceEqualityComparer
.Instance)
Emit\NoPia\EmbeddedTypesManager.cs (6)
15
using ReferenceEqualityComparer = Roslyn.Utilities.
ReferenceEqualityComparer
;
70
public readonly ConcurrentDictionary<TNamedTypeSymbol, TEmbeddedType> EmbeddedTypesMap = new ConcurrentDictionary<TNamedTypeSymbol, TEmbeddedType>(
ReferenceEqualityComparer
.Instance);
71
public readonly ConcurrentDictionary<TFieldSymbol, TEmbeddedField> EmbeddedFieldsMap = new ConcurrentDictionary<TFieldSymbol, TEmbeddedField>(
ReferenceEqualityComparer
.Instance);
72
public readonly ConcurrentDictionary<TMethodSymbol, TEmbeddedMethod> EmbeddedMethodsMap = new ConcurrentDictionary<TMethodSymbol, TEmbeddedMethod>(
ReferenceEqualityComparer
.Instance);
73
public readonly ConcurrentDictionary<TPropertySymbol, TEmbeddedProperty> EmbeddedPropertiesMap = new ConcurrentDictionary<TPropertySymbol, TEmbeddedProperty>(
ReferenceEqualityComparer
.Instance);
74
public readonly ConcurrentDictionary<TEventSymbol, TEmbeddedEvent> EmbeddedEventsMap = new ConcurrentDictionary<TEventSymbol, TEmbeddedEvent>(
ReferenceEqualityComparer
.Instance);
InternalUtilities\ReferenceEqualityComparer.cs (2)
15
public static readonly
ReferenceEqualityComparer
Instance = new();
28
return
ReferenceEqualityComparer
.GetHashCode(a);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
175
new ConcurrentCache<string, (AssemblyIdentity? identity, AssemblyIdentityParts parts)>(1024,
ReferenceEqualityComparer
.Instance);
NativePdbWriter\PdbWriter.cs (2)
22
using ReferenceEqualityComparer = Roslyn.Utilities.
ReferenceEqualityComparer
;
50
_qualifiedNameCache = new Dictionary<object, string>(
ReferenceEqualityComparer
.Instance);
PEWriter\FullMetadataWriter.cs (5)
14
using ReferenceEqualityComparer = Roslyn.Utilities.
ReferenceEqualityComparer
;
101
_fieldDefIndex = new Dictionary<ITypeDefinition, int>(numTypeDefsGuess,
ReferenceEqualityComparer
.Instance);
102
_methodDefIndex = new Dictionary<ITypeDefinition, int>(numTypeDefsGuess,
ReferenceEqualityComparer
.Instance);
103
_parameterListIndex = new SegmentedDictionary<IMethodDefinition, int>(numMethods,
ReferenceEqualityComparer
.Instance);
437
_index = new SegmentedDictionary<T, int>(capacity,
ReferenceEqualityComparer
.Instance);
PEWriter\MetadataWriter.cs (7)
35
using ReferenceEqualityComparer = Roslyn.Utilities.
ReferenceEqualityComparer
;
114
_signatureIndex = new Dictionary<ISignature, KeyValuePair<BlobHandle, ImmutableArray<byte>>>(module.HintNumberOfMethodDefinitions,
ReferenceEqualityComparer
.Instance); //ignores field signatures
440
private readonly Dictionary<ITypeReference, BlobHandle> _typeSpecSignatureIndex = new Dictionary<ITypeReference, BlobHandle>(
ReferenceEqualityComparer
.Instance);
443
private readonly Dictionary<IFieldReference, BlobHandle> _fieldSignatureIndex = new Dictionary<IFieldReference, BlobHandle>(
ReferenceEqualityComparer
.Instance);
450
private readonly Dictionary<IGenericMethodInstanceReference, BlobHandle> _methodInstanceSignatureIndex = new Dictionary<IGenericMethodInstanceReference, BlobHandle>(
ReferenceEqualityComparer
.Instance);
4274
: this(writer, new Dictionary<ITypeReference, int>(
ReferenceEqualityComparer
.Instance), lastRowId)
4304
_instanceIndex = new Dictionary<T, int>(
ReferenceEqualityComparer
.Instance);
SourceGeneration\IncrementalContexts.cs (2)
16
using ReferenceEqualityComparer = Roslyn.Utilities.
ReferenceEqualityComparer
;
57
.WithComparer(
ReferenceEqualityComparer
.Instance)
SourceGeneration\Nodes\PredicateSyntaxStrategy.cs (1)
88
if (state != EntryState.Modified || !_filterTable.TryModifyEntries(nodes, Roslyn.Utilities.
ReferenceEqualityComparer
.Instance, stopwatch.Elapsed, noInputStepsStepInfo, state, out entry))
SourceGeneration\Nodes\SharedInputNodes.cs (2)
9
using ReferenceEqualityComparer = Roslyn.Utilities.
ReferenceEqualityComparer
;
20
public static readonly InputNode<CompilationOptions> CompilationOptions = new(b => ImmutableArray.Create(b.Compilation.Options),
ReferenceEqualityComparer
.Instance);
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder.CapturedParametersFinder.cs (1)
76
var result = new Dictionary<ParameterSymbol, FieldSymbol>(
ReferenceEqualityComparer
.Instance);
Binder\LocalBinderFactory.cs (1)
140
_map = new SmallDictionary<SyntaxNode, Binder>(
ReferenceEqualityComparer
.Instance);
CodeGen\Optimizer.cs (1)
410
new SmallDictionary<object, DummyLocal>(
ReferenceEqualityComparer
.Instance);
Compiler\MethodCompiler.cs (1)
1997
identifierMap = new ConcurrentDictionary<IdentifierNameSyntax, int>(
ReferenceEqualityComparer
.Instance);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (3)
106
private readonly ConcurrentDictionary<Symbol, Symbol?> _matches = new(
ReferenceEqualityComparer
.Instance);
114
private readonly ConcurrentDictionary<ISymbolInternal, IReadOnlyDictionary<string, ImmutableArray<ISymbolInternal>>> _otherMembers = new(
ReferenceEqualityComparer
.Instance);
844
_matches = new ConcurrentDictionary<Symbol, Symbol>(
ReferenceEqualityComparer
.Instance);
Emitter\Model\PEModuleBuilder.cs (1)
32
new ConcurrentDictionary<ImportChain, ImmutableArray<Cci.UsedNamespaceOrType>>(
ReferenceEqualityComparer
.Instance);
Emitter\NoPia\EmbeddedType.cs (1)
71
return refs.IndexOf(UnderlyingNamedType.AdaptedNamedTypeSymbol.ContainingAssembly,
ReferenceEqualityComparer
.Instance);
Emitter\NoPia\EmbeddedTypesManager.cs (2)
39
private readonly ConcurrentDictionary<AssemblySymbol, string> _assemblyGuidMap = new ConcurrentDictionary<AssemblySymbol, string>(
ReferenceEqualityComparer
.Instance);
40
private readonly ConcurrentDictionary<Symbol, bool> _reportedSymbolsMap = new ConcurrentDictionary<Symbol, bool>(
ReferenceEqualityComparer
.Instance);
FlowAnalysis\AbstractFlowPass.cs (1)
219
_loopHeadState = new Dictionary<BoundLoopStatement, TLocalState>(
ReferenceEqualityComparer
.Instance);
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
108
var containers = _genericCacheContainers ??= new Dictionary<MethodSymbol, DelegateCacheContainer>(
ReferenceEqualityComparer
.Instance);
Symbols\Compilation_UsedAssemblies.cs (1)
32
var setOfReferences = new HashSet<MetadataReference>(
ReferenceEqualityComparer
.Instance);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2693
var instanceMap = new Dictionary<NamedTypeSymbol, NamedTypeSymbol>(
ReferenceEqualityComparer
.Instance);
Symbols\Source\SourceNamespaceSymbol.cs (1)
23
ImmutableDictionary<SingleNamespaceDeclaration, AliasesAndUsings>.Empty.WithComparers(
ReferenceEqualityComparer
.Instance);
Symbols\Source\TypeParameterConstraintClause.cs (2)
138
var isValueTypeMap = new SmallDictionary<TypeParameterSymbol, bool>(
ReferenceEqualityComparer
.Instance);
203
var isReferenceTypeFromConstraintTypesMap = new SmallDictionary<TypeParameterSymbol, bool>(
ReferenceEqualityComparer
.Instance);
Symbols\SubstitutedNamedTypeSymbol.cs (1)
272
var replacedFields = new HashSet<Symbol>(
ReferenceEqualityComparer
.Instance);
Symbols\Symbol_Attributes.cs (1)
486
var toRemove = new HashSet<Diagnostic>(
ReferenceEqualityComparer
.Instance);
Symbols\Tuples\TupleTypeSymbol.cs (2)
606
int tupleFieldIndex = currentFieldsForElements.IndexOf(underlyingField,
ReferenceEqualityComparer
.Instance);
1053
var map = new SmallDictionary<Symbol, Symbol>(
ReferenceEqualityComparer
.Instance);
Symbols\TypeMap.cs (5)
57
: base(new SmallDictionary<TypeParameterSymbol, TypeWithAnnotations>(mapping,
ReferenceEqualityComparer
.Instance))
66
new SmallDictionary<TypeParameterSymbol, TypeWithAnnotations>(substituted.TypeSubstitution.Mapping,
ReferenceEqualityComparer
.Instance) :
67
new SmallDictionary<TypeParameterSymbol, TypeWithAnnotations>(
ReferenceEqualityComparer
.Instance);
85
new SmallDictionary<TypeParameterSymbol, TypeWithAnnotations>(
ReferenceEqualityComparer
.Instance);
202
var mapping = new SmallDictionary<TypeParameterSymbol, TypeWithAnnotations>(
ReferenceEqualityComparer
.Instance);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (24)
Semantics\OutVarTests.cs (16)
1113
Assert.True(dataFlow.VariablesDeclared.Contains(symbol,
ReferenceEqualityComparer
.Instance));
1117
Assert.True(dataFlow.AlwaysAssigned.Contains(symbol,
ReferenceEqualityComparer
.Instance));
1118
Assert.True(dataFlow.WrittenInside.Contains(symbol,
ReferenceEqualityComparer
.Instance));
1122
dataFlow.DataFlowsIn.Contains(symbol,
ReferenceEqualityComparer
.Instance));
1124
dataFlow.ReadInside.Contains(symbol,
ReferenceEqualityComparer
.Instance));
1127
dataFlow.DataFlowsOut.Contains(symbol,
ReferenceEqualityComparer
.Instance));
1129
dataFlow.ReadOutside.Contains(symbol,
ReferenceEqualityComparer
.Instance));
1132
dataFlow.WrittenOutside.Contains(symbol,
ReferenceEqualityComparer
.Instance));
32799
Assert.False(dataFlow.VariablesDeclared.Contains(symbol,
ReferenceEqualityComparer
.Instance));
32800
Assert.False(dataFlow.AlwaysAssigned.Contains(symbol,
ReferenceEqualityComparer
.Instance));
32801
Assert.False(dataFlow.WrittenInside.Contains(symbol,
ReferenceEqualityComparer
.Instance));
32802
Assert.False(dataFlow.DataFlowsIn.Contains(symbol,
ReferenceEqualityComparer
.Instance));
32803
Assert.False(dataFlow.ReadInside.Contains(symbol,
ReferenceEqualityComparer
.Instance));
32804
Assert.False(dataFlow.DataFlowsOut.Contains(symbol,
ReferenceEqualityComparer
.Instance));
32805
Assert.False(dataFlow.ReadOutside.Contains(symbol,
ReferenceEqualityComparer
.Instance));
32806
Assert.False(dataFlow.WrittenOutside.Contains(symbol,
ReferenceEqualityComparer
.Instance));
Semantics\PatternMatchingTestBase.cs (8)
335
Assert.False(dataFlow.VariablesDeclared.Contains(symbol,
ReferenceEqualityComparer
.Instance));
336
Assert.False(dataFlow.AlwaysAssigned.Contains(symbol,
ReferenceEqualityComparer
.Instance));
337
Assert.False(dataFlow.WrittenInside.Contains(symbol,
ReferenceEqualityComparer
.Instance));
338
Assert.False(dataFlow.DataFlowsIn.Contains(symbol,
ReferenceEqualityComparer
.Instance));
339
Assert.False(dataFlow.ReadInside.Contains(symbol,
ReferenceEqualityComparer
.Instance));
340
Assert.False(dataFlow.DataFlowsOut.Contains(symbol,
ReferenceEqualityComparer
.Instance));
341
Assert.False(dataFlow.ReadOutside.Contains(symbol,
ReferenceEqualityComparer
.Instance));
342
Assert.False(dataFlow.WrittenOutside.Contains(symbol,
ReferenceEqualityComparer
.Instance));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NativeIntegerTests.cs (1)
512
Assert.Equal(allMembers, type.GetMembers(),
ReferenceEqualityComparer
.Instance); // same member instances
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
40
_lazyVisitedObjects ??= new HashSet<object>(
ReferenceEqualityComparer
.Instance);
Microsoft.CodeAnalysis.Test.Utilities (1)
Assert\AssertXml.cs (1)
178
HashSet<XElement> children2Used = new HashSet<XElement>(
ReferenceEqualityComparer
.Instance);
Microsoft.CodeAnalysis.VisualBasic (39)
Binding\Binder_Query.vb (3)
3663
If _outerRangeVariables.IndexOf(rangeVariable,
ReferenceEqualityComparer
.Instance) >= 0 Then
3665
ElseIf _innerRangeVariables.IndexOf(rangeVariable,
ReferenceEqualityComparer
.Instance) >= 0 Then
3714
If _badRangeVariables.IndexOf(rangeVariable,
ReferenceEqualityComparer
.Instance) >= 0 Then
Binding\MemberSemanticModel.vb (1)
1209
Private ReadOnly _guardedBoundNodeMap As New SmallDictionary(Of SyntaxNode, ImmutableArray(Of BoundNode))(
ReferenceEqualityComparer
.Instance)
Compilation\MethodCompiler.vb (2)
354
Dim processedSymbols As New ConcurrentSet(Of Symbol)(
ReferenceEqualityComparer
.Instance)
1894
_calledMethods = New HashSet(Of MethodSymbol)(
ReferenceEqualityComparer
.Instance)
Compilation\TypeCompilationState.vb (3)
63
Public ReadOnly StateMachineImplementationClass As New Dictionary(Of MethodSymbol, NamedTypeSymbol)(
ReferenceEqualityComparer
.Instance)
152
_initializeComponentCallTree = New Dictionary(Of MethodSymbol, ImmutableArray(Of MethodSymbol))(
ReferenceEqualityComparer
.Instance)
165
Return CallsInitializeComponent(method, New HashSet(Of MethodSymbol)(
ReferenceEqualityComparer
.Instance))
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (3)
102
_matches = New ConcurrentDictionary(Of Symbol, Symbol)(
ReferenceEqualityComparer
.Instance)
103
_otherMembers = New ConcurrentDictionary(Of ISymbolInternal, IReadOnlyDictionary(Of String, ImmutableArray(Of ISymbolInternal)))(
ReferenceEqualityComparer
.Instance)
565
_matches = New ConcurrentDictionary(Of Symbol, Symbol)(
ReferenceEqualityComparer
.Instance)
Emit\NoPia\EmbeddedType.vb (1)
60
Return refs.IndexOf(UnderlyingNamedType.AdaptedNamedTypeSymbol.ContainingAssembly,
ReferenceEqualityComparer
.Instance)
Emit\NoPia\EmbeddedTypesManager.vb (2)
30
Private ReadOnly _assemblyGuidMap As New ConcurrentDictionary(Of AssemblySymbol, String)(
ReferenceEqualityComparer
.Instance)
31
Private ReadOnly _reportedSymbolsMap As New ConcurrentDictionary(Of Symbol, Boolean)(
ReferenceEqualityComparer
.Instance)
Emit\PEModuleBuilder.vb (1)
22
Private ReadOnly _disableJITOptimization As ConcurrentDictionary(Of MethodSymbol, Boolean) = New ConcurrentDictionary(Of MethodSymbol, Boolean)(
ReferenceEqualityComparer
.Instance)
Emit\SymbolTranslator.vb (2)
20
Private ReadOnly _translatedImportsMap As New ConcurrentDictionary(Of SourceFile, ImmutableArray(Of Cci.UsedNamespaceOrType))(
ReferenceEqualityComparer
.Instance)
43
Interlocked.CompareExchange(_addedEmbeddedSymbols, New ConcurrentSet(Of Symbol)(
ReferenceEqualityComparer
.Instance), Nothing)
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (7)
52
Friend lambdaParent As Dictionary(Of LambdaSymbol, MethodSymbol) = New Dictionary(Of LambdaSymbol, MethodSymbol)(
ReferenceEqualityComparer
.Instance)
59
Friend variableScope As Dictionary(Of Symbol, BoundNode) = New Dictionary(Of Symbol, BoundNode)(
ReferenceEqualityComparer
.Instance)
64
Friend labelBlock As Dictionary(Of LabelSymbol, BoundNode) = New Dictionary(Of LabelSymbol, BoundNode)(
ReferenceEqualityComparer
.Instance)
105
Friend capturedVariables As HashSet(Of Symbol) = New HashSet(Of Symbol)(
ReferenceEqualityComparer
.Instance)
110
Friend capturedVariablesByLambda As MultiDictionary(Of LambdaSymbol, Symbol) = New MultiDictionary(Of LambdaSymbol, Symbol)(
ReferenceEqualityComparer
.Instance)
115
Friend ReadOnly declaredInsideExpressionLambda As New HashSet(Of Symbol)(
ReferenceEqualityComparer
.Instance)
169
lambdaScopes = New Dictionary(Of LambdaSymbol, BoundNode)(
ReferenceEqualityComparer
.Instance)
Lowering\LocalRewriter\LocalRewriter.vb (2)
47
Private ReadOnly _unstructuredExceptionHandlingResumableStatements As New Dictionary(Of SyntaxNode, BoundStatement)(
ReferenceEqualityComparer
.Instance)
56
Private _rewrittenNodes As New HashSet(Of BoundNode)(
ReferenceEqualityComparer
.Instance)
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (1)
134
_staticLocalMap = New Dictionary(Of LocalSymbol, KeyValuePair(Of SynthesizedStaticLocalBackingField, SynthesizedStaticLocalBackingField))(
ReferenceEqualityComparer
.Instance)
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (2)
30
Protected ReadOnly LocalMap As Dictionary(Of LocalSymbol, LocalSymbol) = New Dictionary(Of LocalSymbol, LocalSymbol)(
ReferenceEqualityComparer
.Instance)
36
Protected ReadOnly ParameterMap As Dictionary(Of ParameterSymbol, ParameterSymbol) = New Dictionary(Of ParameterSymbol, ParameterSymbol)(
ReferenceEqualityComparer
.Instance)
Operations\VisualBasicOperationFactory.vb (1)
47
New ConcurrentDictionary(Of BoundValuePlaceholderBase, BoundNode)(concurrencyLevel:=2, capacity:=10, comparer:=
ReferenceEqualityComparer
.Instance),
Parser\BlockContexts\CompilationUnitContext.vb (3)
168
New HashSet(Of IfDirectiveTriviaSyntax)(
ReferenceEqualityComparer
.Instance)
177
New HashSet(Of RegionDirectiveTriviaSyntax)(
ReferenceEqualityComparer
.Instance)
209
Private ReadOnly _processedNodesWithoutDuplication As HashSet(Of VisualBasicSyntaxNode) = New HashSet(Of VisualBasicSyntaxNode)(
ReferenceEqualityComparer
.Instance)
Semantics\OverloadResolution.vb (1)
3691
asyncLambdaSubToFunctionMismatch = New HashSet(Of BoundExpression)(
ReferenceEqualityComparer
.Instance)
Semantics\TypeInference\TypeArgumentInference.vb (1)
2209
_asyncLambdaSubToFunctionMismatch = New HashSet(Of BoundExpression)(
ReferenceEqualityComparer
.Instance)
Symbols\Source\SourceModuleSymbol.vb (1)
1166
result = New Dictionary(Of NamedTypeSymbol, SynthesizedMyGroupCollectionPropertySymbol)(
ReferenceEqualityComparer
.Instance)
Symbols\Tuples\TupleTypeSymbol.vb (2)
723
Dim tupleFieldIndex = currentFieldsForElements.IndexOf(field,
ReferenceEqualityComparer
.Instance)
889
Dim smallDictionary As SmallDictionary(Of Symbol, Symbol) = New SmallDictionary(Of Symbol, Symbol)(
ReferenceEqualityComparer
.Instance)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
SymbolsTests\InstantiatingGenerics.vb (3)
63
Assert.True(constructedFromTypeArguments.SequenceEqual(constructedFromTypeParameters,
ReferenceEqualityComparer
.Instance))
82
Assert.True(typeParameters.SequenceEqual(constructedFromTypeParameters,
ReferenceEqualityComparer
.Instance))
84
Assert.Equal(instantiation Is constructedFrom, typeArguments.SequenceEqual(typeParameters,
ReferenceEqualityComparer
.Instance))