109 references to Hash
Microsoft.CodeAnalysis.CodeStyle (106)
BitVector.cs (2)
73bitsHash = Hash.Combine(_bits[i].GetHashCode(), bitsHash); 77return Hash.Combine(_capacity, bitsHash);
DiagnosticHelper.cs (2)
358return Hash.Combine( 360Hash.CombineValues(_formatArguments));
Hash.cs (25)
64hashCode = Hash.Combine(value.GetHashCode(), hashCode); 84hashCode = Hash.Combine(value.GetHashCode(), hashCode); 107hashCode = Hash.Combine(value.GetHashCode(), hashCode); 133hashCode = Hash.Combine(value.GetHashCode(), hashCode); 158hashCode = Hash.Combine(stringComparer.GetHashCode(value), hashCode); 178hashCode = Hash.Combine(stringComparer.GetHashCode(value), hashCode); 204int hashCode = Hash.FnvOffsetBias; 208hashCode = unchecked((hashCode ^ data[i]) * Hash.FnvPrime); 225int hashCode = Hash.FnvOffsetBias; 233hashCode = unchecked((hashCode ^ b) * Hash.FnvPrime); 248int hashCode = Hash.FnvOffsetBias; 252hashCode = unchecked((hashCode ^ data[i]) * Hash.FnvPrime); 268return CombineFNVHash(Hash.FnvOffsetBias, data); 293int hashCode = Hash.FnvOffsetBias; 297hashCode = unchecked((hashCode ^ CaseInsensitiveComparison.ToLower(data[i])) * Hash.FnvPrime); 323return CombineFNVHash(Hash.FnvOffsetBias, text); 334int hashCode = Hash.FnvOffsetBias; 348hashCode = unchecked((hashCode ^ text[i]) * Hash.FnvPrime); 365int hashCode = Hash.FnvOffsetBias; 370hashCode = unchecked((hashCode ^ text[i]) * Hash.FnvPrime); 387return Hash.CombineFNVHash(Hash.FnvOffsetBias, ch); 401hashCode = unchecked((hashCode ^ ch) * Hash.FnvPrime); 416return unchecked((hashCode ^ ch) * Hash.FnvPrime); 430hashCode = unchecked((hashCode ^ data[i]) * Hash.FnvPrime);
NamingStylePreferences.cs (5)
373return Hash.Combine(Hash.CombineValues(SymbolSpecifications), 374Hash.Combine(Hash.CombineValues(NamingStyles), 375Hash.CombineValues(NamingRules)));
PathUtilities.cs (1)
690hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
Range.cs (1)
50return Hash.Combine(Start.GetHashCode(), End.GetHashCode());
RelativePathResolver.cs (2)
66Hash.Combine(BaseDirectory, Hash.CombineValues(SearchPaths));
Section.cs (2)
188=> Hash.Combine( 190Hash.Combine(
StringTable.cs (7)
117var hashCode = Hash.GetFNVHashCode(chars, start, len); 151var hashCode = Hash.GetFNVHashCode(chars, start, len); 185var hashCode = Hash.GetFNVHashCode(chars); 219var hashCode = Hash.GetFNVHashCode(chars); 253var hashCode = Hash.GetFNVHashCode(chars); 567var hashCode = Hash.GetFNVHashCode(chars); 587int hashCode = Hash.GetFNVHashCode(bytes, out bool isAscii);
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (45)
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._assemblyComparerOpt?.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(IsPartialMethodImplementationPart(x), 122Hash.Combine(IsPartialMethodDefinitionPart(x), 123Hash.Combine(x.IsDefinition, 124Hash.Combine(IsConstructedFromSelf(x), 125Hash.Combine(x.Arity, 126Hash.Combine(x.Parameters.Length, 127Hash.Combine(x.Name, currentHash))))))); 144=> CombineHashCodes(x.ContainingAssembly, Hash.Combine(x.Name, currentHash)); 168return Hash.Combine(currentHash, Hash.CombineValues(x.TupleElements)); 174Hash.Combine((int)GetTypeKind(x), 175Hash.Combine(IsConstructedFromSelf(x), 176Hash.Combine(x.Arity, 177Hash.Combine(x.Name, 178Hash.Combine(x.IsAnonymousType, 179Hash.Combine(x.IsUnboundGenericType, 180Hash.Combine(GetNullableAnnotationsHashCode(x), 205return Hash.Combine(p.Name, 206Hash.Combine(p.IsReadOnly, 217return Hash.Combine(x.Name, currentHash); 221Hash.Combine(x.IsGlobalNamespace, 222Hash.Combine(x.Name, 229Hash.Combine(x.IsRefOrOut(), 230Hash.Combine(x.Name, 238Hash.Combine(typeof(IPointerTypeSymbol).GetHashCode(), 245Hash.Combine(x.IsIndexer, 246Hash.Combine(x.Name, 247Hash.Combine(x.Parameters.Length, 256Hash.Combine(x.Name, 268Hash.Combine(x.Ordinal, 269Hash.Combine((int)x.TypeParameterKind, currentHash)); 293=> Hash.Combine(x.Locations.FirstOrDefault(), currentHash); 296=> Hash.Combine(x.GetHashCode(), currentHash);
SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
76Hash.Combine(x.IsRefOrOut(),
SymbolKey.cs (1)
348hashCode = Hash.Combine(ch, hashCode);
SymbolSpecification.cs (7)
223return Hash.Combine(ID.GetHashCode(), 224Hash.Combine(Name.GetHashCode(), 225Hash.Combine(Hash.CombineValues(ApplicableSymbolKindList), 226Hash.Combine(Hash.CombineValues(ApplicableAccessibilityList), 227Hash.CombineValues(RequiredModifierList)))));
SymbolUsageInfo.cs (1)
71=> Hash.Combine(((int?)ValueUsageInfoOpt)?.GetHashCode() ?? 0, ((int?)TypeOrNamespaceUsageInfoOpt)?.GetHashCode() ?? 0);
SyntaxPath.cs (4)
193=> Hash.Combine(_trackKinds, Hash.Combine(_kind, GetSegmentHashCode())); 202hash = Hash.Combine(Hash.Combine(segment.Kind, segment.Ordinal), hash);
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (2)
101initHash = initHash * hashFactor + Hash.GetFNVHashCode(baseHashCode.Name); 106initHash = initHash * hashFactor + Hash.GetFNVHashCode(symbol.Name);
WorkspaceKindMetadata.cs (1)
37return Hash.CombineValues(WorkspaceKinds);