refactor(gen): CallGenCall 精简重复注释块(1502→1495 行,恢复 ≤1500)
HandlesExprCall 拆分追加 import 后 CallGenCall 达 1502 行, 删除 _kwarg_name_matches 前的重复注释块(方法与逻辑不变)
This commit is contained in:
1 parent
f5c4be3995
commit
3ff5769290
1 file changed
-7
@@ -1478,13 +1478,6 @@ class CallGenCall(CallGenBase.CallGenBase):
|
||||
# 函数参数名在 LLVM IR 中带 % 前缀(如 "%a"),关键字参数名无前缀(如 "a")
|
||||
# 跳过 % 前缀后逐字符比较
|
||||
# ============================================================
|
||||
|
||||
# ============================================================
|
||||
# _kwarg_name_matches — 检查关键字参数名是否匹配函数参数名
|
||||
#
|
||||
# 函数参数名在 LLVM IR 中带 % 前缀(如 "%a"),关键字参数名无前缀(如 "a")
|
||||
# 跳过 % 前缀后逐字符比较
|
||||
# ============================================================
|
||||
def _kwarg_name_matches(self, kw_arg: str,
|
||||
param_name: str) -> int:
|
||||
"""检查关键字参数名 kw_arg 是否匹配参数名 param_name(跳过 % 前缀)"""
|
||||
|
||||
Reference in new issue
Block a user