55 lines
904 B
TypeScript
55 lines
904 B
TypeScript
//// [moduleCodeGenTest5.ts]
|
|
export var x = 0;
|
|
var y = 0;
|
|
|
|
export function f1() {}
|
|
function f2() {}
|
|
|
|
export class C1 {
|
|
public p1 = 0;
|
|
public p2() {}
|
|
}
|
|
class C2{
|
|
public p1 = 0;
|
|
public p2() {}
|
|
}
|
|
|
|
export enum E1 {A=0}
|
|
var u = E1.A;
|
|
enum E2 {B=0}
|
|
var v = E2.B;
|
|
|
|
|
|
|
|
//// [moduleCodeGenTest5.js]
|
|
"use strict";
|
|
exports.x = 0;
|
|
var y = 0;
|
|
function f1() { }
|
|
exports.f1 = f1;
|
|
function f2() { }
|
|
var C1 = (function () {
|
|
function C1() {
|
|
this.p1 = 0;
|
|
}
|
|
C1.prototype.p2 = function () { };
|
|
return C1;
|
|
}());
|
|
exports.C1 = C1;
|
|
var C2 = (function () {
|
|
function C2() {
|
|
this.p1 = 0;
|
|
}
|
|
C2.prototype.p2 = function () { };
|
|
return C2;
|
|
}());
|
|
(function (E1) {
|
|
E1[E1["A"] = 0] = "A";
|
|
})(exports.E1 || (exports.E1 = {}));
|
|
var E1 = exports.E1;
|
|
var u = E1.A;
|
|
var E2;
|
|
(function (E2) {
|
|
E2[E2["B"] = 0] = "B";
|
|
})(E2 || (E2 = {}));
|
|
var v = E2.B;
|