406 references to Hash
Microsoft.CodeAnalysis (251)
CaseInsensitiveComparison.cs (2)
256int hashCode = Hash.FnvOffsetBias; 260hashCode = Hash.CombineFNVHash(hashCode, ToLower(str[i]));
CodeGen\LocalDebugId.cs (1)
74return Hash.Combine(SyntaxOffset, Ordinal);
CodeGen\LocalSlotDebugInfo.cs (1)
34return Hash.Combine((int)SynthesizedKind, Id.GetHashCode());
CodeGen\LocalSlotManager.cs (1)
57=> Hash.Combine(Cci.SymbolEquivalentEqualityComparer.Instance.GetHashCode(_type), (int)_constraints);
CodeGen\PrivateImplementationDetails.cs (1)
674Hash.Combine(constant.GetHashCode(), hash);
Collections\BitVector.cs (2)
73bitsHash = Hash.Combine(_bits[i].GetHashCode(), bitsHash); 77return Hash.Combine(_capacity, bitsHash);
Collections\ByteSequenceComparer.cs (2)
98return Hash.GetFNVHashCode(x); 104return Hash.GetFNVHashCode(x);
Collections\Rope.cs (1)
79result = Hash.Combine((int)c, result);
CommandLine\AnalyzerConfigSet.cs (1)
91public int GetHashCode(List<Section> obj) => Hash.CombineValues(obj);
CommandLine\CommandLineAnalyzerReference.cs (1)
47return Hash.Combine(_path, 0);
CommandLine\CommandLineReference.cs (1)
56return Hash.Combine(_reference, _properties.GetHashCode());
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (2)
90return Hash.Combine(_originalDiagnostic.GetHashCode(), 91Hash.Combine(_suppressionId.GetHashCode(), _suppressionJustification.GetHashCode()));
CommandLine\SarifDiagnosticComparer.cs (8)
66return Hash.Combine(obj.Category.GetHashCode(), 67Hash.Combine(((int)obj.DefaultSeverity).GetHashCode(), 68Hash.Combine(obj.Description.GetHashCode(), 69Hash.Combine(obj.HelpLinkUri.GetHashCode(), 70Hash.Combine(obj.Id.GetHashCode(), 71Hash.Combine(obj.IsEnabledByDefault.GetHashCode(), 72Hash.Combine(obj.Title.GetHashCode(), 73Hash.CombineValues(obj.ImmutableCustomTags))))))));
Compilation\CompilationOptions.cs (30)
671return Hash.Combine(this.CheckOverflow, 672Hash.Combine(this.ConcurrentBuild, 673Hash.Combine(this.Deterministic, 674Hash.Combine(this.CurrentLocalTime.GetHashCode(), 675Hash.Combine(this.DebugPlusMode, 676Hash.Combine(this.CryptoKeyContainer != null ? StringComparer.Ordinal.GetHashCode(this.CryptoKeyContainer) : 0, 677Hash.Combine(this.CryptoKeyFile != null ? StringComparer.Ordinal.GetHashCode(this.CryptoKeyFile) : 0, 678Hash.Combine(Hash.CombineValues(this.CryptoPublicKey, 16), 679Hash.Combine((int)this.GeneralDiagnosticOption, 680Hash.Combine(this.MainTypeName != null ? StringComparer.Ordinal.GetHashCode(this.MainTypeName) : 0, 681Hash.Combine((int)this.MetadataImportOptions, 682Hash.Combine(this.ReferencesSupersedeLowerVersions, 683Hash.Combine(this.ModuleName != null ? StringComparer.Ordinal.GetHashCode(this.ModuleName) : 0, 684Hash.Combine((int)this.OptimizationLevel, 685Hash.Combine((int)this.OutputKind, 686Hash.Combine((int)this.Platform, 687Hash.Combine(this.ReportSuppressedDiagnostics, 688Hash.Combine(this.ScriptClassName != null ? StringComparer.Ordinal.GetHashCode(this.ScriptClassName) : 0, 689Hash.Combine(Hash.CombineValues(this.SpecificDiagnosticOptions), 690Hash.Combine(this.WarningLevel, 691Hash.Combine(this.MetadataReferenceResolver, 692Hash.Combine(this.XmlReferenceResolver, 693Hash.Combine(this.SourceReferenceResolver, 694Hash.Combine(this.SyntaxTreeOptionsProvider, 695Hash.Combine(this.StrongNameProvider, 696Hash.Combine(this.AssemblyIdentityComparer, 697Hash.Combine(this.PublicSign, 698Hash.Combine((int)this.NullableContextOptions, 0))))))))))))))))))))))))))));
Compilation\LoadDirective.cs (1)
41return Hash.Combine(this.Diagnostics.GetHashCode(), this.ResolvedPath?.GetHashCode() ?? 0);
Compilation\ParseOptions.cs (7)
153Hash.Combine((int)this.SpecifiedKind, 154Hash.Combine((int)this.DocumentationMode, 155Hash.Combine(HashFeatures(this.Features), 156Hash.Combine(Hash.CombineValues(this.PreprocessorSymbolNames, StringComparer.Ordinal), 0)))); 187value = Hash.Combine(kv.Key.GetHashCode(), 188Hash.Combine(kv.Value.GetHashCode(), value));
Compilation\PreprocessingSymbolInfo.cs (2)
44return Hash.Combine(this.IsDefined, Hash.Combine(this.Symbol, 0));
Compilation\SubsystemVersion.cs (1)
195return Hash.Combine(this.Minor.GetHashCode(), this.Major.GetHashCode());
Compilation\SymbolInfo.cs (3)
92=> Hash.Combine(this.Symbol, Hash.Combine(Hash.CombineValues(this.CandidateSymbols, 4), (int)this.CandidateReason));
Compilation\TypeInfo.cs (3)
66return Hash.Combine(this.ConvertedType, 67Hash.Combine(this.Type, 68Hash.Combine(this.Nullability.GetHashCode(),
ConstantValueSpecialized.cs (10)
202return Hash.Combine(base.GetHashCode(), _value.GetHashCode()); 261return Hash.Combine(base.GetHashCode(), _value.GetHashCode()); 302return Hash.Combine(base.GetHashCode(), _value.GetHashCode()); 720return Hash.Combine(base.GetHashCode(), _value.GetHashCode()); 777return Hash.Combine(base.GetHashCode(), _value.GetHashCode()); 820return Hash.Combine(base.GetHashCode(), _value.GetHashCode()); 863return Hash.Combine(base.GetHashCode(), _value.GetHashCode()); 907return Hash.Combine(base.GetHashCode(), _value.GetHashCode()); 941return Hash.Combine(base.GetHashCode(), _value.GetHashCode()); 987return Hash.Combine(base.GetHashCode(), _value.GetHashCode());
Diagnostic\CommonDiagnosticComparer.cs (1)
40return Hash.Combine(obj.Location, obj.Id.GetHashCode());
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
105return Hash.Combine(_originalUnsuppressedDiagnostic.GetHashCode(), _programmaticSuppressionInfo.GetHashCode());
Diagnostic\Diagnostic_SimpleDiagnostic.cs (4)
174return Hash.Combine(_descriptor, 175Hash.CombineValues(_messageArgs, 176Hash.Combine(_warningLevel, 177Hash.Combine(_location, (int)_severity))));
Diagnostic\DiagnosticDescriptor.cs (7)
221return Hash.Combine(this.Category.GetHashCode(), 222Hash.Combine(((int)this.DefaultSeverity).GetHashCode(), 223Hash.Combine(this.Description.GetHashCode(), 224Hash.Combine(this.HelpLinkUri.GetHashCode(), 225Hash.Combine(this.Id.GetHashCode(), 226Hash.Combine(this.IsEnabledByDefault.GetHashCode(), 227Hash.Combine(this.MessageFormat.GetHashCode(),
Diagnostic\DiagnosticInfo.cs (1)
401hashCode = Hash.Combine(_arguments[i], hashCode);
Diagnostic\DiagnosticWithInfo.cs (1)
152return Hash.Combine(this.Location.GetHashCode(), this.Info.GetHashCode());
Diagnostic\ExternalFileLocation.cs (2)
79return Hash.Combine(_lineSpan.GetHashCode(), 80Hash.Combine(_mappedLineSpan.GetHashCode(), _sourceSpan.GetHashCode()));
Diagnostic\FileLinePositionSpan.cs (2)
118=> Hash.Combine(Path, Hash.Combine(HasMappedPath, Span.GetHashCode()));
Diagnostic\LocalizableResourceString.cs (4)
91return Hash.Combine(_nameOfLocalizableResource.GetHashCode(), 92Hash.Combine(_resourceManager.GetHashCode(), 93Hash.Combine(_resourceSource.GetHashCode(), 94Hash.CombineValues(_formatArguments))));
Diagnostic\SourceLocation.cs (1)
125return Hash.Combine(_syntaxTree, _span.GetHashCode());
Diagnostic\SuppressionDescriptor.cs (2)
94return Hash.Combine(this.Id.GetHashCode(), 95Hash.Combine(this.SuppressedDiagnosticId.GetHashCode(), this.Justification.GetHashCode()));
DiagnosticAnalyzer\AdditionalTextComparer.cs (1)
55return Hash.Combine(PathUtilities.Comparer.GetHashCode(obj.Path),
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
107=> Hash.Combine(RuntimeHelpers.GetHashCode(_assemblyLoader), FullPath.GetHashCode());
DiagnosticAnalyzer\AnalyzerOptions.cs (1)
81return Hash.CombineValues(this.AdditionalFiles);
DiagnosticAnalyzer\SourceOrAdditionalFile.cs (2)
49return Hash.Combine(true, SourceTree.GetHashCode()); 54return Hash.Combine(false, AdditionalFile.GetHashCode());
DiagnosticAnalyzer\Suppression.cs (1)
78return Hash.Combine(
Emit\AnonymousTypeKey.cs (4)
56return Hash.Combine(IsKey, 57Hash.Combine(IgnoreCase, 86return Hash.Combine(this.IsDelegate.GetHashCode(), Hash.CombineValues(this.Fields));
Emit\EditAndContinue\EmitBaseline.cs (1)
55return Hash.Combine(this.ImplementingMethod, this.Index);
Emit\EditAndContinue\EncHoistedLocalInfo.cs (1)
41=> Hash.Combine(Cci.SymbolEquivalentEqualityComparer.Instance.GetHashCode(Type), SlotInfo.GetHashCode());
Emit\EditAndContinue\EncLocalInfo.cs (4)
59return Hash.Combine(SlotInfo.GetHashCode(), 60Hash.Combine(Cci.SymbolEquivalentEqualityComparer.Instance.GetHashCode(Type), 61Hash.Combine((int)Constraints, 62Hash.Combine(IsUnused, 0))));
Emit\EmitOptions.cs (16)
307return Hash.Combine(EmitMetadataOnly, 308Hash.Combine(BaseAddress.GetHashCode(), 309Hash.Combine(FileAlignment, 310Hash.Combine(HighEntropyVirtualAddressSpace, 311Hash.Combine(SubsystemVersion.GetHashCode(), 312Hash.Combine((int)DebugInformationFormat, 313Hash.Combine(PdbFilePath, 314Hash.Combine(PdbChecksumAlgorithm.GetHashCode(), 315Hash.Combine(OutputNameOverride, 316Hash.Combine(RuntimeMetadataVersion, 317Hash.Combine(TolerateErrors, 318Hash.Combine(IncludePrivateMembers, 319Hash.Combine(Hash.CombineValues(InstrumentationKinds), 320Hash.Combine(DefaultSourceFileEncoding, 321Hash.Combine(FallbackSourceFileEncoding, 0)))))))))))))));
Emit\SemanticEdit.cs (2)
219=> Hash.Combine(OldSymbol, Hash.Combine(NewSymbol, (int)Kind));
FileKey.cs (1)
45return Hash.Combine(
FileSystem\PathUtilities.cs (1)
694hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
FileSystem\RelativePathResolver.cs (2)
64Hash.Combine(BaseDirectory, Hash.CombineValues(SearchPaths));
InternalUtilities\CharMemoryEqualityComparer.cs (1)
21public int GetHashCode(ReadOnlyMemory<char> mem) => Hash.GetFNVHashCode(mem.Span);
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);
InternalUtilities\StringOrdinalComparer.cs (1)
42return Hash.GetFNVHashCode(s);
InternalUtilities\StringTable.cs (3)
124var hashCode = Hash.GetFNVHashCode(chars); 164var hashCode = Hash.GetFNVHashCode(chars); 391int hashCode = Hash.GetFNVHashCode(bytes, out bool isAscii);
MetadataReader\MetadataTypeName.Key.cs (5)
99return Hash.Combine(GetHashCodeName(), 100Hash.Combine(_useCLSCompliantNameArityEncoding != 0, 106int hashCode = Hash.GetFNVHashCode(_namespaceOrFullyQualifiedName); 110hashCode = Hash.CombineFNVHash(hashCode, MetadataHelpers.DotDelimiter); 111hashCode = Hash.CombineFNVHash(hashCode, _typeName);
MetadataReference\AssemblyIdentity.cs (4)
416Hash.Combine(AssemblyIdentityComparer.SimpleNameComparer.GetHashCode(_name), 417Hash.Combine(_version.GetHashCode(), GetHashCodeIgnoringNameAndVersion())); 426Hash.Combine((int)_contentType, 427Hash.Combine(_isRetargetable,
MetadataReference\CompilationReference.cs (1)
140return Hash.Combine(this.Compilation.GetHashCode(), this.Properties.GetHashCode());
MetadataReference\MetadataReferenceProperties.cs (4)
174return Hash.Combine(Hash.CombineValues(Aliases), Hash.Combine(_embedInteropTypes, Hash.Combine(HasRecursiveAliases, ((int)_kind).GetHashCode())));
PEWriter\MemberRefComparer.cs (3)
60int hash = Hash.Combine(memberRef.Name, _metadataWriter.GetMemberReferenceParent(memberRef).GetHashCode()); 65hash = Hash.Combine(hash, _metadataWriter.GetFieldSignatureIndex(fieldRef).GetHashCode()); 72hash = Hash.Combine(hash, _metadataWriter.GetMethodSignatureHandle(methodRef).GetHashCode());
PEWriter\MetadataWriter.cs (1)
4356return Hash.Combine(ByteSequenceComparer.GetHashCode(x.Item1), x.Item2.GetHashCode());
PEWriter\MetadataWriter.PortablePdb.cs (2)
50return Hash.Combine(Hash.CombineValues(obj.GetUsedNamespaces(_context)), obj.Parent != null ? GetHashCode(obj.Parent) : 0);
PEWriter\MethodSpecComparer.cs (1)
35return Hash.Combine(
PEWriter\Units.cs (1)
65return Hash.Combine(RuntimeHelpers.GetHashCode(Definition), StartLine.GetHashCode());
PEWriter\UsedNamespaceOrType.cs (5)
77return Hash.Combine(AliasOpt, 78Hash.Combine((object?)TargetAssemblyOpt, 79Hash.Combine(GetHashCode(TargetNamespaceOpt), 80Hash.Combine(GetHashCode(TargetTypeOpt), 81Hash.Combine(TargetXmlNamespaceOpt, 0)))));
SourceFileResolver.cs (4)
150return Hash.Combine(_baseDirectory != null ? StringComparer.Ordinal.GetHashCode(_baseDirectory) : 0, 151Hash.Combine(Hash.CombineValues(_searchPaths, StringComparer.Ordinal), 152Hash.CombineValues(_pathMap)));
SourceGeneration\GlobalAliases.cs (1)
68hashCode = Hash.Combine(tuple.GetHashCode(), hashCode);
StrongName\DesktopStrongNameProvider.cs (1)
267return Hash.CombineValues(_keyFileSearchPaths, StringComparer.Ordinal);
SymbolDisplay\FormattedSymbol.cs (1)
48return Hash.Combine(
Symbols\Attributes\CommonAttributeDataComparer.cs (8)
43hash = attr.AttributeConstructor != null ? Hash.Combine(attr.AttributeConstructor.GetHashCode(), hash) : hash; 44hash = Hash.Combine(attr.HasErrors, hash); 45hash = Hash.Combine(attr.IsConditionallyOmitted, hash); 46hash = Hash.Combine(GetHashCodeForConstructorArguments(attr.CommonConstructorArguments), hash); 47hash = Hash.Combine(GetHashCodeForNamedArguments(attr.NamedArguments), hash); 58hash = Hash.Combine(arg.GetHashCode(), hash); 72hash = Hash.Combine(arg.Key.GetHashCode(), hash); 75hash = Hash.Combine(arg.Value.GetHashCode(), hash);
Symbols\NullabilityInfo.cs (1)
40Hash.Combine(((int)Annotation).GetHashCode(), ((int)FlowState).GetHashCode());
Symbols\TypedConstant.cs (2)
214return Hash.Combine(_value, 215Hash.Combine(_type, (int)this.Kind));
Symbols\TypeLayout.cs (2)
75return Hash.Combine(Hash.Combine(this.Size, this.Alignment), _kind);
Syntax\ChildSyntaxList.Reversed.cs (1)
56return _node != null ? Hash.Combine(_node.GetHashCode(), _count) : 0;
Syntax\GreenNode.cs (1)
989code = Hash.Combine(RuntimeHelpers.GetHashCode(child), code);
Syntax\InternalSyntax\SyntaxNodeCache.cs (6)
278code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child1), code); 290code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child1), code); 294code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child2), code); 307code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child1), code); 311code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child2), code); 315code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child3), code);
Syntax\LineMapping.cs (2)
54=> Hash.Combine(Hash.Combine(Span.GetHashCode(), CharacterOffset.GetHashCode()), MappedSpan.GetHashCode());
Syntax\SyntaxNodeOrToken.cs (2)
742return Hash.Combine(_nodeOrParent, Hash.Combine(_token, _tokenIndex));
Syntax\SyntaxToken.cs (3)
575return Hash.Combine(Parent, Hash.Combine(Node, Hash.Combine(Position, Index)));
Syntax\SyntaxTokenList.cs (1)
516return Hash.Combine(Node, _index);
Syntax\SyntaxTreeComparer.cs (1)
33return Hash.Combine(obj.FilePath.GetHashCode(), SourceTextComparer.Instance.GetHashCode(obj.GetText()));
Syntax\SyntaxTrivia.cs (3)
288return Hash.Combine(Token.GetHashCode(), Hash.Combine(UnderlyingNode, Hash.Combine(Position, Index)));
Syntax\SyntaxTriviaList.cs (2)
485return Hash.Combine(Token.GetHashCode(), Hash.Combine(Node, Index));
Text\LinePosition.cs (1)
124return Hash.Combine(Line, Character);
Text\LinePositionSpan.cs (1)
69return Hash.Combine(_start.GetHashCode(), _end.GetHashCode());
Text\SourceTextComparer.cs (4)
36var contentsHash = !checksum.IsDefault ? Hash.CombineValues(checksum) : 0; 39return Hash.Combine(obj.Length, 40Hash.Combine(contentsHash, 41Hash.Combine(encodingHash, ((int)obj.ChecksumAlgorithm).GetHashCode())));
Text\TextChange.cs (1)
72return Hash.Combine(this.Span.GetHashCode(), this.NewText?.GetHashCode() ?? 0);
Text\TextChangeRange.cs (1)
72return Hash.Combine(this.NewLength, this.Span.GetHashCode());
Text\TextLine.cs (2)
212return Hash.Combine(_text, Hash.Combine(_start, _endIncludingBreaks));
Text\TextSpan.cs (1)
235return Hash.Combine(Start, Length);
Microsoft.CodeAnalysis.CSharp (132)
Binder\Binder_Operators.cs (1)
3792result = Hash.Combine(result, typeComparer.GetHashCode(typeWithAnnotations.Type));
Binder\BinderFactory.cs (1)
38return Hash.Combine(syntaxNode.GetHashCode(), (int)usage);
Binder\DecisionDagBuilder.cs (7)
1970hashCode = Hash.Combine(value.GetHashCode(), hashCode); 1972return Hash.Combine(hashCode, x.Cases.Count); 2040return Hash.Combine(RemainingTests.GetHashCode(), Index); 2318public override int GetHashCode() => Hash.Combine(Negated.GetHashCode(), typeof(Not).GetHashCode()); 2373int value = Hash.Combine(length, this.GetType().GetHashCode()); 2374value = Hash.Combine(Hash.CombineValues(this.RemainingTests), value);
Binder\Semantics\Conversions\Conversion.cs (1)
1192return Hash.Combine(this.Method, (int)this.Kind);
Binder\Semantics\Operators\BinaryOperatorSignature.cs (4)
86return Hash.Combine(ReturnType, 87Hash.Combine(LeftType, 88Hash.Combine(RightType, 89Hash.Combine(Method, (int)Kind))));
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (2)
284result = Hash.Combine(result, groupingKey.GetHashCode()); 288result = Hash.Combine(result, typeComparer.GetHashCode(parameter.Type));
BoundTree\BoundDagEvaluation.cs (2)
72return Hash.Combine(Input.GetHashCode(), this.Symbol?.GetHashCode() ?? 0); 153public override int GetHashCode() => Hash.Combine(base.GetHashCode(), this.Target.GetHashCode());
BoundTree\BoundDagTemp.cs (2)
45return Hash.Combine(this.Type.GetHashCode(), Hash.Combine(this.Source?.GetHashCode() ?? 0, this.Index));
BoundTree\BoundDagTest.cs (1)
46return Hash.Combine(((int)Kind).GetHashCode(), Input.GetHashCode());
BoundTree\BoundDecisionDagNode.cs (5)
43return Hash.Combine(n.Evaluation.GetHashCode(), RuntimeHelpers.GetHashCode(n.Next)); 45return Hash.Combine(n.Test.GetHashCode(), Hash.Combine(RuntimeHelpers.GetHashCode(n.WhenFalse), RuntimeHelpers.GetHashCode(n.WhenTrue))); 47return Hash.Combine(RuntimeHelpers.GetHashCode(n.WhenExpression), Hash.Combine(RuntimeHelpers.GetHashCode(n.WhenFalse), RuntimeHelpers.GetHashCode(n.WhenTrue)));
BoundTree\BoundExpression.cs (4)
717return Hash.Combine(ValueSymbol.GetHashCode(), 718Hash.Combine(ValueExpression.GetHashCode(), 719Hash.Combine(ValueDiagnostics.GetHashCode(), 720Hash.Combine(TypeExpression.GetHashCode(), TypeDiagnostics.GetHashCode()))));
BoundTree\UnboundLambda.cs (2)
1094value = Hash.Combine(type.Type, value); 1443=> Hash.Combine(obj.Type, obj.IsExpressionTree.GetHashCode());
Compilation\AwaitExpressionInfo.cs (3)
46return Hash.Combine(GetAwaiterMethod, Hash.Combine(IsCompletedProperty, Hash.Combine(GetResultMethod, IsDynamic.GetHashCode())));
Compilation\CSharpCompilation.cs (2)
2467return Hash.Combine( 2838return Hash.Combine(Tree, Span.Start);
Compilation\ForEachStatementInfo.cs (7)
103return Hash.Combine(IsAsynchronous, 104Hash.Combine(GetEnumeratorMethod, 105Hash.Combine(MoveNextMethod, 106Hash.Combine(CurrentProperty, 107Hash.Combine(DisposeMethod, 108Hash.Combine(ElementType, 109Hash.Combine(ElementConversion.GetHashCode(),
Compilation\QueryClauseInfo.cs (1)
64return Hash.Combine(this.CastInfo.GetHashCode(), _operationInfo.GetHashCode());
Compilation\TypeInfo.cs (4)
75return Hash.Combine(this.ConvertedType, 76Hash.Combine(this.Type, 77Hash.Combine(this.Nullability.GetHashCode(), 78Hash.Combine(this.ConvertedNullability.GetHashCode(),
Compiler\AnonymousTypeMethodBodySynthesizer.cs (1)
189initHash = unchecked(initHash * MethodBodySynthesizer.HASH_FACTOR + Hash.GetFNVHashCode(property.BackingField.Name));
CSharpCompilationOptions.cs (5)
755return Hash.Combine(GetHashCodeHelper(), 756Hash.Combine(this.AllowUnsafe, 757Hash.Combine(Hash.CombineValues(this.Usings, StringComparer.Ordinal), 758Hash.Combine(((uint)TopLevelBinderFlags).GetHashCode(), ((int)this.NullableContextOptions).GetHashCode()))));
CSharpParseOptions.cs (2)
308Hash.Combine(base.GetHashCodeHelper(), 309Hash.Combine((int)this.SpecifiedLanguageVersion, 0));
Declarations\SingleTypeDeclaration.cs (2)
288return Hash.Combine(thisDecl.Name.GetHashCode(), 289Hash.Combine(thisDecl.Arity.GetHashCode(),
FlowAnalysis\DefiniteAssignment.VariableIdentifier.cs (2)
57Hash.Combine(thisIndex.GetValueOrDefault(), currentKey) : 58Hash.Combine(Symbol.OriginalDefinition, currentKey);
FlowAnalysis\NullableWalker.cs (1)
13493return Hash.Combine(obj.expr, obj.symbol.GetHashCode());
Lowering\LocalRewriter\DelegateCacheContainer.cs (2)
110int hash = Hash.Combine(symbolComparer.GetHashCode(conversion.delegateType), symbolComparer.GetHashCode(conversion.targetMethod)); 114hash = Hash.Combine(hash, symbolComparer.GetHashCode(constrainedToType));
Parser\Lexer.cs (2)
2296int hashCode = Hash.FnvOffsetBias; // FNV base 2313hashCode = Hash.CombineFNVHash(hashCode, ch);
Parser\QuickScanner.cs (2)
200int hashCode = Hash.FnvOffsetBias; 225hashCode = unchecked((hashCode ^ uc) * Hash.FnvPrime);
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
84return Hash.Combine((int)ParameterCount, Name.GetHashCode());
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
231return Hash.Combine(this.ContainingType.GetHashCode(), this.Name.GetHashCode());
Symbols\ArrayTypeSymbol.cs (2)
382hash = Hash.Combine(cur.Rank, hash); 386return Hash.Combine(current, hash);
Symbols\ConversionSignatureComparer.cs (2)
64hash = Hash.Combine(member.ReturnType.GetHashCode(), hash); 69hash = Hash.Combine(member.GetParameterType(0).GetHashCode(), hash);
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
184return Hash.Combine(_container.GetHashCode(), _ordinal);
Symbols\EventSymbol.cs (2)
356hash = Hash.Combine(this.ContainingType, hash); 357hash = Hash.Combine(this.Name, hash);
Symbols\ExtendedErrorTypeSymbol.cs (2)
307return Hash.Combine(this.Arity, 308Hash.Combine((object?)this.ContainingSymbol != null ? this.ContainingSymbol.GetHashCode() : 0,
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (3)
755currentHash = Hash.Combine(param.MethodHashCode(), currentHash); 761=> Hash.Combine(ReturnType, Hash.Combine(((int)CallingConvention).GetHashCode(), ((int)FunctionPointerTypeSymbol.GetRefKindForHashCode(RefKind)).GetHashCode()));
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (2)
67return Hash.Combine(_containingSymbol.GetHashCode(), Ordinal + 1); 71=> Hash.Combine(TypeWithAnnotations.GetHashCode(), ((int)FunctionPointerTypeSymbol.GetRefKindForHashCode(RefKind)).GetHashCode());
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
118return Hash.Combine(1, Signature.GetHashCode());
Symbols\MemberSignatureComparer.cs (5)
537hash = Hash.Combine((int)member.Kind, hash); 541hash = Hash.Combine(ExplicitInterfaceHelpers.GetMemberNameWithoutInterfaceName(member.Name), hash); 548hash = Hash.Combine(member.GetTypeOrReturnType().GetHashCode(), hash); 555hash = Hash.Combine(member.GetMemberArity(), hash); 556hash = Hash.Combine(member.GetParameterCount(), hash);
Symbols\MissingMetadataTypeSymbol.cs (5)
340return Hash.Combine(MetadataName, Hash.Combine(_containingModule, Hash.Combine(_namespaceName, arity))); 452return Hash.Combine(_containingType, Hash.Combine(MetadataName, arity));
Symbols\MissingModuleSymbol.cs (1)
230return Hash.Combine(assembly.GetHashCode(), StringComparer.OrdinalIgnoreCase.GetHashCode(_name));
Symbols\MissingNamespaceSymbol.cs (1)
79return Hash.Combine(_containingSymbol.GetHashCode(), _name.GetHashCode());
Symbols\PointerTypeSymbol.cs (1)
228return Hash.Combine(current, indirections);
Symbols\PropertySymbol.cs (3)
481hash = Hash.Combine(this.ContainingType, hash); 482hash = Hash.Combine(this.Name, hash); 483hash = Hash.Combine(hash, this.ParameterCount);
Symbols\RangeVariableSymbol.cs (1)
179return Hash.Combine(_location?.GetHashCode() ?? 0, _containingSymbol.GetHashCode());
Symbols\ReducedExtensionMethodSymbol.cs (1)
703return Hash.Combine(ContainingSymbol, _underlyingParameter.Ordinal);
Symbols\SignatureOnlyParameterSymbol.cs (4)
132return Hash.Combine( 134Hash.Combine( 135Hash.CombineValues(_type.CustomModifiers), 136Hash.Combine(
Symbols\Source\CrefTypeParameterSymbol.cs (1)
117return Hash.Combine(_name, _ordinal);
Symbols\Source\SourceLocalSymbol.cs (1)
506return Hash.Combine(_identifierToken.GetHashCode(), _containingSymbol.GetHashCode());
Symbols\Source\SourceParameterSymbolBase.cs (1)
49return Hash.Combine(_containingSymbol.GetHashCode(), this.Ordinal);
Symbols\SubstitutedFieldSymbol.cs (1)
133code = Hash.Combine(containingHashCode, code);
Symbols\SubstitutedMethodSymbol.cs (2)
382code = Hash.Combine(containingHashCode, code); 399code = Hash.Combine(arg.Type, code);
Symbols\SubstitutedParameterSymbol.cs (1)
128return Roslyn.Utilities.Hash.Combine(ContainingSymbol, _underlyingParameter.Ordinal);
Symbols\SymbolDistinguisher.cs (1)
234result = Hash.Combine(result, compilation.GetHashCode());
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (3)
461return Hash.Combine(_name, Hash.Combine(_containingType, _parameters.Length)); 498return Hash.Combine(ContainingSymbol, Ordinal.GetHashCode());
Symbols\SynthesizedNamespaceSymbol.cs (1)
34=> Hash.Combine(_containingSymbol.GetHashCode(), _name.GetHashCode());
Symbols\Tuples\TupleErrorFieldSymbol.cs (1)
173return Hash.Combine(ContainingType.GetHashCode(), _tupleElementIndex.GetHashCode());
Symbols\Tuples\TupleFieldSymbol.cs (1)
155return Hash.Combine(_containingTuple.GetHashCode(), _tupleElementIndex.GetHashCode());
Symbols\TypeParameterSymbol.cs (1)
681return Hash.Combine(ContainingSymbol, Ordinal);
Symbols\TypeSymbolExtensions.cs (2)
1582code = Hash.Combine(type.ContainingType, code); 1599code = Hash.Combine(arg.Type, code);
Symbols\UnboundGenericType.cs (1)
120: Hash.Combine(_name, _errorInfo.Code);
Utilities\InterceptableLocation.cs (1)
179return Hash.Combine(
Utilities\ValueSetFactory.EnumeratedValueSet.cs (1)
173public override int GetHashCode() => Hash.Combine(this._included.GetHashCode(), this._membersIncludedOrExcluded.GetHashCode());
Utilities\ValueSetFactory.NintValueSet.cs (2)
128Hash.Combine(this._hasSmall.GetHashCode(), Hash.Combine(this._hasLarge.GetHashCode(), this._values.GetHashCode()));
Utilities\ValueSetFactory.NuintValueSet.cs (1)
111Hash.Combine(this._hasLarge.GetHashCode(), this._values.GetHashCode());
Utilities\ValueSetFactory.NumericValueSet.cs (2)
326return Hash.Combine(Hash.CombineValues(_intervals), _intervals.Length);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\AnonymousTypesSymbolTests.cs (1)
976init = unchecked(init * HASH_FACTOR + Hash.GetFNVHashCode(name));
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (6)
ILSpan.cs (1)
30public override int GetHashCode() => Hash.Combine(StartOffset.GetHashCode(), EndOffsetExclusive.GetHashCode());
MetadataBlock.cs (3)
62return Hash.Combine( 63Hash.Combine(Pointer.GetHashCode(), Size), 64Hash.Combine(ModuleId.GetHashCode(), GenerationId.GetHashCode()));
PDB\MethodDebugInfo.Native.cs (2)
49return Hash.Combine( 50Hash.Combine(ScopeStart, ScopeEnd),
Microsoft.CodeAnalysis.Scripting (7)
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (3)
232return Hash.Combine(PathResolver, 233Hash.Combine(PackageResolver, 234Hash.Combine(GacFileResolver,
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (2)
64Hash.Combine(BaseDirectory, Hash.CombineValues(SearchPaths));
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GacFileResolver.cs (2)
82return Hash.Combine(PreferredCulture, Hash.CombineValues(Architectures));
Microsoft.CodeAnalysis.Test.Utilities (8)
Diagnostics\DiagnosticDescription.cs (7)
350hashCode = Hash.Combine(_isWarningAsError.GetHashCode(), hashCode); 351hashCode = Hash.Combine(_isSuppressed.GetHashCode(), hashCode); 354hashCode = Hash.Combine(_squiggledText, hashCode); 355hashCode = Hash.Combine(_arguments, hashCode); 357hashCode = Hash.Combine(hashCode, _startPosition.Value.GetHashCode()); 359hashCode = Hash.Combine(hashCode, ((int)_defaultSeverityOpt.Value).GetHashCode()); 361hashCode = Hash.Combine(hashCode, ((int)_effectiveSeverityOpt.Value).GetHashCode());
Metadata\CustomAttributeRow.cs (1)
37return Hash.Combine(ParentToken.GetHashCode(), ConstructorToken.GetHashCode());
Microsoft.CodeAnalysis.UnitTests (1)
MetadataReferences\FusionAssemblyPortabilityPolicy.cs (1)
104return Hash.GetFNVHashCode(_fileHash);