|
PCART
v1.4
Automated Repair of Python API Parameter Compatibility Issues
|
Get all assign nodes from a lib source file 源码Assign节点遍历器 More...
Public Member Functions | |
| def | __init__ (self) |
| Initialize the assign node container 初始化赋值节点容器 More... | |
| def | get_target_call (self) |
| Return the assign target-to-value dictionary 返回赋值目标到值的字典 More... | |
| def | visit_Assign (self, node) |
| Visit an Assign node and record Call-type values 访问Assign节点,记录Call类型的值 More... | |
Get all assign nodes from a lib source file 源码Assign节点遍历器
For an assign node, extract the values before (the variable name) and after (the value expression) the assignment operator 对于Assign节点,只需要关注等号左右两边的名字
Definition at line 136 of file extractDef.py.
| def __init__ | ( | self | ) |
Initialize the assign node container 初始化赋值节点容器
Definition at line 139 of file extractDef.py.
| def get_target_call | ( | self | ) |
Return the assign target-to-value dictionary 返回赋值目标到值的字典
Definition at line 145 of file extractDef.py.
| def visit_Assign | ( | self, | |
| node | |||
| ) |
Visit an Assign node and record Call-type values 访问Assign节点,记录Call类型的值
| node | The Assign AST node |
Definition at line 152 of file extractDef.py.