@@ -2921,7 +2921,6 @@ namespace ts {
2921
2921
}
2922
2922
}
2923
2923
2924
- /* @internal */
2925
2924
export function getBinaryOperatorPrecedence ( kind : SyntaxKind ) : number {
2926
2925
switch ( kind ) {
2927
2926
case SyntaxKind . BarBarToken :
@@ -6834,7 +6833,6 @@ namespace ts {
6834
6833
6835
6834
/* @internal */
6836
6835
namespace ts {
6837
- /** @internal */
6838
6836
export function isNamedImportsOrExports ( node : Node ) : node is NamedImportsOrExports {
6839
6837
return node . kind === SyntaxKind . NamedImports || node . kind === SyntaxKind . NamedExports ;
6840
6838
}
@@ -6898,7 +6896,6 @@ namespace ts {
6898
6896
getSourceMapSourceConstructor : ( ) => < any > SourceMapSource ,
6899
6897
} ;
6900
6898
6901
- /* @internal */
6902
6899
export function formatStringFromArgs ( text : string , args : ArrayLike < string > , baseIndex = 0 ) : string {
6903
6900
return text . replace ( / { ( \d + ) } / g, ( _match , index : string ) => Debug . assertDefined ( args [ + index + baseIndex ] ) ) ;
6904
6901
}
@@ -6909,7 +6906,6 @@ namespace ts {
6909
6906
return localizedDiagnosticMessages && localizedDiagnosticMessages [ message . key ] || message . message ;
6910
6907
}
6911
6908
6912
- /* @internal */
6913
6909
export function createFileDiagnostic ( file : SourceFile , start : number , length : number , message : DiagnosticMessage , ...args : ( string | number | undefined ) [ ] ) : DiagnosticWithLocation ;
6914
6910
export function createFileDiagnostic ( file : SourceFile , start : number , length : number , message : DiagnosticMessage ) : DiagnosticWithLocation {
6915
6911
Debug . assertGreaterThanOrEqual ( start , 0 ) ;
@@ -6938,7 +6934,6 @@ namespace ts {
6938
6934
} ;
6939
6935
}
6940
6936
6941
- /* @internal */
6942
6937
export function formatMessage ( _dummy : any , message : DiagnosticMessage ) : string {
6943
6938
let text = getLocaleSpecificMessage ( message ) ;
6944
6939
@@ -6949,7 +6944,6 @@ namespace ts {
6949
6944
return text ;
6950
6945
}
6951
6946
6952
- /* @internal */
6953
6947
export function createCompilerDiagnostic ( message : DiagnosticMessage , ...args : ( string | number | undefined ) [ ] ) : Diagnostic ;
6954
6948
export function createCompilerDiagnostic ( message : DiagnosticMessage ) : Diagnostic {
6955
6949
let text = getLocaleSpecificMessage ( message ) ;
@@ -6970,7 +6964,6 @@ namespace ts {
6970
6964
} ;
6971
6965
}
6972
6966
6973
- /* @internal */
6974
6967
export function createCompilerDiagnosticFromMessageChain ( chain : DiagnosticMessageChain ) : Diagnostic {
6975
6968
return {
6976
6969
file : undefined ,
@@ -6983,7 +6976,6 @@ namespace ts {
6983
6976
} ;
6984
6977
}
6985
6978
6986
- /* @internal */
6987
6979
export function chainDiagnosticMessages ( details : DiagnosticMessageChain | undefined , message : DiagnosticMessage , ...args : ( string | undefined ) [ ] ) : DiagnosticMessageChain ;
6988
6980
export function chainDiagnosticMessages ( details : DiagnosticMessageChain | undefined , message : DiagnosticMessage ) : DiagnosticMessageChain {
6989
6981
let text = getLocaleSpecificMessage ( message ) ;
@@ -7015,14 +7007,12 @@ namespace ts {
7015
7007
return diagnostic . file ? diagnostic . file . path : undefined ;
7016
7008
}
7017
7009
7018
- /* @internal */
7019
7010
export function compareDiagnostics ( d1 : Diagnostic , d2 : Diagnostic ) : Comparison {
7020
7011
return compareDiagnosticsSkipRelatedInformation ( d1 , d2 ) ||
7021
7012
compareRelatedInformation ( d1 , d2 ) ||
7022
7013
Comparison . EqualTo ;
7023
7014
}
7024
7015
7025
- /* @internal */
7026
7016
export function compareDiagnosticsSkipRelatedInformation ( d1 : Diagnostic , d2 : Diagnostic ) : Comparison {
7027
7017
return compareStringsCaseSensitive ( getDiagnosticFilePath ( d1 ) , getDiagnosticFilePath ( d2 ) ) ||
7028
7018
compareValues ( d1 . start , d2 . start ) ||
@@ -7360,7 +7350,6 @@ namespace ts {
7360
7350
return rootLength > 0 && rootLength === path . length ;
7361
7351
}
7362
7352
7363
- /* @internal */
7364
7353
export function convertToRelativePath ( absoluteOrRelativePath : string , basePath : string , getCanonicalFileName : ( path : string ) => string ) : string {
7365
7354
return ! isRootedDiskPath ( absoluteOrRelativePath )
7366
7355
? absoluteOrRelativePath
0 commit comments