dsherret/ts-ast-viewer

View after one or more transformers applied

Opened this issue · 0 comments

Is it feasible to add an option that applies one or more of the built-in transformers before visualizing the AST? This would be helpful for transformer authors so they can see what the AST will look like at various phases in the transformation pipeline.

I suppose the symbol view will get more complex because symbols are associated with the original parse tree node, not the synthetic nodes. I'm not sure if the lower-left ts.create* view will be compatible; I don't know if a transformed tree includes nodes that cannot be easily synthesized.