File tree Expand file tree Collapse file tree
tests/baselines/reference/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ namespace ts {
1616 // Update: We also consider a path like `C:\foo.ts` "relative" because we do not search for it in `node_modules` or treat it as an ambient module.
1717 return pathIsRelative ( moduleName ) || isRootedDiskPath ( moduleName ) ;
1818 }
19+
20+ export function sortAndDeduplicateDiagnostics ( diagnostics : ReadonlyArray < Diagnostic > ) : Diagnostic [ ] {
21+ return sortAndDeduplicate ( diagnostics , compareDiagnostics ) ;
22+ }
1923}
2024
2125/* @internal */
@@ -1901,10 +1905,6 @@ namespace ts {
19011905 return text1 ? Comparison . GreaterThan : Comparison . LessThan ;
19021906 }
19031907
1904- export function sortAndDeduplicateDiagnostics ( diagnostics : ReadonlyArray < Diagnostic > ) : Diagnostic [ ] {
1905- return sortAndDeduplicate ( diagnostics , compareDiagnostics ) ;
1906- }
1907-
19081908 export function normalizeSlashes ( path : string ) : string {
19091909 return path . replace ( / \\ / g, "/" ) ;
19101910 }
Original file line number Diff line number Diff line change @@ -2814,6 +2814,7 @@ declare namespace ts {
28142814}
28152815declare namespace ts {
28162816 function isExternalModuleNameRelative ( moduleName : string ) : boolean ;
2817+ function sortAndDeduplicateDiagnostics ( diagnostics : ReadonlyArray < Diagnostic > ) : Diagnostic [ ] ;
28172818}
28182819declare function setTimeout ( handler : ( ...args : any [ ] ) => void , timeout : number ) : any ;
28192820declare function clearTimeout ( handle : any ) : void ;
Original file line number Diff line number Diff line change @@ -2814,6 +2814,7 @@ declare namespace ts {
28142814}
28152815declare namespace ts {
28162816 function isExternalModuleNameRelative ( moduleName : string ) : boolean ;
2817+ function sortAndDeduplicateDiagnostics ( diagnostics : ReadonlyArray < Diagnostic > ) : Diagnostic [ ] ;
28172818}
28182819declare function setTimeout ( handler : ( ...args : any [ ] ) => void , timeout : number ) : any ;
28192820declare function clearTimeout ( handle : any ) : void ;
You can’t perform that action at this time.
0 commit comments