Base:
7 overrides of GetHashCode
Microsoft.CodeAnalysis (5)
Diagnostic\ExternalFileLocation.cs (1)
77public override int GetHashCode()
Diagnostic\MetadataLocation.cs (1)
35public override int GetHashCode()
Diagnostic\NoLocation.cs (1)
29public override int GetHashCode()
Diagnostic\SourceLocation.cs (1)
123public override int GetHashCode()
Diagnostic\XmlLocation.cs (1)
76public override int GetHashCode()
Microsoft.CodeAnalysis.VisualBasic (2)
Locations\EmbeddedTreeLocation.vb (1)
64Public Overrides Function GetHashCode() As Integer
Locations\MyTemplateLocation.vb (1)
56Public Overrides Function GetHashCode() As Integer
11 references to GetHashCode
ConfigurationSchemaGenerator (1)
RuntimeSource\SourceGenerators\DiagnosticInfo.cs (1)
57hashCode = HashHelpers.Combine(hashCode, Location?.GetHashCode() ?? 0);
Microsoft.CodeAnalysis (1)
Diagnostic\DiagnosticWithInfo.cs (1)
152return Hash.Combine(this.Location.GetHashCode(), this.Info.GetHashCode());
Microsoft.CodeAnalysis.CSharp (3)
FlowAnalysis\DefiniteAssignment.cs (1)
674Hash.Combine(Hash.CombineValues(obj.Arguments), Hash.Combine(obj.Location.GetHashCode(), obj.Code));
Symbols\AliasSymbol.cs (1)
263=> this.TryGetFirstLocation()?.GetHashCode() ?? Name.GetHashCode();
Symbols\RangeVariableSymbol.cs (1)
179return Hash.Combine(_location?.GetHashCode() ?? 0, _containingSymbol.GetHashCode());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\LocationsTests.cs (2)
434Assert.Equal(loc1.GetHashCode(), loc2.GetHashCode());
Microsoft.CodeAnalysis.Features (1)
CodeLens\LocationComparer.cs (1)
36return obj?.GetHashCode() ?? 0;
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (1)
464return Hash.Combine(obj.Id.GetHashCode(), obj.Location.GetHashCode());
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\AliasSymbol.vb (1)
253Return If(Me.Locations.Length > 0, Me.Locations(0).GetHashCode(), Me.Name.GetHashCode())
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\SourceGenerators\DiagnosticInfo.cs (1)
57hashCode = HashHelpers.Combine(hashCode, Location?.GetHashCode() ?? 0);