MCPcopy
hub / github.com/babel/babel / call

Function call

packages/babel-plugin-transform-react-jsx/src/create-plugin.ts:373–381  ·  view source on GitHub ↗
(
      pass: PluginPass,
      name: string,
      args: CallExpression["arguments"],
    )

Source from the content-addressed store, hash-verified

371 };
372
373 function call(
374 pass: PluginPass,
375 name: string,
376 args: CallExpression["arguments"],
377 ) {
378 const node = t.callExpression(get(pass, `id/${name}`)(), args);
379 if (PURE_ANNOTATION ?? get(pass, "defaultPure")) annotateAsPure(node);
380 return node;
381 }
382
383 // We want to use React.createElement, even in the case of
384 // jsx, for <div {...props} key={key} /> to distinguish it

Callers 15

buildJSXElementCallFunction · 0.70
buildJSXFragmentCallFunction · 0.70
buildCreateElementCallFunction · 0.70
input.mjsFile · 0.50
output.mjsFile · 0.50
input.mjsFile · 0.50
output.mjsFile · 0.50
input.mjsFile · 0.50
output.mjsFile · 0.50
input.mjsFile · 0.50
output.mjsFile · 0.50

Calls 2

annotateAsPureFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…