Debian Codegraph @

packages/babel-plugin-transform-sticky-regex/src/index.ts

raw symbols SCIP
1 import { declarescip-typescript npm @babel/helper-plugin-utils 7.20.2 src/`index.ts`/declare(). } from "@babel/helper-plugin-utils"scip-typescript npm @babel/helper-plugin-utils 7.20.2 src/`index.ts`/;
2 import { types as tscip-typescript npm @babel/types 7.20.7 src/`index.ts`/ } from "@babel/core"scip-typescript npm @babel/core 7.20.12 src/`index.ts`/;
3
4 export default declarescip-typescript npm @babel/helper-plugin-utils 7.20.2 src/`index.ts`/declare().(api => {
5 api.assertVersionscip-typescript npm @babel/core 7.20.12 src/config/helpers/`config-api.ts`/ConfigAPI#typeLiteral7:assertVersion.(7);
6
7 return {
8 namescip-typescript npm @babel/core 7.20.12 src/config/validation/`plugins.ts`/PluginObject#typeLiteral0:name.: "transform-sticky-regex",
9
10 visitorscip-typescript npm @babel/core 7.20.12 src/config/validation/`plugins.ts`/PluginObject#typeLiteral0:visitor.: {
11 RegExpLiteral(path) {
12 const { nodescip-typescript npm @babel/traverse 7.20.13 src/path/`index.ts`/NodePath#node. } = path;
13 if (!node.flagsscip-typescript npm @babel/types 7.20.7 src/ast-types/generated/`index.ts`/RegExpLiteral#flags..includesscip-typescript npm typescript 5.9.3 lib/`lib.es2015.core.d.ts`/String#includes().("y")) return;
14
15 path.replaceWithscip-typescript npm @babel/traverse 7.20.13 src/path/`replacement.ts`/replaceWith().(
16 tscip-typescript npm @babel/types 7.20.7 src/`index.ts`/.newExpressionscip-typescript npm @babel/types 7.20.7 src/builders/generated/`index.ts`/newExpression().(tscip-typescript npm @babel/types 7.20.7 src/`index.ts`/.identifierscip-typescript npm @babel/types 7.20.7 src/builders/generated/`index.ts`/identifier().("RegExp"), [
17 tscip-typescript npm @babel/types 7.20.7 src/`index.ts`/.stringLiteralscip-typescript npm @babel/types 7.20.7 src/builders/generated/`index.ts`/stringLiteral().(node.patternscip-typescript npm @babel/types 7.20.7 src/ast-types/generated/`index.ts`/RegExpLiteral#pattern.),
18 tscip-typescript npm @babel/types 7.20.7 src/`index.ts`/.stringLiteralscip-typescript npm @babel/types 7.20.7 src/builders/generated/`index.ts`/stringLiteral().(node.flagsscip-typescript npm @babel/types 7.20.7 src/ast-types/generated/`index.ts`/RegExpLiteral#flags.),
19 ]),
20 );
21 },
22 },
23 };
24 });