Skip to content

Separate SetAttr, SetItem, SetVar in AST #70

@MarcellPerger1

Description

@MarcellPerger1

Maybe separate SetAttr, SetItem, SetVar in AST could be useful (instead of general AstAssign).
There is often completely different functionality for these (e.g. in type checking, code gen).
(Although Python doesn't separate it for a reason?)

  • Decide whether to do this at all
  • Add the classes
  • Update AstGen
  • Update snapshot tests
  • Update typechecker (if done by then)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ASTArea: Abstract Syntax Tree generation (AST)S-Decision-NeededStatus: A decision needs to be made (e.g. how to implement it, refactor or not)T-refactorRefactor

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions