fhdl/namer: Add support for STORE_DEREF opcode
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
parent
9f05e7235d
commit
2b3f00cbc1
|
@ -16,6 +16,9 @@ def get_var_name(frame):
|
|||
elif opc == "STORE_FAST":
|
||||
name_index = int(code.co_code[index+1])
|
||||
return code.co_varnames[name_index]
|
||||
elif opc == "STORE_DEREF":
|
||||
name_index = int(code.co_code[index+1])
|
||||
return code.co_cellvars[name_index]
|
||||
elif opc == "LOAD_GLOBAL" or opc == "LOAD_ATTR" or opc == "LOAD_FAST":
|
||||
index += 3
|
||||
elif opc == "DUP_TOP":
|
||||
|
|
Loading…
Reference in New Issue