fix(ast): re-export attribute_get_attr 修复跨模块返回类型解析失败
TPV TypeGenCType/TypeGenResolve 以 ast.attribute_get_attr(at) 调用,但 ast 包 from .exprs import (...) 未 re-export 该函数(定义在 ast.exprs)→ 跨模块 函数返回类型解析在 ast 包 text.ll 找不到定义 → fail-fast "返回类型无法 精确获取"。按既有 re-export 惯例(如 get_parse_err_line)补入导出列表。
This commit is contained in:
1 parent
267e9881b4
commit
5cda173a5e
1 file changed
+4
@@ -37,6 +37,10 @@ from .exprs import (
|
|||||||
Constant, NamedExpr, Attribute, Subscript, Starred, Name,
|
Constant, NamedExpr, Attribute, Subscript, Starred, Name,
|
||||||
List, Tuple, Slice,
|
List, Tuple, Slice,
|
||||||
Call, Compare, OpNode,
|
Call, Compare, OpNode,
|
||||||
|
# 属性访问辅助函数(TPV TypeGen 以 ast.attribute_get_attr 调用;
|
||||||
|
# 未 re-export 时跨模块函数返回类型解析在 ast 包 text.ll 找不到
|
||||||
|
# 定义(定义在 ast.exprs)→ fail-fast "返回类型无法精确获取")
|
||||||
|
attribute_get_attr,
|
||||||
)
|
)
|
||||||
# Auxiliary Nodes
|
# Auxiliary Nodes
|
||||||
from .astaux import (
|
from .astaux import (
|
||||||
|
|||||||
Reference in new issue
Block a user