TypeScript/tests/baselines/reference/tsxEmit3.js
2015-12-08 17:51:10 -08:00

86 lines
1.3 KiB
TypeScript

//// [file.tsx]
declare module JSX {
interface Element { }
interface IntrinsicElements { }
}
module M {
export class Foo { constructor() { } }
export module S {
export class Bar { }
// Emit Foo
// Foo, <Foo />;
}
}
module M {
// Emit M.Foo
Foo, <Foo />;
export module S {
// Emit M.Foo
Foo, <Foo />;
// Emit S.Bar
Bar, <Bar />;
}
}
module M {
// Emit M.S.Bar
S.Bar, <S.Bar />;
}
module M {
var M = 100;
// Emit M_1.Foo
Foo, <Foo />;
}
//// [file.jsx]
var M;
(function (M) {
var Foo = (function () {
function Foo() {
}
return Foo;
}());
M.Foo = Foo;
var S;
(function (S) {
var Bar = (function () {
function Bar() {
}
return Bar;
}());
S.Bar = Bar;
})(S = M.S || (M.S = {}));
})(M || (M = {}));
var M;
(function (M) {
// Emit M.Foo
M.Foo, <M.Foo />;
var S;
(function (S) {
// Emit M.Foo
M.Foo, <M.Foo />;
// Emit S.Bar
S.Bar, <S.Bar />;
})(S = M.S || (M.S = {}));
})(M || (M = {}));
var M;
(function (M) {
// Emit M.S.Bar
M.S.Bar, <M.S.Bar />;
})(M || (M = {}));
var M;
(function (M_1) {
var M = 100;
// Emit M_1.Foo
M_1.Foo, <M_1.Foo />;
})(M || (M = {}));
//# sourceMappingURL=file.jsx.map