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_ecma_transforms_base/tests/resolver/module/001/input.js | JavaScript | import { foo as foo } from "src";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/module/001/output.js | JavaScript | import { foo__0 as foo__2 } from "src";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/named-export/input.js | JavaScript | export { a as b } from "foo";
export { b as c } from "far";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/named-export/output.js | JavaScript | export { a__0 as b__0 } from "foo";
export { b__0 as c__0 } from "far";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/nested/arrow_expr/var/scope/input.js | JavaScript | var Test = (() => {
var Test = (() => {
var Test = 2;
return Test;
})();
return Test;
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/nested/arrow_expr/var/scope/output.js | JavaScript | var Test__2 = (()=>{
var Test__3 = (()=>{
var Test__4 = 2;
return Test__4;
})();
return Test__3;
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/nested/fn_expr/var/scope/fn/input.js | JavaScript | var Test = (function () {
var Test = (function () {
function Test() {}
return Test;
})();
return Test;
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/nested/fn_expr/var/scope/fn/output.js | JavaScript | var Test__2 = function() {
var Test__3 = function() {
function Test__4() {}
return Test__4;
}();
return Test__3;
}();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/nested/fn_expr/var/scope/input.js | JavaScript | var Test = (function () {
var Test = (function () {
var Test = 2;
return Test;
})();
return Test;
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/nested/fn_expr/var/scope/output.js | JavaScript | var Test__2 = function() {
var Test__3 = function() {
var Test__4 = 2;
return Test__4;
}();
return Test__3;
}();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/next-66237/input.js | JavaScript | "use strict";
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([[854], {
/***/ 3712:
/***/ (function (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ $Q: function () { return /* bi... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/next-66237/output.js | JavaScript | "use strict";
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[
854
],
{
3712: function(__unused_webpack___webpack_module____3, __webpack_exports____3, __webpack_require____3) {
__webpack_require____3.d(__webpack_exports____3, {
$Q: function() {... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/next/react-fast-refresh/1/input.js | JavaScript | import dynamic from "next/dynamic";
export const Comp = dynamic(() => import("../Content"), { ssr: false });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/next/react-fast-refresh/1/output.js | JavaScript | import dynamic__2 from "next/dynamic";
export const Comp__2 = dynamic__2(()=>import("../Content"), {
ssr: false
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/pass/assignment/input.js | JavaScript | let a = 1;
a = 2;
expect(a).toBe(2);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/pass/assignment/output.js | JavaScript | let a__2 = 1;
a__2 = 2;
expect(a__2).toBe(2);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/pass/call/input.js | JavaScript | let a = 1;
function b() {
return a + 1;
}
expect(b()).toBe(2);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/pass/call/output.js | JavaScript | let a__2 = 1;
function b__2() {
return a__2 + 1;
}
expect(b__2()).toBe(2);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/pr_1171/1/input.js | JavaScript | function isAbsolute() {}
function parse(path) {
const isAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH;
if (isAbsolute) {
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/pr_1171/1/output.js | JavaScript | function isAbsolute__2() {}
function parse__2(path__4) {
const isAbsolute__4 = path__4.charCodeAt(0) === CHAR_FORWARD_SLASH;
if (isAbsolute__4) {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/pr_1171/2/input.js | JavaScript | function parse(path) {
const isAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH;
if (isAbsolute) {
}
}
function isAbsolute() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/pr_1171/2/output.js | JavaScript | function parse__2(path__3) {
const isAbsolute__3 = path__3.charCodeAt(0) === CHAR_FORWARD_SLASH;
if (isAbsolute__3) {}
}
function isAbsolute__2() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/regression/001/input.js | JavaScript | var sym = Symbol();
class Foo {
[sym]() {
return 1;
}
}
class Bar extends Foo {
[sym]() {
return super[sym]() + 2;
}
}
var i = new Bar();
expect(i[sym]()).toBe(3);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/regression/001/output.js | JavaScript | var sym__2 = Symbol();
class Foo__2 {
[sym__2]() {
return 1;
}
}
class Bar__2 extends Foo__2 {
[sym__2]() {
return super[sym__2]() + 2;
}
}
var i__2 = new Bar__2();
expect(i__2[sym__2]()).toBe(3);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/regression/002/input.js | JavaScript | var sym = Symbol();
var Foo = (function () {
function Foo() {
_classCallCheck(this, Foo);
}
_createClass(Foo, [
{
key: sym,
value: function () {
return 1;
},
},
]);
return Foo;
})();
var Bar = (function (_Foo) {
_inherit... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/regression/002/output.js | JavaScript | var sym__2 = Symbol();
var Foo__2 = function() {
function Foo__3() {
_classCallCheck(this, Foo__3);
}
_createClass(Foo__3, [
{
key: sym__2,
value: function() {
return 1;
}
}
]);
return Foo__3;
}();
var Bar__2 = function(_Foo... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/regression_of_454/input.js | JavaScript | function broken(x) {
var Foo = (function (_Bar) {
_inherits(Foo, _Bar);
function Foo() {
_classCallCheck(this, Foo);
return _possibleConstructorReturn(
this,
_getPrototypeOf(Foo).apply(this, arguments)
);
}
return Fo... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/regression_of_454/output.js | JavaScript | function broken__2(x__3) {
var Foo__3 = function(_Bar__4) {
_inherits(Foo__4, _Bar__4);
function Foo__4() {
_classCallCheck(this, Foo__4);
return _possibleConstructorReturn(this, _getPrototypeOf(Foo__4).apply(this, arguments));
}
return Foo__4;
}(Bar);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/same-level/input.js | JavaScript | var a = "foo";
var a = "bar";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/same-level/output.js | JavaScript | var a__2 = "foo";
var a__2 = "bar";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/shorthand/input.js | JavaScript | let a = "foo";
function foo() {
let a = "bar";
use({ a });
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/shorthand/output.js | JavaScript | let a__2 = "foo";
function foo__2() {
let a__3 = "bar";
use({
a__3
});
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/ts/es5/for/of/27/input.js | JavaScript | for (var { x: a = 0, y: b = 1 } of [2, 3]) {
a;
b;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/ts/es5/for/of/27/output.js | JavaScript | for (var { x: a__2 = 0, y: b__2 = 1 } of [
2,
3
]){
a__2;
b__2;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/unresolved-mark/1/input.js | JavaScript | foo();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/unresolved-mark/1/output.js | JavaScript | foo();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/unresolved-mark/2/input.js | JavaScript | foo();
var foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/unresolved-mark/2/output.js | JavaScript | foo__2();
var foo__2;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/unresolved-mark/3/input.js | JavaScript | foo();
function foo() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/unresolved-mark/3/output.js | JavaScript | foo__2();
function foo__2() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/update/input.js | JavaScript | let a = 1;
a++;
expect(a).toBe(2);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/update/output.js | JavaScript | let a__2 = 1;
a__2++;
expect(a__2).toBe(2);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/vercel/next/server/render/1/input.js | JavaScript | import { Writable } from "stream";
import * as ReactDOMServer from "react-dom/server";
import { StyleRegistry, createStyleRegistry } from "styled-jsx";
import { warn } from "../build/output/log";
import {
GSP_NO_RETURNED_VALUE,
GSSP_COMPONENT_MEMBER_ERROR,
GSSP_NO_RETURNED_VALUE,
STATIC_STATUS_PAGE_GET_... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/vercel/next/server/render/1/output.js | JavaScript | import { Writable__2 } from "stream";
import * as ReactDOMServer__2 from "react-dom/server";
import { StyleRegistry__2, createStyleRegistry__2 } from "styled-jsx";
import { warn__2 } from "../build/output/log";
import { GSP_NO_RETURNED_VALUE__2, GSSP_COMPONENT_MEMBER_ERROR__2, GSSP_NO_RETURNED_VALUE__2, STATIC_STATUS_P... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/vercel/next/server/render/2/input.js | JavaScript | function renderToStream(element, generateStaticHTML) {
return new Promise((resolve, reject) => {
let underlyingStream = null;
const stream = new Writable({
highWaterMark: 0,
write(chunk, encoding, callback) {
if (!underlyingStream) {
throw ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/vercel/next/server/render/2/output.js | JavaScript | function renderToStream__2(element__3, generateStaticHTML__3) {
return new Promise((resolve__4, reject__4)=>{
let underlyingStream__4 = null;
const stream__4 = new Writable({
highWaterMark: 0,
write (chunk__5, encoding__5, callback__5) {
if (!underlyingStream_... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/vercel/next/server/render/3/input.js | JavaScript | function top() {
let resolved = false;
const doResolve = () => {
let aaa = 3;
if (!resolved) {
resolved = true;
let bbb = 4;
resolve((res, next) => {
const drainHandler = () => {
const prevCallbacks = underlyingStream.queued... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/resolver/vercel/next/server/render/3/output.js | JavaScript | function top__2() {
let resolved__3 = false;
const doResolve__3 = ()=>{
let aaa__4 = 3;
if (!resolved__3) {
resolved__3 = true;
let bbb__5 = 4;
resolve((res__6, next__6)=>{
const drainHandler__6 = ()=>{
const prevCallbacks__... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/1/input.ts | TypeScript | interface MyType {
other: number;
}
export default MyType;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/1/output.ts | TypeScript | interface MyType__2 {
other__0: number;
}
export default MyType__2;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/2/input.ts | TypeScript | interface Foo {
(a: string): void;
b: string;
}
interface Foo {
(a: number): number;
c: boolean;
d: { x: number; y: number };
}
export = Foo; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/2/output.ts | TypeScript | interface Foo__2 {
(a: string) : void;
b__0: string;
}
interface Foo__2 {
(a: number) : number;
c__0: boolean;
d__0: {
x__0: number;
y__0: number;
};
}
export = Foo__2
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/class/constructor/input.ts | TypeScript | class G<T> {}
class Foo {
constructor() {
class Foo {}
new G<Foo>();
}
}
new G<Foo>();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/class/constructor/output.ts | TypeScript | class G__2<T__3> {
}
class Foo__2 {
constructor(){
class Foo__4 {
}
new G__2<Foo__4>();
}
}
new G__2<Foo__2>();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/class/getter/input.ts | TypeScript | class G<T> {}
class Foo {
get foo() {
class Foo {}
new G<Foo>();
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/class/getter/output.ts | TypeScript | class G__2<T__3> {
}
class Foo__2 {
get foo() {
class Foo__4 {
}
new G__2<Foo__4>();
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/class/super/input.ts | TypeScript | class A extends B {
constructor() {
super();
const sym = "";
console.log(super.sym + super[sym]);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/class/super/output.ts | TypeScript | class A__2 extends B {
constructor(){
super();
const sym__3 = "";
console.log(super.sym + super[sym__3]);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/declare/input.ts | TypeScript | declare const MY_MAGIC_VARIABLE: string;
declare function myFunction(): string;
declare enum MyEnum {
Value = "value",
}
declare class MyClass {
prop: string;
}
declare namespace MyNamespace {
var value: string;
}
export default function Page() {
return `Server value: ${true ? MY_MAGIC_VARIABLE : "not ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/declare/output.ts | TypeScript | declare const MY_MAGIC_VARIABLE__2: string;
declare function myFunction__2(): string;
declare enum MyEnum__2 {
Value__0 = "value"
}
declare class MyClass__2 {
prop: string;
}
declare namespace MyNamespace__2 {
var value__4: string;
}
export default function Page__2() {
return `Server value: ${true ? MY_... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/deno/9650/1/input.ts | TypeScript | export class X {
constructor() {}
bad(target: number) {
const d = 1;
const min = 0;
const max = 100;
console.log(
"x",
`duration ${d} not in range - ${min} ≥ ${d} && ${max} ≥ ${d}`
);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/deno/9650/1/output.ts | TypeScript | export class X__2 {
constructor(){}
bad(target__4: number) {
const d__4 = 1;
const min__4 = 0;
const max__4 = 100;
console.log("x", `duration ${d__4} not in range - ${min__4} ≥ ${d__4} && ${max__4} ≥ ${d__4}`);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/deno/lint/463/1/input.ts | TypeScript | (() => {
function foo() {
return new Bar();
}
class Bar {}
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/deno/lint/463/1/output.ts | TypeScript | (()=>{
function foo__3() {
return new Bar__3();
}
class Bar__3 {
}
})();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/deno/lint/463/2/input.ts | TypeScript | function wrapper() {
function foo() {
return new Bar();
}
class Bar {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/deno/lint/463/2/output.ts | TypeScript | function wrapper__2() {
function foo__3() {
return new Bar__3();
}
class Bar__3 {
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/deno/lint/486/input.ts | TypeScript | function foo() {
target++;
{
var target = 0;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/deno/lint/486/output.ts | TypeScript | function foo__2() {
target__3++;
{
var target__3 = 0;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/deno/lint/612/1/input.ts | TypeScript | class T {
#foo(x) {}
#bar(x) {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/deno/lint/612/1/output.ts | TypeScript | class T__2 {
#foo(x__3) {}
#bar(x__4) {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/deno/lint/612/2/input.ts | TypeScript | class T {
#foo(x) {
use(x);
}
#bar(x) {
use(x);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/deno/lint/612/2/output.ts | TypeScript | class T__2 {
#foo(x__3) {
use(x__3);
}
#bar(x__4) {
use(x__4);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/deno/lint/705/input.ts | TypeScript | import type { Foo } from "./foo.ts";
function _bar(...Foo: Foo) {
console.log(Foo);
}
function _bar2(Foo: Foo, other = Foo) {
Foo;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/deno/lint/705/output.ts | TypeScript | import type { Foo__2 } from "./foo.ts";
function _bar__2(...Foo__3: Foo__2) {
console.log(Foo__3);
}
function _bar2__2(Foo__4: Foo__2, other__4 = Foo__4) {
Foo__4;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/enum/1/input.ts | TypeScript | enum Foo {
hello = 42,
}
enum Foo2 {
hello = "42",
}
console.log(Foo.hello, Foo2.hello);
console.log(Hello.en, Hello["ja-JP"], Hello[`ko-KR`], Hello["zh-CN"]);
const enum Hello {
en = "hello",
"ja-JP" = "こんにちは",
"ko-KR" = "안녕하세요",
"zh-CN" = `你好`,
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/enum/1/output.ts | TypeScript | enum Foo__2 {
hello__0 = 42
}
enum Foo2__2 {
hello__0 = "42"
}
console.log(Foo__2.hello, Foo2__2.hello);
console.log(Hello__2.en, Hello__2["ja-JP"], Hello__2[`ko-KR`], Hello__2["zh-CN"]);
const enum Hello__2 {
en__0 = "hello",
"ja-JP" = "こんにちは",
"ko-KR" = "안녕하세요",
"zh-CN" = `你好`
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/function_scope/1/input.ts | TypeScript | function wrapper(a) {
var a;
{
let a;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/function_scope/1/output.ts | TypeScript | function wrapper__2(a__3) {
var a__3;
{
let a__4;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/function_scope/2/input.ts | TypeScript | function wrapper(a) {
{
let a;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/function_scope/2/output.ts | TypeScript | function wrapper__2(a__3) {
{
let a__4;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/function_scope/3/input.ts | TypeScript | function wrapper(a) {
{
var a;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/function_scope/3/output.ts | TypeScript | function wrapper__2(a__3) {
{
var a__3;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/function_scope/4/input.ts | TypeScript | function wrapper(a) {
let a;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/function_scope/4/output.ts | TypeScript | function wrapper__2(a__3) {
let a__3;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/generated_contextual_typing_01/input.ts | TypeScript | class Base {
private p;
}
var x338 = (n: { (): Base[] }) => n;
x338(function named() {
return [d1, d2];
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/generated_contextual_typing_01/output.ts | TypeScript | class Base__2 {
private p;
}
var x338__2 = (n__3: {
() : Base__2[];
})=>n__3;
x338__2(function named__4() {
return [
d1,
d2
];
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/internalModules/codeGeneration/importStatements/input.ts | TypeScript | module A {
export class Point {
constructor(public x: number, public y: number) {}
}
export var Origin = new Point(0, 0);
}
// no code gen expected
module B {
import a = A; //Error generates 'var <Alias> = <EntityName>;'
}
// no code gen expected
module C {
import a = A; //Error generates... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/internalModules/codeGeneration/importStatements/output.ts | TypeScript | namespace A__2 {
export class Point__3 {
constructor(public x__4: number, public y__4: number){}
}
export var Origin__3 = new Point__3(0, 0);
}
namespace B__2 {
import a__5 = A__2;
}
namespace C__2 {
import a__6 = A__2;
var m__6: typeof a__6;
var p__6: a__6.Point;
var p__6 = {
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/issue-5622/1/input.ts | TypeScript | var x = 1
function foo(x, y = function () { x = 2 }) {
var x = 3
y()
expect(x).toBe(3);
}
foo()
expect(x).toBe(1); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/issue-5622/1/output.ts | TypeScript | var x__2 = 1;
function foo__2(x__3, y__3 = function() {
x__3 = 2;
}) {
var x__3 = 3;
y__3();
expect(x__3).toBe(3);
}
foo__2();
expect(x__2).toBe(1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/issue-5622/2/input.ts | TypeScript | function left(a, b = a, c = b) {
a;
b;
}
function right(a = b, b = a) {
a;
b;
}
function right2(a = b, b = c, c = a) {
a;
b;
c;
}
function inside(a = b) {
var b;
}
function outside() {
var b;
function inside(a = b) { // Still an error because b is declared inside the function... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/issue-5622/2/output.ts | TypeScript | function left__2(a__3, b__3 = a__3, c__3 = b__3) {
a__3;
b__3;
}
function right__2(a__4 = b__4, b__4 = a__4) {
a__4;
b__4;
}
function right2__2(a__5 = b__5, b__5 = c__5, c__5 = a__5) {
a__5;
b__5;
c__5;
}
function inside__2(a__6 = b) {
var b__6;
}
function outside__2() {
var b__7;
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/issue-7967/1/input.ts | TypeScript | {
interface Foo { }
}
{
interface Foo { }
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/issue-7967/1/output.ts | TypeScript | {
interface Foo__3 {
}
}{
interface Foo__4 {
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/issue-7967/2/input.ts | TypeScript | { using foo = null }
{ using foo = null }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/issue-7967/2/output.ts | TypeScript | {
using foo__3 = null;
}{
using foo__4 = null;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/issue-9685/1/input.tsx | TypeScript (TSX) | export namespace form {
export const input = null;
export const test = <input />;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/issue-9685/1/output.tsx | TypeScript (TSX) | export namespace form__2 {
export const input__3 = null;
export const test__3 = <input/>;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/issues/1517/1/input.ts | TypeScript | interface X {
get foo(): string;
set foo(v: string | number);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_base/tests/ts-resolver/issues/1517/1/output.ts | TypeScript | interface X__2 {
get foo__0(): string;
set foo__0(v: string | number);
}
| 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.