Accepted baselines.

This commit is contained in:
Daniel Rosenwasser
2016-09-20 12:29:32 -04:00
parent dc58fb5558
commit cd787cc1c2
54 changed files with 74 additions and 148 deletions
@@ -116,8 +116,7 @@ var Base = (function () {
var Derived = (function (_super) {
__extends(Derived, _super);
function Derived() {
var _this = _super.call(this, function () { return _this; }) || this;
return _this;
return _super.call(this, function () { return _this; }) || this;
}
return Derived;
}(Base));
@@ -158,8 +157,7 @@ var M2;
var Derived = (function (_super) {
__extends(Derived, _super);
function Derived() {
var _this = _super.call(this, function () { return _this; }) || this;
return _this;
return _super.call(this, function () { return _this; }) || this;
}
return Derived;
}(Base));
+2 -4
View File
@@ -43,16 +43,14 @@ var C = (function () {
var ELoc = (function (_super) {
__extends(ELoc, _super);
function ELoc(x) {
var _this = _super.call(this, 0, x) || this;
return _this;
return _super.call(this, 0, x) || this;
}
return ELoc;
}(C));
var ELocVar = (function (_super) {
__extends(ELocVar, _super);
function ELocVar(x) {
var _this = _super.call(this, 0, loc) || this;
return _this;
return _super.call(this, 0, loc) || this;
}
ELocVar.prototype.m = function () {
var loc = 10;
@@ -22,8 +22,7 @@ var A = (function () {
var B = (function (_super) {
__extends(B, _super);
function B() {
var _this = _super.call(this, { test: function () { return _this.someMethod(); } }) || this;
return _this;
return _super.call(this, { test: function () { return _this.someMethod(); } }) || this;
}
B.prototype.someMethod = function () { };
return B;
@@ -49,16 +49,14 @@ var Foo;
var Bar = (function (_super) {
__extends(Bar, _super);
function Bar() {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return Bar;
}(Foo.Object));
var Baz = (function (_super) {
__extends(Baz, _super);
function Baz() {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return Baz;
}(Object));
@@ -25,8 +25,7 @@ var Based = (function () {
var Derived = (function (_super) {
__extends(Derived, _super);
function Derived() {
var _this = _super.call(this, _this.x) || this;
return _this;
return _super.call(this, this.x) || this;
}
return Derived;
}(Based));
@@ -23,8 +23,7 @@ var Base = (function () {
var Super = (function (_super) {
__extends(Super, _super);
function Super() {
var _this = _super.call(this, (function () { return _this; })) || this;
return _this;
return _super.call(this, (function () { return _this; })) || this;
}
return Super;
}(Base));
@@ -29,8 +29,7 @@ var __extends = (this && this.__extends) || function (d, b) {
var SubText = (function (_super) {
__extends(SubText, _super);
function SubText(text, span) {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return SubText;
}(TextBase));
@@ -42,8 +42,7 @@ var B = (function (_super) {
var C = (function (_super) {
__extends(C, _super);
function C(x) {
var _this = _super.call(this, x) || this;
return _this;
return _super.call(this, x) || this;
}
return C;
}(A));
@@ -189,8 +189,7 @@ var H = (function () {
var I = (function (_super) {
__extends(I, _super);
function I() {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
} // ERROR - no super call allowed
return I;
}(Object));
@@ -124,8 +124,7 @@ var Foo2 = (function (_super) {
var Foo4 = (function (_super) {
__extends(Foo4, _super);
function Foo4(_super) {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
Foo4.prototype.y = function (_super) {
var _this = this;
@@ -44,8 +44,7 @@ var a = (function () {
var b1 = (function (_super) {
__extends(b1, _super);
function b1(_super) {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return b1;
}(a));
@@ -61,8 +60,7 @@ var b2 = (function (_super) {
var b3 = (function (_super) {
__extends(b3, _super);
function b3(_super) {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return b3;
}(a));
@@ -227,8 +227,7 @@ var c2 = (function () {
var c3 = (function (_super) {
__extends(c3, _super);
function c3() {
var _this = _super.call(this, 10) || this;
return _this;
return _super.call(this, 10) || this;
}
/** c3 f1*/
c3.prototype.f1 = function () {
@@ -47,8 +47,7 @@ var Base = (function () {
var Derived = (function (_super) {
__extends(Derived, _super);
function Derived(x) {
var _this = _super.call(this, x) || this;
return _this;
return _super.call(this, x) || this;
}
return Derived;
}(Base));
@@ -40,8 +40,7 @@ var FooBase = (function () {
var Foo = (function (_super) {
__extends(Foo, _super);
function Foo(x, y) {
var _this = _super.call(this, x) || this;
return _this;
return _super.call(this, x) || this;
}
Foo.prototype.bar1 = function () { };
return Foo;
@@ -58,8 +58,7 @@ var templa;
var AbstractElementController = (function (_super) {
__extends(AbstractElementController, _super);
function AbstractElementController() {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return AbstractElementController;
}(templa.mvc.AbstractController));
@@ -45,8 +45,7 @@ var _0_ts_2 = require("./0.ts");
var C = (function (_super) {
__extends(C, _super);
function C(prop) {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return C;
}(_0_ts_1.base));
@@ -48,8 +48,7 @@ var _0_2 = require("./0");
var C = (function (_super) {
__extends(C, _super);
function C(prop) {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return C;
}(_0_1.base));
@@ -32,8 +32,7 @@ var BaseClass = (function () {
var DerivedClass = (function (_super) {
__extends(DerivedClass, _super);
function DerivedClass() {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
DerivedClass.prototype._init = function () {
};
@@ -66,8 +66,7 @@ var Base = (function () {
var Derived = (function (_super) {
__extends(Derived, _super);
function Derived(a) {
var _this = _super.call(this, x) || this;
return _this;
return _super.call(this, x) || this;
}
Derived.prototype.b = function (a) { };
Object.defineProperty(Derived.prototype, "c", {
@@ -94,8 +94,7 @@ var Base = (function () {
var Derived = (function (_super) {
__extends(Derived, _super);
function Derived(a) {
var _this = _super.call(this, a) || this;
return _this;
return _super.call(this, a) || this;
}
Derived.prototype.b = function (a) { };
Object.defineProperty(Derived.prototype, "c", {
@@ -103,16 +103,14 @@ var Base = (function () {
var Derived1 = (function (_super) {
__extends(Derived1, _super);
function Derived1(a) {
var _this = _super.call(this, a) || this;
return _this;
return _super.call(this, a) || this;
}
return Derived1;
}(Base));
var Derived2 = (function (_super) {
__extends(Derived2, _super);
function Derived2(a) {
var _this = _super.call(this, a) || this;
return _this;
return _super.call(this, a) || this;
}
Derived2.prototype.b = function (a) { };
return Derived2;
@@ -120,8 +118,7 @@ var Derived2 = (function (_super) {
var Derived3 = (function (_super) {
__extends(Derived3, _super);
function Derived3(a) {
var _this = _super.call(this, a) || this;
return _this;
return _super.call(this, a) || this;
}
Object.defineProperty(Derived3.prototype, "c", {
get: function () { return x; },
@@ -133,8 +130,7 @@ var Derived3 = (function (_super) {
var Derived4 = (function (_super) {
__extends(Derived4, _super);
function Derived4(a) {
var _this = _super.call(this, a) || this;
return _this;
return _super.call(this, a) || this;
}
Object.defineProperty(Derived4.prototype, "c", {
set: function (v) { },
@@ -146,24 +142,21 @@ var Derived4 = (function (_super) {
var Derived5 = (function (_super) {
__extends(Derived5, _super);
function Derived5(a) {
var _this = _super.call(this, a) || this;
return _this;
return _super.call(this, a) || this;
}
return Derived5;
}(Base));
var Derived6 = (function (_super) {
__extends(Derived6, _super);
function Derived6(a) {
var _this = _super.call(this, a) || this;
return _this;
return _super.call(this, a) || this;
}
return Derived6;
}(Base));
var Derived7 = (function (_super) {
__extends(Derived7, _super);
function Derived7(a) {
var _this = _super.call(this, a) || this;
return _this;
return _super.call(this, a) || this;
}
Derived7.s = function (a) { };
return Derived7;
@@ -171,8 +164,7 @@ var Derived7 = (function (_super) {
var Derived8 = (function (_super) {
__extends(Derived8, _super);
function Derived8(a) {
var _this = _super.call(this, a) || this;
return _this;
return _super.call(this, a) || this;
}
Object.defineProperty(Derived8, "t", {
get: function () { return x; },
@@ -184,8 +176,7 @@ var Derived8 = (function (_super) {
var Derived9 = (function (_super) {
__extends(Derived9, _super);
function Derived9(a) {
var _this = _super.call(this, a) || this;
return _this;
return _super.call(this, a) || this;
}
Object.defineProperty(Derived9, "t", {
set: function (v) { },
@@ -197,8 +188,7 @@ var Derived9 = (function (_super) {
var Derived10 = (function (_super) {
__extends(Derived10, _super);
function Derived10(a) {
var _this = _super.call(this, a) || this;
return _this;
return _super.call(this, a) || this;
}
return Derived10;
}(Base));
@@ -92,8 +92,7 @@ var Base = (function () {
var Derived = (function (_super) {
__extends(Derived, _super);
function Derived(a) {
var _this = _super.call(this, x) || this;
return _this;
return _super.call(this, x) || this;
}
Derived.prototype.b = function (a) { };
Object.defineProperty(Derived.prototype, "c", {
@@ -42,8 +42,7 @@ var Base = (function () {
var Derived = (function (_super) {
__extends(Derived, _super);
function Derived() {
var _this = _super.call(this, _this) || this;
return _this;
return _super.call(this, _this) || this;
}
return Derived;
}(Base));
@@ -65,8 +65,7 @@ var Class = (function () {
var SubClass = (function (_super) {
__extends(SubClass, _super);
function SubClass() {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return SubClass;
}(Class));
@@ -78,8 +77,7 @@ var D = (function () {
var SubD = (function (_super) {
__extends(SubD, _super);
function SubD() {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return SubD;
}(D));
+1 -2
View File
@@ -267,8 +267,7 @@ var SuperParent = (function () {
var SuperChild = (function (_super) {
__extends(SuperChild, _super);
function SuperChild() {
var _this = _super.call(this, 1) || this;
return _this;
return _super.call(this, 1) || this;
}
SuperChild.prototype.b = function () {
_super.prototype.b.call(this, 'str');
@@ -109,8 +109,7 @@ var PortalFx;
var Validator = (function (_super) {
__extends(Validator, _super);
function Validator(message) {
var _this = _super.call(this, message) || this;
return _this;
return _super.call(this, message) || this;
}
return Validator;
}(Portal.Controls.Validators.Validator));
@@ -52,8 +52,7 @@ var EndGate;
var NumberTween = (function (_super) {
__extends(NumberTween, _super);
function NumberTween(from) {
var _this = _super.call(this, from) || this;
return _this;
return _super.call(this, from) || this;
}
return NumberTween;
}(Tweening.Tween));
@@ -51,8 +51,7 @@ var EndGate;
var NumberTween = (function (_super) {
__extends(NumberTween, _super);
function NumberTween(from) {
var _this = _super.call(this, from) || this;
return _this;
return _super.call(this, from) || this;
}
return NumberTween;
}(Tweening.Tween));
@@ -38,8 +38,7 @@ var Bar = (function () {
var BarExtended = (function (_super) {
__extends(BarExtended, _super);
function BarExtended() {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return BarExtended;
}(Bar));
@@ -15,8 +15,7 @@ var __extends = (this && this.__extends) || function (d, b) {
var George = (function (_super) {
__extends(George, _super);
function George() {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return George;
}((function () {
@@ -162,8 +162,7 @@ var C2 = (function (_super) {
__extends(C2, _super);
function C2(v2) {
if (v2 === void 0) { v2 = 6; }
var _this = _super.call(this, v2) || this;
return _this;
return _super.call(this, v2) || this;
}
return C2;
}(C1));
@@ -2667,8 +2667,7 @@ var TypeScript;
var MissingIdentifier = (function (_super) {
__extends(MissingIdentifier, _super);
function MissingIdentifier() {
var _this = _super.call(this, "__missing") || this;
return _this;
return _super.call(this, "__missing") || this;
}
MissingIdentifier.prototype.isMissing = function () {
return true;
@@ -2707,8 +2706,7 @@ var TypeScript;
var Expression = (function (_super) {
__extends(Expression, _super);
function Expression(nodeType) {
var _this = _super.call(this, nodeType) || this;
return _this;
return _super.call(this, nodeType) || this;
}
Expression.prototype.isExpression = function () { return true; };
Expression.prototype.isStatementOrExpression = function () { return true; };
@@ -3165,8 +3163,7 @@ var TypeScript;
var ModuleElement = (function (_super) {
__extends(ModuleElement, _super);
function ModuleElement(nodeType) {
var _this = _super.call(this, nodeType) || this;
return _this;
return _super.call(this, nodeType) || this;
}
return ModuleElement;
}(AST));
@@ -3259,8 +3256,7 @@ var TypeScript;
var VarDecl = (function (_super) {
__extends(VarDecl, _super);
function VarDecl(id, nest) {
var _this = _super.call(this, id, NodeType.VarDecl, nest) || this;
return _this;
return _super.call(this, id, NodeType.VarDecl, nest) || this;
}
VarDecl.prototype.isAmbient = function () { return hasFlag(this.varFlags, VarFlags.Ambient); };
VarDecl.prototype.isExported = function () { return hasFlag(this.varFlags, VarFlags.Exported); };
@@ -3597,8 +3593,7 @@ var TypeScript;
var InterfaceDeclaration = (function (_super) {
__extends(InterfaceDeclaration, _super);
function InterfaceDeclaration(name, members, extendsList, implementsList) {
var _this = _super.call(this, NodeType.InterfaceDeclaration, name, extendsList, implementsList, members) || this;
return _this;
return _super.call(this, NodeType.InterfaceDeclaration, name, extendsList, implementsList, members) || this;
}
InterfaceDeclaration.prototype.typeCheck = function (typeFlow) {
return typeFlow.typeCheckInterface(this);
@@ -3992,8 +3987,7 @@ var TypeScript;
var EndCode = (function (_super) {
__extends(EndCode, _super);
function EndCode() {
var _this = _super.call(this, NodeType.EndCode) || this;
return _this;
return _super.call(this, NodeType.EndCode) || this;
}
return EndCode;
}(AST));
@@ -4650,8 +4644,7 @@ var TypeScript;
var DebuggerStatement = (function (_super) {
__extends(DebuggerStatement, _super);
function DebuggerStatement() {
var _this = _super.call(this, NodeType.Debugger) || this;
return _this;
return _super.call(this, NodeType.Debugger) || this;
}
DebuggerStatement.prototype.emit = function (emitter, tokenId, startLine) {
emitter.emitParensAndCommentsInPlace(this, true);
+1 -2
View File
@@ -2471,8 +2471,7 @@ var Harness;
var Run = (function (_super) {
__extends(Run, _super);
function Run() {
var _this = _super.call(this, 'Test Run', null) || this;
return _this;
return _super.call(this, 'Test Run', null) || this;
}
Run.prototype.run = function () {
emitLog('start');
@@ -107,8 +107,7 @@ var Bs = (function (_super) {
__extends(Bs, _super);
function Bs() {
"use strict"; // No error
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return Bs;
}(A));
@@ -24,8 +24,7 @@ var Base = (function () {
var D = (function (_super) {
__extends(D, _super);
function D() {
var _this = _super.call(this, function () { _this._t; }) || this;
return _this;
return _super.call(this, function () { _this._t; }) || this;
}
return D;
}(Base));
@@ -24,8 +24,7 @@ var Base = (function () {
var D = (function (_super) {
__extends(D, _super);
function D() {
var _this = _super.call(this, _this) || this;
return _this;
return _super.call(this, this) || this;
}
return D;
}(Base));
@@ -20,8 +20,7 @@ var __extends = (this && this.__extends) || function (d, b) {
var D = (function (_super) {
__extends(D, _super);
function D() {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return D;
}(B));
@@ -19,8 +19,7 @@ var __extends = (this && this.__extends) || function (d, b) {
var D = (function (_super) {
__extends(D, _super);
function D() {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return D;
}(B));
@@ -25,8 +25,7 @@ var A = (function () {
var B = (function (_super) {
__extends(B, _super);
function B() {
var _this = _super.call(this, function (value) { return String(value); }) || this;
return _this;
return _super.call(this, function (value) { return String(value); }) || this;
}
return B;
}(A));
@@ -25,8 +25,7 @@ var A = (function () {
var B = (function (_super) {
__extends(B, _super);
function B() {
var _this = _super.call(this, function (value) { return String(value); }) || this;
return _this;
return _super.call(this, function (value) { return String(value); }) || this;
}
return B;
}(A));
@@ -25,8 +25,7 @@ var A = (function () {
var B = (function (_super) {
__extends(B, _super);
function B() {
var _this = _super.call(this, function (value) { return String(value); }) || this;
return _this;
return _super.call(this, function (value) { return String(value); }) || this;
}
return B;
}(A));
@@ -39,8 +39,7 @@ var B = (function (_super) {
var D = (function (_super) {
__extends(D, _super);
function D() {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return D;
}(C));
@@ -39,8 +39,7 @@ var B = (function (_super) {
var D = (function (_super) {
__extends(class_1, _super);
function class_1() {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return class_1;
}(C));
@@ -28,8 +28,7 @@ var B = (function (_super) {
__extends(B, _super);
// Ensure 'value' is of type 'number (and not '{}') by using its 'toExponential()' method.
function B() {
var _this = _super.call(this, function (value) { return String(value.toExponential()); }) || this;
return _this;
return _super.call(this, function (value) { return String(value.toExponential()); }) || this;
}
return B;
}(A));
@@ -27,8 +27,7 @@ var C = (function (_super) {
__extends(C, _super);
// Ensure 'value' is not of type 'any' by invoking it with type arguments.
function C() {
var _this = _super.call(this, function (value) { return String(value()); }) || this;
return _this;
return _super.call(this, function (value) { return String(value()); }) || this;
}
return C;
}(A));
@@ -28,8 +28,7 @@ var C = (function () {
var D = (function (_super) {
__extends(D, _super);
function D() {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return D;
}(C));
@@ -20,8 +20,7 @@ var __extends = (this && this.__extends) || function (d, b) {
var D = (function (_super) {
__extends(D, _super);
function D() {
var _this = _super.call(this) || this;
return _this;
return _super.call(this) || this;
}
return D;
}(B));
@@ -35,8 +35,7 @@ new Foo(function (s) { s = 5; }); // error, if types are applied correctly
var Bar = (function (_super) {
__extends(Bar, _super);
function Bar() {
var _this = _super.call(this, function (s) { s = 5; }) || this;
return _this;
return _super.call(this, function (s) { s = 5; }) || this;
}
return Bar;
}(Foo)); // error, if types are applied correctly
@@ -70,8 +70,7 @@ var ClassWithNoInitializer = (function (_super) {
__extends(ClassWithNoInitializer, _super);
//'this' in optional super call
function ClassWithNoInitializer() {
var _this = _super.call(this, _this) || this;
return _this;
return _super.call(this, _this) || this;
}
return ClassWithNoInitializer;
}(BaseErrClass));
@@ -71,8 +71,7 @@ var ClassWithNoInitializer = (function (_super) {
__extends(ClassWithNoInitializer, _super);
//'this' in optional super call
function ClassWithNoInitializer() {
var _this = _super.call(this, _this) || this;
return _this;
return _super.call(this, _this) || this;
}
return ClassWithNoInitializer;
}(BaseErrClass));
+1 -2
View File
@@ -36,8 +36,7 @@ var Base = (function () {
var Foo = (function (_super) {
__extends(Foo, _super);
function Foo() {
var _this = _super.call(this, _this) || this;
return _this;
return _super.call(this, _this) || this;
}
return Foo;
}(Base));
@@ -33,8 +33,7 @@ var Base = (function () {
var Foo = (function (_super) {
__extends(Foo, _super);
function Foo() {
var _this = _super.call(this, _this) || this;
return _this;
return _super.call(this, _this) || this;
}
return Foo;
}(Base));
+1 -2
View File
@@ -63,8 +63,7 @@ var C3 = (function () {
var C4 = (function (_super) {
__extends(C4, _super);
function C4() {
var _this = _super.call(this, asdf) || this;
return _this;
return _super.call(this, asdf) || this;
}
return C4;
}(C3));
@@ -24,8 +24,7 @@ var Base = (function () {
var Super = (function (_super) {
__extends(Super, _super);
function Super() {
var _this = _super.call(this, (function () { return _this; })()) || this;
return _this;
return _super.call(this, (function () { return _this; })()) || this;
}
return Super;
}(Base));