Skip to content

VarRenamer Bugs #4

Description

@MrBlack0220

Hi,thanks for the amazing work!
When I try to rename variable name with recode-main/natgen/transformations/var_renaming_transformation.py,I find when extracting variable name,some function name can be extracted even after flitterng withget_not_var_ptype_var_names(self, root, code_string) method:
python code = """
a = input()
l = []
l.append(a)
b = " ".join(l)
"""
var_names = ['a', 'join', 'l', 'b', 'append']
Function name append and join will be extracted.
Someting wrong here?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions