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_codegen/tests/fixture/next/ssg/getStaticProps/should-support-class-exports-2/output.min.js | JavaScript | class Test extends React.Component{render(){return __jsx("div",null)}}export var __N_SSG=true;export default Test;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/next/ssg/getStaticProps/should-support-class-exports/input.js | JavaScript | export var __N_SSG = true
export default class Test extends React.Component {
render() {
return __jsx('div', null)
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/next/ssg/getStaticProps/should-support-class-exports/output.js | JavaScript | export var __N_SSG = true;
export default class Test extends React.Component {
render() {
return __jsx('div', null);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/next/ssg/getStaticProps/should-support-class-exports/output.min.js | JavaScript | export var __N_SSG=true;export default class Test extends React.Component{render(){return __jsx("div",null)}}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/next/ssg/getStaticProps/should-support-export-named-as-default-with-a-class/input.js | JavaScript | class El extends React.Component {
render() {
return __jsx('div', null)
}
}
const a = 5
export var __N_SSG = true
export { El as default, a }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/next/ssg/getStaticProps/should-support-export-named-as-default-with-a-class/output.js | JavaScript | class El extends React.Component {
render() {
return __jsx('div', null);
}
}
const a = 5;
export var __N_SSG = true;
export { El as default, a };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/next/ssg/getStaticProps/should-support-export-named-as-default-with-a-class/output.min.js | JavaScript | class El extends React.Component{render(){return __jsx("div",null)}}const a=5;export var __N_SSG=true;export{El as default,a};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/next/ssg/getStaticProps/should-support-export-named-as-default-with-other-specifiers/input.js | JavaScript | function El() {
return __jsx('div', null)
}
const a = 5
export var __N_SSG = true
export { El as default, a }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/next/ssg/getStaticProps/should-support-export-named-as-default-with-other-specifiers/output.js | JavaScript | function El() {
return __jsx('div', null);
}
const a = 5;
export var __N_SSG = true;
export { El as default, a };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/next/ssg/getStaticProps/should-support-export-named-as-default-with-other-specifiers/output.min.js | JavaScript | function El(){return __jsx("div",null)}const a=5;export var __N_SSG=true;export{El as default,a};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/next/ssg/getStaticProps/should-support-full-re-export/input.js | JavaScript | export var __N_SSG = true
export { default } from 'a'
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/next/ssg/getStaticProps/should-support-full-re-export/output.js | JavaScript | export var __N_SSG = true;
export { default } from 'a';
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/next/ssg/getStaticProps/should-support-full-re-export/output.min.js | JavaScript | export var __N_SSG=true;export{default}from"a";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/next/ssg/getStaticProps/should-support-named-export-as-default/input.js | JavaScript | function El() {
return __jsx('div', null)
}
export var __N_SSG = true
export { El as default }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/next/ssg/getStaticProps/should-support-named-export-as-default/output.js | JavaScript | function El() {
return __jsx('div', null);
}
export var __N_SSG = true;
export { El as default };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/next/ssg/getStaticProps/should-support-named-export-as-default/output.min.js | JavaScript | function El(){return __jsx("div",null)}export var __N_SSG=true;export{El as default};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/node-erm/input.js | JavaScript | using r = 0; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/node-erm/output.js | JavaScript | using r = 0;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/node-erm/output.min.js | JavaScript | using r=0;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/number/input.js | JavaScript | const exp = 1000;
const Exp = 1000000000000;
const negativeExp = 0.00000001;
const huge = 1000000000001;
const big = 100000000001;
const fractional = 100.2300200;
const numeric_separators = 1_000_000_000_000;
const one = 1_000;
const two = 1_000_000;
const three = -1_000_000;
const bin = 0b0101_0101;
const oct = 0o0123... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/number/output.js | JavaScript | const exp = 1000;
const Exp = 1000000000000;
const negativeExp = 0.00000001;
const huge = 1000000000001;
const big = 100000000001;
const fractional = 100.2300200;
const numeric_separators = 1_000_000_000_000;
const one = 1_000;
const two = 1_000_000;
const three = -1_000_000;
const bin = 0b0101_0101;
const oct = 0o0123... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/number/output.min.js | JavaScript | const exp=1e3;const Exp=1e12;const negativeExp=1e-8;const huge=0xe8d4a51001;const big=0x174876e801;const fractional=100.23002;const numeric_separators=1e12;const one=1e3;const two=1e6;const three=-1e6;const bin=85;const oct=342391;const hex=0xdeadbeef;const fractional2=1000.0001;const identifier=_1000;const negate_iden... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/001/input.js | JavaScript | foo
if (foo) {
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/001/output.js | JavaScript | foo;
if (foo) {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/001/output.min.js | JavaScript | foo;if(foo){}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/002/input.js | JavaScript | foo
"s" | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/002/output.js | JavaScript | foo;
"s";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/002/output.min.js | JavaScript | foo;"s";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/003/input.js | JavaScript | foo
bar | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/003/output.js | JavaScript | foo;
bar;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/003/output.min.js | JavaScript | foo;bar;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/004/input.js | JavaScript | var foo;
!foo | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/004/output.js | JavaScript | var foo;
!foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/004/output.min.js | JavaScript | var foo;!foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/005/input.js | JavaScript | foo()
!unary | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/005/output.js | JavaScript | foo();
!unary;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/005/output.min.js | JavaScript | foo();!unary;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/006/input.js | JavaScript | "use strict";
const a = {};
for (let b in a)
a[b] = a[b].trim();
["foo",].forEach(() => { })
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/006/output.js | JavaScript | "use strict";
const a = {};
for(let b in a)a[b] = a[b].trim();
[
"foo"
].forEach(()=>{});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/semi/pending/006/output.min.js | JavaScript | "use strict";const a={};for(let b in a)a[b]=a[b].trim();["foo"].forEach(()=>{});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/stc/0001/input.ts | TypeScript | interface I {
(strs: TemplateStringsArray, ...subs: number[]): I;
member: {
new(s: string): {
new(n: number): {
new(): boolean;
}
}
};
}
var f: I;
var x = new new new f`abc${0}def`.member("hello")(42) === true;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/stc/0001/output.min.ts | TypeScript | interface I {
(strs: TemplateStringsArray, ...subs: number[]) : I;
member: {
new(s: string): {
new(n: number): {
new(): boolean;
};
};
};
}
var f: I;
var x = new new new f`abc${0}def`.member("hello")(42) === true;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/stc/0001/output.ts | TypeScript | interface I {
(strs: TemplateStringsArray, ...subs: number[]) : I;
member: {
new(s: string): {
new(n: number): {
new(): boolean;
};
};
};
}
var f: I;
var x = new new new f`abc${0}def`.member("hello")(42) === true;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/string/input.js | JavaScript | import * as commonjsHelpers from "\0commonjsHelpers.js";
const string1 = "test";
const string2 = 'test';
const string3 = 'te"st';
const string4 = "te'st";
const string5 = "test\ntest\ntest";
const string6 = `Yet another string primitive`;
const string7 = "This is a very long string which needs \
to wrap across multipl... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/string/output.js | JavaScript | import * as commonjsHelpers from "\0commonjsHelpers.js";
const string1 = "test";
const string2 = 'test';
const string3 = 'te"st';
const string4 = "te'st";
const string5 = "test\ntest\ntest";
const string6 = `Yet another string primitive`;
const string7 = "This is a very long string which needs \
to wrap across multiple... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/string/output.min.js | JavaScript | import*as commonjsHelpers from"\0commonjsHelpers.js";const string1="test";const string2="test";const string3='te"st';const string4="te'st";const string5="test\ntest\ntest";const string6=`Yet another string primitive`;const string7="This is a very long string which needs to wrap across multiple lines because otherwise m... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/template-literal/output.min.js | JavaScript | const template_literal1=`test${"test"}test${"test"}`;const template_literal2=``;const template_literal3=` `;const template_literal4=`string text`;const template_literal5=`string text line 1
string text line 2`;const template_literal6=`string text ${expression} string text`;const templateFn=expression=>`string text ${e... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class/input.js | JavaScript | abstract class A {
}
export abstract class B {
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class/output.js | JavaScript | abstract class A {
}
export abstract class B {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class/output.min.js | JavaScript | abstract class A{}export abstract class B{}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class_abstract/input.ts | TypeScript | export default abstract class Predictor {
abstract _type: string;
}
export abstract class Foo {
abstract _type: string;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class_abstract/output.ts | TypeScript | export default abstract class Predictor {
abstract _type: string;
}
export abstract class Foo {
abstract _type: string;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class_implements/input.js | JavaScript | class MyClass implements Interface1, Interface2 {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class_implements/output.js | JavaScript | class MyClass implements Interface1, Interface2 {
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class_implements/output.min.js | JavaScript | class MyClass implements Interface1,Interface2{}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class_method/input.js | JavaScript | class MyClass extends Base {
public override method(param: number): string {
}
public abstract override log?<TValue>(msg: string): TValue;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class_method/output.js | JavaScript | class MyClass extends Base {
public override method(param: number): string {}
public abstract override log?<TValue>(msg: string): TValue;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class_method/output.min.js | JavaScript | class MyClass extends Base{public override method(param:number):string{}public abstract override log?<TValue>(msg:string):TValue}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class_prop/input.js | JavaScript | class MyClass extends Base {
prop1?: string;
prop2!: string;
#prop3?: string;
#prop4?: string = "test";
#privateOptionalNoType?;
static readonly prop5!: string;
readonly #prop6 = "asdf";
public abstract override readonly prop7 = 5;
override readonly #prop8 = 5;
declare public sta... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class_prop/output.js | JavaScript | class MyClass extends Base {
prop1?: string;
prop2!: string;
#prop3?: string;
#prop4?: string = "test";
#privateOptionalNoType?;
static readonly prop5!: string;
readonly #prop6 = "asdf";
public abstract override readonly prop7 = 5;
override readonly #prop8 = 5;
declare public sta... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class_prop/output.min.js | JavaScript | class MyClass extends Base{prop1?: string;prop2!: string;#prop3?: string;#prop4?: string="test";#privateOptionalNoType?;static readonly prop5!: string;readonly #prop6="asdf";public abstract override readonly prop7=5;override readonly #prop8=5;declare public static readonly prop9: string;accessor prop10!: string="";publ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class_ts_constructor/input.ts | TypeScript | export class A {
constructor(
@IInstantiationService protected readonly _instantiationService: IInstantiationService,
@IContainerService private readonly _containerService: IContainerService,
) {
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/class_ts_constructor/output.ts | TypeScript | export class A {
constructor(
@IInstantiationService
protected readonly _instantiationService: IInstantiationService,
@IContainerService
private readonly _containerService: IContainerService){}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/exports/input.js | JavaScript | export type * as test from "./a.ts";
export type { a } from "./a.ts";
export { b, type b2 } from "./b.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/exports/output.js | JavaScript | export type * as test from "./a.ts";
export type { a } from "./a.ts";
export { b, type b2 } from "./b.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/exports/output.min.js | JavaScript | export type*as test from"./a.ts";export type{a}from"./a.ts";export{b,type b2}from"./b.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/imports/input.js | JavaScript | import type test from "./a.ts";
import type { a } from "./a.ts";
import type * as name from "./a.ts";
import { b, type c } from "./a.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/imports/output.js | JavaScript | import type test from "./a.ts";
import type { a } from "./a.ts";
import type * as name from "./a.ts";
import { b, type c } from "./a.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/imports/output.min.js | JavaScript | import type test from"./a.ts";import type{a}from"./a.ts";import type*as name from"./a.ts";import{b,type c}from"./a.ts";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/interface/input.ts | TypeScript | const symbol1 = Symbol();
const symbol2 = Symbol();
const symbol3 = Symbol();
export interface Test {
[symbol1]: string;
[symbol2](): string;
get [symbol3](): string;
set [symbol3](value: string);
prop1: string;
method1(value: string, param2: number): string;
get method2(): string;
set method2(value: s... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/interface/output.ts | TypeScript | const symbol1 = Symbol();
const symbol2 = Symbol();
const symbol3 = Symbol();
export interface Test {
[symbol1]: string;
[symbol2](): string;
get [symbol3](): string;
set [symbol3](value: string);
prop1: string;
method1(value: string, param2: number): string;
get method2(): string;
set m... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/jsx_type_args/input.js | JavaScript | <Foo<Bar> id="foo"></Foo>;
<Foo<Bar> />; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/jsx_type_args/output.js | JavaScript | <Foo<Bar> id="foo"></Foo>;
<Foo<Bar>/>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/jsx_type_args/output.min.js | JavaScript | <Foo<Bar> id="foo"></Foo><Foo<Bar>/>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/mapped_type/input.ts | TypeScript | type NoTypeAnn = {
[value: string];
};
type MappedTypeWithNamedType = {
[K in T as U]: undefined;
};
type Partial<T> = {
[P in keyof T]?: T[P];
};
type OptionalPlus<T> = {
[P in keyof T]+?: T[P];
};
type OptionalMinus<T> = {
[P in keyof T]-?: T[P];
};
type Flags<T> = {
[P in keyof T]: boolean;
}... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/mapped_type/output.ts | TypeScript | type NoTypeAnn = {
[value: string];
};
type MappedTypeWithNamedType = {
[K in T as U]: undefined;
};
type Partial<T> = {
[P in keyof T]?: T[P];
};
type OptionalPlus<T> = {
[P in keyof T]+?: T[P];
};
type OptionalMinus<T> = {
[P in keyof T]-?: T[P];
};
type Flags<T> = {
[P in keyof T]: boolean;
}... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/module/input.js | JavaScript | module Test {
1;
}
export module Test.Test {
1;
}
declare module Test.Test2 {
1;
}
declare global {
1;
}
declare namespace Test1.Test2 {
1;
}
export namespace Test1.Test2.Test3 {
2;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/module/output.js | JavaScript | namespace Test {
1;
}
export namespace Test.Test {
1;
}
declare namespace Test.Test2 {
1;
}
declare global {
1;
}
declare namespace Test1.Test2 {
1;
}
export namespace Test1.Test2.Test3 {
2;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/module/output.min.js | JavaScript | namespace Test{1;}export namespace Test.Test{1;}declare namespace Test.Test2{1;}declare global{1;}declare namespace Test1.Test2{1;}export namespace Test1.Test2.Test3{2;}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/ts_import_equals/input.js | JavaScript | import Test1 = MyNamespace.Test1;
import Test2 = Test1;
export import Test3 = Test1;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/ts_import_equals/output.js | JavaScript | import Test1 = MyNamespace.Test1;
import Test2 = Test1;
export import Test3 = Test1;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/ts_import_equals/output.min.js | JavaScript | import Test1=MyNamespace.Test1;import Test2=Test1;export import Test3=Test1;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/ts_import_type/input.js | JavaScript | type Vite = typeof import("vite", { with: { "resolution-mode": "import" } });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/ts_import_type/output.js | JavaScript | type Vite = typeof import("vite", {
with: {
"resolution-mode": "import"
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/ts_import_type/output.min.js | JavaScript | type Vite=typeof import("vite",{with:{"resolution-mode":"import"}});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/ts_type_query/input.js | JavaScript | export type Test = typeof MyClass<string>;
export type Test1 = typeof import("./other.ts").MyClass<string>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/ts_type_query/output.js | JavaScript | export type Test = typeof MyClass<string>;
export type Test1 = typeof import("./other.ts").MyClass<string>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/typescript/ts_type_query/output.min.js | JavaScript | export type Test=typeof MyClass<string>;export type Test1=typeof import("./other.ts").MyClass<string>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/vercel/2/input.js | JavaScript | /* globals __webpack_hash__ */
import { displayContent } from './fouc'
import initOnDemandEntries from './on-demand-entries-client'
import { addMessageListener, connectHMR } from './error-overlay/websocket'
const data = JSON.parse(document.getElementById('__NEXT_DATA__').textContent)
window.__NEXT_DATA__ = data
let {... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/vercel/2/output.js | JavaScript | import { displayContent } from './fouc';
import initOnDemandEntries from './on-demand-entries-client';
import { addMessageListener, connectHMR } from './error-overlay/websocket';
const data = JSON.parse(document.getElementById('__NEXT_DATA__').textContent);
window.__NEXT_DATA__ = data;
let { assetPrefix, page } = data;... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/vercel/2/output.min.js | JavaScript | import{displayContent}from"./fouc";import initOnDemandEntries from"./on-demand-entries-client";import{addMessageListener,connectHMR}from"./error-overlay/websocket";const data=JSON.parse(document.getElementById("__NEXT_DATA__").textContent);window.__NEXT_DATA__=data;let{assetPrefix,page}=data;assetPrefix=assetPrefix||""... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/vercel/d3-color/1/input.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;
function cubehelixConvert(o) {
if ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/vercel/d3-color/1/output.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;
function cubehelixConvert(o) {
if ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/fixture/vercel/d3-color/1/output.min.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=-.14861,B=1.78277,C=-.29227,D=-.90649,E=1.97294,ED=E*D,EB=E*B,BC_DA=B*C-D*A;function cubehelixConvert(o){if(o instanceof Cubehelix)return new Cubehelix(o.h,o.s,o.l,o.opacity)... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/sourcemap.rs | Rust | // use std::{fs::read_to_string, path::PathBuf};
// use base64::prelude::{Engine, BASE64_STANDARD};
// use rustc_hash::FxBuildHasher;
// use sourcemap::SourceMap;
// use swc_allocator::api::global::HashSet;
// use swc_common::{comments::SingleThreadedComments,
// source_map::SourceMapGenConfig}; use swc_ecma_ast::EsVe... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/srcmap.mjs | JavaScript | import { minify } from "terser";
try {
const code = process.argv[1];
const output = await minify(code, {
sourceMap: {
filename: 'input.js',
includeSources: true,
},
compress: false,
mangle: false,
});
console.log(JSON.stringify({
code: o... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/test262-min/005dc7dff71d4b97.js | JavaScript | [1];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/test262-min/006949a4f1471866.js | JavaScript | if(a){}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/test262-min/00b851b06af02cc0.js | JavaScript | a.b("c").d("e",function(f){return f}).g("h",function(i){return i});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_codegen/tests/test262-min/00bd68a9d0203f10.js | JavaScript | if(a){b();c();d()}else{e();f();g()}
| 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.