You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It has been requested to supply a syntax tree in issues #438 and #254, in which @CyrusNajmabadi has rightly asked what such a syntax tree would be used for. To answer that question, I'm hoping that I can have access to not just an abstract syntax tree (AST), but more of a concrete syntax tree (CST) for code formatting without throwing away any original code (e.g., comments inside function arguments).
Concerning JavaScript, the need for a CST has been discussed at getify/concrete-syntax-tree. I'm hoping that any and all efforts to expose a syntax tree would take into account these needs and issues. Ideally, the AST would be generated from the CST or, at least, you could ask for whichever one in which you are interested.
The text was updated successfully, but these errors were encountered:
I posted this issue so long ago. Since then, the industry standard appears to be running Prettier as a separate tool for formatting. Still, there are more reasons to desire a CST, but I really don't see this issue going anywhere and I don't want it to contribute to the growing number of issues on this repo, so I'm closing it for now.
It has been requested to supply a syntax tree in issues #438 and #254, in which @CyrusNajmabadi has rightly asked what such a syntax tree would be used for. To answer that question, I'm hoping that I can have access to not just an abstract syntax tree (AST), but more of a concrete syntax tree (CST) for code formatting without throwing away any original code (e.g., comments inside function arguments).
Concerning JavaScript, the need for a CST has been discussed at getify/concrete-syntax-tree. I'm hoping that any and all efforts to expose a syntax tree would take into account these needs and issues. Ideally, the AST would be generated from the CST or, at least, you could ask for whichever one in which you are interested.
The text was updated successfully, but these errors were encountered: