fix(generic): 恢复泛型特化发射主路径

补回 _specialize_generic_class 的 deepcopy/改名/字段与方法 T 替换/_EmitClassLlvm 发射逻辑,list[...].__len__ 与 get 正常生成;源码不再支持 CPtr[...],统一写 T*;编译错误只由主进程输出一次。
This commit is contained in:
TermiNexus committed 2026-10-18 19:50:32 +08:00
1 parent 09553401e7
commit 369afb5011
13 files changed
+413 -95

No files matched your search

+6
View File
@@ -32,6 +32,7 @@ if __name__ == '__main__':
import sys as _sys
import time as _time
from lib.Projectrans.Phase2Translator import GetProfRunDir as _GetProfRunDir
from lib.Projectrans.Phase2Translator import ReportedCompileError as _ReportedCompileError
_main_prof: _cProfile.Profile = _cProfile.Profile()
_main_prof.enable()
@@ -39,6 +40,11 @@ if __name__ == '__main__':
try:
main()
_timing_status: str = '成功'
except _ReportedCompileError:
# 完整错误(含源码定位)已由主进程打印过一次:这里只置失败并退出,
# 不再重复输出同一错误。
_timing_status = '失败'
raise SystemExit(1)
except (TypeError, SyntaxError) as _e:
_timing_status = '失败'
import re as _re