-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
In order to support Pretty Printers, the CST should allow access to whitespace. The whitespace does not have to be explicitly materialized in the CST but could also be re-constructed after the fact.
Here are two suggestions:
- CST nodes support the method
skippedSpaces
that returns the spaces skipped before the node was applied. There are two options how the spaces could be returned:- The spaces are returned as a simple string
- The spaces are returned as a spaces node
- CST nodes support the method
childrenIncludingSpaces
that returns a collection of all parsed nodes including the space nodes in between
Any thoughts from your side @Paula-Kli?
Metadata
Metadata
Assignees
Labels
No labels