Skip to content

Commit b85665c

Browse files
committed
Make new exported functions internal
1 parent f3d3661 commit b85665c

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/compiler/commandLineParser.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,14 @@ namespace ts {
242242
}
243243
];
244244

245+
/* @internal */
245246
export interface OptionNameMap {
246247
optionNameMap: Map<CommandLineOption>;
247248
shortOptionNames: Map<string>;
248249
}
249250

250251
let optionNameMapCache: OptionNameMap;
252+
/* @internal */
251253
export function getOptionNameMap(): OptionNameMap {
252254
if (optionNameMapCache) {
253255
return optionNameMapCache;

src/compiler/program.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ namespace ts {
225225
return { resolvedFileName: referencedSourceFile, failedLookupLocations };
226226
}
227227

228+
/* @internal */
228229
export const defaultInitCompilerOptions: CompilerOptions = {
229230
module: ModuleKind.CommonJS,
230231
target: ScriptTarget.ES3,
@@ -234,6 +235,7 @@ namespace ts {
234235
sourceMap: false,
235236
}
236237

238+
/* @internal */
237239
export function scriptTargetToString(target: ScriptTarget): string {
238240
switch (target) {
239241
case ScriptTarget.ES5:
@@ -245,6 +247,7 @@ namespace ts {
245247
}
246248
}
247249

250+
/* @internal */
248251
export function moduleKindToString(kind: ModuleKind): string {
249252
switch (kind) {
250253
case ModuleKind.None:
@@ -260,6 +263,7 @@ namespace ts {
260263
}
261264
}
262265

266+
/* @internal */
263267
export function newLineKindToString(kind: NewLineKind): string {
264268
switch (kind) {
265269
case NewLineKind.CarriageReturnLineFeed:

src/compiler/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,6 +2109,7 @@ namespace ts {
21092109
errors: Diagnostic[];
21102110
}
21112111

2112+
/* @internal */
21122113
export interface CommandLineOption {
21132114
name: string;
21142115
type: string | Map<number>; // "string", "number", "boolean", or an object literal mapping named values to actual values

0 commit comments

Comments
 (0)