2014-07-13 01:04:16 +02:00
|
|
|
//// [moduleWithStatementsOfEveryKind.ts]
|
|
|
|
module A {
|
|
|
|
class A { s: string }
|
|
|
|
class AA<T> { s: T }
|
|
|
|
interface I { id: number }
|
|
|
|
|
|
|
|
class B extends AA<string> implements I { id: number }
|
|
|
|
class BB<T> extends A {
|
|
|
|
id: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
module Module {
|
|
|
|
class A { s: string }
|
|
|
|
}
|
|
|
|
enum Color { Blue, Red }
|
|
|
|
var x = 12;
|
|
|
|
function F(s: string): number {
|
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
var array: I[] = null;
|
|
|
|
var fn = (s: string) => {
|
|
|
|
return 'hello ' + s;
|
|
|
|
}
|
|
|
|
var ol = { s: 'hello', id: 2, isvalid: true };
|
2014-09-11 23:52:14 +02:00
|
|
|
|
|
|
|
declare class DC {
|
|
|
|
static x: number;
|
|
|
|
}
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
module Y {
|
|
|
|
export class A { s: string }
|
|
|
|
export class AA<T> { s: T }
|
|
|
|
export interface I { id: number }
|
|
|
|
|
|
|
|
export class B extends AA<string> implements I { id: number }
|
|
|
|
export class BB<T> extends A {
|
|
|
|
id: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export module Module {
|
|
|
|
class A { s: string }
|
|
|
|
}
|
|
|
|
export enum Color { Blue, Red }
|
|
|
|
export var x = 12;
|
|
|
|
export function F(s: string): number {
|
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
export var array: I[] = null;
|
|
|
|
export var fn = (s: string) => {
|
|
|
|
return 'hello ' + s;
|
|
|
|
}
|
|
|
|
export var ol = { s: 'hello', id: 2, isvalid: true };
|
2014-09-11 23:52:14 +02:00
|
|
|
|
|
|
|
export declare class DC {
|
|
|
|
static x: number;
|
|
|
|
}
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [moduleWithStatementsOfEveryKind.js]
|
|
|
|
var __extends = this.__extends || function (d, b) {
|
|
|
|
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
|
|
function __() { this.constructor = d; }
|
|
|
|
__.prototype = b.prototype;
|
|
|
|
d.prototype = new __();
|
|
|
|
};
|
|
|
|
var A;
|
2014-07-19 02:04:06 +02:00
|
|
|
(function (_A) {
|
2014-07-13 01:04:16 +02:00
|
|
|
var A = (function () {
|
|
|
|
function A() {
|
|
|
|
}
|
|
|
|
return A;
|
|
|
|
})();
|
|
|
|
var AA = (function () {
|
|
|
|
function AA() {
|
|
|
|
}
|
|
|
|
return AA;
|
|
|
|
})();
|
|
|
|
var B = (function (_super) {
|
|
|
|
__extends(B, _super);
|
|
|
|
function B() {
|
|
|
|
_super.apply(this, arguments);
|
|
|
|
}
|
|
|
|
return B;
|
|
|
|
})(AA);
|
|
|
|
var BB = (function (_super) {
|
|
|
|
__extends(BB, _super);
|
|
|
|
function BB() {
|
|
|
|
_super.apply(this, arguments);
|
|
|
|
}
|
|
|
|
return BB;
|
|
|
|
})(A);
|
|
|
|
var Module;
|
|
|
|
(function (Module) {
|
|
|
|
var A = (function () {
|
|
|
|
function A() {
|
|
|
|
}
|
|
|
|
return A;
|
|
|
|
})();
|
|
|
|
})(Module || (Module = {}));
|
|
|
|
var Color;
|
|
|
|
(function (Color) {
|
|
|
|
Color[Color["Blue"] = 0] = "Blue";
|
|
|
|
Color[Color["Red"] = 1] = "Red";
|
|
|
|
})(Color || (Color = {}));
|
|
|
|
var x = 12;
|
|
|
|
function F(s) {
|
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
var array = null;
|
|
|
|
var fn = function (s) {
|
|
|
|
return 'hello ' + s;
|
|
|
|
};
|
|
|
|
var ol = { s: 'hello', id: 2, isvalid: true };
|
|
|
|
})(A || (A = {}));
|
|
|
|
var Y;
|
|
|
|
(function (Y) {
|
|
|
|
var A = (function () {
|
|
|
|
function A() {
|
|
|
|
}
|
|
|
|
return A;
|
|
|
|
})();
|
|
|
|
Y.A = A;
|
|
|
|
var AA = (function () {
|
|
|
|
function AA() {
|
|
|
|
}
|
|
|
|
return AA;
|
|
|
|
})();
|
|
|
|
Y.AA = AA;
|
|
|
|
var B = (function (_super) {
|
|
|
|
__extends(B, _super);
|
|
|
|
function B() {
|
|
|
|
_super.apply(this, arguments);
|
|
|
|
}
|
|
|
|
return B;
|
|
|
|
})(AA);
|
|
|
|
Y.B = B;
|
|
|
|
var BB = (function (_super) {
|
|
|
|
__extends(BB, _super);
|
|
|
|
function BB() {
|
|
|
|
_super.apply(this, arguments);
|
|
|
|
}
|
|
|
|
return BB;
|
|
|
|
})(A);
|
|
|
|
Y.BB = BB;
|
2014-09-07 02:40:19 +02:00
|
|
|
var Module;
|
2014-07-13 01:04:16 +02:00
|
|
|
(function (Module) {
|
|
|
|
var A = (function () {
|
|
|
|
function A() {
|
|
|
|
}
|
|
|
|
return A;
|
|
|
|
})();
|
2014-09-07 02:40:19 +02:00
|
|
|
})(Module = Y.Module || (Y.Module = {}));
|
2014-07-13 01:04:16 +02:00
|
|
|
(function (Color) {
|
|
|
|
Color[Color["Blue"] = 0] = "Blue";
|
|
|
|
Color[Color["Red"] = 1] = "Red";
|
|
|
|
})(Y.Color || (Y.Color = {}));
|
|
|
|
var Color = Y.Color;
|
|
|
|
Y.x = 12;
|
|
|
|
function F(s) {
|
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
Y.F = F;
|
|
|
|
Y.array = null;
|
|
|
|
Y.fn = function (s) {
|
|
|
|
return 'hello ' + s;
|
|
|
|
};
|
|
|
|
Y.ol = { s: 'hello', id: 2, isvalid: true };
|
|
|
|
})(Y || (Y = {}));
|