Francisco Ryan Tolmasky I
Francisco Ryan Tolmasky I
Are you on aim? I've done a lot research regarding this and it's easier to explain there. Sent from my iPhone On Feb 4, 2012, at 3:15 PM, James [email protected]...
If you look at [SyntaxNode.prototype.message](https://github.com/tolmasky/language/blob/master/lib/parser.js#L280) you will see a way to calculate a lineNumber for a given SyntaxNode. This should probably be factored out into something like SyntaxNode.prototype.lineNumber. After this...
I would certainly still like to do it but I don't think its possible in the way we spoke that night. If I recall correctly, essentially what we wanted was...
I'm right about to head out, but I can give you these quick steps and then expand on them later if its not enough: 1. I've made it such that...
BTW, did you mean to close this?
Hi kkaefer, I have considered this syntax addition (and it has been suggested to me by others as well), and I am not yet 100% convinced we should add it...
Yeah that is certainly an option, either have skippedNodeNames:["WhiteSpace", "SomethingElse", etc] or the other option would be to traverse the tree and manually remove them oneself with something like tree.removeNodesNamed(...)....
I am certainly not familiar with how the generation code works -- but it seems like the "parties" responsible for generating semicolons are the statements. *If this assumption is correct*,...
@nicolo-ribaudo Unfortunately, if I pass in an incomplete tree then I don't get a proper source map out from what I've tried. Hence I need a full "Program" node to...
I'll investigate a bit more and report back -- the source map strangeness arises from passing babel's generated source map onto terser for further processing, so it might not be...