zspitz / ExpressionTreeToString

String representations of expression trees + library of expression tree objects
MIT License
151 stars 12 forks source link

Incorporate flow logic from DebugView into WriterBase #52

Open zspitz opened 4 years ago

zspitz commented 4 years ago

DebugView has a mechanism for tracking text flow and wrapping long lines.

It would be nice to incorporate this into WriterVisitorBase, so other writer/visitors could use it as well.

zspitz commented 4 years ago

This would have an additional benefit. Currently, for the DebugViewWriterVisitor, the path span for a given node includes the whitespace triggered by flow before the node. If WriterVisitorBase was aware of the flow, it could start the path span at the first actual write of the node, ignoring the flow-triggered whitespace.