镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[Transforms] Trailing comments for a namespace and enums are emitted next to var declaration #8045

Description

Expected:

var m2;
(function (m2) {
    var m3;
    (function (m3) {
        /** Exported class comment*/
        var c = (function () {
            function c() {
            }
            return c;
        }());
        m3.c = c;
    })(m3 = m2.m3 || (m2.m3 = {}));
})(m2 || (m2 = {})); /* trailing dotted module comment*/

Actual:

var m2; /* trailing dotted module comment*/
(function (m2) {
    var m3;
    (function (m3) {
        /** Exported class comment*/
        var c = (function () {
            function c() {
            }
            return c;
        }());
        m3.c = c;
    })(m3 = m2.m3 || (m2.m3 = {}));
})(m2 || (m2 = {}));

Failed tests:

  • commentsModules.ts
  • commentsEnums.ts

Activity

  1. changed the title [-][Transforms] Trailing comments for a namespace are emitted next to var declaration[/-] [+][Transforms] Trailing comments for a namespace and enums are emitted next to var declaration[/+] on Apr 12, 2016
  2. added 2 commits that reference this issue on Apr 13, 2016
    7b07d3c
    27adb8c
  3. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

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

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions