fix(expr): 内建短名类型转换并入 builtins typedef 表
sizet/int8/uint64 等短名在表达式调用中直接命中 BUILTIN_TYPE_ALIASES,不再报 Undefined function。
This commit is contained in:
1 parent
1f44d4291c
commit
e47b5e4a11
1 file changed
+4
-1
@@ -746,7 +746,10 @@ class ExprCallHandle(BaseHandle):
|
||||
_td_diag: str = ''
|
||||
try:
|
||||
from lib.core.TypeAnnotationResolver import TypeAnnotationResolver as _TAR_TD
|
||||
_td_table: dict = _TAR_TD._scan_builtins()['typedefs']
|
||||
_td_table: dict = dict(_TAR_TD._scan_builtins()['typedefs'])
|
||||
for _alias_name, _alias_cls in TypeSystem.BUILTIN_TYPE_ALIASES.items():
|
||||
if _alias_name not in _td_table:
|
||||
_td_table[_alias_name] = _alias_cls.__name__
|
||||
if FuncName not in _td_table:
|
||||
# 典型成因:includes/builtins.vp 未定位到(PROJECT_INCLUDE_DIRS 尚未
|
||||
# 装配)、或声明写法未被文本扫描识别 ⇒ 整表为空/缺项。
|
||||
|
||||
Reference in new issue
Block a user