Skip to content

Printer: Move IdentityPrinter implementation out of Printer#435

Merged
marcoroth merged 1 commit intomainfrom
printer-move-identity-printer
Aug 25, 2025
Merged

Printer: Move IdentityPrinter implementation out of Printer#435
marcoroth merged 1 commit intomainfrom
printer-move-identity-printer

Conversation

@marcoroth
Copy link
Owner

This pull request moves the concrete implantation of the IdentityPrinter into the IdentityPrinter class, so that the abstract Printer super class only handles the visiting/printing.

The idea is that you should overwrite the methods for the nodes you want to handle in your Printer. If you don't overwrite anything it shouldn't print anything.

If you want to just fallback to the default, you can extend from the IdentityPrinter class and then overwrite the methods you want to handle differently.

@marcoroth marcoroth merged commit 5ae918b into main Aug 25, 2025
7 checks passed
@marcoroth marcoroth deleted the printer-move-identity-printer branch August 25, 2025 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant