| 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 { transformscip-typescript npm @babel/plugin-proposal-optional-chaining 7.20.7 src/`transform.ts`/transform(). } from "@babel/plugin-proposal-optional-chaining"scip-typescript npm @babel/plugin-proposal-optional-chaining 7.20.7 src/`index.ts`/; |
| 3 |
import { shouldTransformscip-typescript npm @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining 7.20.7 src/`util.ts`/shouldTransform(). } from "./util"scip-typescript npm @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining 7.20.7 src/`util.ts`/; |
| 4 |
import type { NodePathscip-typescript npm @babel/traverse 7.20.13 src/path/`index.ts`/NodePath# } from "@babel/traverse"scip-typescript npm @babel/traverse 7.20.13 src/`index.ts`/; |
| 5 |
import type * as tscip-typescript npm @babel/types 7.20.7 src/`index.ts`/ from "@babel/types"scip-typescript npm @babel/types 7.20.7 src/`index.ts`/; |
| 6 |
|
| 7 |
export default declarescip-typescript npm @babel/helper-plugin-utils 7.20.2 src/`index.ts`/declare().(api => { |
| 8 |
api.assertVersionscip-typescript npm @babel/core 7.20.12 src/config/helpers/`config-api.ts`/ConfigAPI#typeLiteral7:assertVersion.(7); |
| 9 |
|
| 10 |
const noDocumentAll = api.assumption("noDocumentAll") ?? false; |
| 11 |
const pureGetters = api.assumption("pureGetters") ?? false; |
| 12 |
|
| 13 |
return { |
| 14 |
namescip-typescript npm @babel/core 7.20.12 src/config/validation/`plugins.ts`/PluginObject#typeLiteral0:name.: "bugfix-v8-spread-parameters-in-optional-chaining", |
| 15 |
|
| 16 |
visitorscip-typescript npm @babel/core 7.20.12 src/config/validation/`plugins.ts`/PluginObject#typeLiteral0:visitor.: { |
| 17 |
"OptionalCallExpression|OptionalMemberExpression"( |
| 18 |
path: NodePathscip-typescript npm @babel/traverse 7.20.13 src/path/`index.ts`/NodePath#<tscip-typescript npm @babel/types 7.20.7 src/`index.ts`/.OptionalCallExpressionscip-typescript npm @babel/types 7.20.7 src/ast-types/generated/`index.ts`/OptionalCallExpression# | tscip-typescript npm @babel/types 7.20.7 src/`index.ts`/.OptionalMemberExpressionscip-typescript npm @babel/types 7.20.7 src/ast-types/generated/`index.ts`/OptionalMemberExpression#>, |
| 19 |
) { |
| 20 |
if (shouldTransformscip-typescript npm @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining 7.20.7 src/`util.ts`/shouldTransform().(path)) { |
| 21 |
transformscip-typescript npm @babel/plugin-proposal-optional-chaining 7.20.7 src/`transform.ts`/transform().(path, { noDocumentAllscip-typescript npm @babel/plugin-proposal-optional-chaining 7.20.7 src/`transform.ts`/transform().(`{
pureGetters,
noDocumentAll,
}`)typeLiteral29:noDocumentAll., pureGettersscip-typescript npm @babel/plugin-proposal-optional-chaining 7.20.7 src/`transform.ts`/transform().(`{
pureGetters,
noDocumentAll,
}`)typeLiteral29:pureGetters. }); |
| 22 |
} |
| 23 |
}, |
| 24 |
}, |
| 25 |
}; |
| 26 |
}); |