File: collisionCodeGenModuleWithFunctionChildren.js

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (42 lines) | stat: -rw-r--r-- 724 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//// [collisionCodeGenModuleWithFunctionChildren.ts]
module M {
    export var x = 3;
    function fn(M, p = x) { }
}

module M {
    function fn2() {
        var M;
        var p = x;
    }
}

module M {
    function fn3() {
        function M() {
            var p = x;
        }
    }
}

//// [collisionCodeGenModuleWithFunctionChildren.js]
var M;
(function (M_1) {
    M_1.x = 3;
    function fn(M, p) {
        if (p === void 0) { p = M_1.x; }
    }
})(M || (M = {}));
(function (M_2) {
    function fn2() {
        var M;
        var p = M_2.x;
    }
})(M || (M = {}));
(function (M_3) {
    function fn3() {
        function M() {
            var p = M_3.x;
        }
    }
})(M || (M = {}));