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/tsc/whileContinueStatements.ts | TypeScript | 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 SIX;
}
SEVEN:
while (true)
while (true)
while (true)
continue SEVEN;
EIGHT:
while (true) {
var fn = function () { }
continue EIGHT;
}
NINE:
while (true) {
if (true) { continue NINE; }
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/tsc/wideningTuples1.ts | TypeScript | //@noImplicitAny: true
declare function foo<T extends [any]>(x: T): T;
var y = foo([undefined]);
y = [""]; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/tsc/wideningTuples2.ts | TypeScript | //@noImplicitAny: true
var foo: () => [any] = function bar() {
let intermediate = bar();
intermediate = [""];
return [undefined];
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/tsc/wideningTuples3.ts | TypeScript | //@noImplicitAny: true
var a: [any];
var b = a = [undefined, null]; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/tsc/wideningTuples4.ts | TypeScript | var a: [any];
var b = a = [undefined, null];
b = ["", ""]; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/tsc/wideningTuples5.ts | TypeScript | //@noImplicitAny: true
var [a, b] = [undefined, null]; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/tsc/wideningTuples6.ts | TypeScript | var [a, b] = [undefined, null];
a = "";
b = ""; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/tsc/wideningTuples7.ts | TypeScript | //@noImplicitAny: true
var foo = function bar() {
let intermediate: [string];
return intermediate = [undefined];
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/tsc/withStatements.ts | TypeScript | var x = 12;
with (x) {
name = 'twelve'
id = 12
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/tsc/witness.ts | TypeScript |
// Initializers
var varInit = varInit; // any
var pInit: any;
function fn(pInit = pInit) {
var pInit: any;
}
class InitClass {
x = this.x;
fn() {
var y = this.x;
var y: any;
}
}
// Return type
function fnReturn1() {
return fnReturn1();
}
var a: any;
var a = fnReturn1();
function fnReturn2() {
return fnReturn2;
}
var fnr2: () => any = fnReturn2();
// Comma
var co1 = (co1, 3);
var co1: number;
var co2 = (3, 4, co2);
var co2: any;
var co3 = (co1, co2, co3, co1);
var co3: number;
// Assignment
var as1 = (as1 = 2);
var as1: number;
var as2 = (as2 = as2 = 2);
var as2: number;
// Conditional
var cnd1 = cnd1 ? 0 : 1;
var cnd1: number;
var cnd2 = cnd1 ? cnd1 ? '' : "" : '';
var cnd2: string;
// ||
var or1 = or1 || '';
var or1: any;
var or2 = '' || or2;
var or2: any;
var or3 = or3 || or3;
var or3: any;
// &&
var and1 = and1 && '';
var and1: string;
var and2 = '' && and2;
var and2: any;
var and3 = and3 && and3;
var and3: any;
// function call return type
function fnCall() {
return fnCall();
}
var fnCallResult = fnCall();
var fnCallResult: any;
// Call argument
function fnArg1(x: typeof fnArg1, y: number) {
var x: (n: typeof fnArg1, m: number) => void;
fnArg1(fnArg1, 0);
}
function overload1(x: (n: string) => string): string;
function overload1(x: (n: number) => number): number;
function overload1(x: (n: any) => any): any;
function overload1() { return undefined; };
function fnArg2() {
return overload1(fnArg2);
}
var t = fnArg2(); // t: should be 'any', but is 'string'
// New operator
class C {
fn1() {
return new (this.fn1())();
}
fn2() {
return new (this.fn2());
}
fn3() {
var a: new(x) => number;
return new a(this.fn3);
}
}
function fn5() {
var a: new (x) => number;
return new a(fn5);
}
var fn5r = fn5(); // fn5r: should be 'any', but is 'number'
// Property access
var propAcc1 = {
m: propAcc1.m
};
var propAcc1: { m: any; }
// Property access of module member
module M2 {
export var x = M2.x;
var y = x;
var y: any;
}
// Property access of class instance type
class C2 {
n = this.n; // n: any
}
var c2inst = new C2().n;
var c2inst: any;
// Constructor function property access
class C3 {
static q = C3.q;
}
var qq = C3.q;
var qq: any;
// Parentheses - tested a bunch above
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints.ts | TypeScript | // no errors expected
class C<T extends Date> {
constructor(public data: T) { }
foo<U extends T>(x: U) {
return x;
}
}
interface Foo extends Date {
foo: string;
}
var y: Foo = null;
var c = new C(y);
var r = c.foo(y); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints2.ts | TypeScript | class C<T extends C<T>> { // error
constructor(x: T) { }
}
var c = new C(1);
var c = new C(new C('')); // error | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints3.ts | TypeScript | // no errors expected
class C<T extends { length: number }> {
constructor(x: T) { }
foo<U extends T>(x: U) {
function bar<V extends U>(x: V) {
return x;
}
return bar;
}
}
var c = new C({ length: 2 });
var r = c.foo({ length: 3, charAt: (x: number) => { '' } });
var r2 = r(''); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints4.ts | TypeScript | class C<T extends { length: number }> {
constructor(x: T) { }
foo<U extends T>(x: U) {
function bar<V extends U>(x: V) {
return x;
}
return bar;
}
}
var c = new C({ length: 2 });
var r = c.foo('');
var r2 = r({ length: 3, charAt: (x: number) => { '' } }); // error | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/tsc/yieldExpressionInControlFlow.ts | TypeScript | // @noEmit: true
// @allowJs: true
// @checkJs: true
// @noImplicitAny: true
// @lib: esnext
// @Filename: bug25149.js
function* f() {
var o
while (true) {
o = yield o
}
}
// @Filename: alsoFails.ts
// fails in Typescript too
function* g() {
var o = []
while (true) {
o = yield* o
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/array-expression/input.ts | TypeScript | const arr = [a b]
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/array-pattern/input.ts | TypeScript | const [a b] = arr
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/arrow-function/async-rest-optional-parameter/input.ts | TypeScript | async(...args?: any[]) : any => {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/arrow-function/comma-after-rest/input.ts | TypeScript | (...a: any,) => {};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/arrow-function/missing-closing-brace/input.ts | TypeScript | const t = () => {
console.log(5); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/arrow-function/non-last-rest-param/input.ts | TypeScript | (...a: any, b:any,) => {};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/await-with-exponentiation/input.ts | TypeScript | async () => await a ** b;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/abstract/input.ts | TypeScript | class A {
abstract a = 123;
abstract foo() {};
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/constructor-getter/input.ts | TypeScript | class Foo {
get constructor() {
return;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/constructor-setter/input.ts | TypeScript | class Foo {
set constructor(value) {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/declare-class-method/input.ts | TypeScript | class T {
declare m1(): string;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/declare-private-name/input.ts | TypeScript | class T {
declare #name;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/duplicated-modifiers/input.ts | TypeScript | class C extends B {
readonly readonly size = 0;
abstract abstract t() {}
override override e() {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/get-set-asi-issue-1/input.ts | TypeScript | class C {
get
async x() { return 0 }
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/get-set-asi-issue-2/input.ts | TypeScript | class C {
get
static x() { return 0 }
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/implements-before-extends/input.ts | TypeScript | class C implements A extends B {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/input.ts | TypeScript | class C {
x?!: number;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/method-readonly/input.ts | TypeScript | class C {
readonly m() {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/missing-closing-brace/input.ts | TypeScript | class Class {
prop: string; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/override-in-non-subclass/input.ts | TypeScript | class A {
override t() {}
}
class B extends C {
m() {
class D {
override k() {}
}
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/override-on-constructor/input.ts | TypeScript | class C extends B {
override constructor() {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/override-parameter-property/input.ts | TypeScript | class C extends B {
constructor(override public v: string)
constructor(readonly override v: boolean)
constructor(arg: any) {
super()
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/override-with-abstract/input.ts | TypeScript | abstract class MyClass extends BaseClass {
override abstract show(): void
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/override-with-async/input.ts | TypeScript | class C extends B {
async override fetch() {}
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/override-with-declare/input.ts | TypeScript | declare class C {
declare override m1(): any
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/override-with-readonly/input.ts | TypeScript | class C {
readonly override size = 5
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/override-with-static/input.ts | TypeScript | class C extends B {
override static t() {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/parameter-properties-binding-patterns/input.ts | TypeScript | class C {
constructor(public []) {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/parameter-properties/input.ts | TypeScript | class C {
constructor(
readonly r,
public pu: number,
protected po?,
private pi?: number,
public readonly pur,
// Also works on AssignmentPattern
readonly x = 0,
public y?: number = 0) {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/private-constructor/method/input.ts | TypeScript | class C {
#constructor() {}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/class/private-constructor/property/input.ts | TypeScript | class C {
#constructor;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/custom/const-enum-2/input.ts | TypeScript | const enum D {
a = 10,
b = a - (100 * Math.floor(Math.random() % 8))
c
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/custom/const-enum/input.ts | TypeScript | const CONST = 9000 % 2;
const enum D {
d = 10
g = CONST
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/custom/issue-380/input.ts | TypeScript | class Foo {
componentDidMount() {
import(../foo/bar)
.then(bar => {
// bar should be {default: DEFAULT_EXPORTED_THING_IN_BAR} or atleast what it is supposed to be
})
}
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/custom/top-level-await-jsc-target/input.ts | TypeScript | await foo | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/deno-10112/case1/input.ts | TypeScript | function a() {
try { }
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/deno-10112/case2/input.ts | TypeScript | try { } | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/deno-9650/case1/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_parser/tests/typescript-errors/disallow-ambiguous-jsx-like/mts-case1/input.mts | TypeScript | <T>x;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/disallow-ambiguous-jsx-like/mts-case2/input.mts | TypeScript | <T>(x) => 1;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/esDecorators/classDeclaration/esDecorators-classDeclaration-exportModifier/file3.ts | TypeScript | // @filename: file3.js
// error
export @dec default class C3 {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/esDecorators/classDeclaration/esDecorators-classDeclaration-exportModifier/file6.ts | TypeScript | // @filename: file6.js
// error
@dec export @dec class C6 {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/esDecorators/classDeclaration/esDecorators-classDeclaration-exportModifier/file7.ts | TypeScript | // @filename: file7.js
// error
@dec export default @dec class C7 {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/instantiation-expr/case1/input.ts | TypeScript | const a8 = f<number><number>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/instantiation-expr/case2/input.ts | TypeScript | const b1 = f?.<number>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/instantiation-expr/case3/input.ts | TypeScript | f<x> < g<y>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/interface/invalid-heritage-clause/index.ts | TypeScript | interface Derived extends Base?.x {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-1170-1/input.ts | TypeScript | const toString: (local)(this: Function) => string) = undefined;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-1209/input.ts | TypeScript | function foo(foo = bar: number) {
/* */
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-1211-1/input.ts | TypeScript | interface Foo {
#bar()
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-1272/input.ts | TypeScript | \u{16} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-1391/case1/input.ts | TypeScript | const Methods {
f: (x, y) => x + y,
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-1391/case2/input.ts | TypeScript | let a = 0,
let b = 1; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-2173/case1/input.tsx | TypeScript (TSX) | const setAction = (fields) =>
setCurrentAction({
...(<HeaderAction>getCurrentAction()),
...fields,
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-2198/ts/input.ts | TypeScript | function imp<T extends string>(x: T): typeof import(T) {
return x;
}
console.log("123"); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-2198/tsx/input.tsx | TypeScript (TSX) | function imp<T extends string>(x: T): typeof import(T) {
return x;
}
console.log("123"); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-2343/1/input.ts | TypeScript | declare declare | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-3262/input.ts | TypeScript | class foo {
@labels("bar")
function zed() { }
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-3676/input.ts | TypeScript | const [...rest,] = a | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-3712/input.ts | TypeScript | /** @jsx h */
/** @jsxFrag Fragment */
import { h, jsx, Fragment} from 'https://deno.land/x/sift@0.4.3/mod.ts';
export const pageLayout = ()=>jsx(
<>
< !doctype html >
<html lang='en-US' charSet='UTF-8'>
<Head/>
<Body/>
</html>,
</>
); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-3885/input.ts | TypeScript | 1++;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-7104/case1/input.ts | TypeScript | const foo = <T extends {}>() => {
if (bar() {
console.log(1);
}
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-7104/case2/input.ts | TypeScript | const foo = () => {
if (bar() {
console.log(1);
}
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/issue-8588/input.ts | TypeScript | const package = 1; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/let/index.ts | TypeScript | export {};
let let;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/meta-property/new-target/in-arrow-function/input.ts | TypeScript | const f = () => {
new.target;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/meta-property/new-target/out-of-function-or-class/input.ts | TypeScript | new.target;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/missing-fn-expr-body/anonymous/input.ts | TypeScript | let f = function ()
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/missing-fn-expr-body/async/input.ts | TypeScript | let f = async function ()
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/missing-fn-expr-body/named/input.ts | TypeScript | let f = function f();
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/missing-fn-expr-body/typed/input.ts | TypeScript | // return type is `{}`
let f = function (): {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/multiple-specifiers/export/input.ts | TypeScript | export { a b c }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/multiple-specifiers/import/input.ts | TypeScript | import { a b c } from 'mod'
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/nullish-coalescing-operator/no-paren-and-nullish/input.ts | TypeScript | c && d ?? e;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/nullish-coalescing-operator/no-paren-nullish-and/input.ts | TypeScript | a ?? b && c;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/nullish-coalescing-operator/no-paren-nullish-or/input.ts | TypeScript | e ?? f ?? g || h;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/nullish-coalescing-operator/no-paren-or-nullish/input.ts | TypeScript | h || i ?? j;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/optional-chaining/class-contructor-call/.direct/input.ts | TypeScript | new a?.(); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/optional-chaining/class-contructor-call/.indirect/input.ts | TypeScript | new C?.b.d()
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/optional-chaining/indirect-assign/input.ts | TypeScript | a.b.c?.d.e[f] = 0;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/parserSuperExpression2/input.ts | TypeScript | class C {
M() {
super<T>(0);
}
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/regex/duplicated-flags/input.ts | TypeScript | /shamiko/igmg;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/regex/unknown-flag/input.ts | TypeScript | /shamiko/z;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/reserved-words/keywords/input.ts | TypeScript | let a = if
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript-errors/reserved-words/reserved/input.ts | TypeScript | "use strict";
let a = interface;
| 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.