-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Needs More InfoThe issue still hasn't been fully clarifiedThe issue still hasn't been fully clarifiedSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
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.
tkrotoff
Metadata
Metadata
Assignees
Labels
Needs More InfoThe issue still hasn't been fully clarifiedThe issue still hasn't been fully clarifiedSuggestionAn idea for TypeScriptAn idea for TypeScript