Accepted baselines.

This commit is contained in:
Daniel Rosenwasser
2016-09-02 11:52:13 -07:00
parent cd5e76b23c
commit 30ec599c13
157 changed files with 315 additions and 11 deletions
@@ -39,6 +39,7 @@ var C = (function (_super) {
_this = _super.apply(this, arguments) || this;
_this.raw = "edge";
_this.ro = "readonly please";
return _this;
}
Object.defineProperty(C.prototype, "prop", {
get: function () { return "foo"; },
@@ -60,6 +60,7 @@ var C = (function (_super) {
var _this;
_this = _super.apply(this, arguments) || this;
_this.ro = "readonly please";
return _this;
}
Object.defineProperty(C.prototype, "concreteWithNoBody", {
get: function () { },
@@ -81,6 +82,7 @@ var WrongTypePropertyImpl = (function (_super) {
var _this;
_this = _super.apply(this, arguments) || this;
_this.num = "nope, wrong";
return _this;
}
return WrongTypePropertyImpl;
}(WrongTypeProperty));
@@ -108,6 +110,7 @@ var WrongTypeAccessorImpl2 = (function (_super) {
var _this;
_this = _super.apply(this, arguments) || this;
_this.num = "nope, wrong";
return _this;
}
return WrongTypeAccessorImpl2;
}(WrongTypeAccessor));
@@ -37,6 +37,7 @@ var ColoredPoint = (function (_super) {
var _this;
_this = _super.call(this, x, y) || this;
_this.color = color;
return _this;
}
ColoredPoint.prototype.toString = function () {
return _super.prototype.toString.call(this) + " color=" + this.color;
@@ -68,6 +68,7 @@ var D = (function (_super) {
var _this;
_this = _super.apply(this, arguments) || this;
_this.x = moduleA;
return _this;
}
return D;
}(C));
@@ -118,6 +118,7 @@ var Derived = (function (_super) {
function Derived() {
var _this;
_this = _super.call(this, function () { return _this; }) || this;
return _this;
}
return Derived;
}(Base));
@@ -160,6 +161,7 @@ var M2;
function Derived() {
var _this;
_this = _super.call(this, function () { return _this; }) || this;
return _this;
}
return Derived;
}(Base));
@@ -121,6 +121,7 @@ var Derived = (function (_super) {
var _this;
_this = _super.call(this) || this;
_super.prototype. = value;
return _this;
}
Derived.prototype.foo = function () { _super.prototype. = value; };
Derived.sfoo = function () { _super. = value; };
+1
View File
@@ -46,6 +46,7 @@ var Point3D = (function (_super) {
var _this;
_this = _super.call(this, x, y) || this;
_this.z = z;
return _this;
}
Point3D.prototype.getDist = function () {
return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.m);
+5
View File
@@ -45,6 +45,7 @@ var ELoc = (function (_super) {
function ELoc(x) {
var _this;
_this = _super.call(this, 0, x) || this;
return _this;
}
return ELoc;
}(C));
@@ -53,6 +54,7 @@ var ELocVar = (function (_super) {
function ELocVar(x) {
var _this;
_this = _super.call(this, 0, loc) || this;
return _this;
}
ELocVar.prototype.m = function () {
var loc = 10;
@@ -65,6 +67,7 @@ var D = (function (_super) {
var _this;
_this = _super.call(this, _this.z) || this;
_this.z = z;
return _this;
}
return D;
}(C)); // too few params
@@ -74,6 +77,7 @@ var E = (function (_super) {
var _this;
_this = _super.call(this, 0, _this.z) || this;
_this.z = z;
return _this;
}
return E;
}(C));
@@ -83,6 +87,7 @@ var F = (function (_super) {
var _this;
_this = _super.call(this, "hello", _this.z) || this;
_this.z = z;
return _this;
}
return F;
}(C)); // first param type
+1
View File
@@ -39,6 +39,7 @@ var C = (function (_super) {
var _this;
_this.x;
any;
return _this;
}
return C;
}(B));
@@ -63,6 +63,7 @@ var D1 = (function (_super) {
var _this;
_this = _super.apply(this, arguments) || this;
_this.i = "bar";
return _this;
}
return D1;
}(C1));
@@ -102,6 +102,7 @@ var D = (function (_super) {
var _this;
_this = _super.call(this, 1, 2) || this;
_this = _super.apply(this, [1, 2].concat(a)) || this;
return _this;
}
D.prototype.foo = function () {
_super.prototype.foo.call(this, 1, 2);
@@ -24,6 +24,7 @@ var B = (function (_super) {
function B() {
var _this;
_this = _super.call(this, { test: function () { return _this.someMethod(); } }) || this;
return _this;
}
B.prototype.someMethod = function () { };
return B;
@@ -51,6 +51,7 @@ var Bar = (function (_super) {
function Bar() {
var _this;
_this = _super.call(this) || this;
return _this;
}
return Bar;
}(Foo.Object));
@@ -59,6 +60,7 @@ var Baz = (function (_super) {
function Baz() {
var _this;
_this = _super.call(this) || this;
return _this;
}
return Baz;
}(Object));
@@ -29,6 +29,7 @@ var Derived = (function (_super) {
_this;
_this.x = 10;
var that = _this;
return _this;
}
return Derived;
}(Based));
@@ -29,6 +29,7 @@ var Derived = (function (_super) {
_this = _super.call(this) || this;
_this.x = 10;
var that = _this;
return _this;
}
return Derived;
}(Based));
@@ -39,6 +39,7 @@ var Derived = (function (_super) {
_this = _super.call(this) || this;
_this.x = 10;
var that = _this;
return _this;
}
return Derived;
}(Based));
@@ -47,6 +47,7 @@ var Derived = (function (_super) {
_this = _super.call(this) || this;
_this.x = 10;
var that = _this;
return _this;
}
return Derived;
}(Based));
@@ -27,6 +27,7 @@ var Derived = (function (_super) {
function Derived() {
var _this;
_this = _super.call(this, _this.x) || this;
return _this;
}
return Derived;
}(Based));
@@ -31,6 +31,7 @@ var Super = (function (_super) {
var _this;
(function () { return _this; }); // No Error
_this = _super.call(this) || this;
return _this;
}
return Super;
}(Base));
@@ -25,6 +25,7 @@ var Super = (function (_super) {
function Super() {
var _this;
_this = _super.call(this, (function () { return _this; })) || this; // No error
return _this;
}
return Super;
}(Base));
@@ -31,6 +31,7 @@ var Super = (function (_super) {
var _this;
var that = _this;
_this = _super.call(this) || this;
return _this;
}
return Super;
}(Base));
@@ -80,6 +80,7 @@ var DerivedA = (function (_super) {
var _this;
_this = _super.call(this, x) || this;
_this.x = x;
return _this;
}
DerivedA.prototype.createInstance = function () { new DerivedA(5); };
DerivedA.prototype.createBaseInstance = function () { new BaseA(6); };
@@ -92,6 +93,7 @@ var DerivedB = (function (_super) {
var _this;
_this = _super.call(this, x) || this;
_this.x = x;
return _this;
}
DerivedB.prototype.createInstance = function () { new DerivedB(7); };
DerivedB.prototype.createBaseInstance = function () { new BaseB(8); }; // ok
@@ -104,6 +106,7 @@ var DerivedC = (function (_super) {
var _this;
_this = _super.call(this, x) || this;
_this.x = x;
return _this;
}
DerivedC.prototype.createInstance = function () { new DerivedC(9); };
DerivedC.prototype.createBaseInstance = function () { new BaseC(10); }; // error
@@ -62,6 +62,7 @@ var Derived = (function (_super) {
var _this;
_this = _super.call(this, p) || this;
_this.p; // OK
return _this;
}
return Derived;
}(C3));
@@ -62,6 +62,7 @@ var Derived = (function (_super) {
var _this;
_this = _super.call(this, p) || this;
_this.p; // OK
return _this;
}
return Derived;
}(C3));
@@ -32,6 +32,7 @@ var Derived = (function (_super) {
_this = _super.call(this, p) || this;
_this.p = p;
_this.p; // OK
return _this;
}
return Derived;
}(Base));
@@ -18,6 +18,7 @@ var C = (function (_super) {
var _this;
_this = _super.apply(this, arguments) || this;
_this.c = 3;
return _this;
}
return class_1;
}((function (_super) {
@@ -26,6 +27,7 @@ var C = (function (_super) {
var _this;
_this = _super.apply(this, arguments) || this;
_this.b = 2;
return _this;
}
return class_2;
}((function () {
@@ -80,6 +80,7 @@ var D1 = (function (_super) {
_this = _super.call(this, "abc", "def") || this;
_this.x = "x";
_this.y = "y";
return _this;
}
return D1;
}(getBase()));
@@ -91,6 +92,7 @@ var D2 = (function (_super) {
_this = _super.call(this, 10, 20) || this;
_this.x = 1;
_this.y = 2;
return _this;
}
return D2;
}(getBase()));
@@ -101,6 +103,7 @@ var D3 = (function (_super) {
_this = _super.call(this, "abc", 42) || this;
_this.x = "x";
_this.y = 2;
return _this;
}
return D3;
}(getBase()));
@@ -24,6 +24,7 @@ var C = (function (_super) {
var _this;
_this = _super.call(this) || this;
return Object.create(null);
return _this;
}
return C;
}(null));
@@ -32,6 +33,7 @@ var D = (function (_super) {
function D() {
var _this;
return Object.create(null);
return _this;
}
return D;
}(null));
@@ -31,6 +31,7 @@ var SubText = (function (_super) {
function SubText(text, span) {
var _this;
_this = _super.call(this) || this;
return _this;
}
return SubText;
}(TextBase));
@@ -36,6 +36,7 @@ var B = (function (_super) {
var _this;
_this = _super.call(this, x) || this;
_this.data = data;
return _this;
}
return B;
}(A));
@@ -44,6 +45,7 @@ var C = (function (_super) {
function C(x) {
var _this;
_this = _super.call(this, x) || this;
return _this;
}
return C;
}(A));
@@ -160,6 +160,7 @@ var E = (function (_super) {
var _this;
_this = _super.apply(this, arguments) || this;
_this.p1 = 0;
return _this;
}
return E;
}(D));
@@ -167,6 +168,7 @@ var F = (function (_super) {
__extends(F, _super);
function F() {
var _this;
return _this;
} // ERROR - super call required
return F;
}(E));
@@ -176,6 +178,7 @@ var G = (function (_super) {
var _this;
_this = _super.call(this) || this;
_this.p1 = 0;
return _this;
} // NO ERROR
return G;
}(D));
@@ -190,6 +193,7 @@ var I = (function (_super) {
function I() {
var _this;
_this = _super.call(this) || this;
return _this;
} // ERROR - no super call allowed
return I;
}(Object));
@@ -199,6 +203,7 @@ var J = (function (_super) {
var _this;
_this = _super.call(this) || this; // NO ERROR
_this.p1 = p1;
return _this;
}
return J;
}(G));
@@ -209,6 +214,7 @@ var K = (function (_super) {
_this.p1 = p1;
var i = 0;
_this = _super.call(this) || this;
return _this;
}
return K;
}(G));
@@ -218,6 +224,7 @@ var L = (function (_super) {
var _this;
_this = _super.call(this) || this; // NO ERROR
_this.p1 = p1;
return _this;
}
return L;
}(G));
@@ -228,6 +235,7 @@ var M = (function (_super) {
_this.p1 = p1;
var i = 0;
_this = _super.call(this) || this;
return _this;
}
return M;
}(G));
@@ -46,6 +46,7 @@ var b = (function (_super) {
_this = _super.call(this) || this;
function _super() {
}
return _this;
}
return b;
}(Foo));
@@ -58,6 +59,7 @@ var c = (function (_super) {
function _super() {
}
};
return _this;
}
return c;
}(Foo));
@@ -48,6 +48,7 @@ var b = (function (_super) {
}
}
};
return _this;
}
return b;
}(Foo));
@@ -39,6 +39,7 @@ var b = (function (_super) {
var _this;
_this = _super.call(this) || this;
var _super = 10; // Should be error
return _this;
}
return b;
}(Foo));
@@ -50,6 +51,7 @@ var c = (function (_super) {
var x = function () {
var _super = 10; // Should be error
};
return _this;
}
return c;
}(Foo));
@@ -46,6 +46,7 @@ var b = (function (_super) {
}
};
_this._super = 10; // No error
return _this;
}
return b;
}(Foo));
@@ -100,6 +100,7 @@ var Foo2 = (function (_super) {
doStuff: function (_super) {
}
};
return _this;
}
Foo2.prototype.x = function () {
var _this = this;
@@ -126,6 +127,7 @@ var Foo4 = (function (_super) {
function Foo4(_super) {
var _this;
_this = _super.call(this) || this;
return _this;
}
Foo4.prototype.y = function (_super) {
var _this = this;
@@ -46,6 +46,7 @@ var b1 = (function (_super) {
function b1(_super) {
var _this;
_this = _super.call(this) || this;
return _this;
}
return b1;
}(a));
@@ -55,6 +56,7 @@ var b2 = (function (_super) {
var _this;
_this = _super.call(this) || this;
_this._super = _super;
return _this;
}
return b2;
}(a));
@@ -63,6 +65,7 @@ var b3 = (function (_super) {
function b3(_super) {
var _this;
_this = _super.call(this) || this;
return _this;
}
return b3;
}(a));
@@ -72,6 +75,7 @@ var b4 = (function (_super) {
var _this;
_this = _super.call(this) || this;
_this._super = _super;
return _this;
}
return b4;
}(a));
@@ -229,6 +229,7 @@ var c3 = (function (_super) {
function c3() {
var _this;
_this = _super.call(this, 10) || this;
return _this;
}
/** c3 f1*/
c3.prototype.f1 = function () {
@@ -201,6 +201,7 @@ var Derived = (function (_super) {
_this = _super.call(this) || this;
_super.prototype. *= value;
_super.prototype. += value;
return _this;
}
Derived.prototype.foo = function () {
_super.prototype. *= value;
@@ -143,6 +143,7 @@ var Derived = (function (_super) {
_this = _super.call(this) || this;
(_a = _super.prototype). = Math.pow(_a., value);
var _a;
return _this;
}
Derived.prototype.foo = function () {
(_a = _super.prototype). = Math.pow(_a., value);
@@ -29,6 +29,7 @@ var C = (function (_super) {
var obj = (_a = {},
_a[(_this = _super.call(this) || this, "prop")] = function () { },
_a);
return _this;
var _a;
}
return C;
@@ -40,6 +40,7 @@ var C = (function (_super) {
_a);
var _a;
});
return _this;
}
return C;
}(Base));
@@ -32,6 +32,7 @@ var Sub = (function (_super) {
var _this;
_this = _super.call(this, options.value) || this;
_this.options = options;
return _this;
}
return Sub;
}(Super));
@@ -49,6 +49,7 @@ var Derived = (function (_super) {
function Derived(x) {
var _this;
_this = _super.call(this, x) || this;
return _this;
}
return Derived;
}(Base));
@@ -59,6 +60,7 @@ var Derived2 = (function (_super) {
var _this;
_this = _super.call(this, x) || this;
return 1;
return _this;
}
return Derived2;
}(Base));
@@ -42,6 +42,7 @@ var Foo = (function (_super) {
function Foo(x, y) {
var _this;
_this = _super.call(this, x) || this;
return _this;
}
Foo.prototype.bar1 = function () { };
return Foo;
@@ -32,6 +32,7 @@ var Foo = (function (_super) {
__extends(Foo, _super);
function Foo(x, y) {
var _this;
return _this;
}
Foo.prototype.bar1 = function () { };
return Foo;
@@ -60,6 +60,7 @@ var templa;
function AbstractElementController() {
var _this;
_this = _super.call(this) || this;
return _this;
}
return AbstractElementController;
}(templa.mvc.AbstractController));
@@ -82,6 +83,7 @@ var templa;
var _this;
_this = _super.call(this) || this;
_this._controllers = [];
return _this;
}
return AbstractCompositeElementController;
}(templa.dom.mvc.AbstractElementController));
@@ -47,6 +47,7 @@ var C = (function (_super) {
function C(prop) {
var _this;
_this = _super.call(this) || this;
return _this;
}
return C;
}(_0_ts_1.base));
@@ -50,6 +50,7 @@ var C = (function (_super) {
function C(prop) {
var _this;
_this = _super.call(this) || this;
return _this;
}
return C;
}(_0_1.base));
@@ -48,6 +48,7 @@ var Derived = (function (_super) {
__extends(Derived, _super);
function Derived() {
var _this;
return _this;
}
return Derived;
}(Base));
@@ -61,6 +62,7 @@ var Derived2 = (function (_super) {
function Derived2() {
var _this;
var r2 = function () { return _this = _super.call(this) || this; }; // error for misplaced super call (nested function)
return _this;
}
return Derived2;
}(Base2));
@@ -69,6 +71,7 @@ var Derived3 = (function (_super) {
function Derived3() {
var _this;
var r = function () { _this = _super.call(this) || this; }; // error
return _this;
}
return Derived3;
}(Base2));
@@ -77,6 +80,7 @@ var Derived4 = (function (_super) {
function Derived4() {
var _this;
var r = _this = _super.call(this) || this; // ok
return _this;
}
return Derived4;
}(Base2));
@@ -34,6 +34,7 @@ var DerivedClass = (function (_super) {
function DerivedClass() {
var _this;
_this = _super.call(this) || this;
return _this;
}
DerivedClass.prototype._init = function () {
};
@@ -68,6 +68,7 @@ var Derived = (function (_super) {
function Derived(a) {
var _this;
_this = _super.call(this, x) || this;
return _this;
}
Derived.prototype.b = function (a) { };
Object.defineProperty(Derived.prototype, "c", {
@@ -96,6 +96,7 @@ var Derived = (function (_super) {
function Derived(a) {
var _this;
_this = _super.call(this, a) || this;
return _this;
}
Derived.prototype.b = function (a) { };
Object.defineProperty(Derived.prototype, "c", {
@@ -105,6 +105,7 @@ var Derived1 = (function (_super) {
function Derived1(a) {
var _this;
_this = _super.call(this, a) || this;
return _this;
}
return Derived1;
}(Base));
@@ -113,6 +114,7 @@ var Derived2 = (function (_super) {
function Derived2(a) {
var _this;
_this = _super.call(this, a) || this;
return _this;
}
Derived2.prototype.b = function (a) { };
return Derived2;
@@ -122,6 +124,7 @@ var Derived3 = (function (_super) {
function Derived3(a) {
var _this;
_this = _super.call(this, a) || this;
return _this;
}
Object.defineProperty(Derived3.prototype, "c", {
get: function () { return x; },
@@ -135,6 +138,7 @@ var Derived4 = (function (_super) {
function Derived4(a) {
var _this;
_this = _super.call(this, a) || this;
return _this;
}
Object.defineProperty(Derived4.prototype, "c", {
set: function (v) { },
@@ -148,6 +152,7 @@ var Derived5 = (function (_super) {
function Derived5(a) {
var _this;
_this = _super.call(this, a) || this;
return _this;
}
return Derived5;
}(Base));
@@ -156,6 +161,7 @@ var Derived6 = (function (_super) {
function Derived6(a) {
var _this;
_this = _super.call(this, a) || this;
return _this;
}
return Derived6;
}(Base));
@@ -164,6 +170,7 @@ var Derived7 = (function (_super) {
function Derived7(a) {
var _this;
_this = _super.call(this, a) || this;
return _this;
}
Derived7.s = function (a) { };
return Derived7;
@@ -173,6 +180,7 @@ var Derived8 = (function (_super) {
function Derived8(a) {
var _this;
_this = _super.call(this, a) || this;
return _this;
}
Object.defineProperty(Derived8, "t", {
get: function () { return x; },
@@ -186,6 +194,7 @@ var Derived9 = (function (_super) {
function Derived9(a) {
var _this;
_this = _super.call(this, a) || this;
return _this;
}
Object.defineProperty(Derived9, "t", {
set: function (v) { },
@@ -199,6 +208,7 @@ var Derived10 = (function (_super) {
function Derived10(a) {
var _this;
_this = _super.call(this, a) || this;
return _this;
}
return Derived10;
}(Base));
@@ -94,6 +94,7 @@ var Derived = (function (_super) {
function Derived(a) {
var _this;
_this = _super.call(this, x) || this;
return _this;
}
Derived.prototype.b = function (a) { };
Object.defineProperty(Derived.prototype, "c", {
@@ -112,6 +112,7 @@ var Derived = (function (_super) {
var _this;
var a = 1;
_this = _super.call(this) || this; // ok
return _this;
}
return Derived;
}(Base));
@@ -122,6 +123,7 @@ var Derived2 = (function (_super) {
_this.y = y;
var a = 1;
_this = _super.call(this) || this; // error
return _this;
}
return Derived2;
}(Base));
@@ -132,6 +134,7 @@ var Derived3 = (function (_super) {
_this = _super.call(this) || this; // ok
_this.y = y;
var a = 1;
return _this;
}
return Derived3;
}(Base));
@@ -142,6 +145,7 @@ var Derived4 = (function (_super) {
_this.a = 1;
var b = 2;
_this = _super.call(this) || this; // error
return _this;
}
return Derived4;
}(Base));
@@ -152,6 +156,7 @@ var Derived5 = (function (_super) {
_this = _super.call(this) || this; // ok
_this.a = 1;
var b = 2;
return _this;
}
return Derived5;
}(Base));
@@ -162,6 +167,7 @@ var Derived6 = (function (_super) {
_this.a = 1;
var b = 2;
_this = _super.call(this) || this; // error: "super" has to be called before "this" accessing
return _this;
}
return Derived6;
}(Base));
@@ -173,6 +179,7 @@ var Derived7 = (function (_super) {
_this.a = 3;
_this.b = 3;
_this = _super.call(this) || this; // error
return _this;
}
return Derived7;
}(Base));
@@ -184,6 +191,7 @@ var Derived8 = (function (_super) {
_this.a = 1;
_this.a = 3;
_this.b = 3;
return _this;
}
return Derived8;
}(Base));
@@ -201,6 +209,7 @@ var Derived9 = (function (_super) {
_this.a = 3;
_this.b = 3;
_this = _super.call(this) || this; // error
return _this;
}
return Derived9;
}(Base2));
@@ -212,6 +221,7 @@ var Derived10 = (function (_super) {
_this.a = 1;
_this.a = 3;
_this.b = 3;
return _this;
}
return Derived10;
}(Base2));
@@ -49,6 +49,7 @@ var Derived = (function (_super) {
var _this;
_this = _super.apply(this, arguments) || this;
_this.a = _this = _super.call(this) || this;
return _this;
}
Derived.prototype.b = function () {
_this = _super.call(this) || this;
@@ -44,6 +44,7 @@ var Derived = (function (_super) {
function Derived() {
var _this;
_this = _super.call(this, _this) || this; // ok
return _this;
}
return Derived;
}(Base));
@@ -53,6 +54,7 @@ var Derived2 = (function (_super) {
var _this;
_this = _super.call(this, _this) || this; // error
_this.a = a;
return _this;
}
return Derived2;
}(Base));
@@ -62,6 +64,7 @@ var Derived3 = (function (_super) {
var _this;
_this = _super.call(this, function () { return _this; }) || this; // error
_this.a = a;
return _this;
}
return Derived3;
}(Base));
@@ -71,6 +74,7 @@ var Derived4 = (function (_super) {
var _this;
_this = _super.call(this, function () { return this; }) || this; // ok
_this.a = a;
return _this;
}
return Derived4;
}(Base));
@@ -45,6 +45,7 @@ var Derived = (function (_super) {
_this = _super.apply(this, arguments) || this;
_this.x = 1;
_this.y = 'hello';
return _this;
}
return Derived;
}(Base));
@@ -63,6 +64,7 @@ var D = (function (_super) {
_this = _super.apply(this, arguments) || this;
_this.x = 2;
_this.y = null;
return _this;
}
return D;
}(Base2));
@@ -53,6 +53,7 @@ var Derived = (function (_super) {
_this = _super.apply(this, arguments) || this;
_this.x = 1;
_this.y = 'hello';
return _this;
}
return Derived;
}(Base));
@@ -73,6 +74,7 @@ var D = (function (_super) {
_this = _super.apply(this, arguments) || this;
_this.x = 2;
_this.y = null;
return _this;
}
return D;
}(Base2));
@@ -67,6 +67,7 @@ var Derived = (function (_super) {
_this = _super.call(this, 2) || this;
_this.b = '';
_this.b = y;
return _this;
}
return Derived;
}(Base));
@@ -77,6 +78,7 @@ var Derived2 = (function (_super) {
_this = _super.apply(this, arguments) || this;
_this.x = 1;
_this.y = 'hello';
return _this;
}
return Derived2;
}(Derived));
@@ -96,6 +98,7 @@ var D = (function (_super) {
_this = _super.call(this, 2) || this;
_this.b = null;
_this.b = y;
return _this;
}
return D;
}(Base));
@@ -106,6 +109,7 @@ var D2 = (function (_super) {
_this = _super.apply(this, arguments) || this;
_this.x = 2;
_this.y = null;
return _this;
}
return D2;
}(D));
@@ -67,6 +67,7 @@ var SubClass = (function (_super) {
function SubClass() {
var _this;
_this = _super.call(this) || this;
return _this;
}
return SubClass;
}(Class));
@@ -80,6 +81,7 @@ var SubD = (function (_super) {
function SubD() {
var _this;
_this = _super.call(this) || this;
return _this;
}
return SubD;
}(D));
@@ -33,6 +33,7 @@ var B = (function (_super) {
'someStringForEgngInject';
_this = _super.call(this) || this;
_this.x = x;
return _this;
}
return B;
}(A));
@@ -35,6 +35,7 @@ var B = (function (_super) {
'someStringForEgngInject';
_this = _super.call(this) || this;
_this.blub = 12;
return _this;
}
return B;
}(A));
@@ -34,6 +34,7 @@ var B = (function (_super) {
_this = _super.call(this) || this;
_this.x = x;
_this.blah = 2;
return _this;
}
return B;
}(A));
@@ -135,6 +135,7 @@ var Derived = (function (_super) {
var _this;
_super.prototype..call(_this);
_this = _super.call(this) || this;
return _this;
}
return Derived;
}(Base));
@@ -150,6 +151,7 @@ var OtherDerived = (function (_super) {
_this = _super.apply(this, arguments) || this;
//super call in class member initializer of derived type
_this.t = _this = _super.call(this) || this;
return _this;
}
OtherDerived.prototype.fn = function () {
//super call in class member function of derived type
@@ -189,6 +189,7 @@ var SomeDerived1 = (function (_super) {
var _this;
_this = _super.call(this) || this;
_super.prototype.publicMember = 1;
return _this;
}
SomeDerived1.prototype.fn = function () {
var x = _super.prototype.publicMember;
@@ -223,6 +224,7 @@ var SomeDerived2 = (function (_super) {
var _this;
_this = _super.call(this) || this;
_super.prototype.privateMember = 1;
return _this;
}
SomeDerived2.prototype.fn = function () {
var x = _super.prototype.privateMember;
@@ -35,6 +35,7 @@ var B = (function (_super) {
else {
_this = _super.call(this, 'a2', 'b2') || this;
}
return _this;
}
return B;
}(A));
@@ -111,6 +111,7 @@ var Foo = (function (_super) {
_this.zoo = "zoo";
_this.x = x;
_this.gar = 5;
return _this;
}
Foo.prototype.bar = function () { return 0; };
Foo.prototype.boo = function (x) { return x; };
@@ -269,6 +269,7 @@ var SuperChild = (function (_super) {
function SuperChild() {
var _this;
_this = _super.call(this, 1) || this;
return _this;
}
SuperChild.prototype.b = function () {
_super.prototype.b.call(this, 'str');
@@ -111,6 +111,7 @@ var PortalFx;
function Validator(message) {
var _this;
_this = _super.call(this, message) || this;
return _this;
}
return Validator;
}(Portal.Controls.Validators.Validator));
@@ -54,6 +54,7 @@ var EndGate;
function NumberTween(from) {
var _this;
_this = _super.call(this, from) || this;
return _this;
}
return NumberTween;
}(Tweening.Tween));
@@ -53,6 +53,7 @@ var EndGate;
function NumberTween(from) {
var _this;
_this = _super.call(this, from) || this;
return _this;
}
return NumberTween;
}(Tweening.Tween));
@@ -62,6 +62,7 @@ var TypeScript;
var _this;
_this = _super.apply(this, arguments) || this;
_this._elementType = null;
return _this;
}
PullTypeSymbol.prototype.toString = function (scopeSymbol, useConstraintInName) {
var s = this.getScopedNameEx(scopeSymbol, useConstraintInName).toString();
@@ -40,6 +40,7 @@ var BarExtended = (function (_super) {
function BarExtended() {
var _this;
_this = _super.call(this) || this;
return _this;
}
return BarExtended;
}(Bar));
@@ -47,6 +47,7 @@ var Derived = (function (_super) {
_this = _super.call(this) || this;
}
};
return _this;
}
return Derived;
}(Base));
@@ -43,6 +43,7 @@ var D = (function (_super) {
_this = _super.apply(this, arguments) || this;
_this.x = 2;
_this.y = 3;
return _this;
}
D.prototype.foo = function (x) { return x; };
D.prototype.other = function (x) { return x; };
@@ -55,6 +56,7 @@ var D2 = (function (_super) {
var _this;
_this = _super.apply(this, arguments) || this;
_this.x = "";
return _this;
}
D2.prototype.foo = function (x) { return x; };
D2.prototype.other = function (x) { return x; };
+1
View File
@@ -36,6 +36,7 @@ var C = (function (_super) {
_this = _super.call(this, y) || this;
var x = 10 + w;
var ll = x * w;
return _this;
}
C.prototype.liftxyz = function () { return x + z + this.y; };
C.prototype.liftxylocllz = function () { return x + z + this.y + this.ll; };
@@ -17,6 +17,7 @@ var George = (function (_super) {
function George() {
var _this;
_this = _super.call(this) || this;
return _this;
}
return George;
}((function () {
@@ -84,6 +84,7 @@ var MonsterFood = (function (_super) {
var _this;
_this = _super.call(this, name) || this;
_this.flavor = flavor;
return _this;
}
return MonsterFood;
}(Food));
@@ -93,6 +94,7 @@ var IceCream = (function (_super) {
var _this;
_this = _super.call(this, "Ice Cream", flavor) || this;
_this.flavor = flavor;
return _this;
}
return IceCream;
}(MonsterFood));
@@ -103,6 +105,7 @@ var Cookie = (function (_super) {
_this = _super.call(this, "Cookie", flavor) || this;
_this.flavor = flavor;
_this.isGlutenFree = isGlutenFree;
return _this;
}
return Cookie;
}(MonsterFood));
@@ -112,6 +115,7 @@ var PetFood = (function (_super) {
var _this;
_this = _super.call(this, name) || this;
_this.whereToBuy = whereToBuy;
return _this;
}
return PetFood;
}(Food));
@@ -121,6 +125,7 @@ var ExpensiveOrganicDogFood = (function (_super) {
var _this;
_this = _super.call(this, "Origen", whereToBuy) || this;
_this.whereToBuy = whereToBuy;
return _this;
}
return ExpensiveOrganicDogFood;
}(PetFood));
@@ -131,6 +136,7 @@ var ExpensiveOrganicCatFood = (function (_super) {
_this = _super.call(this, "Nature's Logic", whereToBuy) || this;
_this.whereToBuy = whereToBuy;
_this.containsFish = containsFish;
return _this;
}
return ExpensiveOrganicCatFood;
}(PetFood));
@@ -112,6 +112,7 @@ var Derived = (function (_super) {
var _this;
_this = _super.apply(this, arguments) || this;
_this.a = 1;
return _this;
}
Derived.prototype.f = function () { return 1; };
return Derived;
@@ -164,6 +164,7 @@ var C2 = (function (_super) {
var _this;
if (v2 === void 0) { v2 = 6; }
_this = _super.call(this, v2) || this;
return _this;
}
return C2;
}(C1));
@@ -28,6 +28,7 @@ var D = (function (_super) {
var _this;
_this = _super.call(this) || this;
_this.p = p;
return _this;
}
return D;
}(C));
@@ -30,6 +30,7 @@ var A = (function (_super) {
var _this;
_this = _super.apply(this, arguments) || this;
_this.x = 1;
return _this;
}
return A;
}(Z));
@@ -321,6 +321,7 @@ var c3 = (function (_super) {
var _this;
_this = _super.call(this, 10) || this;
_this.p1 = _super.prototype.c2_p1;
return _this;
}
/** c3 f1*/
c3.prototype.f1 = function () {
@@ -409,6 +410,7 @@ var c6 = (function (_super) {
var _this;
_this = _super.call(this) || this;
_this.d = _super.prototype.b;
return _this;
}
return c6;
}(c5));
@@ -830,6 +830,7 @@ var TypeScript;
_this = _super.call(this, TokenID.NumberLiteral) || this;
_this.value = value;
_this.hasEmptyFraction = hasEmptyFraction;
return _this;
}
NumberLiteralToken.prototype.getText = function () {
return this.hasEmptyFraction ? this.value.toString() + ".0" : this.value.toString();
@@ -846,6 +847,7 @@ var TypeScript;
var _this;
_this = _super.call(this, TokenID.StringLiteral) || this;
_this.value = value;
return _this;
}
StringLiteralToken.prototype.getText = function () {
return this.value;
@@ -863,6 +865,7 @@ var TypeScript;
_this = _super.call(this, TokenID.Identifier) || this;
_this.value = value;
_this.hasEscapeSequence = hasEscapeSequence;
return _this;
}
IdentifierToken.prototype.getText = function () {
return this.value;
@@ -879,6 +882,7 @@ var TypeScript;
var _this;
_this = _super.call(this, tokenId) || this;
_this.value = value;
return _this;
}
WhitespaceToken.prototype.getText = function () {
return this.value;
@@ -899,6 +903,7 @@ var TypeScript;
_this.startPos = startPos;
_this.line = line;
_this.endsLine = endsLine;
return _this;
}
CommentToken.prototype.getText = function () {
return this.value;
@@ -915,6 +920,7 @@ var TypeScript;
var _this;
_this = _super.call(this, TokenID.RegularExpressionLiteral) || this;
_this.regex = regex;
return _this;
}
RegularExpressionLiteralToken.prototype.getText = function () {
return this.regex.toString();
@@ -2396,6 +2396,7 @@ var TypeScript;
_this.preComments = null;
_this.postComments = null;
_this.isParenthesized = false;
return _this;
}
AST.prototype.isExpression = function () { return false; };
AST.prototype.isStatementOrExpression = function () { return false; };
@@ -2547,6 +2548,7 @@ var TypeScript;
_this = _super.call(this, NodeType.Error) || this;
_this.minChar = min;
_this.limChar = lim;
return _this;
}
return IncompleteAST;
}(AST));
@@ -2558,6 +2560,7 @@ var TypeScript;
_this = _super.call(this, NodeType.List) || this;
_this.enclosingScope = null;
_this.members = new AST[];
return _this;
}
ASTList.prototype.addToControlFlow = function (context) {
var len = this.members.length;
@@ -2629,6 +2632,7 @@ var TypeScript;
_this.sym = null;
_this.cloId = -1;
_this.setText(actualText, hasEscapeSequence);
return _this;
}
Identifier.prototype.setText = function (actualText, hasEscapeSequence) {
this.actualText = actualText;
@@ -2669,6 +2673,7 @@ var TypeScript;
function MissingIdentifier() {
var _this;
_this = _super.call(this, "__missing") || this;
return _this;
}
MissingIdentifier.prototype.isMissing = function () {
return true;
@@ -2685,6 +2690,7 @@ var TypeScript;
var _this;
_this = _super.call(this, NodeType.Label) || this;
_this.id = id;
return _this;
}
Label.prototype.printLabel = function () { return this.id.actualText + ":"; };
Label.prototype.typeCheck = function (typeFlow) {
@@ -2709,6 +2715,7 @@ var TypeScript;
function Expression(nodeType) {
var _this;
_this = _super.call(this, nodeType) || this;
return _this;
}
Expression.prototype.isExpression = function () { return true; };
Expression.prototype.isStatementOrExpression = function () { return true; };
@@ -2723,6 +2730,7 @@ var TypeScript;
_this.operand = operand;
_this.targetType = null; // Target type for an object literal (null if no target type)
_this.castTerm = null;
return _this;
}
UnaryExpression.prototype.addToControlFlow = function (context) {
_super.prototype.addToControlFlow.call(this, context);
@@ -2869,6 +2877,7 @@ var TypeScript;
_this.arguments = arguments;
_this.signature = null;
_this.minChar = _this.target.minChar;
return _this;
}
CallExpression.prototype.typeCheck = function (typeFlow) {
if (this.nodeType == NodeType.New) {
@@ -2900,6 +2909,7 @@ var TypeScript;
_this = _super.call(this, nodeType) || this;
_this.operand1 = operand1;
_this.operand2 = operand2;
return _this;
}
BinaryExpression.prototype.typeCheck = function (typeFlow) {
switch (this.nodeType) {
@@ -3054,6 +3064,7 @@ var TypeScript;
_this.operand1 = operand1;
_this.operand2 = operand2;
_this.operand3 = operand3;
return _this;
}
ConditionalExpression.prototype.typeCheck = function (typeFlow) {
return typeFlow.typeCheckQMark(this);
@@ -3080,6 +3091,7 @@ var TypeScript;
_this.value = value;
_this.hasEmptyFraction = hasEmptyFraction;
_this.isNegativeZero = false;
return _this;
}
NumberLiteral.prototype.typeCheck = function (typeFlow) {
this.type = typeFlow.doubleType;
@@ -3120,6 +3132,7 @@ var TypeScript;
var _this;
_this = _super.call(this, NodeType.Regex) || this;
_this.regex = regex;
return _this;
}
RegexLiteral.prototype.typeCheck = function (typeFlow) {
this.type = typeFlow.regexType;
@@ -3141,6 +3154,7 @@ var TypeScript;
var _this;
_this = _super.call(this, NodeType.QString) || this;
_this.text = text;
return _this;
}
StringLiteral.prototype.emit = function (emitter, tokenId, startLine) {
emitter.emitParensAndCommentsInPlace(this, true);
@@ -3167,6 +3181,7 @@ var TypeScript;
function ModuleElement(nodeType) {
var _this;
_this = _super.call(this, nodeType) || this;
return _this;
}
return ModuleElement;
}(AST));
@@ -3180,6 +3195,7 @@ var TypeScript;
_this.alias = alias;
_this.varFlags = VarFlags.None;
_this.isDynamicImport = false;
return _this;
}
ImportDeclaration.prototype.isStatementOrExpression = function () { return true; };
ImportDeclaration.prototype.emit = function (emitter, tokenId, startLine) {
@@ -3242,6 +3258,7 @@ var TypeScript;
_this.typeExpr = null;
_this.varFlags = VarFlags.None;
_this.sym = null;
return _this;
}
BoundDecl.prototype.isStatementOrExpression = function () { return true; };
BoundDecl.prototype.isPrivate = function () { return hasFlag(this.varFlags, VarFlags.Private); };
@@ -3261,6 +3278,7 @@ var TypeScript;
function VarDecl(id, nest) {
var _this;
_this = _super.call(this, id, NodeType.VarDecl, nest) || this;
return _this;
}
VarDecl.prototype.isAmbient = function () { return hasFlag(this.varFlags, VarFlags.Ambient); };
VarDecl.prototype.isExported = function () { return hasFlag(this.varFlags, VarFlags.Exported); };
@@ -3281,6 +3299,7 @@ var TypeScript;
_this = _super.call(this, id, NodeType.ArgDecl, 0) || this;
_this.isOptional = false;
_this.parameterPropertySym = null;
return _this;
}
ArgDecl.prototype.isOptionalArg = function () { return this.isOptional || this.init; };
ArgDecl.prototype.treeViewLabel = function () {
@@ -3331,6 +3350,7 @@ var TypeScript;
_this.returnStatementsWithExpressions = [];
_this.scopeType = null; // Type of the FuncDecl, before target typing
_this.endingToken = null;
return _this;
}
FuncDecl.prototype.internalName = function () {
if (this.internalNameCache == null) {
@@ -3458,6 +3478,7 @@ var TypeScript;
_this.containsUnicodeCharInComment = false;
_this.vars = vars;
_this.scopes = scopes;
return _this;
}
Script.prototype.typeCheck = function (typeFlow) {
return typeFlow.typeCheckScript(this);
@@ -3517,6 +3538,7 @@ var TypeScript;
_this.members = members;
_this.leftCurlyCount = 0;
_this.rightCurlyCount = 0;
return _this;
}
return NamedDeclaration;
}(ModuleElement));
@@ -3535,6 +3557,7 @@ var TypeScript;
_this.vars = vars;
_this.scopes = scopes;
_this.prettyName = _this.name.actualText;
return _this;
}
ModuleDeclaration.prototype.isExported = function () { return hasFlag(this.modFlags, ModuleFlags.Exported); };
ModuleDeclaration.prototype.isAmbient = function () { return hasFlag(this.modFlags, ModuleFlags.Ambient); };
@@ -3565,6 +3588,7 @@ var TypeScript;
_this.extendsList = extendsList;
_this.implementsList = implementsList;
_this.varFlags = VarFlags.None;
return _this;
}
TypeDeclaration.prototype.isExported = function () {
return hasFlag(this.varFlags, VarFlags.Exported);
@@ -3584,6 +3608,7 @@ var TypeScript;
_this.constructorDecl = null;
_this.constructorNestingLevel = 0;
_this.endingToken = null;
return _this;
}
ClassDeclaration.prototype.typeCheck = function (typeFlow) {
return typeFlow.typeCheckClass(this);
@@ -3599,6 +3624,7 @@ var TypeScript;
function InterfaceDeclaration(name, members, extendsList, implementsList) {
var _this;
_this = _super.call(this, NodeType.InterfaceDeclaration, name, extendsList, implementsList, members) || this;
return _this;
}
InterfaceDeclaration.prototype.typeCheck = function (typeFlow) {
return typeFlow.typeCheckInterface(this);
@@ -3614,6 +3640,7 @@ var TypeScript;
var _this;
_this = _super.call(this, nodeType) || this;
_this.flags |= ASTFlags.IsStatement;
return _this;
}
Statement.prototype.isLoop = function () { return false; };
Statement.prototype.isStatementOrExpression = function () { return true; };
@@ -3632,6 +3659,7 @@ var TypeScript;
_this = _super.call(this, NodeType.LabeledStatement) || this;
_this.labels = labels;
_this.stmt = stmt;
return _this;
}
LabeledStatement.prototype.emit = function (emitter, tokenId, startLine) {
emitter.emitParensAndCommentsInPlace(this, true);
@@ -3667,6 +3695,7 @@ var TypeScript;
_this = _super.call(this, NodeType.Block) || this;
_this.statements = statements;
_this.isStatementBlock = isStatementBlock;
return _this;
}
Block.prototype.emit = function (emitter, tokenId, startLine) {
emitter.emitParensAndCommentsInPlace(this, true);
@@ -3723,6 +3752,7 @@ var TypeScript;
_this = _super.call(this, nodeType) || this;
_this.target = null;
_this.resolvedTarget = null;
return _this;
}
Jump.prototype.hasExplicitTarget = function () { return (this.target); };
Jump.prototype.setResolvedTarget = function (parser, stmt) {
@@ -3775,6 +3805,7 @@ var TypeScript;
_this = _super.call(this, NodeType.While) || this;
_this.cond = cond;
_this.body = null;
return _this;
}
WhileStatement.prototype.isLoop = function () { return true; };
WhileStatement.prototype.emit = function (emitter, tokenId, startLine) {
@@ -3829,6 +3860,7 @@ var TypeScript;
_this.body = null;
_this.whileAST = null;
_this.cond = null;
return _this;
}
DoWhileStatement.prototype.isLoop = function () { return true; };
DoWhileStatement.prototype.emit = function (emitter, tokenId, startLine) {
@@ -3886,6 +3918,7 @@ var TypeScript;
_this.cond = cond;
_this.elseBod = null;
_this.statement = new ASTSpan();
return _this;
}
IfStatement.prototype.isCompoundStatement = function () { return true; };
IfStatement.prototype.emit = function (emitter, tokenId, startLine) {
@@ -3963,6 +3996,7 @@ var TypeScript;
var _this;
_this = _super.call(this, NodeType.Return) || this;
_this.returnExpression = null;
return _this;
}
ReturnStatement.prototype.emit = function (emitter, tokenId, startLine) {
emitter.emitParensAndCommentsInPlace(this, true);
@@ -3994,6 +4028,7 @@ var TypeScript;
function EndCode() {
var _this;
_this = _super.call(this, NodeType.EndCode) || this;
return _this;
}
return EndCode;
}(AST));
@@ -4009,6 +4044,7 @@ var TypeScript;
if (_this.lval && (_this.lval.nodeType == NodeType.VarDecl)) {
_this.lval.varFlags |= VarFlags.AutoInit;
}
return _this;
}
ForInStatement.prototype.isLoop = function () { return true; };
ForInStatement.prototype.isFiltered = function () {
@@ -4120,6 +4156,7 @@ var TypeScript;
var _this;
_this = _super.call(this, NodeType.For) || this;
_this.init = init;
return _this;
}
ForStatement.prototype.isLoop = function () { return true; };
ForStatement.prototype.emit = function (emitter, tokenId, startLine) {
@@ -4213,6 +4250,7 @@ var TypeScript;
_this = _super.call(this, NodeType.With) || this;
_this.expr = expr;
_this.withSym = null;
return _this;
}
WithStatement.prototype.isCompoundStatement = function () { return true; };
WithStatement.prototype.emit = function (emitter, tokenId, startLine) {
@@ -4241,6 +4279,7 @@ var TypeScript;
_this.val = val;
_this.defaultCase = null;
_this.statement = new ASTSpan();
return _this;
}
SwitchStatement.prototype.isCompoundStatement = function () { return true; };
SwitchStatement.prototype.emit = function (emitter, tokenId, startLine) {
@@ -4312,6 +4351,7 @@ var TypeScript;
var _this;
_this = _super.call(this, NodeType.Case) || this;
_this.expr = null;
return _this;
}
CaseStatement.prototype.emit = function (emitter, tokenId, startLine) {
emitter.emitParensAndCommentsInPlace(this, true);
@@ -4367,6 +4407,7 @@ var TypeScript;
_this = _super.call(this, NodeType.TypeRef) || this;
_this.term = term;
_this.arrayCount = arrayCount;
return _this;
}
TypeReference.prototype.emit = function (emitter, tokenId, startLine) {
throw new Error("should not emit a type ref");
@@ -4398,6 +4439,7 @@ var TypeScript;
_this = _super.call(this, NodeType.TryFinally) || this;
_this.tryNode = tryNode;
_this.finallyNode = finallyNode;
return _this;
}
TryFinally.prototype.isCompoundStatement = function () { return true; };
TryFinally.prototype.emit = function (emitter, tokenId, startLine) {
@@ -4444,6 +4486,7 @@ var TypeScript;
_this = _super.call(this, NodeType.TryCatch) || this;
_this.tryNode = tryNode;
_this.catchNode = catchNode;
return _this;
}
TryCatch.prototype.isCompoundStatement = function () { return true; };
TryCatch.prototype.emit = function (emitter, tokenId, startLine) {
@@ -4494,6 +4537,7 @@ var TypeScript;
var _this;
_this = _super.call(this, NodeType.Try) || this;
_this.body = body;
return _this;
}
Try.prototype.emit = function (emitter, tokenId, startLine) {
emitter.emitParensAndCommentsInPlace(this, true);
@@ -4529,6 +4573,7 @@ var TypeScript;
if (_this.param) {
_this.param.varFlags |= VarFlags.AutoInit;
}
return _this;
}
Catch.prototype.emit = function (emitter, tokenId, startLine) {
emitter.emitParensAndCommentsInPlace(this, true);
@@ -4597,6 +4642,7 @@ var TypeScript;
var _this;
_this = _super.call(this, NodeType.Finally) || this;
_this.body = body;
return _this;
}
Finally.prototype.emit = function (emitter, tokenId, startLine) {
emitter.emitParensAndCommentsInPlace(this, true);
@@ -4629,6 +4675,7 @@ var TypeScript;
_this.isBlockComment = isBlockComment;
_this.endsLine = endsLine;
_this.text = null;
return _this;
}
Comment.prototype.getText = function () {
if (this.text == null) {
@@ -4652,6 +4699,7 @@ var TypeScript;
function DebuggerStatement() {
var _this;
_this = _super.call(this, NodeType.Debugger) || this;
return _this;
}
DebuggerStatement.prototype.emit = function (emitter, tokenId, startLine) {
emitter.emitParensAndCommentsInPlace(this, true);
@@ -2384,6 +2384,7 @@ var Harness;
_this = _super.call(this, description, block) || this;
_this.description = description;
_this.block = block;
return _this;
}
TestCase.prototype.addChild = function (child) {
throw new Error("Testcases may not be nested inside other testcases");
@@ -2419,6 +2420,7 @@ var Harness;
_this = _super.call(this, description, block) || this;
_this.description = description;
_this.block = block;
return _this;
}
/** Run the block, and if the block doesn't raise an error, run the children. */
Scenario.prototype.run = function (done) {
@@ -2473,6 +2475,7 @@ var Harness;
function Run() {
var _this;
_this = _super.call(this, 'Test Run', null) || this;
return _this;
}
Run.prototype.run = function () {
emitLog('start');
@@ -31,6 +31,7 @@ var Derived = (function (_super) {
_this = _super.apply(this, arguments) || this;
_this.x = _super.prototype.foo; // error
_this.z = _super.prototype.foo; // error
return _this;
}
Derived.prototype.y = function () {
return _super.prototype.foo; // error
@@ -25,6 +25,7 @@ var Derived = (function (_super) {
var _this;
_this = _super.apply(this, arguments) || this;
_this.bing = function () { return Base.foo; }; // error
return _this;
}
return Derived;
}(Base));
@@ -60,6 +60,7 @@ var B = (function (_super) {
_this = _super.call(this, x) || this;
// Fails, x is readonly
_this.x = 1;
return _this;
}
return B;
}(A));
@@ -72,6 +73,7 @@ var C = (function (_super) {
_this = _super.call(this, x) || this;
_this.x = x;
_this.x = 1;
return _this;
}
return C;
}(A));
@@ -90,6 +92,7 @@ var E = (function (_super) {
_this = _super.call(this, x) || this;
_this.x = x;
_this.x = 1;
return _this;
}
return E;
}(D));
@@ -126,6 +126,7 @@ var H = (function (_super) {
var _this;
_this = _super.call(this) || this;
return new G(); //error
return _this;
}
return H;
}(F));
@@ -135,6 +136,7 @@ var I = (function (_super) {
var _this;
_this = _super.call(this) || this;
return new G();
return _this;
}
return I;
}(G));
+1
View File
@@ -30,6 +30,7 @@ var D = (function (_super) {
_this.v = 1;
_this.p = 1;
C.s = 1;
return _this;
}
return D;
}(C));
@@ -25,6 +25,7 @@ var Greeter = (function (_super) {
_this = _super.apply(this, arguments) || this;
_this.a = 10;
_this.nameA = "Ten";
return _this;
}
return Greeter;
}(AbstractGreeter));
@@ -1,2 +1,2 @@
//// [sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map]
{"version":3,"file":"sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts"],"names":[],"mappings":";;;;;AAAA;IAAA;IACA,CAAC;IAAD,sBAAC;AAAD,CAAC,AADD,IACC;AAED;IAAsB,2BAAe;IAArC;QAAA,UAGC;;QAFU,OAAC,GAAG,EAAE,CAAC;QACP,WAAK,GAAG,KAAK,CAAC;IACzB,CAAC;IAAD,cAAC;AAAD,CAAC,AAHD,CAAsB,eAAe,GAGpC"}
{"version":3,"file":"sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts"],"names":[],"mappings":";;;;;AAAA;IAAA;IACA,CAAC;IAAD,sBAAC;AAAD,CAAC,AADD,IACC;AAED;IAAsB,2BAAe;IAArC;QAAA,UAGC;;QAFU,OAAC,GAAG,EAAE,CAAC;QACP,WAAK,GAAG,KAAK,CAAC;;IACzB,CAAC;IAAD,cAAC;AAAD,CAAC,AAHD,CAAsB,eAAe,GAGpC"}
@@ -130,6 +130,7 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts
4 >Emitted(17, 28) Source(6, 25) + SourceIndex(0)
5 >Emitted(17, 29) Source(6, 26) + SourceIndex(0)
---
>>> return _this;
>>> }
1 >^^^^
2 > ^
@@ -137,8 +138,8 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts
1 >
>
2 > }
1 >Emitted(18, 5) Source(7, 1) + SourceIndex(0)
2 >Emitted(18, 6) Source(7, 2) + SourceIndex(0)
1 >Emitted(19, 5) Source(7, 1) + SourceIndex(0)
2 >Emitted(19, 6) Source(7, 2) + SourceIndex(0)
---
>>> return Greeter;
1->^^^^
@@ -146,8 +147,8 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts
3 > ^^^->
1->
2 > }
1->Emitted(19, 5) Source(7, 1) + SourceIndex(0)
2 >Emitted(19, 19) Source(7, 2) + SourceIndex(0)
1->Emitted(20, 5) Source(7, 1) + SourceIndex(0)
2 >Emitted(20, 19) Source(7, 2) + SourceIndex(0)
---
>>>}(AbstractGreeter));
1->
@@ -166,11 +167,11 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts
> public a = 10;
> public nameA = "Ten";
> }
1->Emitted(20, 1) Source(7, 1) + SourceIndex(0)
2 >Emitted(20, 2) Source(7, 2) + SourceIndex(0)
3 >Emitted(20, 2) Source(4, 1) + SourceIndex(0)
4 >Emitted(20, 3) Source(4, 23) + SourceIndex(0)
5 >Emitted(20, 18) Source(4, 38) + SourceIndex(0)
6 >Emitted(20, 21) Source(7, 2) + SourceIndex(0)
1->Emitted(21, 1) Source(7, 1) + SourceIndex(0)
2 >Emitted(21, 2) Source(7, 2) + SourceIndex(0)
3 >Emitted(21, 2) Source(4, 1) + SourceIndex(0)
4 >Emitted(21, 3) Source(4, 23) + SourceIndex(0)
5 >Emitted(21, 18) Source(4, 38) + SourceIndex(0)
6 >Emitted(21, 21) Source(7, 2) + SourceIndex(0)
---
>>>//# sourceMappingURL=sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map
@@ -31,6 +31,7 @@ var B = (function (_super) {
_this = _super.apply(this, arguments) || this;
_this.p1 = doThing(A); // OK
_this.p2 = doThing(B); // OK
return _this;
}
return B;
}(A));
@@ -52,6 +52,7 @@ var B = (function (_super) {
var _this;
var x = 1; // should not error
_this = _super.call(this) || this;
return _this;
}
return B;
}(A));
@@ -62,6 +63,7 @@ var C = (function (_super) {
var _this;
_this.p = 10;
var x = 1; // should error
return _this;
}
return C;
}(A));
@@ -71,6 +73,7 @@ var D = (function (_super) {
var _this;
_this.p = 11;
var x = 1; // should error
return _this;
}
return D;
}(A));
@@ -80,6 +83,7 @@ var E = (function (_super) {
var _this;
_this.p = 12;
var x = 1; // should error
return _this;
}
return E;
}(A));
@@ -78,6 +78,7 @@ var B = (function (_super) {
"use strict"; // No error
_this = _super.call(this) || this;
_this.s = 9;
return _this;
}
return B;
}(A));
@@ -88,6 +89,7 @@ var C = (function (_super) {
_this = _super.call(this) || this; // No error
_this.s = 9;
"use strict";
return _this;
}
return C;
}(A));
@@ -99,6 +101,7 @@ var D = (function (_super) {
var x = 1; // Error
_this = _super.call(this) || this;
"use strict";
return _this;
}
return D;
}(A));
@@ -108,6 +111,7 @@ var Bs = (function (_super) {
var _this;
"use strict"; // No error
_this = _super.call(this) || this;
return _this;
}
return Bs;
}(A));
@@ -118,6 +122,7 @@ var Cs = (function (_super) {
var _this;
_this = _super.call(this) || this; // No error
"use strict";
return _this;
}
return Cs;
}(A));
@@ -129,6 +134,7 @@ var Ds = (function (_super) {
var x = 1; // no Error
_this = _super.call(this) || this;
"use strict";
return _this;
}
return Ds;
}(A));
@@ -48,6 +48,7 @@ var Q = (function (_super) {
_this = _super.call(this) || this;
_this.z = z;
_this.xx = _super.prototype.;
return _this;
}
Q.prototype.foo = function (zz) {
if (zz === void 0) { zz = _super.prototype.; }

Some files were not shown because too many files have changed in this diff Show More