michaelficarra / CoffeeScriptRedux

:sweat: rewrite of the CoffeeScript compiler with proper compiler design principles and a focus on robustness and extensibility

Home Page:https://michaelficarra.github.com/CoffeeScriptRedux/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JS nodes produced by compile() should have `source` in their `loc`

RReverser opened this issue · comments

JavaScript AST nodes produced by CoffeeScript.compile(csAST, options) should contain inputSource value in loc.source according to Mozilla Parser API spec so it would be safe to pass such AST to further transformers without breaking linkage to original files (which needs to be preserved for source map generation on final step).

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/2404867-js-nodes-produced-by-compile-should-have-source-in-their-loc?utm_campaign=plugin&utm_content=tracker%2F33145&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F33145&utm_medium=issues&utm_source=github).

@michaelficarra Could you please have a look at this? Seems to be trivial thing to add, but I can't compile CoffeeScriptRedux on Windows machine :(