!580 fix codecheck problems
Some checks failed
CI / build (10.x) (push) Has been cancelled
CI / build (12.x) (push) Has been cancelled
CI / build (14.x) (push) Has been cancelled
Code scanning - action / CodeQL-Build (push) Has been cancelled
Update package-lock.json / build (push) Has been cancelled

Merge pull request !580 from zju_wyx/0122-codecheck
This commit is contained in:
openharmony_ci 2025-01-22 12:13:23 +00:00 committed by Gitee
commit 0bf4a18c17
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
5 changed files with 10 additions and 5 deletions

View File

@ -173649,7 +173649,8 @@ var ts;
}
function getOrCreateSourceFileByPath(fileName, path, languageVersionOrOptions, _onError, shouldCreateNewSourceFile) {
// There was originally an assert here to ensure that getOrCreateSourceFileByPath was called in typical CompilerHost lifetime.
// We removed this assert because currently this function may also be called outside of the typical CompilerHost lifetime, in which case the compilerhost may be undefined.
// We removed this assert because currently this function may also be called outside of the typical CompilerHost lifetime,
// in which case the compilerhost may be undefined.
// The program is asking for this file, check first if the host can locate it.
// If the host can not locate the file, then it does not exist. return undefined
// to the program to allow reporting of errors for missing files.

View File

@ -174068,7 +174068,8 @@ var ts;
}
function getOrCreateSourceFileByPath(fileName, path, languageVersionOrOptions, _onError, shouldCreateNewSourceFile) {
// There was originally an assert here to ensure that getOrCreateSourceFileByPath was called in typical CompilerHost lifetime.
// We removed this assert because currently this function may also be called outside of the typical CompilerHost lifetime, in which case the compilerhost may be undefined.
// We removed this assert because currently this function may also be called outside of the typical CompilerHost lifetime,
// in which case the compilerhost may be undefined.
// The program is asking for this file, check first if the host can locate it.
// If the host can not locate the file, then it does not exist. return undefined
// to the program to allow reporting of errors for missing files.

View File

@ -174059,7 +174059,8 @@ var ts;
}
function getOrCreateSourceFileByPath(fileName, path, languageVersionOrOptions, _onError, shouldCreateNewSourceFile) {
// There was originally an assert here to ensure that getOrCreateSourceFileByPath was called in typical CompilerHost lifetime.
// We removed this assert because currently this function may also be called outside of the typical CompilerHost lifetime, in which case the compilerhost may be undefined.
// We removed this assert because currently this function may also be called outside of the typical CompilerHost lifetime,
// in which case the compilerhost may be undefined.
// The program is asking for this file, check first if the host can locate it.
// If the host can not locate the file, then it does not exist. return undefined
// to the program to allow reporting of errors for missing files.

View File

@ -174059,7 +174059,8 @@ var ts;
}
function getOrCreateSourceFileByPath(fileName, path, languageVersionOrOptions, _onError, shouldCreateNewSourceFile) {
// There was originally an assert here to ensure that getOrCreateSourceFileByPath was called in typical CompilerHost lifetime.
// We removed this assert because currently this function may also be called outside of the typical CompilerHost lifetime, in which case the compilerhost may be undefined.
// We removed this assert because currently this function may also be called outside of the typical CompilerHost lifetime,
// in which case the compilerhost may be undefined.
// The program is asking for this file, check first if the host can locate it.
// If the host can not locate the file, then it does not exist. return undefined
// to the program to allow reporting of errors for missing files.

View File

@ -1487,7 +1487,8 @@ namespace ts {
function getOrCreateSourceFileByPath(fileName: string, path: Path, languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions, _onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined {
// There was originally an assert here to ensure that getOrCreateSourceFileByPath was called in typical CompilerHost lifetime.
// We removed this assert because currently this function may also be called outside of the typical CompilerHost lifetime, in which case the compilerhost may be undefined.
// We removed this assert because currently this function may also be called outside of the typical CompilerHost lifetime,
// in which case the compilerhost may be undefined.
// The program is asking for this file, check first if the host can locate it.
// If the host can not locate the file, then it does not exist. return undefined
// to the program to allow reporting of errors for missing files.