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_parser/tests/typescript/import-assertions/export/test2/input.tsx | TypeScript (TSX) | export { val } from './foo.js.js' assert { type: "javascript" }; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/import-assertions/export/test3/input.ts | TypeScript | export * from './foo.js' assert { type: "javascript" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test1/input.ts | TypeScript | import json from "./foo.json" assert { type: "json" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test2/input.ts | TypeScript | import "./foo.json" assert { type: "json" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/import/equals-require/input.ts | TypeScript | import a = require("a");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/import/equals-type-only/input.ts | TypeScript | import type MyType = require('commonjs-package')
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/import/equals/input.ts | TypeScript | import A = B.C;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/import/export-import-require/input.ts | TypeScript | export import a = require("a");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/import/export-import-type-require/input.ts | TypeScript | export import type React = require("react");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/import/export-import/input.ts | TypeScript | export import A = B.C;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/import/not-top-level/input.ts | TypeScript | declare module "m" {
import * as a from "a";
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/instantiation-expr/asi/input.ts | TypeScript | // Parsed as function call, even though this differs from JavaScript
const x1 = f<true>
(true);
// Parsed as relational expressions
const r1 = f < true > true;
const r2 = f < true > +1;
const r3 = f < true > -1;
// All of the following are parsed as instantiation expressions
const x2 = f<true>
true;
const x3 = f<true>;
true;
const x4 = f<true>
if (true) {}
const x5 = f<true>
let yy = 0;
const x6 = f<true>
interface I {}
let x10 = f<true>
this.bar()
let x11 = f<true>
function bar() {}
let x12 = f<true>
class C {}
let x13 = f<true>
bar()
let x14 = f<true>
void bar()
class C1 {
static specialFoo = f<string>
static bar = 123
}
class C2 {
public specialFoo = f<string>
public bar = 123
}
class C3 {
private specialFoo = f<string>
private bar = 123
}
class C4 {
protected specialFoo = f<string>
protected bar = 123
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/instantiation-expr/base/input.ts | TypeScript | var ss = new SS<number>;
const a1 = f<number>;
const a2 = f.g<number>;
const a3 = f<number>.g;
const a4 = f<number>.g<number>;
const a5 = f['g']<number>;
const a9 = (f<number>)<number>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/instantiation-expr/bin-op/input.ts | TypeScript | 0 < 2 >> 1;
a<b>>c<d>;
a<b> + c;
a<b> - c;
const a = b < (c >= d ? e : f);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/instantiation-expr/eof/input.ts | TypeScript | let v = f<x>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/instantiation-expr/more-exprs/input.ts | TypeScript | f<x>, g<y>;
[f<x>];
f<x> ? g<y> : h<z>;
f<x> ^ g<y>;
f<x> & g<y>;
f<x> | g<y>;
f<x> && g<y>;
f<x> || g<y>;
{ f<x> }
f<x> ?? g<y>;
f<x> == g<y>;
f<x> === g<y>;
f<x> != g<y>;
f<x> !== g<y>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/instantiation-expr/optional-chaining/input.ts | TypeScript | const b3 = f<number>?.();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/instantiation-expr/relational/input.ts | TypeScript | // parsed as relational expression
const a6 = f<number>['g']; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/instantiation-expr/type/input.ts | TypeScript | type T21 = typeof Array<string>;
type T22 = typeof Array<string, number>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/call-signature/input.ts | TypeScript | interface I {
(x: number): void;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/construct-signature/input.ts | TypeScript | interface I {
new (x: number): void;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/export/input.ts | TypeScript | export interface I {}
export default interface A {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/extends/input.ts | TypeScript | interface I extends X.Y<Z> {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/generic/input.ts | TypeScript | interface I<T extends object = { x: number }> {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/index-signature/input.ts | TypeScript | interface I {
[s: string]: number;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/method-computed/input.ts | TypeScript | interface I {
[Symbol.iterator](): void;
[Symbol.iterator]?(): number;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/method-generic/input.ts | TypeScript | interface I {
m<T extends object = { x: number }>(): T;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/method-optional/input.ts | TypeScript | interface I {
m?(): void;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/method-plain/input.ts | TypeScript | interface I {
m();
m(x?: number, ...y: number[]): void;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/modifiers/input.ts | TypeScript | interface I {
readonly x: number;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/properties/input.ts | TypeScript | interface I {
x;
y: number;
z?: number;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/property-computed/input.ts | TypeScript | interface I {
[Symbol.iterator]: number;
[Symbol.iterator]?: number;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/property-named-public/input.ts | TypeScript | interface I {
public: number;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/reserved-method-name/input.ts | TypeScript | interface I {
catch(): void;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/interface/separators/input.ts | TypeScript | interface Comma { x: number, y: number }
interface Semi { x: number; y: number }
interface Newline {
x: number
y: number
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1066/case1/input.ts | TypeScript | ({ ...foo.bar } = baz);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1252/case1/input.tsx | TypeScript (TSX) | export const then = <R>(callback: (...args: TupleReturns<Ws>) => R) => {
let returns: R
let called: boolean
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1299/ts/input.ts | TypeScript | export const iteratorMapGenerator = function*<T, R>(
values: IterableIterator<T>,
execute: IteratorExecution<T, R>,
): IterableIterator<R> {
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1299/tsx/input.tsx | TypeScript (TSX) | export const iteratorMapGenerator = function*<T, R>(
values: IterableIterator<T>,
execute: IteratorExecution<T, R>,
): IterableIterator<R> {
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1441/input.ts | TypeScript |
await foo()
export { } | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1446/case1/input.tsx | TypeScript (TSX) | const Span = <span>with </span>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1446/case2/input.tsx | TypeScript (TSX) | <>
<span>Hello something long to not trigger line break</span>
</>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1449/input.ts | TypeScript | async function foo() {
const {
bar: { } = {}
} = baz;
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1454/case1/input.ts | TypeScript | export abstract class AbstractProviderDeliveryService {
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1454/case2/input.ts | TypeScript | export abstract class AbstractProviderDeliveryService {
// legal typescript method annotation
async prepareGetRequest?(): Promise<any>;
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1454/case3/input.ts | TypeScript | export abstract class AbstractProviderDeliveryService {
// legal typescript method annotation
async prepareGetRequest(): Promise<any>;
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1454/case4/input.tsx | TypeScript (TSX) | export abstract class MenuItem extends Extension<MenuItemConfig> {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1454/case5/input.ts | TypeScript | export abstract class MenuItem extends Extension<MenuItemConfig> {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1503/input.ts | TypeScript | class Class { private declare prop }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1505/case1/input.tsx | TypeScript (TSX) | type InjectedTeamsProps = {};
class Component<_T, _U> {}
class ComponentType<_T> {}
const withTeamsForUser = <P extends InjectedTeamsProps>(
_WrappedComponent: ComponentType<P>
) =>
class extends Component<Omit<P, keyof A> & Partial<B>, C> {
static displayName = `x`;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1505/case2/input.tsx | TypeScript (TSX) | const withTeamsForUser = <P extends InjectedTeamsProps>(
WrappedComponent: React.ComponentType<P>
) =>
class extends React.Component<
Omit<P, keyof InjectedTeamsProps> &
Partial<InjectedTeamsProps> &
DependentProps,
InjectedTeamsProps
> {
static displayName = `withUsersTeams(${getDisplayName(WrappedComponent)})`;
state = {
teams: [],
loadingTeams: true,
error: null,
};
componentDidMount() {
this.fetchTeams();
}
async fetchTeams() {
this.setState({
loadingTeams: true,
});
try {
metric.mark({ name: "user-teams-fetch-start" });
const teamsWithProjects: TeamWithProjects[] = await this.props.api.requestPromise(
this.getUsersTeamsEndpoint()
);
this.setState(
{
teams: teamsWithProjects,
loadingTeams: false,
},
() => {
metric.measure({
name: "app.component.perf",
start: "user-teams-fetch-start",
data: {
name: "user-teams",
route: "/organizations/:orgid/user-teams",
organization_id: parseInt(this.props.organization.id, 10),
},
});
}
);
} catch (error) {
this.setState({
error,
loadingTeams: false,
});
}
}
populateTeamsWithProjects(teams: Team[], projects: Project[]) {
const { isSuperuser } = ConfigStore.get("user");
const { projectsByTeam } = getProjectsByTeams(
teams,
projects,
isSuperuser
);
const teamsWithProjects: TeamWithProjects[] = teams.map((team) => {
const teamProjects = projectsByTeam[team.slug] || [];
return { ...team, projects: teamProjects };
});
this.setState({
teams: teamsWithProjects,
loadingTeams: false,
});
}
getUsersTeamsEndpoint() {
return `/organizations/${this.props.organization.slug}/user-teams/`;
}
render() {
return (
<WrappedComponent
{...(this.props as P & DependentProps)}
{...this.state}
/>
);
}
};
export default withTeamsForUser;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1512/case1/input.ts | TypeScript | import assert from './index'
assert<123>(123)
assert<123>(123, 123)
assert<123>(123, 123, 123) | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1514/case1/input.ts | TypeScript | export class ClassProp {
readonly!: boolean
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1517/case1/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_parser/tests/typescript/issue-1517/case2/input.ts | TypeScript | type Y = {
get bar(): string;
set bar(v: string | number);
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1526/case1/input.tsx | TypeScript (TSX) | export const foo = function* <T>() {
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1526/case2/input.tsx | TypeScript (TSX) | export const bar = () => {
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1526/case3/input.tsx | TypeScript (TSX) | export const foo = function* <T>() {
};
export const bar = () => {
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1526/case4/input.ts | TypeScript | export const foo = function* <T>() {
};
export const bar = () => {
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1549/input.ts | TypeScript | const a = `\r\n`; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1558/case1/input.ts | TypeScript | class Base {
method1() { }
method2() { }
}
class Test extends Base {
public override async method1() {
return Promise.resolve(1);
}
public async override method2() {
return Promise.resolve(1);
}
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1653/input.ts | TypeScript | namespace X {
export namespace Z {
export const foo = 0
}
}
namespace Y {
export namespace Z {
export const bar = 1
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1708/case1/input.ts | TypeScript | const thing = {
get "a-b"() {
return "abc";
},
};
console.log(thing['a-b']); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1751/case1/input.ts | TypeScript | class Foo {
declare a: string
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1803/case1/input.ts | TypeScript | 100000020000000000000000000000000 | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1806/case1/input.ts | TypeScript | 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002225073858507201 | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-1862/case1/input.ts | TypeScript | type A = `<`;
type B = `>`; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2040/case1/input.ts | TypeScript | export const run = <T extends Function = () => any>(fn: T) => {
fn()
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2040/case2/input.ts | TypeScript | export const run = <T = () => any>(fn: T) => {
fn()
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2040/case3/input.tsx | TypeScript (TSX) | export const run = <T extends Function = () => any>(fn: T) => {
fn()
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2160/case1/input.ts | TypeScript | Array(5).fill(0).map((_, i): ({ loading: false }) => ({
loading: false,
}));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2160/case2/input.ts | TypeScript | [0].map((_): ({ a: true }) => ({ a: true }));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2160/case3/input.ts | TypeScript | [0].map((_): ([a: true]) => [true]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2161/case1/input.tsx | TypeScript (TSX) | const x = <P extends object>(
a: React.ComponentType<P>
): React.ComponentType<P & { a: string }> => React.memo();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2196/ts/input.ts | TypeScript | export const reproValue = true ? {} : {
reproFunc: (_: any): any => { },
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2196/tsx/input.ts | TypeScript | export const reproValue = true ? {} : {
reproFunc: (_: any): any => { },
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2237/case1/input.tsx | TypeScript (TSX) | export function Results() {
return (
<div>
{[].map(() => {
function onClick(): void {}
return null;
})}
</div>
);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2237/case2/input.tsx | TypeScript (TSX) | export function Results() {
return (
<div>
{[].map(() => {
return null;
})}
</div>
);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2264/case1/input.tsx | TypeScript (TSX) | const t = <Switch>// 1 /* 2 */</Switch>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2264/case2/input.tsx | TypeScript (TSX) | const t = <Switch>
// 1
/* 2 */
</Switch>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2343/1/input.ts | TypeScript | export declare function someFn(some: string): string;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2417/input.ts | TypeScript | import mongoose from 'mongoose';
import { modelOptions, Severity, prop } from '@typegoose/typegoose';
import { Base } from '@typegoose/typegoose/lib/defaultClasses';
@modelOptions({ options: { allowMixed: Severity.ALLOW } })
export class ITest extends Base<mongoose.Types.ObjectId> {
@prop({})
_userId?: mongoose.Types.ObjectId;
@prop({ default: Date.now })
creationDate?: Date;
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2853/input.ts | TypeScript | const a = "\0a";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-2896/input.tsx | TypeScript (TSX) | <div>children</div>; '<>hello</>';
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-3236/input.ts | TypeScript | function f(a = 0) {
"use strict";
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-3241/1/input.tsx | TypeScript (TSX) | import React from "react";
export function demoBug(): any {
return (
<div
onAttach={(node) => {
if (node) {
add(2, 3);
}
function add(a: number, b: number): void {}
}}
></div>
);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-3241/2/input.tsx | TypeScript (TSX) | <Blah blah={function (): void {}} />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-3337/input.ts | TypeScript | import * as joiful from 'joiful';
class Schema {
@joiful.string().guid().required()
public id: string;
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-3341/input.ts | TypeScript | const test = {
อ: 9,
ฮ: 9,
ะ: 9,
า: 9,
ำ: 9,
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-3694/input.ts | TypeScript | interface IConnectedAppProps
extends ReturnType<typeof mapStateToProps>,
ReturnType<typeof mapDispatchToProps> {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-3862/index.ts | TypeScript | var ゛; // U+309B
var \u309B;
var \u309C;
var a\u309B;
var a\u309C; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-4132/index.ts | TypeScript | class A {
static abstract<T>() {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-4178/1/index.ts | TypeScript | export const x = (a: number) => {
const y = a && b ? (z: number): string => "hello" : null
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-4178/2/index.ts | TypeScript | export const x = (a: number) => () => {
const y = a && b ? (z: number): string => "hello" : null
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-4178/3/index.ts | TypeScript | export function x() {
return () => {
const y = a && b ? (z: number): string => "hello" : null;
};
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-4296/1/input.tsx | TypeScript (TSX) | import React from "react";
interface ListProps {
callback: () => void;
}
const SomeList = ({ callback }: ListProps) => {
callback();
return <div />;
};
const list = [0];
const MyComponent = (): JSX.Element => {
return (
<div>
{list.map(() =>
true ? (
<SomeList
callback={(): void => console.log("do something")}
/>
) : (
<div />
)
)}
</div>
);
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-4911/1/input.ts | TypeScript | const r=n=>{return true?(true):t=>{}}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-4911/2/input.ts | TypeScript | export default function cumsum(values, valueof) {
var sum = 0, index = 0;
return Float64Array.from(
values,
valueof === undefined
? v => (sum += +v || 0)
: v => (sum += +valueof(v, index++, values) || 0)
);
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-4911/3/input.ts | TypeScript | var h = D((q, C) => {
"use strict";
var g = {
extname: function (e) {
for (var r = -1, i = 0, l = -1, s = !0, n = 0, t = e.length - 1; t >= 0; --t) {
l === -1 && (s = !1, l = t + 1), a === 46 ? r === -1 ? r = t : n !== 1 && (n = 1) : r !== -1 && (n = -1)
}
return r === -1 || l === -1 || n === 0 || n === 1 && r === l - 1 && r === i + 1 ? "" : e.slice(r, l)
},
format: function (e) {
if (e === null || typeof e != "object") throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof e);
return _("/", e)
},
};
}); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/issue-4937/index.ts | TypeScript | type Test = -1n | 1n;
class Test {
sign(): -1n | 1n {
}
} | 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.