-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Trailing trivia removed for some object properties #10385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@RussKie is there a particular reason the comments ( Unfortunately, with current comment emit system, there is no way to retrieve them back see for extra information (https://github.com/Microsoft/TypeScript-wiki/pull/140/files#diff-e6f81a9d8df4fb4d787121a242ea6bf1R1336) |
Yes, absolutely there is a reason :) Imagine a large existing JS codebase which is slowly getting converted to TS. There may be an enum which properties are added over time across different versions:
Thank you for the link, it is insightful. |
UpdateThe issue we were seeing is actually related to comments being dropped if they're above an overriden method, rather than the main entry point, e.g., in the case of:
the comment needs to be above |
@weswigham @sandersn would it be worth me opening a new issue, rather than hijacking this issue; since it seems like a different topic? |
Probably, though @sandersn might already be aware of a more appropriate one. |
#407 is the oldest one, I think. |
TypeScript Version: 1.8.x / Playground
Code
Playground demo
Expected behavior:
All comments preserved
Actual behavior:
comment1
andcomment2
are removedThe text was updated successfully, but these errors were encountered: