Base:
23 overrides of GetHashCode
Microsoft.CodeAnalysis.CSharp (23)
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (1)
47public override int GetHashCode() => _identifier.GetHashCode();
Symbols\AliasSymbol.cs (1)
262public override int GetHashCode()
Symbols\DiscardSymbol.cs (1)
39public override int GetHashCode() => this.TypeWithAnnotations.GetHashCode();
Symbols\EventSymbol.cs (1)
349public override int GetHashCode()
Symbols\FieldSymbol.cs (1)
523public override int GetHashCode()
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
62public override int GetHashCode()
Symbols\MethodSymbol.cs (1)
1263public override int GetHashCode()
Symbols\MissingAssemblySymbol.cs (1)
91public override int GetHashCode()
Symbols\MissingModuleSymbol.cs (1)
105public override int GetHashCode()
Symbols\MissingNamespaceSymbol.cs (1)
77public override int GetHashCode()
Symbols\NativeIntegerTypeSymbol.cs (1)
437public override int GetHashCode() => _underlyingParameter.GetHashCode();
Symbols\PropertySymbol.cs (1)
477public override int GetHashCode()
Symbols\RangeVariableSymbol.cs (1)
177public override int GetHashCode()
Symbols\ReducedExtensionMethodSymbol.cs (1)
697public sealed override int GetHashCode()
Symbols\SignatureOnlyParameterSymbol.cs (1)
126public override int GetHashCode()
Symbols\Source\SourceLabelSymbol.cs (1)
160public override int GetHashCode()
Symbols\Source\SourceLocalSymbol.cs (1)
504public sealed override int GetHashCode()
Symbols\Source\SourceParameterSymbolBase.cs (1)
47public sealed override int GetHashCode()
Symbols\SubstitutedParameterSymbol.cs (1)
119public sealed override int GetHashCode()
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
493public override int GetHashCode()
Symbols\SynthesizedNamespaceSymbol.cs (1)
33public override int GetHashCode()
Symbols\TypeSymbol.cs (1)
312public override int GetHashCode()
Symbols\UpdatedContainingSymbolLocal.cs (1)
76public override int GetHashCode() => _underlyingLocal.GetHashCode();
23 references to GetHashCode
Microsoft.CodeAnalysis.CSharp (23)
Binder\Imports.cs (1)
222return obj.NamespaceOrType.GetHashCode();
BoundTree\BoundDagEvaluation.cs (1)
72return Hash.Combine(Input.GetHashCode(), this.Symbol?.GetHashCode() ?? 0);
BoundTree\BoundExpression.cs (1)
710return Hash.Combine(ValueSymbol.GetHashCode(),
FlowAnalysis\DefiniteAssignment.cs (1)
2848string.IsNullOrEmpty(id.Symbol.Name) ? "<anon>" + id.Symbol.GetHashCode() :
FlowAnalysis\NullableWalker.cs (1)
12687return Hash.Combine(obj.expr, obj.symbol.GetHashCode());
Symbols\ExtendedErrorTypeSymbol.cs (1)
308Hash.Combine((object?)this.ContainingSymbol != null ? this.ContainingSymbol.GetHashCode() : 0,
Symbols\FieldSymbol.cs (1)
525return base.GetHashCode();
Symbols\MethodSymbol.cs (1)
1265return base.GetHashCode();
Symbols\MissingModuleSymbol.cs (2)
107return assembly.GetHashCode(); 229return Hash.Combine(assembly.GetHashCode(), StringComparer.OrdinalIgnoreCase.GetHashCode(_name));
Symbols\MissingNamespaceSymbol.cs (1)
79return Hash.Combine(_containingSymbol.GetHashCode(), _name.GetHashCode());
Symbols\NativeIntegerTypeSymbol.cs (3)
271Debug.Assert(symbolA.GetHashCode() == symbolB.GetHashCode()); 437public override int GetHashCode() => _underlyingParameter.GetHashCode();
Symbols\PublicModel\Symbol.cs (1)
81return UnderlyingSymbol.GetHashCode();
Symbols\RangeVariableSymbol.cs (1)
179return Hash.Combine(_location?.GetHashCode() ?? 0, _containingSymbol.GetHashCode());
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\SubstitutedMethodSymbol.cs (1)
369containingHashCode = _containingSymbol.GetHashCode();
Symbols\SymbolDistinguisher.cs (1)
232int result = GetSymbol().GetHashCode();
Symbols\SymbolEqualityComparer.cs (1)
45return obj is null ? 0 : obj.GetHashCode();
Symbols\SynthesizedNamespaceSymbol.cs (1)
34=> Hash.Combine(_containingSymbol.GetHashCode(), _name.GetHashCode());
Symbols\TypeSymbol.cs (1)
2362return obj.OriginalDefinition.GetHashCode();