Base:
10 references to GetHashCode
Microsoft.CodeAnalysis (4)
Diagnostic\ExternalFileLocation.cs (2)
79
return Hash.Combine(_lineSpan.
GetHashCode
(),
80
Hash.Combine(_mappedLineSpan.
GetHashCode
(), _sourceSpan.GetHashCode()));
Diagnostic\XmlLocation.cs (1)
78
return _positionSpan.
GetHashCode
();
Syntax\LineMapping.cs (1)
54
=> Hash.Combine(Hash.Combine(Span.GetHashCode(), CharacterOffset.GetHashCode()), MappedSpan.
GetHashCode
());
Microsoft.CodeAnalysis.UnitTests (6)
FileLinePositionSpanTests.cs (6)
64
var hash1 = new FileLinePositionSpan("C:\\goo.cs", new LinePosition(1, 2), new LinePosition(3, 5)).
GetHashCode
();
65
var hash2 = new FileLinePositionSpan("C:\\goo1.cs", new LinePosition(1, 2), new LinePosition(3, 5)).
GetHashCode
();
66
var hash3 = new FileLinePositionSpan("C:\\goo.cs", new LinePosition(1, 3), new LinePosition(3, 5)).
GetHashCode
();
67
var hash4 = new FileLinePositionSpan("C:\\goo.cs", new LinePosition(1, 2), new LinePosition(6, 5)).
GetHashCode
();
68
var hash5 = new FileLinePositionSpan("C:\\goo.cs", new LinePosition(2, 2), new LinePosition(6, 5)).
GetHashCode
();
69
var hash6 = new FileLinePositionSpan("C:\\goo.cs", new LinePosition(2, 2), new LinePosition(6, 8)).
GetHashCode
();