jsdoced.js
jsdoced.js copied to clipboard
port to es6 ?
- es6 is coming, jsdoced.js should be ready for that
what does this changes
- es6 provides new way to write functions.
- i talked to benjamn and he told me all was there already to parse and write es6
- https://github.com/benjamn/recast/issues/154
- i think this is all that should change for es6
- using
recast.printshould rewrite the whole thing without issue
here is how to intercept arrow funciton in recast. looks at the rest of the processing to see how to process them. be sure to share as much code as possible with the es5 code
recast.visit(ast, {
//
visitArrowFunctionExpression: function(path){
console.log('Found arrow function')
this.traverse(path)
},