Skip to content

Commit e2947fa

Browse files
committed
remove even more redundant internal comments
1 parent 772f6cd commit e2947fa

17 files changed

+15
-40
lines changed

src/compiler/binder.ts

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

2924-
/* @internal */
29252924
export function isExportsOrModuleExportsOrAlias(sourceFile: SourceFile, node: Expression): boolean {
29262925
return isExportsIdentifier(node) ||
29272926
isModuleExportsPropertyAccessExpression(node) ||
@@ -3898,7 +3897,6 @@ namespace ts {
38983897
* For performance reasons, `computeTransformFlagsForNode` uses local constant values rather
38993898
* than calling this function.
39003899
*/
3901-
/* @internal */
39023900
export function getTransformFlagsSubtreeExclusions(kind: SyntaxKind) {
39033901
if (kind >= SyntaxKind.FirstTypeNode && kind <= SyntaxKind.LastTypeNode) {
39043902
return TransformFlags.TypeExcludes;

src/compiler/core.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2052,7 +2052,6 @@ namespace ts {
20522052
}
20532053

20542054
/** Represents a "prefix*suffix" pattern. */
2055-
/* @internal */
20562055
export interface Pattern {
20572056
prefix: string;
20582057
suffix: string;

src/compiler/sourcemapDecoder.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,12 @@ namespace ts.sourcemaps {
150150
}
151151
}
152152

153-
/*@internal*/
154153
export interface MappingsDecoder extends Iterator<SourceMapSpan> {
155154
readonly decodingIndex: number;
156155
readonly error: string | undefined;
157156
readonly lastSpan: SourceMapSpan;
158157
}
159158

160-
/*@internal*/
161159
export function decodeMappings(map: SourceMapData): MappingsDecoder {
162160
const state: DecoderState = {
163161
encodedText: map.mappings,

src/compiler/tsbuild.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ namespace ts {
2222
force?: boolean;
2323
verbose?: boolean;
2424

25-
/*@internal*/ clean?: boolean;
26-
/*@internal*/ watch?: boolean;
27-
/*@internal*/ help?: boolean;
25+
clean?: boolean;
26+
watch?: boolean;
27+
help?: boolean;
2828

2929
preserveWatchOutput?: boolean;
3030
listEmittedFiles?: boolean;
@@ -340,18 +340,18 @@ namespace ts {
340340
cleanAllProjects(): ExitStatus;
341341

342342
// TODO:: All the below ones should technically only be in watch mode. but thats for later time
343-
/*@internal*/ resolveProjectName(name: string): ResolvedConfigFileName;
344-
/*@internal*/ getUpToDateStatusOfFile(configFileName: ResolvedConfigFileName): UpToDateStatus;
345-
/*@internal*/ getBuildGraph(configFileNames: ReadonlyArray<string>): DependencyGraph;
343+
resolveProjectName(name: string): ResolvedConfigFileName;
344+
getUpToDateStatusOfFile(configFileName: ResolvedConfigFileName): UpToDateStatus;
345+
getBuildGraph(configFileNames: ReadonlyArray<string>): DependencyGraph;
346346

347-
/*@internal*/ invalidateProject(configFileName: string, reloadLevel?: ConfigFileProgramReloadLevel): void;
348-
/*@internal*/ buildInvalidatedProject(): void;
347+
invalidateProject(configFileName: string, reloadLevel?: ConfigFileProgramReloadLevel): void;
348+
buildInvalidatedProject(): void;
349349

350-
/*@internal*/ resetBuildContext(opts?: BuildOptions): void;
350+
resetBuildContext(opts?: BuildOptions): void;
351351
}
352352

353353
export interface SolutionBuilderWithWatch extends SolutionBuilder {
354-
/*@internal*/ startWatching(): void;
354+
startWatching(): void;
355355
}
356356

357357
/**

src/compiler/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5225,7 +5225,6 @@ namespace ts {
52255225
useCaseSensitiveFileNames(): boolean;
52265226
getCurrentDirectory(): string;
52275227

5228-
/* @internal */
52295228
isSourceFileFromExternalLibrary(file: SourceFile): boolean;
52305229
getLibFileFromReference(ref: FileReference): SourceFile | undefined;
52315230

src/compiler/watch.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ namespace ts {
4343
return false;
4444
}
4545

46-
/** @internal */
4746
export const screenStartingMessageCodes: number[] = [
4847
Diagnostics.Starting_compilation_in_watch_mode.code,
4948
Diagnostics.File_change_detected_Starting_incremental_compilation.code,

src/jsTyping/jsTyping.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ namespace ts.JsTyping {
2424
version: Version;
2525
}
2626

27-
/* @internal */
2827
export function isTypingUpToDate(cachedTyping: CachedTyping, availableTypingVersions: MapLike<string>) {
2928
const availableVersion = new Version(getProperty(availableTypingVersions, `ts${versionMajorMinor}`) || getProperty(availableTypingVersions, "latest")!);
3029
return availableVersion.compareTo(cachedTyping.version) <= 0;
3130
}
3231

33-
/* @internal */
3432
export const nodeCoreModuleList: ReadonlyArray<string> = [
3533
"assert",
3634
"async_hooks",
@@ -70,7 +68,6 @@ namespace ts.JsTyping {
7068
"zlib"
7169
];
7270

73-
/* @internal */
7471
export const nodeCoreModules = arrayToSet(nodeCoreModuleList);
7572

7673
/**

src/jsTyping/shared.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ namespace ts.server {
3434
: undefined;
3535
}
3636

37-
/*@internal*/
3837
export function nowString() {
3938
// E.g. "12:34:56.789"
4039
const d = new Date();

src/server/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ namespace ts.server {
204204

205205
/*@internal*/
206206
constructor(
207-
/*@internal*/readonly projectName: string,
207+
readonly projectName: string,
208208
readonly projectKind: ProjectKind,
209209
readonly projectService: ProjectService,
210210
private documentRegistry: DocumentRegistry,

src/server/scriptInfo.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ namespace ts.server {
66

77
/* @internal */
88
export class TextStorage {
9-
/*@internal*/
109
version: ScriptInfoVersion;
1110

1211
/**

0 commit comments

Comments
 (0)