fix(ast): 补齐 exprs 字段访问辅助函数 re-export

5cda173 只补了 attribute_get_attr,TypeGen 还以 ast.<helper> 调用
attribute_get_value/name_get_id/constant_get_str_val/binop_get_left/
binop_get_right(均定义在 ast.exprs)→ 同样触发跨模块返回类型解析
fail-fast。一次性全部补入 from .exprs import 导出列表。
This commit is contained in:
TermiNexus committed 2026-08-19 05:26:26 +08:00
1 parent 5cda173a5e
commit 915054495f
1 file changed
+6 -4
+6 -4
View File
@@ -37,10 +37,12 @@ from .exprs import (
Constant, NamedExpr, Attribute, Subscript, Starred, Name,
List, Tuple, Slice,
Call, Compare, OpNode,
# 属性访问辅助函数(TPV TypeGen 以 ast.attribute_get_attr 调用;
# 未 re-export 时跨模块函数返回类型解析在 ast 包 text.ll 找不到
# 定义(定义在 ast.exprs)→ fail-fast "返回类型无法精确获取")
attribute_get_attr,
# 字段访问辅助函数(TPV TypeGen 以 ast.<helper> 跨模块调用;未 re-export
# 时跨模块函数返回类型解析在 ast 包 text.ll 找不到定义(定义在 ast.exprs)
# → fail-fast "返回类型无法精确获取",如 attribute_get_attr/attribute_get_value)
name_get_id, constant_get_str_val,
binop_get_left, binop_get_right,
attribute_get_attr, attribute_get_value,
)
# Auxiliary Nodes
from .astaux import (