Skip to content

Commit 4f6f713

Browse files
authored
Merge pull request #28287 from ajafff/cleanup-internal
remove some useless internal comments
2 parents c780186 + a076743 commit 4f6f713

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/compiler/utilities.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2921,7 +2921,6 @@ namespace ts {
29212921
}
29222922
}
29232923

2924-
/* @internal */
29252924
export function getBinaryOperatorPrecedence(kind: SyntaxKind): number {
29262925
switch (kind) {
29272926
case SyntaxKind.BarBarToken:
@@ -6834,7 +6833,6 @@ namespace ts {
68346833

68356834
/* @internal */
68366835
namespace ts {
6837-
/** @internal */
68386836
export function isNamedImportsOrExports(node: Node): node is NamedImportsOrExports {
68396837
return node.kind === SyntaxKind.NamedImports || node.kind === SyntaxKind.NamedExports;
68406838
}
@@ -6898,7 +6896,6 @@ namespace ts {
68986896
getSourceMapSourceConstructor: () => <any>SourceMapSource,
68996897
};
69006898

6901-
/* @internal */
69026899
export function formatStringFromArgs(text: string, args: ArrayLike<string>, baseIndex = 0): string {
69036900
return text.replace(/{(\d+)}/g, (_match, index: string) => Debug.assertDefined(args[+index + baseIndex]));
69046901
}
@@ -6909,7 +6906,6 @@ namespace ts {
69096906
return localizedDiagnosticMessages && localizedDiagnosticMessages[message.key] || message.message;
69106907
}
69116908

6912-
/* @internal */
69136909
export function createFileDiagnostic(file: SourceFile, start: number, length: number, message: DiagnosticMessage, ...args: (string | number | undefined)[]): DiagnosticWithLocation;
69146910
export function createFileDiagnostic(file: SourceFile, start: number, length: number, message: DiagnosticMessage): DiagnosticWithLocation {
69156911
Debug.assertGreaterThanOrEqual(start, 0);
@@ -6938,7 +6934,6 @@ namespace ts {
69386934
};
69396935
}
69406936

6941-
/* @internal */
69426937
export function formatMessage(_dummy: any, message: DiagnosticMessage): string {
69436938
let text = getLocaleSpecificMessage(message);
69446939

@@ -6949,7 +6944,6 @@ namespace ts {
69496944
return text;
69506945
}
69516946

6952-
/* @internal */
69536947
export function createCompilerDiagnostic(message: DiagnosticMessage, ...args: (string | number | undefined)[]): Diagnostic;
69546948
export function createCompilerDiagnostic(message: DiagnosticMessage): Diagnostic {
69556949
let text = getLocaleSpecificMessage(message);
@@ -6970,7 +6964,6 @@ namespace ts {
69706964
};
69716965
}
69726966

6973-
/* @internal */
69746967
export function createCompilerDiagnosticFromMessageChain(chain: DiagnosticMessageChain): Diagnostic {
69756968
return {
69766969
file: undefined,
@@ -6983,7 +6976,6 @@ namespace ts {
69836976
};
69846977
}
69856978

6986-
/* @internal */
69876979
export function chainDiagnosticMessages(details: DiagnosticMessageChain | undefined, message: DiagnosticMessage, ...args: (string | undefined)[]): DiagnosticMessageChain;
69886980
export function chainDiagnosticMessages(details: DiagnosticMessageChain | undefined, message: DiagnosticMessage): DiagnosticMessageChain {
69896981
let text = getLocaleSpecificMessage(message);
@@ -7015,14 +7007,12 @@ namespace ts {
70157007
return diagnostic.file ? diagnostic.file.path : undefined;
70167008
}
70177009

7018-
/* @internal */
70197010
export function compareDiagnostics(d1: Diagnostic, d2: Diagnostic): Comparison {
70207011
return compareDiagnosticsSkipRelatedInformation(d1, d2) ||
70217012
compareRelatedInformation(d1, d2) ||
70227013
Comparison.EqualTo;
70237014
}
70247015

7025-
/* @internal */
70267016
export function compareDiagnosticsSkipRelatedInformation(d1: Diagnostic, d2: Diagnostic): Comparison {
70277017
return compareStringsCaseSensitive(getDiagnosticFilePath(d1), getDiagnosticFilePath(d2)) ||
70287018
compareValues(d1.start, d2.start) ||
@@ -7360,7 +7350,6 @@ namespace ts {
73607350
return rootLength > 0 && rootLength === path.length;
73617351
}
73627352

7363-
/* @internal */
73647353
export function convertToRelativePath(absoluteOrRelativePath: string, basePath: string, getCanonicalFileName: (path: string) => string): string {
73657354
return !isRootedDiskPath(absoluteOrRelativePath)
73667355
? absoluteOrRelativePath

0 commit comments

Comments
 (0)