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/custom/arrow/complex/input.ts | TypeScript | export function getTsConfigPropArrayElementValue(tsConfigSourceFile: TsConfigSourceFile | undefined, propKey: string, elementValue: string): StringLiteral | undefined {
return firstDefined(getTsConfigPropArray(tsConfigSourceFile, propKey), property =>
isArrayLiteralExpression(property.initializer) ?
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/async-with-as/input.ts | TypeScript | (async as any);
(async as async as async);
async as any;
async as async as async;
(async as => {});
async as => {};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/bigint/input.ts | TypeScript | 1000000000000000000000000000000000000000000000000000000000000000000000n | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/const-enum/input.ts | TypeScript | const enum Foo {
A,
B,
C
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/default-followed-by-type/arrow/input.ts | TypeScript | var a = (greeting: string = "Hello", target: string) => {
return `${greeting} ${target}!`;
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/default-followed-by-type/function/input.ts | TypeScript | function func(greeting: string = "Hello", target: string) {
return `${greeting} ${target}!`;
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-expr-ctx/input.ts | TypeScript | const test = import('foo').from();
function func() {
import('foo').from();
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-top-level/input.ts | TypeScript | import('foo').from(); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/import-type/typeof/as/input.ts | TypeScript | const tty = require("tty") as typeof import("tty") | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/import-type/typeof/simple/input.ts | TypeScript | let a: typeof import("readline");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-196-01/input.ts | TypeScript | export type Link = { key: string; text: string }; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-196-02/input.ts | TypeScript | type Link = { key: string; text: string };
export { Link }; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-236/input.ts | TypeScript | export function DirectiveIserviceIdPrefixController(this: any, $scope: angular.IScope, $attrs: angular.IAttributes) {
this.$scope = $scope;
this.$attrs = $attrs;
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-259/input.ts | TypeScript | router.on('routeWillChange', () => (routerTransitionsPending = true)); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-327-1/input.ts | TypeScript | const fn = foo => (foo.bar ? (foo.bar.bas ? "bas" : "bar") : "bat")
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-327-2/input.ts | TypeScript | const fn = (foo) => (foo.bar ? (foo.bar.bas ? "bas" : "bar") : "bat")
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-338/input.ts | TypeScript | const bar = bas as typeof beep.delete
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-370/input.ts | TypeScript | const x: X = (
a,
b?,
) => {
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-374/input.ts | TypeScript | let someValue: any = "this is a string";
let strLength: number = (<string>someValue).length; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-array-ts/input.ts | TypeScript | let y = <const>[10, 20];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-array/input.ts | TypeScript | let y = [10, 20] as const;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-literal-ts/input.ts | TypeScript | let x = <const>"hello";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-literal/input.ts | TypeScript | let x = "hello" as const;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object-ts/input.ts | TypeScript | let z = <const>{ text: "hello" };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object/input.ts | TypeScript | let z = { text: "hello" } as const;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-410-1/input.ts | TypeScript | (async () => {})();
(async async => {})();
(async function () {})();
(async () => {}, x);
(async async => {}, x);
(async function () {}, x);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-410-2/input.ts | TypeScript | async () => {};
async async => {};
async function async() {}
async () => {}, x;
async async => {}, x;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-432-readonly-array/input.ts | TypeScript | const a: readonly number[] = [1];
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-433-1/input.ts | TypeScript | const result = (x => x)(1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-433-2/input.ts | TypeScript | const result2 = ((x: number) => x)(1);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-461/input.ts | TypeScript | for (let x in [""]) {
(x => 0)(x);
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-496/input.ts | TypeScript | export class SomethingWithId {
variant: any;
constructor(variant: any) {
this.variant = variant;
}
get id() {
return this.variant.id;
}
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-535/input.ts | TypeScript | export * from "test" ;
import "test" ;
import Test from "test" ; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-538/input.ts | TypeScript | export declare function test(): string; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-612-async-generator/input.ts | TypeScript | async function* agf() {} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-623/input.ts | TypeScript | declare module "@dsherret/package" {
namespace packageName {
}
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-709-2/input.ts | TypeScript | export declare class EventInit {
constructor([ t ]?: string[]);
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-709-3/input.ts | TypeScript | export declare class EventInit {
constructor({ t }?: { t?: any });
}w | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-709/input.d.ts | TypeScript | declare namespace __event {
export class EventInit {
constructor({
bubbles,
cancelable,
composed
}?: {
bubbles?: boolean | undefined;
cancelable?: boolean | undefined;
composed?: b... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-716/input.ts | TypeScript | module.exports = function test() {
if (true) {
if (true) {
while (test) {
if (test) {
if (test) {
if (test) {
if (test) {
while (test) {
if ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-717/input.ts | TypeScript | function functionFlags(async: boolean) {
return (async ? 1 : 0)
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/issue-720/input.ts | TypeScript | async function* main() {
yield await 0;
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/ternary-paren/input.ts | TypeScript | (foo ? 1 : 2) | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/ternary/input.ts | TypeScript | foo ? 1 : 2 | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/tsx-issue-573/input.tsx | TypeScript (TSX) | const fn = <T extends string | number>(x: T) => x; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/tsx-unary-paren/input.tsx | TypeScript (TSX) |
(
<div>
{
isLoading ?
(<h2>loading </h2>)
:
(<h3>naaaaaaaaaaaaffffffffffffffff </h3>)
}
</div>
); | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/tsx-unary/input.tsx | TypeScript (TSX) | import React from 'react';
function App() {
const isLoading = true;
return (
<div>
<h1>works </h1>
{
isLoading ? <div>loading </div> : <div>naaaaaaaaaaaaffffffffffffffff </div>
}
</div>
);
}
export default App; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/type-only/export/aliased/input.ts | TypeScript | export type { Foo as Bar }; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/type-only/export/specific/input.ts | TypeScript | export type { Foo }; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/type-only/export/type-only-specifier/input.ts | TypeScript | export { type }
export type { type }
export { type foo }
export { type as }
export { type foo as bar }
export { type foo as as }
export { type as as }
export { type as foo }
export { type as type }
export { type as as foo }
export { type as as as }
export { type type as as }
export { type export }
export { type as expo... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/type-only/import/aliased/input.ts | TypeScript | import type { Foo as Bar } from 'foo'; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/type-only/import/default/input.ts | TypeScript | import type Foo from 'foo';
import type from './a'; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/type-only/import/specific/input.ts | TypeScript | import type { Foo } from 'foo';
import type {} from 'foo'; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/type-only/import/type-only-specifier/input.ts | TypeScript | import { type } from 'mod'
import type { type } from 'mod'
import { type foo } from 'mod'
import { type as } from 'mod'
import { type foo as bar } from 'mod'
import { type foo as as } from 'mod'
import { type as as } from 'mod'
import { type as foo } from 'mod'
import { type as type } from 'mod'
import { type as as foo... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/yield-object-paren/input.ts | TypeScript | function *gen() {
yield ({ });
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/custom/yield-object/input.ts | TypeScript | function *gen() {
yield { };
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/declare/const/input.ts | TypeScript | declare const x: number, y: string;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/declare/destructure/input.ts | TypeScript | declare const { x, y }: { x: number, y: number };
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/declare/interface/input.ts | TypeScript | declare interface I {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/declare/let/input.ts | TypeScript | declare let x;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/declare/var/input.ts | TypeScript | declare var x;
declare var x: any;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/decorators/parameter/input.ts | TypeScript | class Test {
constructor(@p1 t1, @p2 private t2, @p3 ...t3) {
}
method(@p1 t1, @p1 @p2 ...t2) {
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/decorators/type-arguments/input.ts | TypeScript | @decorator<string>()
class Test {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/deno-1671/case1/input.ts | TypeScript | class A {
private declare() {}
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/deno-8925/case1/input.ts | TypeScript | const 𝒫 = 2;
console.log(𝒫)
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/deno-8925/case2/input.ts | TypeScript | export const 𝒫 = 2;
console.log(𝒫)
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/deno-9620/case1/input.ts | TypeScript | const content = `--------------------------366796e1c748a2fb\r
Content-Disposition: form-data; name="payload"\r
Content-Type: text/plain\r
\r
CONTENT\r
--------------------------366796e1c748a2fb--` | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/deno-discord/2021-02-17/case1/input.tsx | TypeScript (TSX) | function foo<P extends RouteParams = RP, S extends State = RS>(
name: string,
path: string,
...middleware: RouterMiddleware<P, S>[]
): Router<P extends RP ? P : (P & RP), S extends RS ? S : (S & RS)>; { } | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/deno-discord/2021-02-17/case2/input.tsx | TypeScript (TSX) | class Foo {
delete<P extends RouteParams = RP, S extends State = RS>(
name: string,
path: string,
...middleware: RouterMiddleware<P, S>[]
): Router<P extends RP ? P : (P & RP), S extends RS ? S : (S & RS)> { }
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/deno/dso/reflect/input.ts | TypeScript | // @ts-nocheck
/*! *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://w... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/disallow-ambiguous-jsx-like/mts/input.mts | TypeScript | <T,>() => 1;
<T,>(x) => 1;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/enum/const/input.ts | TypeScript | const enum E {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/enum/declare-const/input.ts | TypeScript | declare const enum E {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/enum/declare/input.ts | TypeScript | declare enum E {} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/enum/export-const/input.ts | TypeScript | export const enum E {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/enum/export-declare-const/input.ts | TypeScript | export declare const enum E {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/enum/export/input.ts | TypeScript | export enum E {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/enum/members-reserved-words/input.ts | TypeScript | enum E {
const,
default
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/enum/members-strings/input.ts | TypeScript | enum E {
"foo",
"bar" = 1
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/enum/members-trailing-comma-with-initializer/input.ts | TypeScript | enum E {
A = 0,
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/enum/members-trailing-comma/input.ts | TypeScript | enum E {
A,
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/enum/members/input.ts | TypeScript | enum E {
A,
B = 0
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/eof-issue/input.tsx | TypeScript (TSX) | export const Divider = <div/> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/es2019/from-entries/input.ts | TypeScript |
interface ObjectConstructor {
fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k in PropertyKey]: T };
fromEntries(entries: Iterable<readonly any[]>): any;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/estree-compat/shorthand-ambient-module/input.ts | TypeScript | declare module "hot-new-module"; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/export-default-interface/index.ts | TypeScript | export default interface Foo {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/export/as-namespace/input.ts | TypeScript | export as namespace A;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/export/declare/input.ts | TypeScript | export declare const x: number;
export declare function f(): void;
export declare class C {}
export declare interface I {}
export declare type T = number;
export declare module M {}
export declare namespace N {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/export/equals/input.ts | TypeScript | export = f;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/export/namespace-from/input.ts | TypeScript | export * as ns from "package";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/export/nested-same-name/input.ts | TypeScript | export const x = 0;
export namespace N {
export const x = 1;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/function/annotated/input.ts | TypeScript | function f<T>(x?: T): T {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/function/anonymous/input.ts | TypeScript | const f = function<T>(x?: T): T {};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/function/declare/input.ts | TypeScript | declare function f(): void;
declare function f<T>(): T;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/function/export-default/input.ts | TypeScript | export default function(x?: number): void;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/function/overloads/input.ts | TypeScript | export function f(x: number): number;
export function f(x: string): string;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/function/predicate-types/input.ts | TypeScript | function f(x: any): x is boolean {}
(function(x: any): x is boolean {})
function g(x: any): asserts x is boolean {}
function h(x: any): asserts x {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/expr/input.ts | TypeScript | foo(import('./lazy', { assert: { type: "json" } })) | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/top/input.ts | TypeScript | import('./lazy', { assert: { type: "json" } })
.then((lazy) => console.log(lazy)) | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_parser/tests/typescript/import-assertions/export/test1/input.ts | TypeScript | export { val } from './foo.js' assert { type: "javascript" }; | 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.