Make new exported functions internal

This commit is contained in:
Mohamed Hegazy 2015-08-25 14:34:34 -07:00
parent f3d36616b7
commit b85665cd38
3 changed files with 7 additions and 0 deletions

View File

@ -242,12 +242,14 @@ namespace ts {
}
];
/* @internal */
export interface OptionNameMap {
optionNameMap: Map<CommandLineOption>;
shortOptionNames: Map<string>;
}
let optionNameMapCache: OptionNameMap;
/* @internal */
export function getOptionNameMap(): OptionNameMap {
if (optionNameMapCache) {
return optionNameMapCache;

View File

@ -225,6 +225,7 @@ namespace ts {
return { resolvedFileName: referencedSourceFile, failedLookupLocations };
}
/* @internal */
export const defaultInitCompilerOptions: CompilerOptions = {
module: ModuleKind.CommonJS,
target: ScriptTarget.ES3,
@ -234,6 +235,7 @@ namespace ts {
sourceMap: false,
}
/* @internal */
export function scriptTargetToString(target: ScriptTarget): string {
switch (target) {
case ScriptTarget.ES5:
@ -245,6 +247,7 @@ namespace ts {
}
}
/* @internal */
export function moduleKindToString(kind: ModuleKind): string {
switch (kind) {
case ModuleKind.None:
@ -260,6 +263,7 @@ namespace ts {
}
}
/* @internal */
export function newLineKindToString(kind: NewLineKind): string {
switch (kind) {
case NewLineKind.CarriageReturnLineFeed:

View File

@ -2109,6 +2109,7 @@ namespace ts {
errors: Diagnostic[];
}
/* @internal */
export interface CommandLineOption {
name: string;
type: string | Map<number>; // "string", "number", "boolean", or an object literal mapping named values to actual values