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