143 references to Combine
Microsoft.CodeAnalysis (143)
CodeGen\LocalDebugId.cs (1)
74return Hash.Combine(SyntaxOffset, Ordinal);
CodeGen\LocalSlotDebugInfo.cs (1)
34return Hash.Combine((int)SynthesizedKind, Id.GetHashCode());
CodeGen\LocalSlotManager.cs (1)
58=> Hash.Combine(Cci.SymbolEquivalentEqualityComparer.Instance.GetHashCode(_type), (int)_constraints);
CodeGen\PrivateImplementationDetails.cs (1)
553Hash.Combine(constant.GetHashCode(), hash);
Collections\BitVector.cs (2)
73bitsHash = Hash.Combine(_bits[i].GetHashCode(), bitsHash); 77return Hash.Combine(_capacity, bitsHash);
Collections\Rope.cs (1)
78result = Hash.Combine((int)c, result);
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (2)
90return Hash.Combine(_originalDiagnostic.GetHashCode(), 91Hash.Combine(_suppressionId.GetHashCode(), _suppressionJustification.GetHashCode()));
CommandLine\SarifDiagnosticComparer.cs (7)
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(),
Compilation\CompilationOptions.cs (15)
674Hash.Combine(this.CurrentLocalTime.GetHashCode(), 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, 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, 688Hash.Combine(this.ScriptClassName != null ? StringComparer.Ordinal.GetHashCode(this.ScriptClassName) : 0, 689Hash.Combine(Hash.CombineValues(this.SpecificDiagnosticOptions), 690Hash.Combine(this.WarningLevel, 698Hash.Combine((int)this.NullableContextOptions, 0))))))))))))))))))))))))))));
Compilation\LoadDirective.cs (1)
41return Hash.Combine(this.Diagnostics.GetHashCode(), this.ResolvedPath?.GetHashCode() ?? 0);
Compilation\ParseOptions.cs (6)
153Hash.Combine((int)this.SpecifiedKind, 154Hash.Combine((int)this.DocumentationMode, 155Hash.Combine(HashFeatures(this.Features), 156Hash.Combine(Hash.CombineValues(this.PreprocessorSymbolNames, StringComparer.Ordinal), 0)))); 164value = Hash.Combine(kv.Key.GetHashCode(), 165Hash.Combine(kv.Value.GetHashCode(), value));
Compilation\SubsystemVersion.cs (1)
195return Hash.Combine(this.Minor.GetHashCode(), this.Major.GetHashCode());
Compilation\SymbolInfo.cs (1)
92=> Hash.Combine(this.Symbol, Hash.Combine(Hash.CombineValues(this.CandidateSymbols, 4), (int)this.CandidateReason));
Compilation\TypeInfo.cs (1)
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\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
105return Hash.Combine(_originalUnsuppressedDiagnostic.GetHashCode(), _programmaticSuppressionInfo.GetHashCode());
Diagnostic\Diagnostic_SimpleDiagnostic.cs (1)
175Hash.Combine(_warningLevel,
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\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\LocalizableResourceString.cs (3)
91return Hash.Combine(_nameOfLocalizableResource.GetHashCode(), 92Hash.Combine(_resourceManager.GetHashCode(), 93Hash.Combine(_resourceSource.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\Suppression.cs (1)
78return Hash.Combine(
Emit\AnonymousTypeKey.cs (1)
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 (3)
59return Hash.Combine(SlotInfo.GetHashCode(), 60Hash.Combine(Cci.SymbolEquivalentEqualityComparer.Instance.GetHashCode(Type), 61Hash.Combine((int)Constraints,
Emit\EmitOptions.cs (6)
306Hash.Combine(BaseAddress.GetHashCode(), 307Hash.Combine(FileAlignment, 309Hash.Combine(SubsystemVersion.GetHashCode(), 310Hash.Combine((int)DebugInformationFormat, 312Hash.Combine(PdbChecksumAlgorithm.GetHashCode(), 317Hash.Combine(Hash.CombineValues(InstrumentationKinds),
FileKey.cs (1)
45return Hash.Combine(
FileSystem\PathUtilities.cs (1)
694hc = Hash.Combine(char.ToUpperInvariant(ch), hc);
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);
MetadataReader\MetadataTypeName.Key.cs (1)
99return Hash.Combine(GetHashCodeName(),
MetadataReference\AssemblyIdentity.cs (3)
416Hash.Combine(AssemblyIdentityComparer.SimpleNameComparer.GetHashCode(_name), 417Hash.Combine(_version.GetHashCode(), GetHashCodeIgnoringNameAndVersion())); 426Hash.Combine((int)_contentType,
MetadataReference\CompilationReference.cs (1)
140return Hash.Combine(this.Compilation.GetHashCode(), this.Properties.GetHashCode());
MetadataReference\MetadataReferenceProperties.cs (1)
174return Hash.Combine(Hash.CombineValues(Aliases), Hash.Combine(_embedInteropTypes, Hash.Combine(HasRecursiveAliases, ((int)_kind).GetHashCode())));
PEWriter\MemberRefComparer.cs (2)
65hash = Hash.Combine(hash, _metadataWriter.GetFieldSignatureIndex(fieldRef).GetHashCode()); 72hash = Hash.Combine(hash, _metadataWriter.GetMethodSignatureHandle(methodRef).GetHashCode());
PEWriter\MetadataWriter.cs (1)
4344return Hash.Combine(ByteSequenceComparer.GetHashCode(x.Item1), x.Item2.GetHashCode());
PEWriter\MetadataWriter.PortablePdb.cs (1)
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 (2)
79Hash.Combine(GetHashCode(TargetNamespaceOpt), 80Hash.Combine(GetHashCode(TargetTypeOpt),
SourceFileResolver.cs (2)
150return Hash.Combine(_baseDirectory != null ? StringComparer.Ordinal.GetHashCode(_baseDirectory) : 0, 151Hash.Combine(Hash.CombineValues(_searchPaths, StringComparer.Ordinal),
SourceGeneration\GlobalAliases.cs (1)
67hashCode = Hash.Combine(tuple.GetHashCode(), hashCode);
SymbolDisplay\FormattedSymbol.cs (1)
48return Hash.Combine(
Symbols\Attributes\CommonAttributeDataComparer.cs (6)
43hash = attr.AttributeConstructor != null ? Hash.Combine(attr.AttributeConstructor.GetHashCode(), hash) : 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\TypeLayout.cs (2)
75return Hash.Combine(Hash.Combine(this.Size, this.Alignment), _kind);
Syntax\ChildSyntaxList.Reversed.cs (1)
55return _node != null ? Hash.Combine(_node.GetHashCode(), _count) : 0;
Syntax\GreenNode.cs (1)
988code = 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\SyntaxToken.cs (1)
574return Hash.Combine(Parent, Hash.Combine(Node, Hash.Combine(Position, Index)));
Syntax\SyntaxTreeComparer.cs (1)
33return Hash.Combine(obj.FilePath.GetHashCode(), SourceTextComparer.Instance.GetHashCode(obj.GetText()));
Syntax\SyntaxTrivia.cs (2)
287return Hash.Combine(Token.GetHashCode(), Hash.Combine(UnderlyingNode, Hash.Combine(Position, Index)));
Syntax\SyntaxTriviaList.cs (1)
484return 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 (3)
39return Hash.Combine(obj.Length, 40Hash.Combine(contentsHash, 41Hash.Combine(encodingHash, ((int)obj.ChecksumAlgorithm).GetHashCode())));
Text\TextChange.cs (1)
71return Hash.Combine(this.Span.GetHashCode(), this.NewText?.GetHashCode() ?? 0);
Text\TextChangeRange.cs (1)
71return Hash.Combine(this.NewLength, this.Span.GetHashCode());
Text\TextLine.cs (1)
212return Hash.Combine(_text, Hash.Combine(_start, _endIncludingBreaks));
Text\TextSpan.cs (1)
235return Hash.Combine(Start, Length);