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_node_bundler/tests/pass/deno-001/full/input/async/deferred.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// TODO(ry) It'd be better to make Deferred a class that inherits from
// Promise, rather than an interface. This is possible in ES2016, however
// typescript produces broken code when targeting ES5 code.
// See https://github.com/Microsoft/Type... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/full/input/async/delay.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/* Resolves after the given number of milliseconds. */
export function delay(ms: number): Promise<void> {
return new Promise((res): number =>
setTimeout((): void => {
res();
}, ms)
);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/full/input/async/mod.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
export * from "./deferred";
export * from "./delay";
export * from "./mux_async_iterator";
export * from "./pool";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/full/input/async/mux_async_iterator.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { Deferred, deferred } from "./deferred.ts";
interface TaggedYieldedValue<T> {
iterator: AsyncIterableIterator<T>;
value: T;
}
/** The MuxAsyncIterator class multiplexes multiple async iterators into a
* single stream. It curre... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/full/input/async/pool.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/**
* pooledMap transforms values from an (async) iterable into another async
* iterable. The transforms are done concurrently, with a max concurrency
* defined by the poolLimit.
*
* @param poolLimit The maximum count of items being proces... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/full/input/bytes/mod.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/** Find first index of binary pattern from a. If not found, then return -1
* @param source source array
* @param pat pattern to find in source array
*/
export function findIndex(source: Uint8Array, pat: Uint8Array): number {
const s = p... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/full/input/encoding/utf8.ts | TypeScript | /** A default TextEncoder instance */
export const encoder = new TextEncoder();
/** Shorthand for new TextEncoder().encode() */
export function encode(input?: string): Uint8Array {
return encoder.encode(input);
}
/** A default TextDecoder instance */
export const decoder = new TextDecoder();
/** Shorthand for ne... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/full/input/entry.js | JavaScript | import { listenAndServe } from "./http/server";
listenAndServe({ port: 8080 }, async (req) => {});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/full/input/http/_io.ts | TypeScript | import { BufReader, BufWriter } from "../io/bufio";
import { TextProtoReader } from "../textproto/mod";
import { assert } from "../_util/assert";
import { encoder } from "../encoding/utf8";
import { ServerRequest, Response } from "./server";
import { STATUS_TEXT } from "./http_status";
export function emptyReader(): D... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/full/input/http/http_status.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/** HTTP status codes */
export enum Status {}
export const STATUS_TEXT = new Map<Status, string>([]);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/full/input/http/server.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { encode } from "../encoding/utf8";
import { BufReader, BufWriter } from "../io/bufio";
import { assert } from "../_util/assert";
import { deferred, Deferred, MuxAsyncIterator } from "../async/mod";
import {
bodyReader,
chunkedBod... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/full/input/io/bufio.ts | TypeScript | // Based on https://github.com/golang/go/blob/891682/src/bufio/bufio.go
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
type Reader = Deno.Reader;
type Writer = Deno.Writer;
type WriterSync = Deno.WriterSync;... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/full/input/textproto/mod.ts | TypeScript | // Based on https://github.com/golang/go/tree/master/src/net/textproto
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import type { BufReader } from "../io/bufio";
import { concat } from "../bytes/mod";
impo... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/full/output/entry.js | JavaScript | function concat(origin, b) {
const output = new Uint8Array(origin.length + b.length);
output.set(origin, 0);
output.set(b, origin.length);
return output;
}
function copyBytes(src, dst, off = 0) {
off = Math.max(0, Math.min(off, dst.byteLength));
const dstBytesAvailable = dst.byteLength - off;
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-1/input/async/deferred.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// TODO(ry) It'd be better to make Deferred a class that inherits from
// Promise, rather than an interface. This is possible in ES2016, however
// typescript produces broken code when targeting ES5 code.
// See https://github.com/Microsoft/Type... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-1/input/async/delay.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/* Resolves after the given number of milliseconds. */
export function delay(ms: number): Promise<void> {
return new Promise((res): number =>
setTimeout((): void => {
res();
}, ms)
);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-1/input/async/mod.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
export * from "./deferred";
export * from "./delay";
export * from "./mux_async_iterator";
export * from "./pool";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-1/input/async/mux_async_iterator.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { Deferred, deferred } from "./deferred.ts";
interface TaggedYieldedValue<T> {
iterator: AsyncIterableIterator<T>;
value: T;
}
/** The MuxAsyncIterator class multiplexes multiple async iterators into a
* single stream. It curre... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-1/input/async/pool.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/**
* pooledMap transforms values from an (async) iterable into another async
* iterable. The transforms are done concurrently, with a max concurrency
* defined by the poolLimit.
*
* @param poolLimit The maximum count of items being proces... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-1/input/entry.js | JavaScript | import { listenAndServe } from "./http/server";
listenAndServe({ port: 8080 }, async (req) => {});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-1/input/http/_io.ts | TypeScript | import { ServerRequest, Response } from "./server";
export function emptyReader(): Deno.Reader {
return {
read(_: Uint8Array): Promise<number | null> {
return Promise.resolve(null);
},
};
}
export function bodyReader(contentLength: number, r: BufReader): Deno.Reader {
let total... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-1/input/http/server.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { deferred, Deferred, MuxAsyncIterator } from "../async/mod";
import {
bodyReader,
chunkedBodyReader,
emptyReader,
writeResponse,
readRequest,
} from "./_io";
export class ServerRequest {
url!: string;
method!... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-1/input/textproto/mod.ts | TypeScript | // Based on https://github.com/golang/go/tree/master/src/net/textproto
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// FROM https://github.com/denoland/deno/blob/b34628a26ab0187a827aa4ebe256e23178e25d39/cl... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-1/output/entry.js | JavaScript | function deferred() {
let methods;
const promise = new Promise((resolve, reject)=>{
methods = {
resolve,
reject
};
});
return Object.assign(promise, methods);
}
class MuxAsyncIterator {
iteratorCount = 0;
yields = [];
throws = [];
signal = deferred... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-2/input/async/deferred.ts | TypeScript | export function deferred<T>(): Deferred<T> {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-2/input/async/mod.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
export * from "./deferred";
export * from "./mux_async_iterator";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-2/input/async/mux_async_iterator.ts | TypeScript | import { deferred } from "./deferred";
export class MuxAsyncIterator<T> implements AsyncIterable<T> {
private signal = deferred();
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-2/input/entry.js | JavaScript | import { listenAndServe } from "./http/server";
listenAndServe({ port: 8080 }, async (req) => {});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-2/input/http/_io.ts | TypeScript | import { ServerRequest } from "./server";
console.log(ServerRequest);
export function emptyReader(): Deno.Reader {}
export function bodyReader(contentLength: number, r: BufReader): Deno.Reader {}
export function chunkedBodyReader(h: Headers, r: BufReader): Deno.Reader {}
export async function readTrailers(
head... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-2/input/http/server.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { deferred, Deferred, MuxAsyncIterator } from "../async/mod";
import { writeResponse, readRequest } from "./_io";
console.log(deferred, writeResponse, readRequest, MuxAsyncIterator);
export class ServerRequest {
done: Deferred<Error... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-2/input/textproto/mod.ts | TypeScript | // Based on https://github.com/golang/go/tree/master/src/net/textproto
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// FROM https://github.com/denoland/deno/blob/b34628a26ab0187a827aa4ebe256e23178e25d39/cl... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-2/output/entry.js | JavaScript | function _define_property(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
function deferred() {... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-3/input/async/deferred.ts | TypeScript | export function deferred<T>(): Deferred<T> {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-3/input/async/mod.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
export * from "./deferred";
export * from "./mux_async_iterator";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-3/input/async/mux_async_iterator.ts | TypeScript | import { deferred } from "./deferred";
export class MuxAsyncIterator<T> implements AsyncIterable<T> {
private signal = deferred();
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-3/input/entry.js | JavaScript | import { deferred, MuxAsyncIterator } from "./async/mod";
console.log(deferred, MuxAsyncIterator);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-3/output/entry.js | JavaScript | function _define_property(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
function deferred() {... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-4/input/async/deferred.ts | TypeScript | export function deferred<T>(): Deferred<T> {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-4/input/async/mod.ts | TypeScript | export { deferred } from "./deferred";
export { MuxAsyncIterator } from "./mux_async_iterator";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-4/input/async/mux_async_iterator.ts | TypeScript | import { deferred } from "./deferred";
export class MuxAsyncIterator<T> implements AsyncIterable<T> {
private signal = deferred();
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-4/input/entry.js | JavaScript | import { deferred, MuxAsyncIterator } from "./async/mod";
console.log(deferred, MuxAsyncIterator);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-4/output/entry.js | JavaScript | function _define_property(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
function deferred() {... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-5/input/async/deferred.ts | TypeScript | export function deferred<T>(): Deferred<T> {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-5/input/async/mod.ts | TypeScript | export { deferred } from "./deferred";
export { MuxAsyncIterator } from "./mux_async_iterator";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-5/input/async/mux_async_iterator.ts | TypeScript | import { deferred } from "./deferred";
export function MuxAsyncIterator() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-5/input/entry.js | JavaScript | import { deferred, MuxAsyncIterator } from "./async/mod";
console.log(deferred, MuxAsyncIterator);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-001/simple-5/output/entry.js | JavaScript | function deferred() {}
function MuxAsyncIterator() {}
console.log(deferred, MuxAsyncIterator);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-002/.full/input/async/deferred.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// TODO(ry) It'd be better to make Deferred a class that inherits from
// Promise, rather than an interface. This is possible in ES2016, however
// typescript produces broken code when targeting ES5 code.
// See https://github.com/Microsoft/Type... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-002/.full/input/async/delay.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/* Resolves after the given number of milliseconds. */
export function delay(ms: number): Promise<void> {
return new Promise((res): number =>
setTimeout((): void => {
res();
}, ms)
);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-002/.full/input/async/mod.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
export * from "./deferred";
export * from "./delay";
export * from "./mux_async_iterator";
export * from "./pool";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-002/.full/input/async/mux_async_iterator.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { Deferred, deferred } from "./deferred.ts";
interface TaggedYieldedValue<T> {
iterator: AsyncIterableIterator<T>;
value: T;
}
/** The MuxAsyncIterator class multiplexes multiple async iterators into a
* single stream. It curre... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-002/.full/input/async/pool.ts | TypeScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/**
* pooledMap transforms values from an (async) iterable into another async
* iterable. The transforms are done concurrently, with a max concurrency
* defined by the poolLimit.
*
* @param poolLimit The maximum count of items being proces... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-002/.full/input/entry.js | JavaScript | export * from "./async/mod";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/deno-002/.full/output/entry.js | JavaScript | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/* Resolves after the given number of milliseconds. */ export function delay(ms) {
return new Promise((res)=>setTimeout(()=>{
res();
}, ms)
);
}
function deferred1() {
let methods;
const promise = new Promise(... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/drop-unused/export/default-mixed/input/a.js | JavaScript | export const foo = 1;
export const bar = 2;
export const baz = 3;
export default foo;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/drop-unused/export/default-mixed/input/entry.js | JavaScript | import foo from "./a";
export { foo };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/drop-unused/export/default-mixed/output/entry.js | JavaScript | const foo = 1;
export { foo as foo };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/drop-unused/export/named/input/entry.js | JavaScript | const foo = "a",
bar = "v";
export { foo };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/drop-unused/export/named/output/entry.js | JavaScript | const foo = "a";
export { foo as foo };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/drop-unused/side-effect/import-multi/input/a.js | JavaScript | export function a() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/drop-unused/side-effect/import-multi/input/b.js | JavaScript | export function b() {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/drop-unused/side-effect/import-multi/input/entry.js | JavaScript | import { a } from "./a";
import { b } from "./b";
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/drop-unused/side-effect/import-multi/output/entry.js | JavaScript | function a() {}
function b() {}
console.log(a, b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/drop-unused/side-effect/simple/input/entry.js | JavaScript | const a = 1,
b = 2,
c = a;
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/drop-unused/side-effect/simple/output/entry.js | JavaScript | const a = 1, c = a;
console.log(c);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/dynamic-import/namespace/dynamic-key/input/entry.js | JavaScript | function foo() {
return Math.random() > 0.5 ? "a" : "b";
}
import(`./lib/${foo()}`);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/dynamic-import/namespace/dynamic-key/input/lib/a.js | JavaScript | export default "a";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/dynamic-import/namespace/dynamic-key/input/lib/b.js | JavaScript | export default "b";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/dynamic-import/namespace/dynamic-key/input/lib/nop.js | JavaScript | export default "unused";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/dynamic-import/namespace/dynamic-key/output/entry.js | JavaScript | function foo() {
return Math.random() > 0.5 ? "a" : "b";
}
import(`./lib/${foo()}`);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/dynmaic-imports/issue-1112/simple/input/a.js | JavaScript | export const a = 1;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/dynmaic-imports/issue-1112/simple/input/entry.js | JavaScript | const a = await import("./a.ts");
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/dynmaic-imports/issue-1112/simple/output/entry.js | JavaScript | const a = await import("./a.ts");
console.log(a);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export-all/input/a.js | JavaScript | export const DEBUG = true;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export-all/input/b.js | JavaScript | export class B {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export-all/input/entry.js | JavaScript | export * from "./a";
export * from "./b";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export-all/output/entry.js | JavaScript | const DEBUG = true;
export { DEBUG as DEBUG };
class B {
}
export { B as B };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export-star-namespace/issue-1109/input/a.ts | TypeScript | export const a = 1;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export-star-namespace/issue-1109/input/entry.js | JavaScript | export * as a from "./a";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export-star-namespace/issue-1109/output/entry.js | JavaScript | var a = 1;
const mod = {
a: a
};
export { mod as a };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/all-1/multiple/input/a.js | JavaScript | export const [a, b, c] = [1, 2, 3];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/all-1/multiple/input/b.js | JavaScript | export const [d, e, f] = [4, 5, 6];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/all-1/multiple/input/entry.js | JavaScript | export * from "./a";
export * from "./b";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/all-1/multiple/output/entry.js | JavaScript | const [a, b, c] = [
1,
2,
3
];
export { a as a, b as b, c as c };
const [d, e, f] = [
4,
5,
6
];
export { d as d, e as e, f as f };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/all-2/input/a.js | JavaScript | import { Root } from "./c";
export class A extends Root {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/all-2/input/b.js | JavaScript | import { Root } from "./c";
export class B extends Root {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/all-2/input/c.js | JavaScript | export class Root {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/all-2/input/entry.js | JavaScript | export * from "./a";
export * from "./b";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/all-2/output/entry.js | JavaScript | class Root {
}
class A extends Root {
}
export { A as A };
class B extends Root {
}
export { B as B };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/all-nested-1/input/a.js | JavaScript | export * from "./b";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/all-nested-1/input/b.js | JavaScript | export * from "./c";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/all-nested-1/input/c.js | JavaScript | export const a = 1;
export const b = 2;
export const c = 3;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/all-nested-1/input/entry.js | JavaScript | export * from "./a";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/all-nested-1/output/entry.js | JavaScript | const a = 1;
const b = 2;
const c = 3;
export { a as a };
export { b as b };
export { c as c };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/complex-1/input/a.js | JavaScript | import { b } from "./b";
export const a = "1";
console.log(b);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/complex-1/input/b.js | JavaScript | export const b = "1";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/complex-1/input/entry.js | JavaScript | export { a } from "./a";
export { b } from "./b";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/complex-1/output/entry.js | JavaScript | const b = "1";
const a = "1";
console.log(b);
export { a as a };
export { b as b };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/issue-1111/simple/input/a.js | JavaScript | export const a = "a";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_node_bundler/tests/pass/export/issue-1111/simple/input/d.js | JavaScript | import { a } from "./a";
export const d = { a };
| 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.