On Tue, Aug 28, 2012 at 5:33 AM, Scott Taylor <[email protected]> wrote:
> Very cool.  What comments in the AST are you going to preserve?

The new AST is able to store all comments, and the compressor and code
generator will be able to keep most of them.  However, I suspect that
in general people will only need to store copyright notices, and those
usually start with some special marker like "/*!".  It'll be easy to
add a configuration option to keep such comments, as long as they're
not in code that's going to be dropped (for example dead code, like,
code that follows a return, throw, break or continue statement).

Cheers,
-- 
Mihai Bazon,
http://mihai.bazon.net/blog

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to