fix(type): 内建短名可直接参与表达式类型转换
builtins 别名表优先于 builtins.vp 扫描,sizet(TB_VPCALL_MAX) 等调用恢复;stub 类型映射仅保留 CPtr 系列到 rawptr。
This commit is contained in:
1 parent
94557ad2c0
commit
1f44d4291c
2 files changed
+5
-18
No files matched your search
@@ -452,6 +452,11 @@ class TypeAnnotationResolver:
|
||||
不再静默退化为 %"{mod}.{名}"* 假结构体(下游仅报 "Type of #N arg
|
||||
mismatch: %…* != …",无法归因到 typedef 声明)。
|
||||
"""
|
||||
AliasClass: type | None = TypeSystem.BUILTIN_TYPE_ALIASES.get(TypeName)
|
||||
if AliasClass is not None:
|
||||
Info: CTypeInfo = CTypeInfo()
|
||||
Info.BaseType = AliasClass
|
||||
return Info
|
||||
if not TypeName:
|
||||
return None
|
||||
if TypeName == cls._BUILTIN_ROWPTR_NAME:
|
||||
|
||||
Reference in new issue
Block a user