Skip to content

[Transforms] should emit comment in namespace only once even though namespace is a identifierPath #10741

Closed
@yuit

Description

@yuit
namespace hello.hi.world
{
    function foo() {}

    // TODO, blah
}

emitted as

var hello;
(function (hello) {
    var hi;
    (function (hi) {
        var world;
        (function (world) {
            function foo() { }
            // TODO, blah
        })(world = hi.world || (hi.world = {}));
        // TODO, blah
    })(hi = hello.hi || (hello.hi = {}));
    // TODO, blah
})(hello || (hello = {}));

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: TransformsRelates to the public transform APIFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions