211 references to Hash
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
FSharpDocumentSpan.cs (1)
46=> Hash.Combine(
Microsoft.CodeAnalysis.Features (26)
AddImport\References\AssemblyReference.cs (1)
47=> Hash.Combine(_referenceAssemblyWithType.AssemblyName, base.GetHashCode());
AddImport\References\MetadataSymbolReference.cs (1)
74=> Hash.Combine(
AddImport\References\PackageReference.cs (2)
48return Hash.Combine(_versionOpt, 49Hash.Combine(_packageName, base.GetHashCode()));
AddImport\References\ProjectSymbolReference.cs (1)
108=> Hash.Combine(_project.Id, base.GetHashCode());
AddImport\References\Reference.cs (1)
75=> Hash.CombineValues(SearchResult.NameParts);
AddImport\References\SymbolReference.cs (1)
46=> Hash.Combine(SymbolResult.DesiredName, base.GetHashCode());
CodeLens\LocationComparer.cs (1)
32return Hash.Combine(obj.SourceSpan.GetHashCode(),
Completion\Providers\AbstractKeywordCompletionProvider.cs (1)
82=> Hash.Combine(obj.DisplayText.GetHashCode(), obj.DisplayText.GetHashCode());
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
227=> 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)
235return Hash.Combine(obj.Id.GetHashCode(), obj.Location.GetHashCode());
EditAndContinue\NonRemappableRegion.cs (2)
43=> Hash.Combine(OldSpan.GetHashCode(), Hash.Combine(IsExceptionRegion, NewSpan.GetHashCode()));
EditAndContinue\SourceFileSpan.cs (1)
71=> Hash.Combine(Path, Span.GetHashCode());
FindUsages\DefinitionItem.DetachedDefinitionItem.cs (3)
68Hash.Combine(this.DisplayIfNoReferences, 69Hash.CombineValues(this.Tags, 70Hash.CombineValues(this.DisplayParts)));
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (5)
446Hash.Combine(StringComparer.OrdinalIgnoreCase.GetHashCode(_filePath ?? string.Empty), 447Hash.Combine(_assemblyIdentity?.GetHashCode() ?? 0, 448Hash.Combine(_metadataId?.GetHashCode() ?? 0, 449Hash.Combine(_language.GetHashCode(), 450Hash.Combine(s_symbolIdComparer.GetHashCode(_symbolId),
NavigateTo\NavigateToSearchResultComparer.cs (1)
32=> Hash.Combine(obj?.NavigableItem.Document.FilePath, obj?.NavigableItem.SourceSpan.GetHashCode() ?? 0);
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (2)
381return Hash.Combine( 383Hash.CombineValues(_formatArguments));
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
EditAndContinue\RudeEditDiagnosticDescription.cs (2)
45Hash.Combine(_squiggle, 46Hash.CombineValues(_arguments, (int)RudeEditKind));
Microsoft.CodeAnalysis.LanguageServer.Protocol (18)
Handler\Completion\CompletionResultFactory.cs (1)
476var combinedHash = Hash.CombineValues(obj);
Protocol\Diagnostic.cs (8)
176Hash.Combine(Range, 177Hash.Combine((int)(Severity ?? 0), 178Hash.Combine(Code?.GetHashCode() ?? 0, 179Hash.Combine(Source, 180Hash.Combine(Message, 181Hash.Combine(Hash.CombineValues(Tags), 182Hash.Combine(CodeDescription?.GetHashCode() ?? 0, Data?.GetHashCode() ?? 0)))))));
Protocol\LocationLink.cs (3)
74Hash.Combine(OriginSelectionRange, 75Hash.Combine(TargetUri.GetHashCode(), 76Hash.Combine(TargetRange, TargetSelectionRange.GetHashCode())));
Protocol\SymbolInformation.cs (6)
133Hash.Combine(Name, 134Hash.Combine((int)Kind, 135Hash.Combine(Hash.CombineValues(Tags), 136Hash.Combine(Deprecated, 137Hash.Combine(ContainerName, Location?.GetHashCode() ?? 0)))));
Microsoft.CodeAnalysis.Remote.Workspaces (1)
VisualStudioMefHostServices.cs (1)
92=> Hash.Combine(MetadataTypeName.GetHashCode(), ExtensionTypeName.GetHashCode());
Microsoft.CodeAnalysis.Workspaces (142)
Classification\ClassifiedSpan.cs (1)
22=> Hash.Combine(this.ClassificationType, this.TextSpan.GetHashCode());
Diagnostics\DiagnosticData.cs (9)
137=> Hash.Combine(DataLocation.UnmappedFileSpan.StartLinePosition.GetHashCode(), 138Hash.Combine(Id, 139Hash.Combine(Category, 140Hash.Combine((int)Severity, 141Hash.Combine(WarningLevel, 142Hash.Combine(IsSuppressed, 143Hash.Combine(ProjectId, 144Hash.Combine(DocumentId, 145Hash.Combine(Message, 0)))))))));
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 (4)
126Hash.Combine(this.IsImplicit, 127Hash.Combine((int)this.CandidateReason, 128Hash.Combine(this.Alias, 129Hash.Combine(this.Location, this.Document.Id.GetHashCode()))));
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (7)
257=> Hash.Combine(Name, 258Hash.Combine(NameSuffix, 259Hash.Combine(ContainerDisplayName, 260Hash.Combine(FullyQualifiedContainerName, 261Hash.Combine(Span.GetHashCode(), 262Hash.Combine((int)_flags, 263Hash.CombineValues(InheritanceNames)))))));
Packaging\IPackageInstallerService.cs (1)
62=> Hash.Combine(Name, Source.GetHashCode());
Remote\RemoteArguments.cs (1)
48=> Hash.Combine(this.SymbolKeyData, this.ProjectId.GetHashCode());
Shared\Extensions\INamespaceSymbolExtensions.Comparer.cs (1)
19=> GetNameParts(obj).Aggregate(0, (a, v) => Hash.Combine(v, a));
Shared\Extensions\TelemetryExtensions.cs (2)
24var suffix = Roslyn.Utilities.Hash.GetFNVHashCode(type.FullName); 32? Hash.GetFNVHashCode(additionalSuffixString)
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\FileSystem\RelativePathResolver.cs (2)
64Hash.Combine(BaseDirectory, Hash.CombineValues(SearchPaths));
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (21)
66hashCode = Hash.Combine(value.GetHashCode(), hashCode); 86hashCode = Hash.Combine(value.GetHashCode(), hashCode); 109hashCode = Hash.Combine(value.GetHashCode(), hashCode); 135hashCode = Hash.Combine(value.GetHashCode(), hashCode); 160hashCode = Hash.Combine(stringComparer.GetHashCode(value), hashCode); 180hashCode = Hash.Combine(stringComparer.GetHashCode(value), hashCode); 206int hashCode = Hash.FnvOffsetBias; 210hashCode = unchecked((hashCode ^ data[i]) * Hash.FnvPrime); 227int hashCode = Hash.FnvOffsetBias; 235hashCode = unchecked((hashCode ^ b) * Hash.FnvPrime); 250int hashCode = Hash.FnvOffsetBias; 254hashCode = unchecked((hashCode ^ data[i]) * Hash.FnvPrime); 270return CombineFNVHash(Hash.FnvOffsetBias, data); 293int hashCode = Hash.FnvOffsetBias; 297hashCode = unchecked((hashCode ^ CaseInsensitiveComparison.ToLower(data[i])) * Hash.FnvPrime); 311return CombineFNVHash(Hash.FnvOffsetBias, text); 322int hashCode = Hash.FnvOffsetBias; 365return Hash.CombineFNVHash(Hash.FnvOffsetBias, ch); 387return unchecked((hashCode ^ ch) * Hash.FnvPrime); 401hashCode = unchecked((hashCode ^ data[i]) * Hash.FnvPrime);
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (3)
124var hashCode = Hash.GetFNVHashCode(chars); 164var hashCode = Hash.GetFNVHashCode(chars); 391int hashCode = Hash.GetFNVHashCode(bytes, out bool isAscii);
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\NamingRule.cs (2)
30=> Hash.Combine(SymbolSpecification.ID.GetHashCode(), Hash.Combine(NamingStyle.ID.GetHashCode(), (int)EnforcementLevel));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (5)
392return Hash.Combine(Hash.CombineValues(SymbolSpecifications), 393Hash.Combine(Hash.CombineValues(NamingStyles), 394Hash.CombineValues(Rules.NamingRules)));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (7)
205return Hash.Combine(ID.GetHashCode(), 206Hash.Combine(Name.GetHashCode(), 207Hash.Combine(Hash.CombineValues(ApplicableSymbolKindList), 208Hash.Combine(Hash.CombineValues(ApplicableAccessibilityList), 209Hash.CombineValues(RequiredModifierList)))));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
23=> Hash.CombineValues(obj);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
26=> Hash.Combine(ImmutableArrayComparer<byte>.Instance.GetHashCode(ContentHash), Position);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (4)
176=> Hash.Combine(_trackKinds, Hash.Combine(_kind, GetSegmentHashCode())); 183hash = Hash.Combine(Hash.Combine(segment.Kind, segment.Ordinal), hash);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (49)
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(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, 248Hash.Combine(IsPartialPropertyImplementationPart(x), 249Hash.Combine(IsPartialPropertyDefinitionPart(x), 258Hash.Combine(x.Name, 259Hash.Combine(IsPartialEventImplementationPart(x), 260Hash.Combine(IsPartialEventDefinitionPart(x), 272Hash.Combine(x.Ordinal, 273Hash.Combine((int)x.TypeParameterKind, currentHash)); 297=> Hash.Combine(x.Locations.FirstOrDefault(), currentHash); 300=> Hash.Combine(x.GetHashCode(), currentHash);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
69Hash.Combine(x.IsRefOrOut(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (2)
101initHash = initHash * hashFactor + Hash.GetFNVHashCode(baseHashCode.Name); 106initHash = initHash * hashFactor + Hash.GetFNVHashCode(symbol.Name);
Utilities\Documentation\XmlDocumentationProvider.cs (1)
144=> Hash.CombineValues(_xmlDocCommentBytes);
Workspace\Host\Metadata\WorkspaceMetadataFileReferenceResolver.cs (2)
47=> Hash.Combine(_metadataService, Hash.Combine(PathResolver, 0));
Workspace\Solution\CompilationOutputInfo.cs (2)
72=> Hash.Combine(GeneratedFilesOutputDirectory, Hash.Combine(AssemblyPath, 0));
Workspace\Solution\DocumentId.cs (1)
79=> Hash.Combine(this.ProjectId, this.Id.GetHashCode());
Workspace\Solution\ProjectReference.cs (2)
63=> Hash.CombineValues(Aliases, Hash.Combine(ProjectId, EmbedInteropTypes.GetHashCode()));
Workspace\Solution\VersionStamp.cs (1)
143=> Hash.Combine(_utcLastModified.GetHashCode(), _localIncrement);
Microsoft.CodeAnalysis.Workspaces.Desktop (2)
Workspace\Host\Mef\MefV1HostServices.cs (2)
120Hash.Combine(metadataTypeName.GetHashCode(), extensionTypeName.GetHashCode()); 134return Hash.Combine(this.MetadataTypeName.GetHashCode(), this.ExtensionTypeName.GetHashCode());
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (5)
MEF\TestComposition.cs (5)
50=> Hash.Combine(Hash.Combine(Hash.CombineValues(_assemblies), Hash.CombineValues(_parts)), Hash.CombineValues(_excludedPartTypes));
Roslyn.VisualStudio.Next.UnitTests (14)
Services\SolutionServiceTests.cs (2)
102Assert.Equal(Hash.CombineValues(array, StringComparer.Ordinal), compilationOptions.StrongNameProvider.GetHashCode()); 130Assert.Equal(Hash.CombineValues(array, StringComparer.Ordinal), compilationOptions.StrongNameProvider.GetHashCode());
UnifiedSettings\TestModel\EnumIntegerToString.cs (2)
32return Hash.Combine(Input.GetHashCode(), Hash.CombineValues(Map));
UnifiedSettings\TestModel\UnifiedSettingBase.cs (6)
62=> Hash.Combine(Hash.Combine(Hash.Combine(Hash.Combine(Hash.Combine(Title.GetHashCode(), Type.GetHashCode()), Order.GetHashCode()), EnableWhen?.GetHashCode() ?? 0), Migration.GetHashCode()), Messages is null ? 0 : Hash.CombineValues(Messages));
UnifiedSettings\TestModel\UnifiedSettingsEnumOption.cs (4)
33return Hash.Combine(Hash.Combine(base.GetHashCode(), Hash.CombineValues(@Enum)), Hash.CombineValues(EnumItemLabels));