Debian Codegraph @

packages/babel-plugin-transform-member-expression-literals/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-member-expression-literals",
9
10 visitorscip-typescript npm @babel/core 7.20.12 src/config/validation/`plugins.ts`/PluginObject#typeLiteral0:visitor.: {
11 MemberExpressionscip-typescript npm @babel/plugin-transform-member-expression-literals 7.18.6 src/`index.ts`/MemberExpression0:: {
12 exit({ nodescip-typescript npm @babel/traverse 7.20.13 src/path/`index.ts`/NodePath#node. }) {
13 const prop = node.propertyscip-typescript npm @babel/types 7.20.7 src/ast-types/generated/`index.ts`/MemberExpression#property.;
14 if (
15 !node.computedscip-typescript npm @babel/types 7.20.7 src/ast-types/generated/`index.ts`/MemberExpression#computed. &&
16 tscip-typescript npm @babel/types 7.20.7 src/`index.ts`/.isIdentifierscip-typescript npm @babel/types 7.20.7 src/validators/generated/`index.ts`/isIdentifier().(prop) &&
17 !tscip-typescript npm @babel/types 7.20.7 src/`index.ts`/.isValidES3Identifier(prop.namescip-typescript npm @babel/types 7.20.7 src/ast-types/generated/`index.ts`/Identifier#name.)
18 ) {
19 // foo.default -> foo["default"]
20 node.propertyscip-typescript npm @babel/types 7.20.7 src/ast-types/generated/`index.ts`/MemberExpression#property. = 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().(prop.namescip-typescript npm @babel/types 7.20.7 src/ast-types/generated/`index.ts`/Identifier#name.);
21 node.computedscip-typescript npm @babel/types 7.20.7 src/ast-types/generated/`index.ts`/MemberExpression#computed. = true;
22 }
23 },
24 },
25 },
26 };
27 });