Add getEmitHost to program

Issue:https://gitee.com/openharmony/developtools_ace_ets2bundle/issues/IANF9F
Test:npm run test

Signed-off-by: xiaopeiyang <xiaopeiyang1@huawei.com>
Change-Id: Ib70d1b3268090535d69e4be642ba88ab737ba6df
This commit is contained in:
xiaopeiyang 2024-09-05 17:01:30 +08:00
parent 9f87056417
commit 0a0fbe239a
13 changed files with 20 additions and 7 deletions

View File

@ -102552,7 +102552,8 @@ var ts;
getJsDocNodeCheckedConfig: host.getJsDocNodeCheckedConfig,
getJsDocNodeConditionCheckedResult: host.getJsDocNodeConditionCheckedResult,
getFileCheckedModuleInfo: host.getFileCheckedModuleInfo,
releaseTypeChecker: function () { typeChecker = undefined; linterTypeChecker = undefined; }
releaseTypeChecker: function () { typeChecker = undefined; linterTypeChecker = undefined; },
getEmitHost: getEmitHost
};
onProgramCreateComplete();
fileProcessingDiagnostics === null || fileProcessingDiagnostics === void 0 ? void 0 : fileProcessingDiagnostics.forEach(function (diagnostic) {

View File

@ -123521,7 +123521,8 @@ var ts;
getJsDocNodeCheckedConfig: host.getJsDocNodeCheckedConfig,
getJsDocNodeConditionCheckedResult: host.getJsDocNodeConditionCheckedResult,
getFileCheckedModuleInfo: host.getFileCheckedModuleInfo,
releaseTypeChecker: function () { typeChecker = undefined; linterTypeChecker = undefined; }
releaseTypeChecker: function () { typeChecker = undefined; linterTypeChecker = undefined; },
getEmitHost: getEmitHost
};
onProgramCreateComplete();
// Add file processingDiagnostics

View File

@ -2353,6 +2353,7 @@ declare namespace ts {
* Release typeChecker & linterTypeChecker
*/
releaseTypeChecker(): void;
getEmitHost(writeFileCallback?: WriteFileCallback): EmitHost;
}
export type RedirectTargetsMap = ReadonlyESMap<Path, readonly string[]>;
export interface ResolvedProjectReference {

View File

@ -123520,7 +123520,8 @@ var ts;
getJsDocNodeCheckedConfig: host.getJsDocNodeCheckedConfig,
getJsDocNodeConditionCheckedResult: host.getJsDocNodeConditionCheckedResult,
getFileCheckedModuleInfo: host.getFileCheckedModuleInfo,
releaseTypeChecker: function () { typeChecker = undefined; linterTypeChecker = undefined; }
releaseTypeChecker: function () { typeChecker = undefined; linterTypeChecker = undefined; },
getEmitHost: getEmitHost
};
onProgramCreateComplete();
// Add file processingDiagnostics

1
lib/typescript.d.ts vendored
View File

@ -2353,6 +2353,7 @@ declare namespace ts {
* Release typeChecker & linterTypeChecker
*/
releaseTypeChecker(): void;
getEmitHost(writeFileCallback?: WriteFileCallback): EmitHost;
}
export type RedirectTargetsMap = ReadonlyESMap<Path, readonly string[]>;
export interface ResolvedProjectReference {

View File

@ -123511,7 +123511,8 @@ var ts;
getJsDocNodeCheckedConfig: host.getJsDocNodeCheckedConfig,
getJsDocNodeConditionCheckedResult: host.getJsDocNodeConditionCheckedResult,
getFileCheckedModuleInfo: host.getFileCheckedModuleInfo,
releaseTypeChecker: function () { typeChecker = undefined; linterTypeChecker = undefined; }
releaseTypeChecker: function () { typeChecker = undefined; linterTypeChecker = undefined; },
getEmitHost: getEmitHost
};
onProgramCreateComplete();
// Add file processingDiagnostics

View File

@ -2353,6 +2353,7 @@ declare namespace ts {
* Release typeChecker & linterTypeChecker
*/
releaseTypeChecker(): void;
getEmitHost(writeFileCallback?: WriteFileCallback): EmitHost;
}
export type RedirectTargetsMap = ReadonlyESMap<Path, readonly string[]>;
export interface ResolvedProjectReference {

View File

@ -123511,7 +123511,8 @@ var ts;
getJsDocNodeCheckedConfig: host.getJsDocNodeCheckedConfig,
getJsDocNodeConditionCheckedResult: host.getJsDocNodeConditionCheckedResult,
getFileCheckedModuleInfo: host.getFileCheckedModuleInfo,
releaseTypeChecker: function () { typeChecker = undefined; linterTypeChecker = undefined; }
releaseTypeChecker: function () { typeChecker = undefined; linterTypeChecker = undefined; },
getEmitHost: getEmitHost
};
onProgramCreateComplete();
// Add file processingDiagnostics

View File

@ -123501,7 +123501,8 @@ var ts;
getJsDocNodeCheckedConfig: host.getJsDocNodeCheckedConfig,
getJsDocNodeConditionCheckedResult: host.getJsDocNodeConditionCheckedResult,
getFileCheckedModuleInfo: host.getFileCheckedModuleInfo,
releaseTypeChecker: function () { typeChecker = undefined; linterTypeChecker = undefined; }
releaseTypeChecker: function () { typeChecker = undefined; linterTypeChecker = undefined; },
getEmitHost: getEmitHost
};
onProgramCreateComplete();
// Add file processingDiagnostics

View File

@ -1364,7 +1364,8 @@ namespace ts {
getJsDocNodeCheckedConfig: host.getJsDocNodeCheckedConfig,
getJsDocNodeConditionCheckedResult: host. getJsDocNodeConditionCheckedResult,
getFileCheckedModuleInfo: host.getFileCheckedModuleInfo,
releaseTypeChecker: () => { typeChecker = undefined; linterTypeChecker = undefined; }
releaseTypeChecker: () => { typeChecker = undefined; linterTypeChecker = undefined; },
getEmitHost
};
onProgramCreateComplete();

View File

@ -4586,6 +4586,7 @@ namespace ts {
* Release typeChecker & linterTypeChecker
*/
releaseTypeChecker(): void;
getEmitHost(writeFileCallback?: WriteFileCallback): EmitHost;
}
/*@internal*/

View File

@ -2353,6 +2353,7 @@ declare namespace ts {
* Release typeChecker & linterTypeChecker
*/
releaseTypeChecker(): void;
getEmitHost(writeFileCallback?: WriteFileCallback): EmitHost;
}
export type RedirectTargetsMap = ReadonlyESMap<Path, readonly string[]>;
export interface ResolvedProjectReference {

View File

@ -2353,6 +2353,7 @@ declare namespace ts {
* Release typeChecker & linterTypeChecker
*/
releaseTypeChecker(): void;
getEmitHost(writeFileCallback?: WriteFileCallback): EmitHost;
}
export type RedirectTargetsMap = ReadonlyESMap<Path, readonly string[]>;
export interface ResolvedProjectReference {