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