Skip to content

Fix how AST nodes are identified uniquely #267

@JulianKemmerer

Description

@JulianKemmerer

Code has hash extensions added to it of the form

str_to_hash = str(
    c_ast_node
)  # Doesnt actually identify nodes!
if TEMP_HACKY_C_AST_NODE_ID:
    str_to_hash = str(id(c_ast_node))

where currently the hack of using python object id is used instead of being able to identify the node actually by its position in AST

makes hash codes change unnecessarily when C code has not changed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions