cst
cst copied to clipboard
:herb: JavaScript Concrete Syntax Tree
We have a huge amount of classes, we need to publish docs.
Can we output original AST i wonder?
i.e so methods like `selectNodesByType` would be exist on other types of entities. Even though they can be slow, it could be terribly useful.
Right now `StringLiteral` and `NumericLiteral` accept whatever you put inside. `StringLiteral` should only accept `String` token, same about `NumericLiteral`.
Should we implement it as a plugin somehow?
See https://github.com/jscs-dev/node-jscs/issues/2246 https://github.com/jscs-dev/node-jscs/issues/2225
Are we also going to implement es6+ stuff? Maybe stage > 2? https://github.com/tc39/ecma262#current-proposals ### Candidate - [x] Stage 3: ExponentiationOperator #46 - [x] Stage 3: Async/AwaitExpression #49 ### Draft -...
See https://github.com/jscs-dev/node-jscs/issues/2141 https://github.com/jscs-dev/node-jscs/issues/2147
A lot of people might understand idea better with hands on example (https://twitter.com/slicknet/status/613412786442350592). Maybe even replacing whole `Let's see an example:` of the ``` js x = 0; if (x)...