251 references to Hash
Microsoft.CodeAnalysis.EditorFeatures (19)
EditorConfigSettings\Updater\NamingStyles\SourceTextExtensions.cs (12)
116return Hash.Combine(enforcementLevelHashCode, Hash.Combine(namingStyleHashCode, symbolSpecificationHashCode)); 136return Hash.Combine(StringComparer.OrdinalIgnoreCase.GetHashCode(style.Name), 137Hash.Combine(StringComparer.Ordinal.GetHashCode(style.Prefix), 138Hash.Combine(StringComparer.Ordinal.GetHashCode(style.Suffix), 139Hash.Combine(StringComparer.Ordinal.GetHashCode(style.WordSeparator), 170return Hash.Combine(StringComparer.OrdinalIgnoreCase.GetHashCode(symbolSpecification.Name), 171Hash.Combine(Hash.CombineValues(symbolSpecification.RequiredModifierList), 172Hash.Combine(Hash.CombineValues(symbolSpecification.ApplicableAccessibilityList), 173Hash.CombineValues(symbolSpecification.ApplicableSymbolKindList))));
Structure\StructureTag.cs (7)
67=> Hash.Combine(this.GuideLineHorizontalAnchorPoint.GetHashCode(), 68Hash.Combine(this.Type, 69Hash.Combine(this.IsCollapsible, 70Hash.Combine(this.IsDefaultCollapsed, 71Hash.Combine(this.IsImplementation, 72Hash.Combine(this.OutliningSpan.GetHashCode(), 73Hash.Combine(this.HeaderSpan.GetHashCode(), this.GuideLineSpan.GetHashCode())))))));
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (1)
SuggestedAction.cs (1)
323return Hash.Combine(Provider.GetHashCode(), CodeAction.EquivalenceKey.GetHashCode());
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
Diagnostics\AbstractSuppressionAllCodeTests.cs (1)
140=> Hash.Combine(obj.Id, obj.Descriptor.Category.GetHashCode());
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
EditAndContinue\RudeEditDiagnosticDescription.cs (2)
48Hash.Combine(_squiggle, 49Hash.CombineValues(_arguments, (int)_rudeEditKind));
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Suggestions\SuggestedActions\SuggestedAction.cs (1)
323return Hash.Combine(Provider.GetHashCode(), CodeAction.EquivalenceKey.GetHashCode());
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (5)
Diagnostics\DiagnosticProviderTests.vb (5)
390Return Hash.Combine(obj.Id, 391Hash.Combine(obj.Message, 392Hash.Combine(obj.ProjectId, 393Hash.Combine(obj.DocumentId, 394Hash.Combine(obj.DataLocation.UnmappedFileSpan.StartLinePosition.GetHashCode(), obj.Severity)))))
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
FSharpDocumentSpan.cs (1)
55=> Hash.Combine(
Microsoft.CodeAnalysis.Features (33)
AddImport\References\AssemblyReference.cs (1)
52=> Hash.Combine(_referenceAssemblyWithType.AssemblyName, base.GetHashCode());
AddImport\References\MetadataSymbolReference.cs (1)
82=> Hash.Combine(
AddImport\References\PackageReference.cs (2)
56return Hash.Combine(_versionOpt, 57Hash.Combine(_packageName, base.GetHashCode()));
AddImport\References\ProjectSymbolReference.cs (1)
116=> Hash.Combine(_project.Id, base.GetHashCode());
AddImport\References\Reference.cs (1)
79=> Hash.CombineValues(SearchResult.NameParts);
AddImport\References\SymbolReference.cs (1)
52=> 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\UnionCompletionItemComparer.cs (1)
24=> Hash.Combine(obj.DisplayText.GetHashCode(), obj.Tags.Length);
DiagnosticHelper.cs (2)
358return Hash.Combine( 360Hash.CombineValues(_formatArguments));
Diagnostics\AbstractHostDiagnosticUpdateSource.cs (2)
192=> Hash.Combine(_source.GetHashCode(), Hash.Combine(_projectId == null ? 1 : _projectId.GetHashCode(), base.GetHashCode()));
Diagnostics\BuildToolId.cs (1)
55=> Hash.Combine(_Field2?.GetHashCode() ?? 0, base.GetHashCode());
Diagnostics\LiveDiagnosticUpdateArgsId.cs (2)
40=> Hash.Combine(ProjectOrDocumentId, Hash.Combine((int)Kind, base.GetHashCode()));
DocumentSpan.cs (1)
53=> Hash.Combine(
EditAndContinue\ActiveStatementSpan.cs (3)
67=> Hash.Combine(Ordinal, Hash.Combine(LineSpan.GetHashCode(), Hash.Combine(UnmappedDocumentId, (int)Flags)));
EditAndContinue\NonRemappableRegion.cs (2)
50=> Hash.Combine(OldSpan.GetHashCode(), Hash.Combine(IsExceptionRegion, NewSpan.GetHashCode()));
EditAndContinue\SourceFileSpan.cs (1)
77=> Hash.Combine(Path, Span.GetHashCode());
FindUsages\DefinitionItem.DetachedDefinitionItem.cs (3)
78Hash.Combine(this.DisplayIfNoReferences, 79Hash.CombineValues(this.Tags, 80Hash.CombineValues(this.DisplayParts)));
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (5)
428Hash.Combine(StringComparer.OrdinalIgnoreCase.GetHashCode(_filePath ?? string.Empty), 429Hash.Combine(_assemblyIdentity?.GetHashCode() ?? 0, 430Hash.Combine(_metadataId?.GetHashCode() ?? 0, 431Hash.Combine(_language.GetHashCode(), 432Hash.Combine(s_symbolIdComparer.GetHashCode(_symbolId),
NavigateTo\NavigateToSearchResultComparer.cs (1)
32=> Hash.Combine(obj?.NavigableItem.Document.FilePath, obj?.NavigableItem.SourceSpan.GetHashCode() ?? 0);
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Features\Diagnostics\DefaultDiagnosticAnalyzerService.cs (1)
271=> Hash.Combine(_workspaceKind.GetHashCode(), base.GetHashCode());
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (1)
450return Hash.Combine(obj.Id.GetHashCode(), obj.Location.GetHashCode());
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.cs (1)
334=> Hash.Combine(Language.GetHashCode(), AnalyzerReferences.GetHashCode());
Handler\Completion\CompletionHandler.cs (1)
497var combinedHash = Hash.CombineValues(obj);
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (1)
VisualStudioMefHostServices.cs (1)
92=> Hash.Combine(MetadataTypeName.GetHashCode(), ExtensionTypeName.GetHashCode());
Microsoft.CodeAnalysis.Remote.Workspaces (1)
VisualStudioMefHostServices.cs (1)
92=> Hash.Combine(MetadataTypeName.GetHashCode(), ExtensionTypeName.GetHashCode());
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Editing\VisualBasicImportAdder.vb (1)
224Return Hash.Combine(obj.arity,
Microsoft.CodeAnalysis.Workspaces (141)
BitVector.cs (2)
73bitsHash = Hash.Combine(_bits[i].GetHashCode(), bitsHash); 77return Hash.Combine(_capacity, bitsHash);
Classification\ClassifiedSpan.cs (1)
28=> Hash.Combine(this.ClassificationType, this.TextSpan.GetHashCode());
Diagnostics\DiagnosticData.cs (9)
161=> Hash.Combine(DataLocation.UnmappedFileSpan.StartLinePosition.GetHashCode(), 162Hash.Combine(Id, 163Hash.Combine(Category, 164Hash.Combine((int)Severity, 165Hash.Combine(WarningLevel, 166Hash.Combine(IsSuppressed, 167Hash.Combine(ProjectId, 168Hash.Combine(DocumentId, 169Hash.Combine(Message, 0)))))))));
Diagnostics\WorkspaceAnalyzerOptions.cs (1)
43=> Hash.Combine(IdeOptions.GetHashCode(), base.GetHashCode());
Differencing\Edit.cs (2)
81hash = Hash.Combine(_oldNode.GetHashCode(), hash); 86hash = Hash.Combine(_newNode.GetHashCode(), hash);
Differencing\SequenceEdit.cs (1)
73=> Hash.Combine(_oldIndex, _newIndex);
FindSymbols\ReferenceLocation.cs (4)
138Hash.Combine(this.IsImplicit, 139Hash.Combine((int)this.CandidateReason, 140Hash.Combine(this.Alias, 141Hash.Combine(this.Location, this.Document.Id.GetHashCode()))));
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (7)
272=> Hash.Combine(Name, 273Hash.Combine(NameSuffix, 274Hash.Combine(ContainerDisplayName, 275Hash.Combine(FullyQualifiedContainerName, 276Hash.Combine(Span.GetHashCode(), 277Hash.Combine((int)_flags, 278Hash.CombineValues(InheritanceNames)))))));
Hash.cs (24)
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; 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)));
Packaging\IPackageInstallerService.cs (1)
69=> Hash.Combine(Name, Source.GetHashCode());
PathUtilities.cs (1)
690hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
RelativePathResolver.cs (2)
66Hash.Combine(BaseDirectory, Hash.CombineValues(SearchPaths));
Remote\RemoteArguments.cs (1)
54=> Hash.Combine(this.SymbolKeyData, this.ProjectId.GetHashCode());
Section.cs (2)
188=> Hash.Combine( 190Hash.Combine(
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)
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(),
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);
SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (2)
101initHash = initHash * hashFactor + Hash.GetFNVHashCode(baseHashCode.Name); 106initHash = initHash * hashFactor + Hash.GetFNVHashCode(symbol.Name);
SyntaxPath.cs (4)
193=> Hash.Combine(_trackKinds, Hash.Combine(_kind, GetSegmentHashCode())); 202hash = Hash.Combine(Hash.Combine(segment.Kind, segment.Ordinal), hash);
Utilities\Documentation\XmlDocumentationProvider.cs (1)
146=> Hash.CombineValues(_xmlDocCommentBytes);
Workspace\Host\Metadata\WorkspaceMetadataFileReferenceResolver.cs (2)
47=> Hash.Combine(_metadataService, Hash.Combine(PathResolver, 0));
Workspace\Solution\DocumentId.cs (1)
87=> Hash.Combine(this.ProjectId, this.Id.GetHashCode());
Workspace\Solution\ProjectReference.cs (2)
67=> Hash.CombineValues(_aliases, Hash.Combine(_projectId, _embedInteropTypes.GetHashCode()));
Workspace\Solution\VersionStamp.cs (1)
143=> Hash.Combine(_utcLastModified.GetHashCode(), _localIncrement);
WorkspaceKindMetadata.cs (1)
37return Hash.CombineValues(WorkspaceKinds);
Microsoft.CodeAnalysis.Workspaces.Desktop (2)
Workspace\Host\Mef\MefV1HostServices.cs (2)
122Hash.Combine(metadataTypeName.GetHashCode(), extensionTypeName.GetHashCode()); 136return Hash.Combine(this.MetadataTypeName.GetHashCode(), this.ExtensionTypeName.GetHashCode());
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (5)
MEF\TestComposition.cs (5)
49=> Hash.Combine(Hash.Combine(Hash.CombineValues(_assemblies), Hash.CombineValues(_parts)), Hash.CombineValues(_excludedPartTypes));
Microsoft.VisualStudio.IntegrationTest.Utilities (16)
Common\ErrorListItem.cs (6)
43=> Hash.Combine(Severity, Hash.Combine(Description, Hash.Combine(Project, Hash.Combine(FileName, Hash.Combine(Line, Hash.Combine(Column, 0))))));
Common\Parameter.cs (2)
41=> Hash.Combine(Name, Hash.Combine(Documentation, 0));
Common\Reference.cs (4)
41return Hash.Combine(FilePath, 42Hash.Combine(Line, 43Hash.Combine(Column, 44Hash.Combine(Code, 0))));
Common\Signature.cs (4)
54=> Hash.Combine(Content, Hash.Combine(Documentation, Hash.Combine(PrettyPrintedContent, Hash.Combine(CurrentParameter, 0))));
Microsoft.VisualStudio.LanguageServices (13)
FileKey.cs (1)
45return Hash.Combine(
TableDataSource\DiagnosticTableItem.cs (3)
118Hash.Combine(location.UnmappedFileSpan.GetHashCode(), 119Hash.Combine(data.IsSuppressed, 120Hash.Combine(data.Id, ((int)data.Severity).GetHashCode())));
TableDataSource\VisualStudioBaseDiagnosticListTable.cs (2)
80=> Hash.Combine(Analyzer.GetHashCode(), Hash.Combine(DocumentIds.GetHashCode(), (int)Kind));
TaskList\ExternalErrorDiagnosticUpdateSource.cs (7)
990Hash.Combine(obj.Id, 991Hash.Combine(obj.Message, 992Hash.Combine(obj.ProjectId, 993Hash.Combine(obj.DataLocation.MappedFileSpan.Span.Start.GetHashCode(), 994Hash.Combine(obj.DataLocation.UnmappedFileSpan.Span.Start.GetHashCode(), (int)obj.Severity))))); 1000? Hash.Combine(obj.DocumentId, result) 1001: Hash.Combine(obj.DataLocation.UnmappedFileSpan.Path, result);
Microsoft.VisualStudio.LanguageServices.Implementation (2)
CodeModel\CodeModelEvent.cs (2)
27=> Hash.Combine(Node, Hash.Combine(ParentNode, ((int)Type).GetHashCode()));
Roslyn.VisualStudio.Next.UnitTests (2)
Services\SolutionServiceTests.cs (2)
99Assert.Equal(Hash.CombineValues(array, StringComparer.Ordinal), compilationOptions.StrongNameProvider.GetHashCode()); 127Assert.Equal(Hash.CombineValues(array, StringComparer.Ordinal), compilationOptions.StrongNameProvider.GetHashCode());