mirror of
https://gitee.com/openharmony/third_party_typescript
synced 2025-03-09 00:41:48 +00:00
!580 fix codecheck problems
Some checks failed
Some checks failed
Merge pull request !580 from zju_wyx/0122-codecheck
This commit is contained in:
commit
0bf4a18c17
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user