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/exportsAndImports1-es6.ts
TypeScript
// @target: es6 // @module: commonjs // @filename: t1.ts var v = 1; function f() { } class C { } interface I { } enum E { A, B, C } const enum D { A, B, C } module M { export var x; } module N { export interface I { } } type T = number; import a = M.x; export { v, f, C, I, E, D, M, N, T, a }; // ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/exportsAndImports1.ts
TypeScript
// @module: commonjs // @filename: t1.ts var v = 1; function f() { } class C { } interface I { } enum E { A, B, C } const enum D { A, B, C } module M { export var x; } module N { export interface I { } } type T = number; import a = M.x; export { v, f, C, I, E, D, M, N, T, a }; // @filename: t2.ts...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/exportsAndImports2-amd.ts
TypeScript
// @module: amd // @target: ES5 // @filename: t1.ts export var x = "x"; export var y = "y"; // @filename: t2.ts export { x as y, y as x } from "./t1"; // @filename: t3.ts import { x, y } from "./t1"; export { x as y, y as x };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/exportsAndImports2-es6.ts
TypeScript
// @target: es6 // @module: commonjs // @filename: t1.ts export var x = "x"; export var y = "y"; // @filename: t2.ts export { x as y, y as x } from "./t1"; // @filename: t3.ts import { x, y } from "./t1"; export { x as y, y as x };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/exportsAndImports2.ts
TypeScript
// @module: commonjs // @filename: t1.ts export var x = "x"; export var y = "y"; // @filename: t2.ts export { x as y, y as x } from "./t1"; // @filename: t3.ts import { x, y } from "./t1"; export { x as y, y as x };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/exportsAndImports3-amd.ts
TypeScript
// @module: amd // @target: ES5 // @filename: t1.ts export var v = 1; export function f() { } export class C { } export interface I { } export enum E { A, B, C } export const enum D { A, B, C } export module M { export var x; } export module N { export interface I { } } export type T = number; expo...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/exportsAndImports3-es6.ts
TypeScript
// @target: es6 // @module: commonjs // @filename: t1.ts export var v = 1; export function f() { } export class C { } export interface I { } export enum E { A, B, C } export const enum D { A, B, C } export module M { export var x; } export module N { export interface I { } } export type T = number;...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/exportsAndImports3.ts
TypeScript
// @module: commonjs // @filename: t1.ts export var v = 1; export function f() { } export class C { } export interface I { } export enum E { A, B, C } export const enum D { A, B, C } export module M { export var x; } export module N { export interface I { } } export type T = number; export import a...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/exportsAndImports4-amd.ts
TypeScript
// @module: amd // @target: ES5 // @filename: t1.ts export default "hello"; // @filename: t2.ts import a = require("./t1"); a.default; import b from "./t1"; b; import * as c from "./t1"; c.default; import { default as d } from "./t1"; d; import e1, * as e2 from "./t1"; e1; e2.default; import f1, { default as f2 } fro...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/exportsAndImports4-es6.ts
TypeScript
// @target: es6 // @module: commonjs // @filename: t1.ts export default "hello"; // @filename: t2.ts import a = require("./t1"); a.default; import b from "./t1"; b; import * as c from "./t1"; c.default; import { default as d } from "./t1"; d; import e1, * as e2 from "./t1"; e1; e2.default; import f1, { default as f2 ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/exportsAndImports4.ts
TypeScript
// @module: commonjs // @target: ES5 // @filename: t1.ts export default "hello"; // @filename: t2.ts import a = require("./t1"); a.default; import b from "./t1"; b; import * as c from "./t1"; c.default; import { default as d } from "./t1"; d; import e1, * as e2 from "./t1"; e1; e2.default; import f1, { default as f2 ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithContextualKeywordNames02.ts
TypeScript
// @module: commonjs // @target: es5 // @filename: t1.ts let as = 100; export { as as return, as }; // @filename: t2.ts import * as as from "./t1"; var x = as.as; var y = as.return; // @filename: t3.ts import { as as as } from "./t1"; // @filename: t4.ts import { as } from "./t1";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores2.ts
TypeScript
//@module: commonjs //@target: ES5 // @filename: m1.ts var R: any export default R = { "__esmodule": true, "__proto__": {} } // @filename: m2.ts import R from "./m1"; const { __esmodule, __proto__ } = R;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores3.ts
TypeScript
//@module: commonjs //@target: ES5 // @filename: m1.ts var R: any export default R = { "___": 30, "___hello": 21, "_hi": 40, } // @filename: m2.ts import R from "./m1"; const { ___, ___hello, _hi } = R;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores4.ts
TypeScript
//@module: commonjs //@target: ES5 // @filename: m1.ts declare var console: any; export function _() { console.log("_"); } export function __() { console.log("__"); } export function ___() { console.log("___"); } export function _hi() { console.log("_hi"); } export function __proto() { console.log(...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/extendBooleanInterface.ts
TypeScript
interface Boolean { doStuff(): string; doOtherStuff<T>(x: T): T; } var x = true; var a: string = x.doStuff(); var b: string = x.doOtherStuff('hm'); var c: string = x['doStuff'](); var d: string = x['doOtherStuff']('hm');
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/extendClassExpressionFromModule.ts
TypeScript
// @module: commonjs // @Filename: foo1.ts class x{} export = x; // @Filename: foo2.ts import foo1 = require('./foo1'); var x = foo1; class y extends x {}
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/extendNumberInterface.ts
TypeScript
interface Number { doStuff(): string; doOtherStuff<T>(x:T): T; } var x = 1; var a: string = x.doStuff(); var b: string = x.doOtherStuff('hm'); var c: string = x['doStuff'](); var d: string = x['doOtherStuff']('hm');
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/extendStringInterface.ts
TypeScript
interface String { doStuff(): string; doOtherStuff<T>(x:T): T; } var x = ''; var a: string = x.doStuff(); var b: string = x.doOtherStuff('hm'); var c: string = x['doStuff'](); var d: string = x['doOtherStuff']('hm');
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/extendsTag1.ts
TypeScript
// @noEmit: true // @allowJs: true // @checkJs: true // @lib: esnext // @Filename: bug25101.js /** * @template T * @extends {Set<T>} Should prefer this Set<T>, not the Set in the heritage clause */ class My extends Set {}
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/extendsTag2.ts
TypeScript
// @allowJs: true // @checkJs: true // @target: esnext // @outDir: out // @Filename: foo.js /** * @constructor */ class A { constructor() {} } /** * @extends {A} */ /** * @constructor */ class B extends A { constructor() { super(); } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/extendsTag3.ts
TypeScript
// @allowJs: true // @checkJs: true // @target: esnext // @outDir: out // @Filename: foo.js /** * @constructor */ class A { constructor() {} } /** * @extends {A} * @constructor */ class B extends A { constructor() { super(); } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/extendsTag4.ts
TypeScript
// @allowJs: true // @checkJs: true // @target: esnext // @outDir: out // @Filename: foo.js /** * @constructor */ class A { constructor() {} } /** * @extends {A} */
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/extendsTag5.ts
TypeScript
// @checkJs: true // @allowJs: true // @noEmit: true // @filename: /a.js /** * @typedef {{ * a: number | string; * b: boolean | string[]; * }} Foo */ /** * @template {Foo} T */ class A { /** * @param {T} a */ constructor(a) { return a } } /** * @extends {A<{ * a: string, * b:...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/extendsTagEmit.ts
TypeScript
// @allowJs: true // @checkJs: true // @target: esnext // @outDir: out // @Filename: super.js export class B { } // @Filename: main.js import { B } from './super' /** @extends {Mismatch} */ class C extends B { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/extensionLoadingPriority.ts
TypeScript
// @moduleResolution: classic,node,node16,nodenext,bundler // @allowJs: true // @checkJs: true // @noEmit: true // @Filename: /project/a.js export default "a.js"; // @Filename: /project/a.js.js export default "a.js.js"; // @Filename: /project/dir/index.ts export default "dir/index.ts"; // @Filename: /project/dir.js...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/filterNamespace_import.ts
TypeScript
// @Filename: /ns.ts namespace ns { export type Type = string; export class Class {} export const Value = ""; export namespace nested { export class NestedClass { a!: string; } } } export default ns; // @Filename: /a.ts import type ns from './ns'; ns.Class; // Error ns.Value; // Error let c: n...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/fixSignatureCaching.ts
TypeScript
// Repro from #10697 (function (define, undefined) { define(function () { 'use strict'; var impl = {}; impl.mobileDetectRules = { "phones": { "iPhone": "\\biPhone\\b|\\biPod\\b", "BlackBerry": "BlackBerry|\\bBB10\\b|rim[0-9]+", "HTC": "HTC|HTC.*(Sensation|Evo|Vision|Explorer|6...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/fluentClasses.ts
TypeScript
class A { foo() { return this; } } class B extends A { bar() { return this; } } class C extends B { baz() { return this; } } var c: C; var z = c.foo().bar().baz(); // Fluent pattern
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/fluentInterfaces.ts
TypeScript
interface A { foo(): this; } interface B extends A { bar(): this; } interface C extends B { baz(): this; } var c: C; var z = c.foo().bar().baz(); // Fluent pattern
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-inStatements.ts
TypeScript
var aString: string; for (aString in {}) { } var anAny: any; for (anAny in {}) { } for (var x in {}) { } for (var x in []) { } for (var x in [1, 2, 3, 4, 5]) { } function fn(): any { } for (var x in fn()) { } for (var x in /[a-z]/) { } for (var x in new Date()) { } var c: any, d: any, e: any; for (var x in c || d...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-inStatementsArray.ts
TypeScript
let a: Date[]; let b: boolean[]; for (let x in a) { let a1 = a[x]; let a2 = a[(x)]; let a3 = a[+x]; let b1 = b[x]; let b2 = b[(x)]; let b3 = b[+x]; } for (let x in a) { for (let y in a) { for (let z in a) { let a1 = a[x]; let a2 = a[y]; let a3 = ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-inStatementsArrayErrors.ts
TypeScript
// @noImplicitAny: true let a: Date[]; for (let x in a) { let a1 = a[x + 1]; let a2 = a[x - 1]; if (x === 1) { } let a3 = x.unknownProperty; } var i: number; for (var i in a ) { } var j: any; for (var j in a ) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-inStatementsAsyncIdentifier.ts
TypeScript
// @target: esnext var async; for (async in { a: 1, b: 2 }) {}
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-inStatementsDestructuring.ts
TypeScript
for (var [a, b] in []) {}
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-inStatementsDestructuring2.ts
TypeScript
for (var {a, b} in []) {}
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-inStatementsDestructuring3.ts
TypeScript
var a, b; for ([a, b] in []) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-inStatementsDestructuring4.ts
TypeScript
var a, b; for ({a, b} in []) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-inStatementsInvalid.ts
TypeScript
var aNumber: number; for (aNumber in {}) { } var aBoolean: boolean; for (aBoolean in {}) { } var aRegExp: RegExp; for (aRegExp in {}) { } for (var idx : number in {}) { } function fn(): void { } for (var x in fn()) { } var c : string, d:string, e; for (var x in c || d) { } for (var x in e ? c : d) { } for (var x ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of1.ts
TypeScript
//@target: ES6 var v; for (v of []) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of10.ts
TypeScript
//@target: ES6 var v: string; for (v of [0]) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of11.ts
TypeScript
//@target: ES6 var v: string; for (v of [0, ""]) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of12.ts
TypeScript
//@target: ES6 var v: string; for (v of [0, ""].values()) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of13.ts
TypeScript
//@target: ES6 var v: string; for (v of [""].values()) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of14.ts
TypeScript
//@target: ES6 class StringIterator { next() { return ""; } } var v: string; for (v of new StringIterator) { } // Should fail because the iterator is not iterable
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of15.ts
TypeScript
//@target: ES6 class StringIterator { next() { return ""; } [Symbol.iterator]() { return this; } } var v: string; for (v of new StringIterator) { } // Should fail
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of16.ts
TypeScript
//@target: ES6 class StringIterator { [Symbol.iterator]() { return this; } } var v: string; for (v of new StringIterator) { } // Should fail for (v of new StringIterator) { } // Should still fail (related errors should still be shown even though type is cached).
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of17.ts
TypeScript
//@target: ES6 class NumberIterator { next() { return { value: 0, done: false }; } [Symbol.iterator]() { return this; } } var v: string; for (v of new NumberIterator) { } // Should succeed
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of18.ts
TypeScript
//@target: ES6 class StringIterator { next() { return { value: "", done: false }; } [Symbol.iterator]() { return this; } } var v: string; for (v of new StringIterator) { } // Should succeed
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of19.ts
TypeScript
//@target: ES6 class Foo { } class FooIterator { next() { return { value: new Foo, done: false }; } [Symbol.iterator]() { return this; } } for (var v of new FooIterator) { v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of20.ts
TypeScript
//@target: ES6 class Foo { } class FooIterator { next() { return { value: new Foo, done: false }; } [Symbol.iterator]() { return this; } } for (let v of new FooIterator) { v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of21.ts
TypeScript
//@target: ES6 class Foo { } class FooIterator { next() { return { value: new Foo, done: false }; } [Symbol.iterator]() { return this; } } for (const v of new FooIterator) { v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of22.ts
TypeScript
//@target: ES6 class Foo { } class FooIterator { next() { return { value: new Foo, done: false }; } [Symbol.iterator]() { return this; } } v; for (var v of new FooIterator) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of23.ts
TypeScript
//@target: ES6 class Foo { } class FooIterator { next() { return { value: new Foo, done: false }; } [Symbol.iterator]() { return this; } } for (const v of new FooIterator) { const v = 0; // new scope }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of24.ts
TypeScript
//@target: ES6 var x: any; for (var v of x) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of25.ts
TypeScript
//@target: ES6 class StringIterator { [Symbol.iterator]() { return x; } } var x: any; for (var v of new StringIterator) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of26.ts
TypeScript
//@target: ES6 class StringIterator { next() { return x; } [Symbol.iterator]() { return this; } } var x: any; for (var v of new StringIterator) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of27.ts
TypeScript
//@target: ES6 class StringIterator { [Symbol.iterator]: any; } for (var v of new StringIterator) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of28.ts
TypeScript
//@target: ES6 class StringIterator { next: any; [Symbol.iterator]() { return this; } } for (var v of new StringIterator) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of29.ts
TypeScript
//@target: ES6 var iterableWithOptionalIterator: { [Symbol.iterator]?(): Iterator<string> }; for (var v of iterableWithOptionalIterator) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of3.ts
TypeScript
//@target: ES6 var v: any; for (v++ of []) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of30.ts
TypeScript
//@target: ES6 class StringIterator { next() { return { done: false, value: "" } } return = 0; [Symbol.iterator]() { return this; } } for (var v of new StringIterator) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of31.ts
TypeScript
//@target: ES6 class StringIterator { next() { return { // no done property value: "" } } [Symbol.iterator]() { return this; } } for (var v of new StringIterator) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of32.ts
TypeScript
//@target: ES6 //@noImplicitAny: true for (var v of v) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of33.ts
TypeScript
//@target: ES6 //@noImplicitAny: true class StringIterator { [Symbol.iterator]() { return v; } } for (var v of new StringIterator) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of34.ts
TypeScript
//@target: ES6 //@noImplicitAny: true class StringIterator { next() { return v; } [Symbol.iterator]() { return this; } } for (var v of new StringIterator) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of35.ts
TypeScript
//@target: ES6 //@noImplicitAny: true class StringIterator { next() { return { done: true, value: v } } [Symbol.iterator]() { return this; } } for (var v of new StringIterator) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of36.ts
TypeScript
//@target: ES6 var tuple: [string, boolean] = ["", true]; for (var v of tuple) { v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of37.ts
TypeScript
//@target: ES6 var map = new Map([["", true]]); for (var v of map) { v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of38.ts
TypeScript
//@target: ES6 var map = new Map([["", true]]); for (var [k, v] of map) { k; v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of39.ts
TypeScript
// @lib: es2015 // @target: ES6 var map = new Map([["", true], ["", 0]]); for (var [k, v] of map) { k; v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of4.ts
TypeScript
//@target: ES6 for (var v of [0]) { v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of40.ts
TypeScript
//@target: ES6 var map = new Map([["", true]]); for (var [k = "", v = false] of map) { k; v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of41.ts
TypeScript
//@target: ES6 var array = [{x: [0], y: {p: ""}}] for (var {x: [a], y: {p}} of array) { a; p; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of42.ts
TypeScript
//@target: ES6 var array = [{ x: "", y: 0 }] for (var {x: a, y: b} of array) { a; b; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of43.ts
TypeScript
//@target: ES6 var array = [{ x: "", y: 0 }] for (var {x: a = "", y: b = true} of array) { a; b; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of44.ts
TypeScript
//@target: ES6 var array: [number, string | boolean | symbol][] = [[0, ""], [0, true], [1, Symbol()]] for (var [num, strBoolSym] of array) { num; strBoolSym; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of45.ts
TypeScript
//@target: ES6 var k: string, v: boolean; var map = new Map([["", true]]); for ([k = "", v = false] of map) { k; v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of46.ts
TypeScript
//@target: ES6 var k: string, v: boolean; var map = new Map([["", true]]); for ([k = false, v = ""] of map) { k; v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of47.ts
TypeScript
//@target: ES6 var x: string, y: number; var array = [{ x: "", y: true }] enum E { x } for ({x, y: y = E.x} of array) { x; y; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of48.ts
TypeScript
//@target: ES6 var x: string, y: number; var array = [{ x: "", y: true }] enum E { x } for ({x, y = E.x} of array) { x; y; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of49.ts
TypeScript
//@target: ES6 var k: string, v: boolean; var map = new Map([["", true]]); for ([k, ...[v]] of map) { k; v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of5.ts
TypeScript
//@target: ES6 for (let v of [0]) { v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of50.ts
TypeScript
//@target: ES6 var map = new Map([["", true]]); for (const [k, v] of map) { k; v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of51.ts
TypeScript
//@target: ES6 for (let let of []) {}
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of52.ts
TypeScript
//@target: ES6 for (let [v, v] of [[]]) {}
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of53.ts
TypeScript
//@target: ES6 for (let v of []) { var v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of54.ts
TypeScript
//@target: ES6 for (let v of []) { var v = 0; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of55.ts
TypeScript
//@target: ES6 let v = [1]; for (let v of v) { v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of56.ts
TypeScript
//@target: ES6 for (var let of []) {}
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of57.ts
TypeScript
//@target: ES6 var iter: Iterable<number>; for (let num of iter) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of58.ts
TypeScript
// @target: es6 type X = { x: 'x' }; type Y = { y: 'y' }; declare const arr: X[] & Y[]; for (const item of arr) { item.x; item.y; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of6.ts
TypeScript
//@target: ES6 for (v of [0]) { let v; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of7.ts
TypeScript
//@target: ES6 v; for (let v of [0]) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of8.ts
TypeScript
//@target: ES6 v; for (var v of [0]) { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/for-of9.ts
TypeScript
//@target: ES6 var v: string; for (v of ["hello"]) { } for (v of "hello") { }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/forAwaitPerIterationBindingDownlevel.ts
TypeScript
// @target: es5 // @lib: esnext, dom // @downlevelIteration: true // @noTypesAndSymbols: true const sleep = (tm: number) => new Promise(resolve => setTimeout(resolve, tm)); async function* gen() { yield 1; await sleep(1000); yield 2; } const log = console.log; (async () => { for await (const outer o...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/forBreakStatements.ts
TypeScript
// @allowUnusedLabels: true // @allowUnreachableCode: true for (; ;) { break; } ONE: for (; ;) { break ONE; } TWO: THREE: for (; ;) { break THREE; } FOUR: for (; ;) { FIVE: for (; ;) { break FOUR; } } for (; ;) { SIX: for (; ;) break SIX; } SEVEN: for (; ;) for (; ;) for (;...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/forContinueStatements.ts
TypeScript
// @allowUnreachableCode: true for (; ;) { continue; } ONE: for (; ;) { continue ONE; } TWO: THREE: for (; ;) { continue THREE; } FOUR: for (; ;) { FIVE: for (; ;) { continue FOUR; } } for (; ;) { SIX: for (; ;) continue SIX; } SEVEN: for (; ;) for (; ;) for (; ;) continue ...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_parser/tests/tsc/forInBreakStatements.ts
TypeScript
// @allowUnusedLabels: true for(var x in {}) { break; } ONE: for(var x in {}) { break ONE; } TWO: THREE: for(var x in {}) { break THREE; } FOUR: for(var x in {}) { FIVE: for(var x in {}) { break FOUR; } } for(var x in {}) { SIX: for(var x in {}) break SIX; } SEVEN: for (var...
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University