Skip to content

Tree printer is overly coupled #76

Description

@MarcellPerger1

The common.tree_printer is coupled to all the things it needs to print - so imports CST, AST, types, the whole nine yards. We should separate it so that the printing logic something is on the class itself. Though then then class will need to know some internals of the printer (and if printer changes, all the classes will have to change). Also, there will need to be some way to share stuff like _write_seq. Maybe do something inspired by Rust's std::fmt::Display trait?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-GeneralArea: General stuff (isn't in any specfic area)T-refactorRefactor

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions