repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/equals-in-unambiguous/input.ts | packages/babel-parser/test/fixtures/typescript/import/equals-in-unambiguous/input.ts | import A = B.C;
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/import-default-id-type/input.ts | packages/babel-parser/test/fixtures/typescript/import/import-default-id-type/input.ts | import type from 'foo';
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/export-import-type-require/input.ts | packages/babel-parser/test/fixtures/typescript/import/export-import-type-require/input.ts | export import type a = require("a");
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/equals-require-in-unambiguous/input.ts | packages/babel-parser/test/fixtures/typescript/import/equals-require-in-unambiguous/input.ts | import a = require("a");
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/type-equals-require/input.ts | packages/babel-parser/test/fixtures/typescript/import/type-equals-require/input.ts | import type a = require("a");
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/export-import-type-as-identifier/input.ts | packages/babel-parser/test/fixtures/typescript/import/export-import-type-as-identifier/input.ts | export import type = require("A");
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/import-type-as-identifier/input.ts | packages/babel-parser/test/fixtures/typescript/import/import-type-as-identifier/input.ts | import type = require("A");
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/import-default-and-named-id-type/input.ts | packages/babel-parser/test/fixtures/typescript/import/import-default-and-named-id-type/input.ts | import type, { bar } from 'foo';
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/not-top-level/input.ts | packages/babel-parser/test/fixtures/typescript/import/not-top-level/input.ts | declare module "m" {
import * as a from "a";
}
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/equals-in-script/input.ts | packages/babel-parser/test/fixtures/typescript/import/equals-in-script/input.ts | import A = B.C;
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/equals/input.ts | packages/babel-parser/test/fixtures/typescript/import/equals/input.ts | import A = B.C;
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/export-import-type/input.ts | packages/babel-parser/test/fixtures/typescript/import/export-import-type/input.ts | export import type A = B.C;
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/type-asi/input.ts | packages/babel-parser/test/fixtures/typescript/import/type-asi/input.ts | import type
A = require("A");
import
type
a = require("a");
export import
type
B = require("B");
export
import
type
b = require("b");
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/export-import/input.ts | packages/babel-parser/test/fixtures/typescript/import/export-import/input.ts | export import A = B.C;
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/export-import-require/input.ts | packages/babel-parser/test/fixtures/typescript/import/export-import-require/input.ts | export import a = require("a");
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/equals-require/input.ts | packages/babel-parser/test/fixtures/typescript/import/equals-require/input.ts | import a = require("a");
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/import/export-named-import-require/input.ts | packages/babel-parser/test/fixtures/typescript/import/export-named-import-require/input.ts | import a = require("a");
export { a };
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-alias/generic/input.ts | packages/babel-parser/test/fixtures/typescript/type-alias/generic/input.ts | type T<U>=U;
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-alias/declare-new-line/input.ts | packages/babel-parser/test/fixtures/typescript/type-alias/declare-new-line/input.ts | declare type
T = number
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-alias/type-as-or-satisfies-equals/input.ts | packages/babel-parser/test/fixtures/typescript/type-alias/type-as-or-satisfies-equals/input.ts | type as = 0;
type satisfies = 0;
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-alias/generic-complex-tokens-true/input.ts | packages/babel-parser/test/fixtures/typescript/type-alias/generic-complex-tokens-true/input.ts | type T<U extends object = { x: number }> = Array<U>;
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-alias/export/input.ts | packages/babel-parser/test/fixtures/typescript/type-alias/export/input.ts | export type T = number;
// `export default type` is not valid.
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-alias/declare/input.ts | packages/babel-parser/test/fixtures/typescript/type-alias/declare/input.ts | declare type T = number;
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/type-alias/plain/input.ts | packages/babel-parser/test/fixtures/typescript/type-alias/plain/input.ts | type T = number;
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/optional-chaining/type-arguments/input.ts | packages/babel-parser/test/fixtures/typescript/optional-chaining/type-arguments/input.ts | example.inner?.greet<string>()
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/typescript/catch-clause/unknown/input.ts | packages/babel-parser/test/fixtures/typescript/catch-clause/unknown/input.ts | try {} catch (ex) {}
try {} catch (ex: unknown) {}
try {} catch (ex: any) {}
// The following can't be error'd at parse time
try {} catch (ex: A) {}
try {} catch (ex: Error) {}
try {} catch (ex: string) {}
try {} catch (ex: string | number) {}
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/placeholders/typescript/export-namespace/input.ts | packages/babel-parser/test/fixtures/placeholders/typescript/export-namespace/input.ts | export namespace %%foo%% { }
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/test/fixtures/placeholders/typescript/typeAnnotation/input.ts | packages/babel-parser/test/fixtures/placeholders/typescript/typeAnnotation/input.ts | const %%x%%: string = 1;
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/typings/babel-parser.d.ts | packages/babel-parser/typings/babel-parser.d.ts | // This file is auto-generated! Do not modify it directly.
// Run `yarn gulp bundle-dts` to re-generate it.
/* eslint-disable @typescript-eslint/consistent-type-imports, @typescript-eslint/no-redundant-type-constituents */
import { File, Expression } from '@babel/types';
declare class Position {
line: number;
... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-parser/typings/babel-parser.source.d.ts | packages/babel-parser/typings/babel-parser.source.d.ts | export type {
parse,
parseExpression,
} from "../../../dts/packages/babel-parser/src/index.d.ts";
export type {
ParserOptions,
ParserPlugin,
PipelineOperatorPluginOptions,
FlowPluginOptions,
TypeScriptPluginOptions,
ParseError,
ParseResult,
} from "../../../dts/packages/babel-parser/src/index.d.ts";
... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-cli/src/babel-external-helpers.ts | packages/babel-cli/src/babel-external-helpers.ts | import * as commander from "commander";
import { buildExternalHelpers } from "@babel/core";
const program = commander.program;
function collect(value: unknown, previousValue: string[]): string[] {
// If the user passed the option with no value, like "babel-external-helpers --whitelist", do nothing.
if (typeof valu... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-cli/src/babel/util.ts | packages/babel-cli/src/babel/util.ts | import * as babel from "@babel/core";
import path from "node:path";
import fs from "node:fs";
import * as watcher from "./watcher.ts";
import type { FileResult, InputOptions } from "@babel/core";
export function chmod(src: string, dest: string): void {
try {
fs.chmodSync(dest, fs.statSync(src).mode);
} catch... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-cli/src/babel/file.ts | packages/babel-cli/src/babel/file.ts | import convertSourceMap from "convert-source-map";
import { AnyMap, encodedMap } from "@jridgewell/trace-mapping";
import slash from "slash";
import path from "node:path";
import fs from "node:fs";
import * as util from "./util.ts";
import type { CmdOptions } from "./options.ts";
import * as watcher from "./watcher.ts... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-cli/src/babel/watcher.ts | packages/babel-cli/src/babel/watcher.ts | import { createRequire } from "node:module";
import path from "node:path";
import type { WatchOptions, FSWatcher } from "chokidar";
const fileToDeps = new Map<string, Set<string>>();
const depToFiles = new Map<string, Set<string>>();
let isWatchMode = false;
let watcher: FSWatcher;
const watchQueue = new Set<string>(... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-cli/src/babel/options.ts | packages/babel-cli/src/babel/options.ts | import fs from "node:fs";
import * as commander from "commander";
import { version, DEFAULT_EXTENSIONS } from "@babel/core";
import * as glob from "glob";
import { alphasort } from "./util.ts";
import type { InputOptions } from "@babel/core";
const program = commander.program;
// Standard Babel input configs.
progra... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-cli/src/babel/dir.ts | packages/babel-cli/src/babel/dir.ts | import slash from "slash";
import path from "node:path";
import fs from "node:fs";
import * as util from "./util.ts";
import * as watcher from "./watcher.ts";
import type { CmdOptions } from "./options.ts";
const FILE_TYPE = Object.freeze({
NON_COMPILABLE: "NON_COMPILABLE",
COMPILED: "COMPILED",
IGNORED: "IGNOR... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-cli/src/babel/index.ts | packages/babel-cli/src/babel/index.ts | #!/usr/bin/env node
import parseArgv from "./options.ts";
import dirCommand from "./dir.ts";
import fileCommand from "./file.ts";
const opts = parseArgv(process.argv);
if (opts) {
const fn = opts.cliOptions.outDir ? dirCommand : fileCommand;
fn(opts).catch(err => {
console.error(err);
process.exitCode = ... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-function-bind/src/index.ts | packages/babel-plugin-proposal-function-bind/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import { types as t, type Scope } from "@babel/core";
export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
function getTempId(scope: Scope) {
let id = scope.path.getData("functionBind");
if (id) return t.cloneNode(id);
id = scop... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helper-replace-supers/src/index.ts | packages/babel-helper-replace-supers/src/index.ts | import type { File, NodePath, Scope } from "@babel/core";
import memberExpressionToFunctions from "@babel/helper-member-expression-to-functions";
import type { HandlerState } from "@babel/helper-member-expression-to-functions";
import optimiseCall from "@babel/helper-optimise-call-expression";
import { template, types ... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-explicit-resource-management/src/index.ts | packages/babel-plugin-transform-explicit-resource-management/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import { unshiftForXStatementBody } from "@babel/plugin-transform-destructuring";
import { types as t, template, traverse } from "@babel/core";
import type { NodePath, Visitor, PluginPass } from "@babel/core";
const enum USING_KIND {
NORMAL,
AWAIT,
}
// https:... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-numeric-separator/src/index.ts | packages/babel-plugin-transform-numeric-separator/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import type { NodePath, types as t } from "@babel/core";
/**
* Given a bigIntLiteral or NumericLiteral, remove numeric
* separator `_` from its raw representation
*
* @param {NodePath<BigIntLiteral | NumericLiteral>} { node }: A Babel AST node path
*/
function... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-syntax-module-blocks/src/index.ts | packages/babel-plugin-syntax-module-blocks/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
export default declare(api => {
api.assertVersion(REQUIRED_VERSION("^7.0.0-0 || ^8.0.0-0"));
return {
name: "syntax-module-blocks",
manipulateOptions(opts, parserOpts) {
parserOpts.plugins.push("moduleBlocks");
},
};
});
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-strict-mode/src/index.ts | packages/babel-plugin-transform-strict-mode/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import { types as t } from "@babel/core";
export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
return {
name: "transform-strict-mode",
visitor: {
Program(path) {
const { node } = path;
for (const directive of ... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-private-property-in-object/src/index.ts | packages/babel-plugin-transform-private-property-in-object/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import {
enableFeature,
FEATURES,
injectInitialization as injectConstructorInit,
buildCheckInRHS,
} from "@babel/helper-create-class-features-plugin";
import annotateAsPure from "@babel/helper-annotate-as-pure";
import type { NodePath, Scope, types as t } fr... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-unicode-property-regex/src/index.ts | packages/babel-plugin-transform-unicode-property-regex/src/index.ts | /* eslint-disable @babel/development/plugin-name */
import { createRegExpFeaturePlugin } from "@babel/helper-create-regexp-features-plugin";
import { declare } from "@babel/helper-plugin-utils";
export interface Options {
useUnicodeFlag?: boolean;
}
export default declare((api, options: Options) => {
api.assertVe... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-function-sent/src/index.ts | packages/babel-plugin-proposal-function-sent/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import wrapFunction from "@babel/helper-wrap-function";
import { types as t, type Visitor } from "@babel/core";
export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
const isFunctionSent = (node: t.MetaProperty) =>
t.isIdentifier(node.met... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helper-create-class-features-plugin/src/fields.ts | packages/babel-helper-create-class-features-plugin/src/fields.ts | import { template, types as t } from "@babel/core";
import type { File, NodePath, Visitor, Scope } from "@babel/core";
import { visitors } from "@babel/traverse";
import ReplaceSupers from "@babel/helper-replace-supers";
import memberExpressionToFunctions from "@babel/helper-member-expression-to-functions";
import type... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | true |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helper-create-class-features-plugin/src/typescript.ts | packages/babel-helper-create-class-features-plugin/src/typescript.ts | import type { NodePath, types as t } from "@babel/core";
export function assertFieldTransformed(
path: NodePath<t.ClassProperty | t.ClassDeclaration>,
) {
if (path.node.declare || path.isClassProperty({ definite: true })) {
throw path.buildCodeFrameError(
`TypeScript 'declare' fields must first be transf... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helper-create-class-features-plugin/src/decorators.ts | packages/babel-helper-create-class-features-plugin/src/decorators.ts | import type { NodePath, Scope, Visitor } from "@babel/core";
import { types as t, template } from "@babel/core";
import ReplaceSupers from "@babel/helper-replace-supers";
import type { PluginAPI, PluginObject, PluginPass } from "@babel/core";
import { skipTransparentExprWrappers } from "@babel/helper-skip-transparent-e... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | true |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helper-create-class-features-plugin/src/misc.ts | packages/babel-helper-create-class-features-plugin/src/misc.ts | import { template, types as t } from "@babel/core";
import type { File, NodePath, Scope, Visitor } from "@babel/core";
import { visitors } from "@babel/traverse";
const findBareSupers = visitors.environmentVisitor<
NodePath<t.CallExpression>[]
>({
Super(path) {
const { node, parentPath } = path;
if (parent... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helper-create-class-features-plugin/src/index.ts | packages/babel-helper-create-class-features-plugin/src/index.ts | import { types as t } from "@babel/core";
import type { PluginAPI, PluginObject, NodePath } from "@babel/core";
import semver from "semver";
import {
buildPrivateNamesNodes,
buildPrivateNamesMap,
transformPrivateNamesUsage,
buildFieldsInitNodes,
buildCheckInRHS,
} from "./fields.ts";
import type { PropPath ... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helper-create-class-features-plugin/src/features.ts | packages/babel-helper-create-class-features-plugin/src/features.ts | import type { File, types as t } from "@babel/core";
import type { NodePath } from "@babel/core";
import { hasOwnDecorators } from "./decorators.ts";
export const FEATURES = Object.freeze({
//classes: 1 << 0,
fields: 1 << 1,
privateMethods: 1 << 2,
decorators: 1 << 3,
privateIn: 1 << 4,
staticBlocks: 1 << ... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helper-create-class-features-plugin/test/fixtures/plugin-proposal-class-properties/typescript-declare-class-property/input.ts | packages/babel-helper-create-class-features-plugin/test/fixtures/plugin-proposal-class-properties/typescript-declare-class-property/input.ts | declare class Foo {
static bar: string;
}
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helper-skip-transparent-expression-wrappers/src/index.ts | packages/babel-helper-skip-transparent-expression-wrappers/src/index.ts | import {
isParenthesizedExpression,
isTSAsExpression,
isTSNonNullExpression,
isTSSatisfiesExpression,
isTSTypeAssertion,
isTypeCastExpression,
} from "@babel/types";
import type * as t from "@babel/types";
import type { NodePath } from "@babel/traverse";
export type TransparentExprWrapper =
| t.TSAsExpr... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-syntax-function-bind/src/index.ts | packages/babel-plugin-syntax-function-bind/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
export default declare(api => {
api.assertVersion(REQUIRED_VERSION("^7.0.0-0 || ^8.0.0-0"));
return {
name: "syntax-function-bind",
manipulateOptions(opts, parserOpts) {
parserOpts.plugins.push("functionBind");
},
};
});
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-bugfix-v8-static-class-fields-redefine-readonly/src/util.ts | packages/babel-plugin-bugfix-v8-static-class-fields-redefine-readonly/src/util.ts | import { types as t, type NodePath, type Visitor } from "@babel/core";
function isNameOrLength(key: t.Node): boolean {
if (t.isIdentifier(key)) {
return key.name === "name" || key.name === "length";
}
if (t.isStringLiteral(key)) {
return key.value === "name" || key.value === "length";
}
return false;... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-bugfix-v8-static-class-fields-redefine-readonly/src/index.ts | packages/babel-plugin-bugfix-v8-static-class-fields-redefine-readonly/src/index.ts | import type { NodePath, Scope, PluginPass, File } from "@babel/core";
import { types as t } from "@babel/core";
import { declare } from "@babel/helper-plugin-utils";
import {
getPotentiallyBuggyFieldsIndexes,
getNameOrLengthStaticFieldsIndexes,
toRanges,
} from "./util.ts";
function buildFieldsReplacement(
fi... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-block-scoping/src/loop.ts | packages/babel-plugin-transform-block-scoping/src/loop.ts | import { template, types as t } from "@babel/core";
import type { NodePath, Visitor, Scope } from "@babel/core";
interface LoopBodyBindingsState {
blockScoped: Scope.Binding[];
}
const collectLoopBodyBindingsVisitor: Visitor<LoopBodyBindingsState> = {
"Expression|Declaration|Loop"(path) {
path.skip();
},
... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-block-scoping/src/validation.ts | packages/babel-plugin-transform-block-scoping/src/validation.ts | import { types as t } from "@babel/core";
import type { Scope, NodePath, PluginPass } from "@babel/core";
export function validateUsage(
path: NodePath<t.VariableDeclaration>,
state: PluginPass,
tdzEnabled: boolean,
) {
const dynamicTDZNames = [];
for (const name of Object.keys(path.getBindingIdentifiers())... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-block-scoping/src/annex-B_3_3.ts | packages/babel-plugin-transform-block-scoping/src/annex-B_3_3.ts | import { types as t } from "@babel/core";
import type { NodePath, Visitor, Scope } from "@babel/core";
// Whenever a function declaration in a nested block scope
// doesn't conflict with a block-scoped binding from an outer
// scope, we transform it to a variable declaration.
//
// This implements the Annex B.3.3 beha... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-block-scoping/src/index.ts | packages/babel-plugin-transform-block-scoping/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import type { NodePath, Scope, Visitor, PluginPass } from "@babel/core";
import { types as t, traverse } from "@babel/core";
import {
getLoopBodyBindings,
getUsageInBody,
isVarInLoopHead,
wrapLoopBody,
} from "./loop.ts";
import { validateUsage } from "./va... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-block-scoping/test/fixtures/regression/rename-with-global-ids/input.ts | packages/babel-plugin-transform-block-scoping/test/fixtures/regression/rename-with-global-ids/input.ts | // https://github.com/babel/babel/pull/15361
function fooBar(arrayOfThings) {
for (let index = 0; index < arrayOfThings.length; index++) {
const thing = arrayOfThings[index];
const someMapObj = {};
let arrow = (x) => someMapObj;
arrow(0)
}
}
fooBar([1,2,3])
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-regexp-modifiers/src/index.ts | packages/babel-plugin-transform-regexp-modifiers/src/index.ts | /* eslint-disable @babel/development/plugin-name */
import { createRegExpFeaturePlugin } from "@babel/helper-create-regexp-features-plugin";
import { declare } from "@babel/helper-plugin-utils";
export default declare(api => {
api.assertVersion(REQUIRED_VERSION("^7.19.0 || ^8.0.0-0"));
return createRegExpFeatureP... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-partial-application/src/index.ts | packages/babel-plugin-proposal-partial-application/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import { types as t, type Scope } from "@babel/core";
export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
/**
* a function to figure out if a call expression has
* ArgumentPlaceholder as one of its arguments
* @param node a callExp... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-react-jsx-development/src/index.ts | packages/babel-plugin-transform-react-jsx-development/src/index.ts | /* eslint-disable @babel/development/plugin-name */
import plugin from "@babel/plugin-transform-react-jsx/lib/development";
// We need to explicitly annotate this export because
// @babel/plugin-transform-react-jsx/lib/development has no type definitions
// (it's not a public entry point)
// eslint-disable-next-line @... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-react-jsx-development/test/fixtures/cross-platform/within-ts-module-block/input.ts | packages/babel-plugin-transform-react-jsx-development/test/fixtures/cross-platform/within-ts-module-block/input.ts | export namespace Namespaced {
export const Component = () => (
<div>Hello, world!</div>
);
}
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-syntax-partial-application/src/index.ts | packages/babel-plugin-syntax-partial-application/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
export default declare(api => {
api.assertVersion(REQUIRED_VERSION("^7.0.0-0 || ^8.0.0-0"));
return {
name: "syntax-partial-application",
manipulateOptions(opts, parserOpts) {
parserOpts.plugins.push("partialApplication");
},
};
});
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-object-assign/src/index.ts | packages/babel-plugin-transform-object-assign/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
return {
name: "transform-object-assign",
visitor: {
CallExpression: function (path, file) {
if (path.get("callee").matchesPattern("Object.assign")) {
path... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-optional-chaining-assign/src/index.ts | packages/babel-plugin-proposal-optional-chaining-assign/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import syntaxOptionalChainingAssign from "@babel/plugin-syntax-optional-chaining-assign";
import type { NodePath, types as t } from "@babel/core";
import { skipTransparentExprWrappers } from "@babel/helper-skip-transparent-expression-wrappers";
import { transformOpt... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-classes/src/transformClass.ts | packages/babel-plugin-transform-classes/src/transformClass.ts | import type { NodePath, Scope, File } from "@babel/core";
import ReplaceSupers from "@babel/helper-replace-supers";
import { template, types as t } from "@babel/core";
import { visitors } from "@babel/traverse";
import annotateAsPure from "@babel/helper-annotate-as-pure";
import addCallSuperHelper from "./inline-callS... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-classes/src/inline-callSuper-helpers.ts | packages/babel-plugin-transform-classes/src/inline-callSuper-helpers.ts | import { template, types as t, type File } from "@babel/core";
const helper = template.statement`
function CALL_SUPER(
_this,
derived,
args,
) {
function isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
// core-js@3
if (Reflect.... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-classes/src/index.ts | packages/babel-plugin-transform-classes/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import { isRequired } from "@babel/helper-compilation-targets";
import annotateAsPure from "@babel/helper-annotate-as-pure";
import { types as t } from "@babel/core";
import globalsBrowserUpper from "@babel/helper-globals/data/browser-upper.json" with { type: "json"... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-classes/test/fixtures/misc/function-name-ts-annotation/input.ts | packages/babel-plugin-transform-classes/test/fixtures/misc/function-name-ts-annotation/input.ts | class Database {
transaction(
// If the type annotation here contains the *name of the method*
// then it changes how the method is compiled. Rename `transaction`
// below and see how the output changes.
callback: (transaction: Transaction) => unknown,
) {
return this.table.transaction(
(x... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-destructuring/src/util.ts | packages/babel-plugin-transform-destructuring/src/util.ts | import { types as t, template } from "@babel/core";
import type { File, Scope, NodePath } from "@babel/core";
function isPureVoid(node: t.Node) {
return (
t.isUnaryExpression(node) &&
node.operator === "void" &&
t.isPureish(node.argument)
);
}
export function unshiftForXStatementBody(
statementPath:... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-destructuring/src/index.ts | packages/babel-plugin-transform-destructuring/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import { types as t, type NodePath } from "@babel/core";
import {
DestructuringTransformer,
convertVariableDeclaration,
convertAssignmentExpression,
unshiftForXStatementBody,
type DestructuringTransformerNode,
type VariableDeclarationKindAllowsPattern,
}... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-shorthand-properties/src/index.ts | packages/babel-plugin-transform-shorthand-properties/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import { types as t } from "@babel/core";
export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
return {
name: "transform-shorthand-properties",
visitor: {
ObjectMethod(path) {
const { node } = path;
if (node.ki... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-do-expressions/src/utils.ts | packages/babel-plugin-proposal-do-expressions/src/utils.ts | import type { NodePath, Visitor, types as t } from "@babel/core";
import { traverse } from "@babel/core";
const mergeVisitors = traverse.visitors.merge;
// Wrap all do expressions in an IIFE.
// This doesn't work with control flow statements like break/continue/return.
// Only use this when the code is too hard to tra... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-do-expressions/src/index.ts | packages/babel-plugin-proposal-do-expressions/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import type { types as t, NodePath } from "@babel/core";
import {
wrapDoExpressionInIIFE,
collectControlFlowStatements,
} from "./utils.ts";
export default declare(api => {
api.assertVersion(REQUIRED_VERSION(7));
const { types: t } = api;
const noDocument... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-do-expressions/test/fixtures/do-expressions/inside-ts-parameter-property/input.ts | packages/babel-plugin-proposal-do-expressions/test/fixtures/do-expressions/inside-ts-parameter-property/input.ts | class C {
constructor(readonly arg = do { effects.push(1); value }) {}
}
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-do-expressions/test/fixtures/do-expressions/inside-ts-parameter-property/exec.ts | packages/babel-plugin-proposal-do-expressions/test/fixtures/do-expressions/inside-ts-parameter-property/exec.ts | class C {
constructor(readonly arg = do { effects.push(1); value }) {}
}
var value = { key: 1 }
var effects = [];
new C();
expect(effects).toEqual([1]);
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-spread/src/index.ts | packages/babel-plugin-transform-spread/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import { skipTransparentExprWrappers } from "@babel/helper-skip-transparent-expression-wrappers";
import { types as t, template } from "@babel/core";
import type { File, NodePath, Scope } from "@babel/core";
type ListElement = t.SpreadElement | t.Expression;
expor... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-spread/test/fixtures/regression/11400/input.ts | packages/babel-plugin-transform-spread/test/fixtures/regression/11400/input.ts | (dog.bark as any)(...args)
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-spread/test/fixtures/call-context/ts-type-cast/input.ts | packages/babel-plugin-transform-spread/test/fixtures/call-context/ts-type-cast/input.ts | (<any> a.b)(...args)
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-spread/test/fixtures/call-context/flow-type-cast/input.ts | packages/babel-plugin-transform-spread/test/fixtures/call-context/flow-type-cast/input.ts | (a.b: any)(...args)
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-spread/test/fixtures/spread/type-reference-ts/input.ts | packages/babel-plugin-transform-spread/test/fixtures/spread/type-reference-ts/input.ts | function foo() {
const x = 1 ? a() : b();
const y = a() || b();
return [...x, ...y];
}
function a(): Array<number> {
return [];
}
function b(): Array<number> {
return [];
}
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-decorators/src/transformer-legacy.ts | packages/babel-plugin-proposal-decorators/src/transformer-legacy.ts | // Fork of https://github.com/loganfsmyth/babel-plugin-proposal-decorators-legacy
import { template, types as t } from "@babel/core";
import type { NodePath, Visitor, PluginPass } from "@babel/core";
const buildClassDecorator = template.statement(`
DECORATOR(CLASS_REF = INNER) || CLASS_REF;
`) as (replacements: {
... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-decorators/src/index.ts | packages/babel-plugin-proposal-decorators/src/index.ts | /* eslint-disable @babel/development/plugin-name */
import { declare } from "@babel/helper-plugin-utils";
import syntaxDecorators from "@babel/plugin-syntax-decorators";
import {
createClassFeaturePlugin,
FEATURES,
} from "@babel/helper-create-class-features-plugin";
import legacyVisitor from "./transformer-legacy... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-decorators/test/fixtures/2023-11-typescript/computed-key-ts-as-expression/input.ts | packages/babel-plugin-proposal-decorators/test/fixtures/2023-11-typescript/computed-key-ts-as-expression/input.ts | function noopFactory() { return function noop(x) { return x } }
{
class C {
[("a1", "a2") as any]() {};
@noopFactory(0) #p;
}
expect(new C()).toHaveProperty("a2");
}
{
class C {
[("a1", ("b1", "b2")) as any]() {};
@noopFactory(1) #p;
}
expect(new C()).toHaveProperty("b2");
}
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-decorators/test/fixtures/2023-11-typescript/computed-key-ts-as-expression/exec.ts | packages/babel-plugin-proposal-decorators/test/fixtures/2023-11-typescript/computed-key-ts-as-expression/exec.ts | function noopFactory() { return function noop(x) { return x } }
{
class C {
[("a1", "a2") as any]() {};
@noopFactory(0) #p;
}
expect(new C()).toHaveProperty("a2");
}
{
class C {
[("a1", ("b1", "b2")) as any]() {};
@noopFactory(1) #p;
}
expect(new C()).toHaveProperty("b2");
}
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-decorators/test/fixtures/2023-11-typescript/abstruct-class/input.ts | packages/babel-plugin-proposal-decorators/test/fixtures/2023-11-typescript/abstruct-class/input.ts | function classDec(target, context) {}
@classDec
abstract class C {
static foo = false;
}
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-object-super/src/index.ts | packages/babel-plugin-transform-object-super/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import ReplaceSupers from "@babel/helper-replace-supers";
import { types as t } from "@babel/core";
import type { File, NodePath } from "@babel/core";
function replacePropertySuper(
path: NodePath<t.ObjectMethod>,
getObjectRef: () => t.Identifier,
file: File,... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-discard-binding/src/utils.ts | packages/babel-plugin-proposal-discard-binding/src/utils.ts | import { types as t } from "@babel/core";
import type { NodePath } from "@babel/core";
const { cloneNode } = t;
// replace [void, e] with [,e]
function transformVoidPatternIntoNull(path: NodePath<t.VoidPattern>): null {
const parent = path.parent as t.ArrayPattern;
takeVoidPatternComments(path.node, parent);
pa... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-discard-binding/src/index.ts | packages/babel-plugin-proposal-discard-binding/src/index.ts | import { OptionValidator } from "@babel/helper-validator-option";
import { declare } from "@babel/helper-plugin-utils";
import {
hasVoidPatternInVariableDeclaration,
handleUsingNamedEvaluation,
removeTrailingVoidPatternsFromParams,
transformVoidPattern,
transformVoidPatternInLVal,
} from "./utils.ts";
import ... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-syntax-typescript/src/index.ts | packages/babel-plugin-syntax-typescript/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
export interface Options {
disallowAmbiguousJSXLike?: boolean;
dts?: boolean;
isTSX?: boolean;
}
export default declare((api, opts: Options) => {
api.assertVersion(REQUIRED_VERSION("^7.0.0-0 || ^8.0.0-0"));
const { disallowAmbiguousJSXLike, dts } = opts... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-syntax-typescript/test/fixtures/disallow-jsx-ambiguity/type-parameter-unambiguous/input.ts | packages/babel-plugin-syntax-typescript/test/fixtures/disallow-jsx-ambiguity/type-parameter-unambiguous/input.ts | <T,>() => 1;
<T,>(x) => 1;
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-syntax-typescript/test/fixtures/disallow-jsx-ambiguity/type-assertion/input.ts | packages/babel-plugin-syntax-typescript/test/fixtures/disallow-jsx-ambiguity/type-assertion/input.ts | <T>x;
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-syntax-typescript/test/fixtures/disallow-jsx-ambiguity/type-parameter/input.ts | packages/babel-plugin-syntax-typescript/test/fixtures/disallow-jsx-ambiguity/type-parameter/input.ts | <T>() => 1;
<T>(x) => 1;
| typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-syntax-typescript/test/fixtures/dts/enabled/input.ts | packages/babel-plugin-syntax-typescript/test/fixtures/dts/enabled/input.ts | const foo: string; | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-dynamic-import/src/index.ts | packages/babel-plugin-transform-dynamic-import/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
const SUPPORTED_MODULES = new Set(["commonjs", "amd", "systemjs"]);
const MODULES_NOT_FOUND = `\
@babel/plugin-transform-dynamic-import depends on a modules
transform plugin. Supported plugins are:
- @babel/plugin-transform-modules-commonjs ^7.4.0
- @babel/plugi... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
babel/babel | https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-exponentiation-operator/src/index.ts | packages/babel-plugin-transform-exponentiation-operator/src/index.ts | import { declare } from "@babel/helper-plugin-utils";
import type { types as t, Scope } from "@babel/core";
export default declare(api => {
api.assertVersion(REQUIRED_VERSION("^7.0.0-0 || ^8.0.0-0"));
const { types: t, template } = api;
function build(left: t.Expression, right: t.Expression) {
return t.cal... | typescript | MIT | 30af57a25649635268e0a9ecdfae99bdd5dda5b4 | 2026-01-04T15:46:08.418221Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.