Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
sheetalkamat merged 2 commits into
mastermicrosoft/TypeScript:masterfrom
emitLeadingCommentsForCurlymicrosoft/TypeScript:emitLeadingCommentsForCurlyCopy head branch name to clipboard
Aug 22, 2014
Merged

Emit leading comments for '}' of function/constructor block#509
sheetalkamat merged 2 commits into
mastermicrosoft/TypeScript:masterfrom
emitLeadingCommentsForCurlymicrosoft/TypeScript:emitLeadingCommentsForCurlyCopy head branch name to clipboard

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

mhegazy commented Aug 22, 2014

Copy link
Copy Markdown
Contributor

👍

@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.