When using withUASTEditor the user only needs to provide the raw UAST, and internally the lib takes care of transforming it to the internal flat UAST, and apply nice defaults for expandRootIds.
The current usage of UASTViewer requires the user to perform the transformation to the internal flat structure, and taking care of the node expansion, otherwise all nodes are collapsed by default.
Ideally UASTViewer should be just as easy as withUASTEditor.
One option already discussed is to rename the current UASTViewer to FlatTreeRenderer, and create a new UASTViewer that performs the same default raw UAST transformation as withUASTEditor.
When using
withUASTEditor
the user only needs to provide the raw UAST, and internally the lib takes care of transforming it to the internal flat UAST, and apply nice defaults forexpandRootIds
.The current usage of
UASTViewer
requires the user to perform the transformation to the internal flat structure, and taking care of the node expansion, otherwise all nodes are collapsed by default.Ideally
UASTViewer
should be just as easy aswithUASTEditor
.One option already discussed is to rename the current
UASTViewer
toFlatTreeRenderer
, and create a newUASTViewer
that performs the same default raw UAST transformation aswithUASTEditor
.