src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (46)
32_parameterAggregator = (acc, sym) => Hash.Combine(symbolEquivalenceComparer.ParameterEquivalenceComparer.GetHashCode(sym), acc);
50return Hash.Combine(GetNullableAnnotationsHashCode((ITypeSymbol)x), Hash.Combine(typeof(IDynamicTypeSymbol), currentHash));
84Hash.Combine(GetNullableAnnotationsHashCode(x),
85Hash.Combine(x.Rank,
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
95Hash.Combine(x.Name,
102Hash.Combine(x.Name,
103Hash.Combine(x.Locations.FirstOrDefault(), currentHash));
107=> Hash.Combine(x.Locations.FirstOrDefault(), currentHash);
114currentHash = Hash.Combine(x.MetadataName, currentHash);
117return Hash.Combine(x.Locations.FirstOrDefault(), currentHash);
121Hash.Combine(_symbolEquivalenceComparer.GetPartialPartsHashCode(x),
122Hash.Combine(x.IsDefinition,
123Hash.Combine(IsConstructedFromSelf(x),
124Hash.Combine(x.Arity,
125Hash.Combine(x.Parameters.Length,
126Hash.Combine(x.Name, currentHash))))));
143=> CombineHashCodes(x.ContainingAssembly, Hash.Combine(x.Name, currentHash));
167return Hash.Combine(currentHash, Hash.CombineValues(x.TupleElements));
173Hash.Combine((int)GetTypeKind(x),
174Hash.Combine(IsConstructedFromSelf(x),
175Hash.Combine(x.Arity,
176Hash.Combine(x.Name,
177Hash.Combine(x.IsAnonymousType,
178Hash.Combine(x.IsUnboundGenericType,
179Hash.Combine(GetNullableAnnotationsHashCode(x),
204return Hash.Combine(p.Name,
205Hash.Combine(p.IsReadOnly,
216return Hash.Combine(x.Name, currentHash);
220Hash.Combine(x.IsGlobalNamespace,
221Hash.Combine(x.Name,
228Hash.Combine(x.IsRefOrOut(),
229Hash.Combine(x.Name,
237Hash.Combine(typeof(IPointerTypeSymbol).GetHashCode(),
244Hash.Combine(x.IsIndexer,
245Hash.Combine(x.Name,
246Hash.Combine(x.Parameters.Length,
247Hash.Combine(_symbolEquivalenceComparer.GetPartialPartsHashCode(x),
256Hash.Combine(x.Name,
257Hash.Combine(_symbolEquivalenceComparer.GetPartialPartsHashCode(x),
269Hash.Combine(x.Ordinal,
270Hash.Combine((int)x.TypeParameterKind, currentHash));
294=> Hash.Combine(x.Locations.FirstOrDefault(), currentHash);
297=> Hash.Combine(x.GetHashCode(), currentHash);