MCPcopy Create free account
hub / github.com/babel/babel / CallExpression

Function CallExpression

scripts/babel-plugin-transform-node-protocol-import/plugin.ts:38–47  ·  view source on GitHub ↗
({ node })

Source from the content-addressed store, hash-verified

36 }
37 },
38 CallExpression({ node }) {
39 if (
40 t.isIdentifier(node.callee, { name: "require" }) &&
41 t.isStringLiteral(node.arguments[0])
42 ) {
43 node.arguments[0].value = replaceNodeProtocol(
44 node.arguments[0].value
45 );
46 }
47 },
48 },
49 };
50}

Callers

nothing calls this directly

Calls 3

replaceNodeProtocolFunction · 0.85
isIdentifierMethod · 0.80
isStringLiteralMethod · 0.80

Tested by

no test coverage detected