38 references to Combine
Microsoft.CodeAnalysis.CodeStyle (38)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
384return Hash.Combine(
src\Compilers\Core\Portable\Collections\BitVector.cs (2)
73bitsHash = Hash.Combine(_bits[i].GetHashCode(), bitsHash); 77return Hash.Combine(_capacity, bitsHash);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
694hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (7)
24return Combine(currentKey, newKeyPart ? 1 : 0); 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);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (2)
178=> Hash.Combine( 180Hash.Combine(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (1)
71=> Hash.Combine(((int?)ValueUsageInfoOpt)?.GetHashCode() ?? 0, ((int?)TypeOrNamespaceUsageInfoOpt)?.GetHashCode() ?? 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (2)
373return Hash.Combine(Hash.CombineValues(SymbolSpecifications), 374Hash.Combine(Hash.CombineValues(NamingStyles),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (2)
212Hash.Combine(Hash.CombineValues(ApplicableSymbolKindList), 213Hash.Combine(Hash.CombineValues(ApplicableAccessibilityList),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
25=> Hash.Combine(ImmutableArrayComparer<byte>.Instance.GetHashCode(ContentHash), Position);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (16)
29_parameterAggregator = (acc, sym) => Hash.Combine(symbolEquivalenceComparer.ParameterEquivalenceComparer.GetHashCode(sym), acc); 47return Hash.Combine(GetNullableAnnotationsHashCode((ITypeSymbol)x), Hash.Combine(typeof(IDynamicTypeSymbol), currentHash)); 81Hash.Combine(GetNullableAnnotationsHashCode(x), 82Hash.Combine(x.Rank, 87=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash); 122Hash.Combine(x.Arity, 123Hash.Combine(x.Parameters.Length, 165return Hash.Combine(currentHash, Hash.CombineValues(x.TupleElements)); 171Hash.Combine((int)GetTypeKind(x), 173Hash.Combine(x.Arity, 177Hash.Combine(GetNullableAnnotationsHashCode(x), 235Hash.Combine(typeof(IPointerTypeSymbol).GetHashCode(), 244Hash.Combine(x.Parameters.Length, 267Hash.Combine(x.Ordinal, 268Hash.Combine((int)x.TypeParameterKind, currentHash)); 295=> Hash.Combine(x.GetHashCode(), currentHash);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (3)
176=> Hash.Combine(_trackKinds, Hash.Combine(_kind, GetSegmentHashCode())); 183hash = Hash.Combine(Hash.Combine(segment.Kind, segment.Ordinal), hash);