The logic for unparsing is getting quite confusing and the state of the unparse gets distributed across many objects, and it's confusing and hard to make changes.
A more elegant solution could be to create an unparser class based on the visitor pattern.
The logic for unparsing is getting quite confusing and the state of the unparse gets distributed across many objects, and it's confusing and hard to make changes.
A more elegant solution could be to create an unparser class based on the visitor pattern.