|
4 tháng trước cách đây | |
---|---|---|
.. | ||
README.md | 10 tháng trước cách đây | |
package.json | 10 tháng trước cách đây | |
test.js | 4 tháng trước cách đây |
This would be really useful for refactoring tools. I also want automatic comments to be placed when certain features are used, such as the Sequence class, since its usefulness won't be immediately apparent where it appears in the source code.
I turns out the state of affairs with respect to generating a CST for javascript... kind of sucks. I hope that further discussion on the issue I linked renders the previous statement ironic.
The options I see are:
tokens: true
option is set.I'm going to start with option #3. It's very disappointing that I don't have time to do #4, because I don't very much like solutions #1 and #2; I like my CSTs to be more cohesive - a pyramid of meaning - rather than lexer output dumped at the end of an AST.