Skip to content

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

Merged
sheetalkamat merged 2 commits into
masterfrom
emitLeadingCommentsForCurly
Aug 22, 2014
Merged

Emit leading comments for '}' of function/constructor block#509
sheetalkamat merged 2 commits into
masterfrom
emitLeadingCommentsForCurly

Conversation

@sheetalkamat
Copy link
Copy Markdown
Member

No description provided.

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

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

@sheetalkamat
Copy link
Copy Markdown
Member Author

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

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Aug 22, 2014

👍

@CyrusNajmabadi
Copy link
Copy Markdown
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
Copy Markdown
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