This project is read-only.

Please add support for @license and @preserve

Topics: Language Specification
Oct 3, 2012 at 6:31 PM
Please consider adding support to dart2js for preserving Dart comments in the generated JavaScript.  

I was thinking along the lines of what the closure compiler does for @license and @preserve: 

For example:

 * @preserve Copyright 2009 SomeThirdParty.
 * Here is the full license text and copyright
 * notice for this file. Note that the notice can span several
 * lines and is only terminated by the closing star and slash:

Tells the compiler to insert the associated comment before the compiled code for the marked file. This annotation allows important notices (such as legal licenses or copyright text) to survive compilation unchanged. Line breaks are preserved.

Thank you!
(I filed a similar request for Dart, see
Oct 3, 2012 at 10:25 PM

Thanks for the feedback.

There is a way to preserve comments (using the -c flag).  A good way to get more specific control would be to file a feature request in the change tracker with the abilities you would like it to have (like preserving only certain comments).