62 references to Combine
Microsoft.CodeAnalysis.Features (12)
AddImport\References\MetadataSymbolReference.cs (1)
74=> Hash.Combine(
CodeLens\LocationComparer.cs (1)
32return Hash.Combine(obj.SourceSpan.GetHashCode(),
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
256=> Hash.Combine(symbol.Symbol.GetHashCode(), symbol.Preselect ? 1 : 0);
Completion\Providers\UnionCompletionItemComparer.cs (1)
24=> Hash.Combine(obj.DisplayText.GetHashCode(), obj.Tags.Length);
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (1)
234return Hash.Combine(obj.Id.GetHashCode(), obj.Location.GetHashCode());
EditAndContinue\NonRemappableRegion.cs (1)
43=> Hash.Combine(OldSpan.GetHashCode(), Hash.Combine(IsExceptionRegion, NewSpan.GetHashCode()));
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (5)
472Hash.Combine(StringComparer.OrdinalIgnoreCase.GetHashCode(_filePath ?? string.Empty), 473Hash.Combine(_assemblyIdentity?.GetHashCode() ?? 0, 474Hash.Combine(_metadataId?.GetHashCode() ?? 0, 475Hash.Combine(_language.GetHashCode(), 476Hash.Combine(s_symbolIdComparer.GetHashCode(_symbolId),
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
386return Hash.Combine(
Microsoft.CodeAnalysis.Workspaces (50)
Diagnostics\DiagnosticData.cs (3)
143=> Hash.Combine(DataLocation.UnmappedFileSpan.StartLinePosition.GetHashCode(), 146Hash.Combine((int)Severity, 147Hash.Combine(WarningLevel,
Differencing\Edit.cs (2)
79hash = Hash.Combine(OldNode.GetHashCode(), hash); 84hash = Hash.Combine(NewNode.GetHashCode(), hash);
Differencing\SequenceEdit.cs (1)
70=> Hash.Combine(OldIndex, NewIndex);
FindSymbols\ReferenceLocation.cs (1)
127Hash.Combine((int)this.CandidateReason,
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (2)
265Hash.Combine(Span.GetHashCode(), 266Hash.Combine((int)_flags,
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (2)
73bitsHash = Hash.Combine(_bits[i].GetHashCode(), bitsHash); 77return Hash.Combine(_capacity, bitsHash);
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
719hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (7)
30return Combine(currentKey, newKeyPart ? 1 : 0); 70hashCode = Hash.Combine(value.GetHashCode(), hashCode); 90hashCode = Hash.Combine(value.GetHashCode(), hashCode); 113hashCode = Hash.Combine(value.GetHashCode(), hashCode); 139hashCode = Hash.Combine(value.GetHashCode(), hashCode); 164hashCode = Hash.Combine(stringComparer.GetHashCode(value), hashCode); 184hashCode = Hash.Combine(stringComparer.GetHashCode(value), hashCode);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\Section.cs (2)
178=> Hash.Combine( 180Hash.Combine(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (2)
30=> Hash.Combine(SymbolSpecification.ID.GetHashCode(), Hash.Combine(NamingStyle.ID.GetHashCode(), (int)EnforcementLevel));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (2)
392return Hash.Combine(Hash.CombineValues(SymbolSpecifications), 393Hash.Combine(Hash.CombineValues(NamingStyles),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (4)
205return Hash.Combine(ID.GetHashCode(), 206Hash.Combine(Name.GetHashCode(), 207Hash.Combine(Hash.CombineValues(ApplicableSymbolKindList), 208Hash.Combine(Hash.CombineValues(ApplicableAccessibilityList),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
26=> Hash.Combine(ImmutableArrayComparer<byte>.Instance.GetHashCode(ContentHash), Position);
src\roslyn\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);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (16)
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); 125Hash.Combine(x.Arity, 126Hash.Combine(x.Parameters.Length, 168return Hash.Combine(currentHash, Hash.CombineValues(x.TupleElements)); 174Hash.Combine((int)GetTypeKind(x), 176Hash.Combine(x.Arity, 180Hash.Combine(GetNullableAnnotationsHashCode(x), 238Hash.Combine(typeof(IPointerTypeSymbol).GetHashCode(), 247Hash.Combine(x.Parameters.Length, 272Hash.Combine(x.Ordinal, 273Hash.Combine((int)x.TypeParameterKind, currentHash)); 300=> Hash.Combine(x.GetHashCode(), currentHash);
Workspace\Solution\VersionStamp.cs (1)
143=> Hash.Combine(_utcLastModified.GetHashCode(), _localIncrement);