修正了 import 路径,除 Gen
This commit is contained in:
1 parent
d0736b4978
commit
f8bca62eb0
18 files changed
+92
-92
No files matched your search
@@ -15,7 +15,7 @@ import lib.core.VLogger as VLogger
|
||||
import lib.core.Handles.HandlesBase as HandlesBase
|
||||
import lib.core.Handles.HandlesTranslator as HT
|
||||
import lib.core.Handles.HandlesExpr as HandlesExpr
|
||||
import lib.core.StubMerger as StubMerger
|
||||
import lib.Stub.StubMerger as StubMerger
|
||||
|
||||
|
||||
import lib.core.Handles.HandlesExprCall as HandlesExprCall
|
||||
|
||||
@@ -21,7 +21,7 @@ import w32.fileio as fileio
|
||||
import lib.core.Handles.HandlesBase as HandlesBase
|
||||
import lib.core.Handles.HandlesTranslator as HT
|
||||
import lib.core.Handles.HandlesExprCall as HandlesExprCall
|
||||
import lib.core.StubMerger as StubMerger
|
||||
import lib.Stub.StubMerger as StubMerger
|
||||
import lib.core.VLogger as VLogger
|
||||
import lib.Projectrans.Config as Config
|
||||
import lib.Projectrans.Utils as Utils
|
||||
|
||||
@@ -14,7 +14,7 @@ import lib.core.VLogger as VLogger
|
||||
import lib.core.Handles.HandlesExprCall as HandlesExprCall
|
||||
import lib.core.Handles.HandlesExpr as HandlesExpr
|
||||
import lib.Projectrans.Config as Config
|
||||
import lib.core.StubMergerBuild as StubMergerBuild
|
||||
import lib.Stub.StubMerger.StubMergerBuild as StubMergerBuild
|
||||
import lib.core.Handles.ExprCallTable as ExprCallTable
|
||||
import lib.core.Handles.HandlesTranslator as HT
|
||||
import lib.core.Gen.Generator as Generator
|
||||
@@ -532,7 +532,6 @@ class Translator:
|
||||
# 将函数 declare 声明注入到当前模块,解决跨模块函数调用找不到函数的问题
|
||||
# 严格保证 declare_only == 0 时才注入(避免 Phase A-pre-inc 死锁)
|
||||
if self._imported_modules is not None:
|
||||
import lib.core.StubMerger as StubMerger
|
||||
# 错误上下文帧:当前模块触发依赖 stub 加载的 import 位置
|
||||
GenApi.push_trace(GenApi.get_current_file(), cur_imp_lineno)
|
||||
StubMergerBuild.LoadDepVpiIntoModule(
|
||||
|
||||
Reference in new issue
Block a user