forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollisionCodeGenModuleWithMethodChildren.js
82 lines (78 loc) · 1.43 KB
/
collisionCodeGenModuleWithMethodChildren.js
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//// [collisionCodeGenModuleWithMethodChildren.ts]
module M {
export var x = 3;
class c {
fn(M, p = x) { }
}
}
module M {
class d {
fn2() {
var M;
var p = x;
}
}
}
module M {
class e {
fn3() {
function M() {
var p = x;
}
}
}
}
module M { // Shouldnt bn _M
class f {
M() {
}
}
}
//// [collisionCodeGenModuleWithMethodChildren.js]
var M;
(function (M_1) {
M_1.x = 3;
var c = (function () {
function c() {
}
c.prototype.fn = function (M, p) {
if (p === void 0) { p = M_1.x; }
};
return c;
}());
})(M || (M = {}));
var M;
(function (M_2) {
var d = (function () {
function d() {
}
d.prototype.fn2 = function () {
var M;
var p = M_2.x;
};
return d;
}());
})(M || (M = {}));
var M;
(function (M_3) {
var e = (function () {
function e() {
}
e.prototype.fn3 = function () {
function M() {
var p = M_3.x;
}
};
return e;
}());
})(M || (M = {}));
var M;
(function (M) {// Shouldnt bn _M
var f = (function () {
function f() {
}
f.prototype.M = function () {
};
return f;
}());
})(M || (M = {}));