Skip to content

Fix 10741: Only emit comment only once in module declaration with identifier pat…#10766

Merged
yuit merged 2 commits into
masterfrom
fix10741_emitCommentOnlyOnce
Sep 16, 2016
Merged

Fix 10741: Only emit comment only once in module declaration with identifier pat…#10766
yuit merged 2 commits into
masterfrom
fix10741_emitCommentOnlyOnce

Conversation

@yuit
Copy link
Copy Markdown
Contributor

@yuit yuit commented Sep 8, 2016

Fix #10741

Comment thread src/compiler/transformers/ts.ts Outdated
// })(world = hi.world || (hi.world = {}));
// })(hi = hello.hi || (hello.hi = {}));
// })(hello || (hello = {}));
// so if the block is a transformed module declaration, turn off the comment emit
Copy link
Copy Markdown
Member

@DanielRosenwasser DanielRosenwasser Sep 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think what you mean to clarify is that you only want to emit on the namespace block body itself, not the containing namespaces.

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Sep 13, 2016

👍

@yuit yuit merged commit 02547fe into master Sep 16, 2016
@yuit yuit deleted the fix10741_emitCommentOnlyOnce branch September 16, 2016 23:30
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 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.

4 participants