file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
crates/swc/tests/tsc-references/typeGuardsInGlobal.1.normal.js
JavaScript
//// [typeGuardsInGlobal.ts] // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. // variables in global var num; var var1; if (typeof var1 === "string") { num = var1.length; // string } else { num = var1; // number }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsInGlobal.2.minified.js
JavaScript
//// [typeGuardsInGlobal.ts] var var1; "string" == typeof var1 && var1.length;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsInIfStatement.1.normal.js
JavaScript
//// [typeGuardsInIfStatement.ts] // In the true branch statement of an 'if' statement, // the type of a variable or parameter is narrowed by any type guard in the 'if' condition when true. // In the false branch statement of an 'if' statement, // the type of a variable or parameter is narrowed by any type guard in t...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsInIfStatement.2.minified.js
JavaScript
//// [typeGuardsInIfStatement.ts]
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsInModule.1.normal.js
JavaScript
//// [typeGuardsInModule.ts] // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. // variables in global var num; var strOrNum; var var1; // Inside module (function(m1) { // global vars in function declaration num = typeof var1 ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsInModule.2.minified.js
JavaScript
//// [typeGuardsInModule.ts] var var1, m1, m2, m3, m11, var2, m21, var21, m31, m32, var4, m33, m4, var22; m11 = m1 || (m1 = {}), "string" == typeof var1 && var1.length, "string" == typeof var2 && var2.length, m11.var3, m11.var3, m21 = m2 || (m2 = {}), m32 = m31 || (m31 = {}), "string" == typeof var1 && var1.length, "st...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsInProperties.1.normal.js
JavaScript
//// [typeGuardsInProperties.ts] // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _create_class } from "@swc/helpers/_/_create_class"; var num;...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsInProperties.2.minified.js
JavaScript
//// [typeGuardsInProperties.ts] var c1, obj1; import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _create_class } from "@swc/helpers/_/_create_class"; "string" == typeof c1.pp2 && c1.pp2, "string" == typeof c1.pp3 && c1.pp3, "string" == typeof obj1.x && obj1.x;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsInRightOperandOfAndAndOperator.1.normal.js
JavaScript
//// [typeGuardsInRightOperandOfAndAndOperator.ts] // In the right operand of a && operation, // the type of a variable or parameter is narrowed by any type guard in the left operand when true. function foo(x) { return typeof x === "string" && x.length === 10; // string } function foo2(x) { // modify x in righ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsInRightOperandOfAndAndOperator.2.minified.js
JavaScript
//// [typeGuardsInRightOperandOfAndAndOperator.ts]
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsInRightOperandOfOrOrOperator.1.normal.js
JavaScript
//// [typeGuardsInRightOperandOfOrOrOperator.ts] // In the right operand of a || operation, // the type of a variable or parameter is narrowed by any type guard in the left operand when false, // provided the right operand contains no assignments to the variable or parameter. function foo(x) { return typeof x !==...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsInRightOperandOfOrOrOperator.2.minified.js
JavaScript
//// [typeGuardsInRightOperandOfOrOrOperator.ts]
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsInWhileStatement.1.normal.js
JavaScript
//// [typeGuardsInWhileStatement.ts] var cond; function a(x) { while(typeof x === "string"){ x; // string x = undefined; } x; // number } function b(x) { while(typeof x === "string"){ if (cond) continue; x; // string x = undefined; } x; // number } functio...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsInWhileStatement.2.minified.js
JavaScript
//// [typeGuardsInWhileStatement.ts]
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsNestedAssignments.1.normal.js
JavaScript
//// [typeGuardsNestedAssignments.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); }; function f1() { var foo; if ((foo = getFooOrNull()) !=...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsNestedAssignments.2.minified.js
JavaScript
//// [typeGuardsNestedAssignments.ts] import "@swc/helpers/_/_class_call_check"; import "@swc/helpers/_/_instanceof"; for(var match, re = /./g; null != (match = re.exec("xxx"));)match[1].length, match[2].length;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsObjectMethods.1.normal.js
JavaScript
//// [typeGuardsObjectMethods.ts] // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. // variables in global var num; var strOrNum; var var1; var obj1 = { // Inside method method: function method(param1) { // global var...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsObjectMethods.2.minified.js
JavaScript
//// [typeGuardsObjectMethods.ts] var strOrNum, var1, obj1 = { method: function(param1) { var var2; return "string" == typeof var1 && var1.length, "string" == typeof var2 && var2.length, "string" == typeof param1 && param1.length, strOrNum; }, get prop () { var var2; return "...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsOnClassProperty.1.normal.js
JavaScript
//// [typeGuardsOnClassProperty.ts] // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. // Note that the class's property must be copied to a local variable for // the type guard to have an effect import { _ as _class_call_check } from...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsOnClassProperty.2.minified.js
JavaScript
//// [typeGuardsOnClassProperty.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var o = { prop1: "string" }; "string" == typeof o.prop1 && o.prop1.toLowerCase(); var prop1 = o.prop1; "string" == typeof prop1 && prop1.toLocaleLowerCase();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsTypeParameters.1.normal.js
JavaScript
//// [typeGuardsTypeParameters.ts] // Type guards involving type parameters produce intersection types import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var C = function C() { "use strict"; _class_call_check(this, C); }; fun...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsTypeParameters.2.minified.js
JavaScript
//// [typeGuardsTypeParameters.ts] import "@swc/helpers/_/_class_call_check"; import "@swc/helpers/_/_instanceof";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsWithAny.1.normal.js
JavaScript
//// [typeGuardsWithAny.ts] import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; import { _ as _type_of } from "@swc/helpers/_/_type_of"; var x = { p: 0 }; if (_instanceof(x, Object)) { x.p; // No error, type any unaffected by instanceof type guard } else { x.p; // No error, type any unaffected by...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsWithAny.2.minified.js
JavaScript
//// [typeGuardsWithAny.ts] import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; import { _ as _type_of } from "@swc/helpers/_/_type_of"; var x = { p: 0 }; _instanceof(x, Object), x.p, x.p, x.p, x.p, _type_of(x), x.p;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsWithInstanceOf.1.normal.js
JavaScript
//// [typeGuardsWithInstanceOf.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var result; var result2; if (!_instanceof(result, RegExp)) { result = result2; } else if (!result.global) {} var C = /*#__PURE__*/ function() {...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsWithInstanceOf.2.minified.js
JavaScript
//// [typeGuardsWithInstanceOf.ts] var result, result2; import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; _instanceof(result, RegExp) ? result.global : result = result2;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature.1.normal.js
JavaScript
//// [typeGuardsWithInstanceOfByConstructorSignature.ts] import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var obj1; if (_instanceof(obj1, A)) { obj1.foo; obj1.bar; } var obj2; if (_instanceof(obj2, A)) { obj2.foo; obj2.bar; } var obj3; if (_instanceof(obj3, B)) { obj3.foo = 1; obj3...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature.2.minified.js
JavaScript
//// [typeGuardsWithInstanceOfByConstructorSignature.ts] var obj1, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17, obj18; import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; _instanceof(obj1, A) && (obj1.foo, obj1.bar), _instanceof(obj2, A) && (obj2.foo...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsWithInstanceOfBySymbolHasInstance.1.normal.js
JavaScript
//// [typeGuardsWithInstanceOfBySymbolHasInstance.ts] import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; var obj1; if (_instanceof(obj1, A)) { obj1.foo; obj1.bar; } var obj2; if (_instanceof(obj2, A)) { obj2.foo; obj2.bar; } var obj3; if (_instanceof(obj3, B)) { obj3.foo = 1; obj3.fo...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeGuardsWithInstanceOfBySymbolHasInstance.2.minified.js
JavaScript
//// [typeGuardsWithInstanceOfBySymbolHasInstance.ts] var obj1, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17, obj18; import { _ as _instanceof } from "@swc/helpers/_/_instanceof"; _instanceof(obj1, A) && (obj1.foo, obj1.bar), _instanceof(obj2, A) && (obj2.foo, o...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeInferenceWithTupleType.1.normal.js
JavaScript
//// [typeInferenceWithTupleType.ts] function combine(x, y) { return [ x, y ]; } var combineResult = combine("string", 10); var combineEle1 = combineResult[0]; // string var combineEle2 = combineResult[1]; // number function zip(array1, array2) { if (array1.length != array2.length) { ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeInferenceWithTupleType.2.minified.js
JavaScript
//// [typeInferenceWithTupleType.ts] var zipResult = function(array1, array2) { if (array1.length != array2.length) return [ [ void 0, void 0 ] ]; for(var zipResult, length = array1.length, i = 0; i < length; ++i)zipResult.push([ array1[i], array2[i] ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeLookupInIIFE.1.normal.js
JavaScript
//// [a.js] // #22973 var ns = function() {}(); /** @type {ns.NotFound} */ var crash;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeLookupInIIFE.2.minified.js
JavaScript
//// [a.js]
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisGeneral.1.normal.js
JavaScript
//// [typeOfThisGeneral.ts] class MyTestClass { constructor(){ this.someFunc = ()=>{ //type of 'this' in member variable initializer is the class instance type var t = this; var t; }; //type of 'this' in constructor body is the class instance type ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisGeneral.2.minified.js
JavaScript
//// [typeOfThisGeneral.ts] this.spaaaaace = 4;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInAccessor.1.normal.js
JavaScript
//// [typeOfThisInAccessor.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C() { _class_call_check(this, C); } _create_class(C, [ { ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInAccessor.2.minified.js
JavaScript
//// [typeOfThisInAccessor.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _create_class } from "@swc/helpers/_/_create_class";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInConstructorParamList.1.normal.js
JavaScript
//// [typeOfThisInConstructorParamList.ts] //type of 'this' in constructor param list is the class instance type (error) import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var ErrClass = function ErrClass() { "use strict"; var f = arguments.length > 0 && arguments[0] !== void 0 ? argumen...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInConstructorParamList.2.minified.js
JavaScript
//// [typeOfThisInConstructorParamList.ts] import "@swc/helpers/_/_class_call_check";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInFunctionExpression.1.normal.js
JavaScript
//// [typeOfThisInFunctionExpression.ts] // type of 'this' in FunctionExpression is Any import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; function fn() { var p = this; var p; } var t = function t() { var p = this; var p; }; var t2 = function f() { var x = this; var x; };...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInFunctionExpression.2.minified.js
JavaScript
//// [typeOfThisInFunctionExpression.ts] var M; import "@swc/helpers/_/_class_call_check"; M || (M = {});
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInInstanceMember.1.normal.js
JavaScript
//// [typeOfThisInInstanceMember.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { _class_call_check(this, C); this.x = this; v...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInInstanceMember.2.minified.js
JavaScript
//// [typeOfThisInInstanceMember.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _create_class } from "@swc/helpers/_/_create_class"; var c, r = c.x; c.x.x.x, [ r, c.y, c.foo() ].forEach(function(x) { x.foo, x.x, x.y; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInInstanceMember2.1.normal.js
JavaScript
//// [typeOfThisInInstanceMember2.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _create_class } from "@swc/helpers/_/_create_class"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { _class_call_check(this, C); this.x = this; ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInInstanceMember2.2.minified.js
JavaScript
//// [typeOfThisInInstanceMember2.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _create_class } from "@swc/helpers/_/_create_class"; var c, r = c.x; c.x.x.x; var r2 = c.y, r3 = c.foo(); c.z, [ r, r2, r3 ].forEach(function(x) { x.foo, x.x, x.y, x.z; });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInMemberFunctions.1.normal.js
JavaScript
//// [typeOfThisInMemberFunctions.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C() { _class_call_check(this, C); } var _proto = C.prototype; _proto.foo = function foo() { var r = this; }; ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInMemberFunctions.2.minified.js
JavaScript
//// [typeOfThisInMemberFunctions.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers.1.normal.js
JavaScript
//// [typeOfThisInStaticMembers.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { _class_call_check(this, C); } C.bar = function bar() { // type of this is the constructor function type ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers.2.minified.js
JavaScript
//// [typeOfThisInStaticMembers.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var t = /*#__PURE__*/ (function() { function C(x) { _class_call_check(this, C); } return C.bar = function() { return this; }, C; })().bar(); t.foo, t.bar(), new t(1); var t2 = /...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers10(target=es2015).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers10.ts] import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; class C { } C.a = 1; C.b = C.a + 1; C = _ts_decorate([ foo ], C); class D extends C { ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers10(target=es2015).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers10.ts] import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; class C { } C.a = 1, C.b = C.a + 1, C = _ts_decorate([ foo ], C); class D extends C { ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers10(target=es2022).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers10.ts] import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; class C { static{ this.a = 1; } static{ this.b = this.a + 1; } } C = _ts_decorate([ foo ], C); class D extends C { static{ this.c = 2; } static{ this.d =...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers10(target=es2022).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers10.ts] import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; class C { static{ this.a = 1; } static{ this.b = this.a + 1; } } C = _ts_decorate([ foo ], C); class D extends C { static{ this.c = 2; } static{ this.d =...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers10(target=es5).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers10.ts] import { _ as _call_super } from "@swc/helpers/_/_call_super"; import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _create_class } from "@swc/helpers/_/_create_class"; import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers10(target=es5).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers10.ts] import { _ as _call_super } from "@swc/helpers/_/_call_super"; import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _create_class } from "@swc/helpers/_/_create_class"; import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers10(target=esnext).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers10.ts] import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; class C { static{ this.a = 1; } static{ this.b = this.a + 1; } } C = _ts_decorate([ foo ], C); class D extends C { static{ this.c = 2; } static{ this.d =...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers10(target=esnext).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers10.ts] import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; class C { static{ this.a = 1; } static{ this.b = this.a + 1; } } C = _ts_decorate([ foo ], C); class D extends C { static{ this.c = 2; } static{ this.d =...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers11(target=es2015).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers11.ts] import { _ as _define_property } from "@swc/helpers/_/_define_property"; import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; class C { } _define_...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers11(target=es2015).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers11.ts] import { _ as _define_property } from "@swc/helpers/_/_define_property"; import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; class C { } _define_...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers11(target=es2022).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers11.ts] import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; class C { static a = 1; static b = this.a + 1; } C = _ts_decorate([ foo ], C); class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; static f = ()=>this....
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers11(target=es2022).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers11.ts] import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; class C { static a = 1; static b = this.a + 1; } C = _ts_decorate([ foo ], C); class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; static f = ()=>this....
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers11(target=es5).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers11.ts] import { _ as _call_super } from "@swc/helpers/_/_call_super"; import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _create_class } from "@swc/helpers/_/_create_class"; import { _ as _define_property } from "@swc/helpers/_/_define_property"; impo...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers11(target=es5).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers11.ts] import { _ as _call_super } from "@swc/helpers/_/_call_super"; import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _create_class } from "@swc/helpers/_/_create_class"; import { _ as _define_property } from "@swc/helpers/_/_define_property"; impo...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers11(target=esnext).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers11.ts] import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; class C { static a = 1; static b = this.a + 1; } C = _ts_decorate([ foo ], C); class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; static f = ()=>this....
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers11(target=esnext).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers11.ts] import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate"; class C { static a = 1; static b = this.a + 1; } C = _ts_decorate([ foo ], C); class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; static f = ()=>this....
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers2.1.normal.js
JavaScript
//// [typeOfThisInStaticMembers2.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { "use strict"; _class_call_check(this, C); }; C.foo = C // ok ; var C2 = function C2() { "use strict"; _class_call_check(this, C2); }; C2.foo = C2 // ok ;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers2.2.minified.js
JavaScript
//// [typeOfThisInStaticMembers2.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C() { _class_call_check(this, C); }; C.foo = C; var C2 = function C2() { _class_call_check(this, C2); }; C2.foo = C2;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es2015).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers3.ts] import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C { } C.a = 1; C.b = C.a + 1; class D extends C { } D.c = 2; D.d = D.c + 1; D.e = _get(_get_prototype_of(D), "a", D) + D.c + 1;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es2015).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers3.ts] import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C { } C.a = 1, C.b = C.a + 1; class D extends C { } D.c = 2, D.d = D.c + 1, D.e = _get(_get_prototype_of(D), "a", D) + D.c + 1;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es2022).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers3.ts] class C { static{ this.a = 1; } static{ this.b = this.a + 1; } } class D extends C { static{ this.c = 2; } static{ this.d = this.c + 1; } static{ this.e = super.a + this.c + 1; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es2022).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers3.ts] class C { static{ this.a = 1; } static{ this.b = this.a + 1; } } class D extends C { static{ this.c = 2; } static{ this.d = this.c + 1; } static{ this.e = super.a + this.c + 1; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es5).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers3.ts] import { _ as _call_super } from "@swc/helpers/_/_call_super"; import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; import { _ as _inheri...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=es5).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers3.ts] import { _ as _call_super } from "@swc/helpers/_/_call_super"; import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; import { _ as _inheri...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=esnext).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers3.ts] class C { static{ this.a = 1; } static{ this.b = this.a + 1; } } class D extends C { static{ this.c = 2; } static{ this.d = this.c + 1; } static{ this.e = super.a + this.c + 1; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers3(target=esnext).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers3.ts] class C { static{ this.a = 1; } static{ this.b = this.a + 1; } } class D extends C { static{ this.c = 2; } static{ this.d = this.c + 1; } static{ this.e = super.a + this.c + 1; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es2015).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers4.ts] import { _ as _define_property } from "@swc/helpers/_/_define_property"; import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C { } _define_property(C, "a", 1); _define_property(C, "b", C.a + 1); class D ex...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es2015).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers4.ts] import { _ as _define_property } from "@swc/helpers/_/_define_property"; import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C { } _define_property(C, "a", 1), _define_property(C, "b", C.a + 1); class D ex...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es2022).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers4.ts] class C { static a = 1; static b = this.a + 1; } class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es2022).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers4.ts] class C { static a = 1; static b = this.a + 1; } class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es5).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers4.ts] import { _ as _call_super } from "@swc/helpers/_/_call_super"; import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _define_property } from "@swc/helpers/_/_define_property"; import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prot...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=es5).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers4.ts] import { _ as _call_super } from "@swc/helpers/_/_call_super"; import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _define_property } from "@swc/helpers/_/_define_property"; import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prot...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=esnext).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers4.ts] class C { static a = 1; static b = this.a + 1; } class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers4(target=esnext).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers4.ts] class C { static a = 1; static b = this.a + 1; } class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=es2015).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers5.ts] class C { constructor(foo){ this.foo = foo; } } C.create = ()=>new C("yep");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=es2015).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers5.ts] class C { constructor(foo){ this.foo = foo; } } C.create = ()=>new C("yep");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=es2022).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers5.ts] class C { static{ this.create = ()=>new this("yep"); } constructor(foo){ this.foo = foo; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=es2022).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers5.ts] class C { static{ this.create = ()=>new this("yep"); } constructor(foo){ this.foo = foo; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=es5).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers5.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(foo) { "use strict"; _class_call_check(this, C); this.foo = foo; }; C.create = function() { return new C("yep"); };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=es5).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers5.ts] import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; var C = function C(foo) { _class_call_check(this, C), this.foo = foo; }; C.create = function() { return new C("yep"); };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=esnext).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers5.ts] class C { static{ this.create = ()=>new this("yep"); } constructor(foo){ this.foo = foo; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers5(target=esnext).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers5.ts] class C { static{ this.create = ()=>new this("yep"); } constructor(foo){ this.foo = foo; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers6.1.normal.js
JavaScript
//// [typeOfThisInStaticMembers6.ts] import { _ as _call_super } from "@swc/helpers/_/_call_super"; import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _inherits } from "@swc/helpers/_/_inherits"; var C = function C() { "use strict"; _class_call_check(this, C); }; C.f = 1; v...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers6.2.minified.js
JavaScript
//// [typeOfThisInStaticMembers6.ts] import { _ as _call_super } from "@swc/helpers/_/_call_super"; import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _inherits } from "@swc/helpers/_/_inherits"; var C = function C() { _class_call_check(this, C); }; C.f = 1, /*#__PURE__*/ funct...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es2015).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers7.ts] import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C { } C.a = 1; C.b = C.a + 1; class D extends C { } D.c = 2; D.d = D.c + 1; D.e = 1 + _get(_get_prototype_of(D), "a", D) + (D.c + 1) + 1;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es2015).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers7.ts] import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; class C { } C.a = 1, C.b = C.a + 1; class D extends C { } D.c = 2, D.d = D.c + 1, D.e = 1 + _get(_get_prototype_of(D), "a", D) + (D.c + 1) + 1;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es2022).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers7.ts] class C { static{ this.a = 1; } static{ this.b = this.a + 1; } } class D extends C { static{ this.c = 2; } static{ this.d = this.c + 1; } static{ this.e = 1 + super.a + (this.c + 1) + 1; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es2022).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers7.ts] class C { static{ this.a = 1; } static{ this.b = this.a + 1; } } class D extends C { static{ this.c = 2; } static{ this.d = this.c + 1; } static{ this.e = 1 + super.a + (this.c + 1) + 1; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es5).1.normal.js
JavaScript
//// [typeOfThisInStaticMembers7.ts] import { _ as _call_super } from "@swc/helpers/_/_call_super"; import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; import { _ as _inheri...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc/tests/tsc-references/typeOfThisInStaticMembers7(target=es5).2.minified.js
JavaScript
//// [typeOfThisInStaticMembers7.ts] import { _ as _call_super } from "@swc/helpers/_/_call_super"; import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check"; import { _ as _get } from "@swc/helpers/_/_get"; import { _ as _get_prototype_of } from "@swc/helpers/_/_get_prototype_of"; import { _ as _inheri...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University