diff --git a/App/lib/core/Gen/StructGenMixin.vp b/App/lib/core/Gen/StructGenMixin.vp index f0bb818..aa61d96 100644 --- a/App/lib/core/Gen/StructGenMixin.vp +++ b/App/lib/core/Gen/StructGenMixin.vp @@ -1304,6 +1304,26 @@ novirtual class StructGenMixin: if struct_ty is None or field_name is None or self.StructTable is None: return None + # [DBG-GEN] 一次性诊断(定位 Generator.FuncGenBase 字段查找失败,用完删除) + if string.strcmp(field_name, "FuncGenBase") == 0: + _dg_ty: str = self._extract_struct_name(struct_ty) + _dg_ty_t: str = "" + if _dg_ty is not None: + _dg_ty_t = _dg_ty + stdio.printf("[DBG-GEN] lookup 'FuncGenBase' struct_ty=%s\n", _dg_ty_t) + _dg_i: int = 0 + while _dg_i < self.StructCount: + _dg_e: GenTypes.StructEntry* = self._get_struct_entry(_dg_i) + if _dg_e is not None and _dg_e.Name is not None: + if string.strstr(_dg_e.Name, "Generator") is not None: + _dg_sh: str = _dg_e.ModuleSha1 + _dg_sh_t: str = "" + if _dg_sh is not None: + _dg_sh_t = _dg_sh + stdio.printf("[DBG-GEN] tbl[%d] name=%s fcount=%d sha1=%s\n", + _dg_i, _dg_e.Name, _dg_e.FieldCount, _dg_sh_t) + _dg_i += 1 + # ============================================================ # 两遍查找策略(跨模块同名类冲突的根本修复): #