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/validVoidAssignments.1.normal.js | JavaScript | //// [validVoidAssignments.ts]
var x;
var y;
var z;
y = x;
x = y;
x = z;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/validVoidAssignments.2.minified.js | JavaScript | //// [validVoidAssignments.ts]
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/validVoidValues.1.normal.js | JavaScript | //// [validVoidValues.ts]
var x;
x = undefined;
x = null;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/validVoidValues.2.minified.js | JavaScript | //// [validVoidValues.ts]
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/valuesMergingAcrossModules.1.normal.js | JavaScript | //// [a.ts]
function A() {}
export { A };
//// [b.ts]
import { A } from "./a";
//// [c.ts]
(function(A) {
A.displayName = "A";
})(A || (A = {}));
A();
A.displayName;
var A;
export { };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/valuesMergingAcrossModules.2.minified.js | JavaScript | //// [a.ts]
function A() {}
export { A };
//// [b.ts]
import "./a";
//// [c.ts]
var A;
(A || (A = {})).displayName = "A", A(), A.displayName;
export { };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/varRequireFromJavascript.1.normal.js | JavaScript | //// [ex.js]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
export var Crunch = /*#__PURE__*/ function() {
"use strict";
function Crunch(n) {
_class_call_check(this, Crunch);
this.n = n;
}
var _proto = Crunch.prototype;
_proto.m = function m() {
re... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/varRequireFromJavascript.2.minified.js | JavaScript | //// [ex.js]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
export var Crunch = /*#__PURE__*/ function() {
function Crunch(n) {
_class_call_check(this, Crunch), this.n = n;
}
return Crunch.prototype.m = function() {
return this.n;
}, Crunch;
}();
//// [use.js]... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/varRequireFromTypescript.1.normal.js | JavaScript | //// [ex.d.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
export var Crunch = function Crunch() {
"use strict";
_class_call_check(this, Crunch);
};
//// [use.js]
var ex = require('./ex');
// values work
var crunch = new ex.Crunch(1);
crunch.n;
// types work
/**
* @param {ex.Grea... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/varRequireFromTypescript.2.minified.js | JavaScript | //// [ex.d.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
export var Crunch = function Crunch() {
_class_call_check(this, Crunch);
};
//// [use.js]
new (require('./ex')).Crunch(1).n;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/variadicTuples1.1.normal.js | JavaScript | //// [variadicTuples1.ts]
// Variadics in tuple types
import { _ as _to_array } from "@swc/helpers/_/_to_array";
import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
// Variadics in array literals
function tup2(t, u) {
return [
1
].concat(_to_consumable_array(t), [
2
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/variadicTuples1.2.minified.js | JavaScript | //// [variadicTuples1.ts]
import "@swc/helpers/_/_to_array";
import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
function concat(t, u) {
return _to_consumable_array(t).concat(_to_consumable_array(u));
}
function curry(f) {
for(var _len = arguments.length, _$a = Array(_len > 1 ? _len... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/variance.1.normal.js | JavaScript | //// [variance.ts]
// Test cases for parameter variances affected by conditional types.
// Repro from #30047
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var foo = {
prop: true
};
var x = foo;
var y = foo;
var z = x;
// Repro from #30118
var Bar = /*#__PURE__*/ function() {
"use st... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/variance.2.minified.js | JavaScript | //// [variance.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
/*#__PURE__*/ (function() {
function Bar() {
_class_call_check(this, Bar);
}
var _proto = Bar.prototype;
return _proto.cast = function(_name) {}, _proto.pushThis = function() {
Bar.instance.push... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxCompat.1.normal.js | JavaScript | //// [verbatimModuleSyntaxCompat.ts]
System.register([], function(_export, _context) {
"use strict";
return {
setters: [],
execute: function() {}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxCompat.2.minified.js | JavaScript | //// [verbatimModuleSyntaxCompat.ts]
System.register([], function(_export, _context) {
return {
setters: [],
execute: function() {}
};
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxConstEnum.1.normal.js | JavaScript | //// [verbatimModuleSyntaxConstEnum.ts]
export var E = /*#__PURE__*/ function(E) {
E[E["A"] = 1] = "A";
return E;
}({});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxConstEnum.2.minified.js | JavaScript | //// [verbatimModuleSyntaxConstEnum.ts]
var E;
var E1 = ((E = {})[E.A = 1] = "A", E);
export { E1 as E, };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxConstEnumUsage.1.normal.js | JavaScript | //// [verbatimModuleSyntaxConstEnumUsage.ts]
//// [foo.ts]
export var Foo = /*#__PURE__*/ function(Foo) {
Foo[Foo["a"] = 1] = "a";
Foo[Foo["b"] = 2] = "b";
Foo[Foo["c"] = 3] = "c";
return Foo;
}({});
//// [bar.ts]
import { Foo } from './foo.js';
export var Bar = /*#__PURE__*/ function(Bar) {
Bar[Bar... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxConstEnumUsage.2.minified.js | JavaScript | //// [verbatimModuleSyntaxConstEnumUsage.ts]
//// [foo.ts]
var Foo;
var Foo1 = ((Foo = {})[Foo.a = 1] = "a", Foo[Foo.b = 2] = "b", Foo[Foo.c = 3] = "c", Foo);
export { Foo1 as Foo, };
//// [bar.ts]
var Bar;
import { Foo } from './foo.js';
var Bar1 = ((Bar = {})[Bar.a = Foo.a] = "a", Bar[Bar.c = Foo.c] = "c", Bar[Bar.e... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxInternalImportEquals.1.normal.js | JavaScript | //// [verbatimModuleSyntaxInternalImportEquals.ts]
export { };
var f1 = NonExistent;
(function(Foo) {
Foo.foo = 1;
})(Foo || (Foo = {}));
var f2 = Foo.foo;
var f3 = Foo.T;
var Foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxInternalImportEquals.2.minified.js | JavaScript | //// [verbatimModuleSyntaxInternalImportEquals.ts]
var Foo;
NonExistent, (Foo || (Foo = {})).foo = 1, Foo.foo, Foo.T;
export { };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxNoElisionCJS.1.normal.js | JavaScript | //// [verbatimModuleSyntaxNoElisionCJS.ts]
"use strict";
//// [/a.ts]
"use strict";
module.exports = I;
//// [/b.ts]
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const I = require("./a");
//// [/c.ts]
"use strict";
(function(I) {
I.x = 1;
})(I || (I = {}));
var I;
module.exports ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxNoElisionCJS.2.minified.js | JavaScript | //// [verbatimModuleSyntaxNoElisionCJS.ts]
//// [/a.ts]
module.exports = I;
//// [/b.ts]
Object.defineProperty(exports, "__esModule", {
value: !0
}), require("./a");
//// [/c.ts]
var I;
(I || (I = {})).x = 1, module.exports = I;
//// [/d.ts]
require("./c"), module.exports = J;
//// [/e.d.ts]
module.exports = I;
///... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxNoElisionESM.1.normal.js | JavaScript | //// [verbatimModuleSyntaxNoElisionESM.ts]
//// [/a.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
export var a = 0;
export var AClass = function AClass() {
"use strict";
_class_call_check(this, AClass);
};
//// [/b.ts]
import { a, A, AClass } from "./a";
import "./a";
export { A... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxNoElisionESM.2.minified.js | JavaScript | //// [verbatimModuleSyntaxNoElisionESM.ts]
//// [/a.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
export var a = 0;
export var AClass = function AClass() {
_class_call_check(this, AClass);
};
//// [/b.ts]
import { A } from "./a";
import "./a";
export { A as A2 } from "./a";
export {... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxRestrictionsCJS.1.normal.js | JavaScript | //// [verbatimModuleSyntaxRestrictionsCJS.ts]
"use strict";
//// [/decl.d.ts]
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
const _default = esmy;
//// [/ambient.... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxRestrictionsCJS.2.minified.js | JavaScript | //// [verbatimModuleSyntaxRestrictionsCJS.ts]
//// [/decl.d.ts]
Object.defineProperty(exports, "__esModule", {
value: !0
}), Object.defineProperty(exports, "default", {
enumerable: !0,
get: function() {
return _default;
}
});
const _default = esmy;
//// [/ambient.d.ts]
//// [/main.ts]
var Values... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxRestrictionsESM.1.normal.js | JavaScript | //// [verbatimModuleSyntaxRestrictionsESM.ts]
//// [/decl.d.ts]
//! x Export assignment cannot be used when targeting ECMAScript modules. Consider using `export default` or another module format instead.
//! ,-[2:1]
//! 1 | declare class CJSy {}
//! 2 | export = CJSy;
//! : ^^^^^^^^^^^^^^
//! 3 |
//! `--... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/verbatimModuleSyntaxRestrictionsESM.2.minified.js | JavaScript | //// [verbatimModuleSyntaxRestrictionsESM.ts]
//// [/decl.d.ts]
//! x Export assignment cannot be used when targeting ECMAScript modules. Consider using `export default` or another module format instead.
//! ,-[2:1]
//! 1 | declare class CJSy {}
//! 2 | export = CJSy;
//! : ^^^^^^^^^^^^^^
//! 3 |
//! `--... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType.1.normal.js | JavaScript | //// [voidOperatorWithAnyOtherType.ts]
// void operator on any type
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var ANY;
var ANY1;
var ANY2 = [
"",
""
];
var obj;
var obj1 = {
x: "",
y: 1
};
function foo() {
var a;
return a;
}
var A = /*#__PURE__*/ function() {
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType.2.minified.js | JavaScript | //// [voidOperatorWithAnyOtherType.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var M, A = /*#__PURE__*/ function() {
function A() {
_class_call_check(this, A);
}
return A.foo = function() {}, A;
}();
M || (M = {});
var objA = new A();
objA.a, M.n, A.foo(), objA.a, ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/voidOperatorWithBooleanType.1.normal.js | JavaScript | //// [voidOperatorWithBooleanType.ts]
// void operator on boolean type
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var BOOLEAN;
function foo() {
return true;
}
var A = /*#__PURE__*/ function() {
"use strict";
function A() {
_class_call_check(this, A);
}
A.foo ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/voidOperatorWithBooleanType.2.minified.js | JavaScript | //// [voidOperatorWithBooleanType.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var M, A = /*#__PURE__*/ function() {
function A() {
_class_call_check(this, A);
}
return A.foo = function() {
return !1;
}, A;
}();
M || (M = {});
var objA = new A();
objA.a,... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/voidOperatorWithEnumType.1.normal.js | JavaScript | //// [voidOperatorWithEnumType.ts]
// void operator on enum type
var ENUM = /*#__PURE__*/ function(ENUM) {
return ENUM;
}(ENUM || {});
var ENUM1 = /*#__PURE__*/ function(ENUM1) {
ENUM1[ENUM1["A"] = 0] = "A";
ENUM1[ENUM1["B"] = 1] = "B";
ENUM1[ENUM1[""] = 2] = "";
return ENUM1;
}(ENUM1 || {});
// en... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/voidOperatorWithEnumType.2.minified.js | JavaScript | //// [voidOperatorWithEnumType.ts]
var ENUM1, ENUM = ENUM || {}, ENUM11 = ((ENUM1 = ENUM11 || {})[ENUM1.A = 0] = "A", ENUM1[ENUM1.B = 1] = "B", ENUM1[ENUM1[""] = 2] = "", ENUM1);
ENUM[0], ENUM[0];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/voidOperatorWithNumberType.1.normal.js | JavaScript | //// [voidOperatorWithNumberType.ts]
// void operator on number type
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var NUMBER;
var NUMBER1 = [
1,
2
];
function foo() {
return 1;
}
var A = /*#__PURE__*/ function() {
"use strict";
function A() {
_class_call_check(... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/voidOperatorWithNumberType.2.minified.js | JavaScript | //// [voidOperatorWithNumberType.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var M, A = /*#__PURE__*/ function() {
function A() {
_class_call_check(this, A);
}
return A.foo = function() {
return 1;
}, A;
}();
M || (M = {});
var objA = new A();
objA.a, M... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/voidOperatorWithStringType.1.normal.js | JavaScript | //// [voidOperatorWithStringType.ts]
// void operator on string type
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var STRING;
var STRING1 = [
"",
"abc"
];
function foo() {
return "abc";
}
var A = /*#__PURE__*/ function() {
"use strict";
function A() {
_class_ca... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/voidOperatorWithStringType.2.minified.js | JavaScript | //// [voidOperatorWithStringType.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var STRING, M, A = /*#__PURE__*/ function() {
function A() {
_class_call_check(this, A);
}
return A.foo = function() {
return "";
}, A;
}();
M || (M = {});
var objA = new A();
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/voidParamAssignmentCompatibility.1.normal.js | JavaScript | //// [voidParamAssignmentCompatibility.ts]
var gg = g;
gg = o.method;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/voidParamAssignmentCompatibility.2.minified.js | JavaScript | //// [voidParamAssignmentCompatibility.ts]
g, o.method;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/weakTypesAndLiterals01.1.normal.js | JavaScript | //// [weakTypesAndLiterals01.ts]
var f = function(arg) {
if (arg === "A") {
return arg;
} else {
return arg;
}
};
var g = function(arg) {
if (arg === "A") {
return arg;
} else {
return arg;
}
};
var h = function(arg) {
if (arg === aOrB) {
return arg;
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/weakTypesAndLiterals01.2.minified.js | JavaScript | //// [weakTypesAndLiterals01.ts]
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/whileBreakStatements.1.normal.js | JavaScript | //// [whileBreakStatements.ts]
while(true){
break;
}
ONE: while(true){
break ONE;
}
TWO: THREE: while(true){
break THREE;
}
FOUR: while(true){
FIVE: while(true){
break FOUR;
}
}
while(true){
SIX: while(true)break SIX;
}
SEVEN: while(true)while(true)while(true)break SEVEN;
EIGHT: while(tr... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/whileBreakStatements.2.minified.js | JavaScript | //// [whileBreakStatements.ts]
for(;;);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/whileContinueStatements.1.normal.js | JavaScript | //// [whileContinueStatements.ts]
while(true){
continue;
}
while(true){
if (true) {
continue;
}
}
ONE: while(true){
continue ONE;
}
TWO: THREE: while(true){
continue THREE;
}
FOUR: while(true){
FIVE: while(true){
continue FOUR;
}
}
while(true){
SIX: while(true)continue SI... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/whileContinueStatements.2.minified.js | JavaScript | //// [whileContinueStatements.ts]
for(;;);
for(;;);
for(;;);
for(;;);
FOUR: for(;;)for(;;)continue FOUR;
for(;;)for(;;)continue;
SEVEN: for(;;)for(;;)for(;;)continue SEVEN;
for(;;);
for(;;);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wideningTuples1.1.normal.js | JavaScript | //// [wideningTuples1.ts]
var y = foo([
undefined
]);
y = [
""
];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wideningTuples1.2.minified.js | JavaScript | //// [wideningTuples1.ts]
foo([
void 0
]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wideningTuples2.1.normal.js | JavaScript | //// [wideningTuples2.ts]
var foo = function bar() {
var intermediate = bar();
intermediate = [
""
];
return [
undefined
];
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wideningTuples2.2.minified.js | JavaScript | //// [wideningTuples2.ts]
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wideningTuples3.1.normal.js | JavaScript | //// [wideningTuples3.ts]
var a;
var b = a = [
undefined,
null
];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wideningTuples3.2.minified.js | JavaScript | //// [wideningTuples3.ts]
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wideningTuples4.1.normal.js | JavaScript | //// [wideningTuples4.ts]
var a;
var b = a = [
undefined,
null
];
b = [
"",
""
];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wideningTuples4.2.minified.js | JavaScript | //// [wideningTuples4.ts]
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wideningTuples5.1.normal.js | JavaScript | //// [wideningTuples5.ts]
var _ref = [
undefined,
null
], a = _ref[0], b = _ref[1];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wideningTuples5.2.minified.js | JavaScript | //// [wideningTuples5.ts]
var _ref = [
void 0,
null
];
_ref[0], _ref[1];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wideningTuples6.1.normal.js | JavaScript | //// [wideningTuples6.ts]
var _ref = [
undefined,
null
], a = _ref[0], b = _ref[1];
a = "";
b = "";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wideningTuples6.2.minified.js | JavaScript | //// [wideningTuples6.ts]
var _ref = [
void 0,
null
];
_ref[0], _ref[1];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wideningTuples7.1.normal.js | JavaScript | //// [wideningTuples7.ts]
var foo = function bar() {
var intermediate;
return intermediate = [
undefined
];
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wideningTuples7.2.minified.js | JavaScript | //// [wideningTuples7.ts]
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/withStatements.1.normal.js | JavaScript | //// [withStatements.ts]
//! x The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
//! ,-[2:1]
//! 1 | var x = 12;
//! 2 | with (x) {
//! : ^^^^
//! 3 | name = 'twelve'
//! 4 | id = 12
//! 5 | }
//! `----
//! x With statement are not allowed in strict mod... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/withStatements.2.minified.js | JavaScript | //// [withStatements.ts]
//! x The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
//! ,-[2:1]
//! 1 | var x = 12;
//! 2 | with (x) {
//! : ^^^^
//! 3 | name = 'twelve'
//! 4 | id = 12
//! 5 | }
//! `----
//! x With statement are not allowed in strict mod... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/witness.1.normal.js | JavaScript | //// [witness.ts]
// Initializers
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var varInit = varInit; // any
var pInit;
function fn() {
var pInit = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : pInit;
var pInit;
}
var InitClass = /*#__PURE__*/ function() {
"u... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/witness.2.minified.js | JavaScript | //// [witness.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
!function fnReturn1() {
return fnReturn1();
}(), function fnReturn2() {
return fnReturn2;
}(), function fnCall() {
return fnCall();
}(), function fn5() {
return new (void 0)(fn5);
}();
var propAcc1, M2, M21, pro... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints.1.normal.js | JavaScript | //// [wrappedAndRecursiveConstraints.ts]
// no errors expected
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var C = /*#__PURE__*/ function() {
"use strict";
function C(data) {
_class_call_check(this, C);
this.data = data;
}
var _proto = C.prototype;
_pro... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints.2.minified.js | JavaScript | //// [wrappedAndRecursiveConstraints.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
new (/*#__PURE__*/ function() {
function C(data) {
_class_call_check(this, C), this.data = data;
}
return C.prototype.foo = function(x) {
return x;
}, C;
}())(null).foo(nul... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2.1.normal.js | JavaScript | //// [wrappedAndRecursiveConstraints2.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var C = function C(x) {
"use strict";
_class_call_check(this, C);
};
var c = new C(1);
var c = new C(new C('')); // error
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2.2.minified.js | JavaScript | //// [wrappedAndRecursiveConstraints2.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var C = function C(x) {
_class_call_check(this, C);
};
new C(1), new C(new C(''));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3.1.normal.js | JavaScript | //// [wrappedAndRecursiveConstraints3.ts]
// no errors expected
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);
}
var _proto = C.prototype;
_proto.foo = function foo(x) {
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3.2.minified.js | JavaScript | //// [wrappedAndRecursiveConstraints3.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
new (/*#__PURE__*/ function() {
function C(x) {
_class_call_check(this, C);
}
return C.prototype.foo = function(x) {
return function(x) {
return x;
};
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4.1.normal.js | JavaScript | //// [wrappedAndRecursiveConstraints4.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);
}
var _proto = C.prototype;
_proto.foo = function foo(x) {
function bar(x)... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4.2.minified.js | JavaScript | //// [wrappedAndRecursiveConstraints4.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
new (/*#__PURE__*/ function() {
function C(x) {
_class_call_check(this, C);
}
return C.prototype.foo = function(x) {
return function(x) {
return x;
};
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/yieldExpressionInControlFlow.1.normal.js | JavaScript | //// [bug25149.js]
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
function f() {
var o;
return _ts_generator(this, function(_state) {
switch(_state.label){
case 0:
if (!true) return [
3,
2
];
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc-references/yieldExpressionInControlFlow.2.minified.js | JavaScript | //// [bug25149.js]
import "@swc/helpers/_/_ts_generator";
//// [alsoFails.ts]
import "@swc/helpers/_/_ts_generator";
import "@swc/helpers/_/_ts_values";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/tsc.rs | Rust | use std::{
borrow::Cow,
ffi::OsStr,
fmt::Write,
fs::create_dir_all,
mem,
panic::{catch_unwind, resume_unwind, AssertUnwindSafe},
path::{Path, PathBuf},
sync::Arc,
};
use once_cell::sync::Lazy;
use regex::Regex;
use rustc_hash::FxHashSet;
use serde::de::DeserializeOwned;
use serde_json::... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/typescript/rewrite-import-specifier/input/index.ts | TypeScript | export * from "@lib/example";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/typescript/rewrite-import-specifier/output/index.d.ts | TypeScript | export * from "./src/example";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/typescript/rewrite-import-specifier/output/index.ts | TypeScript | export * from "./src/example";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full-compact/d3-color/1/input/index.js | JavaScript | import { Color, rgbConvert, Rgb } from "./color.js";
var darker = 0.7;
var brighter = 1 / darker;
function define(constructor, factory, prototype) {
constructor.prototype = factory.prototype = prototype;
prototype.constructor = constructor;
}
function extend(parent, definition) {
var prototype = Object.c... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full-compact/d3-color/1/output/index.js | JavaScript | import{_ as t}from"@swc/helpers/_/_instanceof";import{Color as i,rgbConvert as e,Rgb as h}from"./color.js";var r,n=Math.PI/180,s=180/Math.PI,o=-1.78277*.29227-.1347134789;export default function a(i,r,n,a){return 1==arguments.length?function(i){if(t(i,Cubehelix))return new Cubehelix(i.h,i.s,i.l,i.opacity);t(i,h)||(i=e(... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full-compact/react-autosuggest/1/input/index.js | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports["default"] = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
// var _Item = _interopRequireDefault(require("./Item"));
// var _compareObjects = _... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full-compact/react-autosuggest/1/output/index.js | JavaScript | "use strict";var e,t=require("@swc/helpers/_/_instanceof");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},n=Object.definePro... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/d3-color/1/input/index.js | JavaScript | import define, { extend } from "./define.js";
import { Color, rgbConvert, Rgb, darker, brighter } from "./color.js";
import { deg2rad, rad2deg } from "./math.js";
var A = -0.14861,
B = +1.78277,
C = -0.29227,
D = -0.90649,
E = +1.97294,
ED = E * D,
EB = E * B,
BC_DA = B * C - D * A;
functi... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/d3-color/1/output/index.js | JavaScript | import { _ as t } from "@swc/helpers/_/_instanceof";
import i, { extend as h } from "./define.js";
import { Color as e, rgbConvert as s, Rgb as r, darker as n, brighter as o } from "./color.js";
import { deg2rad as a, rad2deg as u } from "./math.js";
var l = -1.78277 * 0.29227 - 0.1347134789;
export default function c(... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/d3-time-format/1/input/index.js | JavaScript | import {
timeDay,
timeSunday,
timeMonday,
timeThursday,
timeYear,
utcDay,
utcSunday,
utcMonday,
utcThursday,
utcYear,
} from "d3-time";
function localDate(d) {
if (0 <= d.y && d.y < 100) {
var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
date.setFullYea... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/d3-time-format/1/output/index.js | JavaScript | import { _ as n } from "@swc/helpers/_/_instanceof";
import { timeDay as t, timeSunday as e, timeMonday as r, timeThursday as u, timeYear as c, utcDay as i, utcSunday as o, utcMonday as f, utcThursday as a, utcYear as l } from "d3-time";
function g(n) {
if (0 <= n.y && n.y < 100) {
var t = new Date(-1, n.m,... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/jsx/1/input/index.js | JavaScript | export default () => {
return <Input pattern=".*\S+.*" />;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/jsx/1/output/index.js | JavaScript | import { jsx as t } from "react/jsx-runtime";
export default function() {
return t(Input, {
pattern: ".*\\S+.*"
});
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/ms/1/input/index.ts | TypeScript | // Helpers.
const s = 1000;
const m = s * 60;
const h = m * 60;
const d = h * 24;
const w = d * 7;
const y = d * 365.25;
type Unit =
| "Years"
| "Year"
| "Yrs"
| "Yr"
| "Y"
| "Weeks"
| "Week"
| "W"
| "Days"
| "Day"
| "D"
| "Hours"
| "Hour"
| "Hrs"
| "Hr"
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/ms/1/output/index.ts | TypeScript | import { _ as e } from "@swc/helpers/_/_type_of";
export default function(c, a) {
var r, n, t, o, u;
try {
if ("string" == typeof c && c.length > 0) return function(e) {
if ((e = String(e)).length > 100) throw Error("Value exceeds the maximum length of 100 characters.");
var s = ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/next-31419/1/input/index.js | JavaScript | Promise.all(assignAll).then(async function (obj) {
let removeQuery = `DELETE FROM "TABLE" WHERE "UUID" IN ( `;
for (let key in obj) {
let o = obj[key];
removeQuery += `'${o.id}', `;
let userlist = await listOfUser(o.id);
userlist.forEach((user) => {
insertQuery += `... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/next-31419/1/output/index.js | JavaScript | var r;
import { _ as e } from "@swc/helpers/_/_async_to_generator";
import { _ as t } from "@swc/helpers/_/_ts_generator";
import { _ as n } from "@swc/helpers/_/_ts_values";
Promise.all(assignAll).then((r = e(function(r) {
var e, s, i, c, o, a;
return t(this, function(u) {
switch(u.label){
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/next-31419/2/input/index.js | JavaScript | Promise.all(assignAll).then(async function (value) {
let removeQuery = `DELETE FROM "TABLE" WHERE "UUID" IN ( `;
for (let key in obj) {
let o = obj[key];
removeQuery += `'${o.id}', `;
let userlist = await listOfUser(o.id);
userlist.forEach((user) => {
insertQuery +=... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/next-31419/2/output/index.js | JavaScript | var e;
import { _ as r } from "@swc/helpers/_/_async_to_generator";
Promise.all(assignAll).then((e = r(function*(e) {
for(let e in obj){
let r = obj[e];
r.id, (yield listOfUser(r.id)).forEach((e)=>{
insertQuery += `INSERT INTO "TABLE"("UUID", id, other_ids_here) VALUES ('${uuidv4()}', '$... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/next-33088/input/index.js | JavaScript | import * as React from "react";
export default function Index() {
const [data, setData] = React.useState({ hits: [] });
const [query, setQuery] = React.useState("react");
React.useEffect(() => {
if (query === "") return;
function getFetchUrl() {
return "https://hn.algolia.com/... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/next-33088/output/index.js | JavaScript | import { _ as t } from "@swc/helpers/_/_async_to_generator";
import { _ as e } from "@swc/helpers/_/_sliced_to_array";
import { _ as r } from "@swc/helpers/_/_ts_generator";
import { jsx as n, jsxs as s, Fragment as a } from "react/jsx-runtime";
import * as i from "react";
export default function c() {
var c = e(i.... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/react-autosuggest/1/input/index.js | JavaScript | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports["default"] = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _Item = _interopRequireDefault(require("./Item"));
var _compareObjects = _intero... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc/tests/vercel/full/react-autosuggest/1/output/index.js | JavaScript | "use strict";
var _instanceof = require("@swc/helpers/_/_instanceof");
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.default = void 0;
var _react = function(obj) {
if (obj && obj.__esModule) return obj;
if (null === obj || "object" !== _typeof(obj) && "function" != typeof obj) return ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.