Skip to content

Commit d409155

Browse files
committed
Minor PR feedback
1 parent e426257 commit d409155

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/compiler/core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,12 +1849,12 @@ namespace ts {
18491849
comparer(a[key], b[key]);
18501850
}
18511851

1852-
function getDiagnosticFileName(diagnostic: Diagnostic): string {
1852+
function getDiagnosticFilePath(diagnostic: Diagnostic): string {
18531853
return diagnostic.file ? diagnostic.file.path : undefined;
18541854
}
18551855

18561856
export function compareDiagnostics(d1: Diagnostic, d2: Diagnostic): Comparison {
1857-
return compareStringsCaseSensitive(getDiagnosticFileName(d1), getDiagnosticFileName(d2)) ||
1857+
return compareStringsCaseSensitive(getDiagnosticFilePath(d1), getDiagnosticFilePath(d2)) ||
18581858
compareValues(d1.start, d2.start) ||
18591859
compareValues(d1.length, d2.length) ||
18601860
compareValues(d1.code, d2.code) ||

0 commit comments

Comments
 (0)