Skip to content

Emit leading comments for '}' of function/constructor block #509

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

Merged
merged 2 commits into from
Aug 22, 2014

Conversation

sheetalkamat
Copy link
Member

No description provided.

@CyrusNajmabadi
Copy link
Contributor

I assume this will be done for all blocks in a later checkin?

@sheetalkamat
Copy link
Member Author

old compiler did this only for function/constructor block so I did this only for function/constructor blocks

@mhegazy
Copy link
Contributor

mhegazy commented Aug 22, 2014

👍

@CyrusNajmabadi
Copy link
Contributor

we should not be following hte old compiler. It was adhoc and did things incorrectly. We should be preserving as much of the comment structure that we can. The only times when we really might not preserve a comment are when we truly don't know how to. For example, if the comment is in code that we aren't even emitting (i.e. like inside an interface).

sheetalkamat added a commit that referenced this pull request Aug 22, 2014
Emit leading comments for '}' of function/constructor block
@sheetalkamat sheetalkamat merged commit e6cd3e1 into master Aug 22, 2014
@sheetalkamat sheetalkamat deleted the emitLeadingCommentsForCurly branch August 22, 2014 23:01
@sheetalkamat
Copy link
Member Author

Will file separate issue for handling such cases, but right now we should first get to parity of old compiler.

@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants